.box {
    border-style: solid;
    border-width: 1px 1px 1px 4px;
    padding: 10px;
    background: var(--bg-light);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 0 auto;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
}

.app-container {
    display: flex;
    width: 100%;
    max-width: var(--feed-max);
    gap: 15px;
    padding: 15px;
    align-items: flex-start;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    flex-shrink: 0;
    gap: 15px;
    position: sticky;
    top: 15px;
}

.sidebar-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.site-brand {
    font-size: 20px;
    font-weight: bold;
    color: var(--text);
    text-decoration: none;
    padding-left: 2px;
}

.site-brand:hover {
    color: var(--link);
}

.small {
    font-size: 15px;
    font-weight: normal;
    padding: 2px 5px 2px 5px;
    margin-left: 5px;
    border-color: #3aba13;
}

.small.beta {
    border-color: var(--warn);
}

.small.new {
    border-color: var(--success);
}

.feed-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.guest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.nav-box {
    display: flex;
    flex-direction: column;
    border-color: var(--accent-blue);
    gap: 2px;
    padding: 5px;
}

.nav-link {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.nav-link:hover {
    background: var(--bg-hover);
}

.nav-link.active {
    background: var(--accent-blue-bg);
    color: var(--text);
    font-weight: bold;
}

.badge {
    display: inline-block;
    height: 14px;
    width: 14px;
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: -2px;
}

.compose-box {
    border-color: var(--accent-purple);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.compose-textarea {
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px;
    resize: vertical;
    min-height: 60px;
    width: 100%;
}

.compose-textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.compose-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compose-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.compose-media-wrap {
    position: relative;
    display: inline-flex;
}

.compose-media-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.compose-media-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.compose-media-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.compose-media-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.compose-media-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    max-width: 280px;
    max-height: 180px;
    overflow-y: auto;
    background: var(--menu-bg);
    border: 1px solid var(--border);
    z-index: 10;
}

.compose-media-dropdown.open {
    display: block;
}

.compose-media-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    font-size: 12px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}

.compose-media-row:last-child {
    border-bottom: none;
}

.compose-media-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compose-media-remove {
    background: none;
    color: var(--text-muted);
    border: none;
    width: 18px;
    height: 18px;
    line-height: 1;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.compose-media-remove:hover {
    color: var(--danger);
}

.char-count {
    font-size: 12px;
    color: var(--text-muted);
}

.char-count.warn {
    color: var(--warn);
}

.char-count.over {
    color: var(--danger);
}

.compose-error {
    font-size: 12px;
    color: var(--danger);
    display: none;
}

.compose-error.visible {
    display: block;
}

.btn {
    background: var(--bg);
    padding: 6px 14px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--accent-blue);
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
}

.btn:hover {
    background: var(--bg-hover);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    background: var(--bg);
}

.btn.btn-small {
    padding: 4px 10px;
    font-size: 12px;
}

.btn.btn-danger {
    border-color: var(--danger);
}

.btn.btn-danger:hover {
    background: var(--danger-bg);
}

.btn.btn-active {
    background: var(--accent-blue);
    color: rgb(30, 30, 30);
}

.btn.btn-active:hover {
    background: var(--accent-blue);
}

.btn.btn-active:disabled:hover {
    background: var(--accent-blue);
}

.muted-note {
    border-color: var(--warn);
    font-size: 13px;
    color: var(--warn-text);
}

.tabs {
    display: flex;
    width: 100%;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    color: var(--text-muted);
    text-decoration: none;
    background: var(--bg-light);
    border: 1px solid var(--accent-blue);
    border-left-width: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.tab + .tab {
    border-left-width: 1px;
}

.tab:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.tab.active {
    color: var(--text);
    background: var(--accent-blue-bg);
}

.post {
    display: flex;
    gap: 10px;
    border-color: var(--user-post-color, var(--accent-blue));
    text-decoration: none;
    color: var(--text);
    position: relative;
    cursor: pointer;
}

.post-avatar {
    height: fit-content;
    flex-shrink: 0;
    display: block;
}

.post-avatar img {
    height: var(--avatar-sm);
    width: var(--avatar-sm);
    object-fit: cover;
    display: block;
}

.post-avatar:hover img {
    opacity: 0.9;
}

.post-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.post-status-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
}

.post-status-icons:empty {
    display: none;
}

.post-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.post-status-icon img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}



.post-header {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
    line-height: 1.3;
    padding-right: 40px;
}

.post-name {
    font-weight: bold;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1.3;
    text-decoration: none;
}

.post-name:hover {
    text-decoration: underline;
}

.post-username {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
}

.post-username:hover {
    text-decoration: underline;
}

.post-time {
    color: var(--text-muted);
    font-size: 13px;
}

.post-content {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    line-height: 1.4;
    color: inherit;
}

.post-content code,
.list-card-bio code,
.profile-bio code {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 1px 6px;
    font-family: NSimSun, "MS Gothic",monospace;
    font-size: 0.9em;
}

.post-reply-context {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: -2px;
}

.post-reply-context:hover {
    text-decoration: underline;
}

.post-reply-context-name {
    color: var(--text-dim);
    font-weight: bold;
}

.post-reply-context-username {
    color: var(--text-muted);
}

.mention {
    color: var(--link);
    text-decoration: none;
}

.mention:hover {
    text-decoration: underline;
}

.post-status-icon.pin img {
    transform: rotate(25deg);
    transform-origin: center;
}

.mention-chip {
    display: inline-flex;
    align-items: center;
    border-style: solid;
    border-width: 1px;
    border-left-width: 3px;
    border-color: var(--user-profile-color, var(--accent-blue));
    padding: 1px 6px;
    line-height: 1.5;
    font-size: 0.85em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
}

.mention-chip:hover {
    background: var(--bg-hover);
    text-decoration: none;
}

.media-grid {
    display: grid;
    gap: 3px;
    margin-top: 4px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: fit-content;
    max-width: 100%;
}

.media-grid-2,
.media-grid-3,
.media-grid-4 {
    width: 100%;
}

.media-grid-1 {
    grid-template-columns: 1fr;
    justify-content: start;
}

.media-grid-1 .media-item {
    max-height: 520px;
    max-width: 100%;
    width: fit-content;
    background: rgb(20, 19, 23);
}

.media-grid-1 .media-item img,
.media-grid-1 .media-item video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.media-grid-2 {
    grid-template-columns: 1fr 1fr;
    aspect-ratio: 2 / 1;
    max-height: 520px;
}

.media-grid-2 .media-item {
    aspect-ratio: auto;
}

.media-grid-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 16 / 9;
    max-height: 520px;
}

.media-grid-3 .media-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
}

.media-grid-3 .media-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.media-grid-3 .media-item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.media-grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    aspect-ratio: 16 / 9;
    max-height: 520px;
}

.media-grid-4 .media-item {
    aspect-ratio: auto;
}

.media-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: rgb(30, 28, 34);
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-grid-1 .media-item img,
.media-grid-1 .media-item video {
    display: block;
}

.media-grid-2 .media-item img,
.media-grid-2 .media-item video,
.media-grid-3 .media-item img,
.media-grid-3 .media-item video,
.media-grid-4 .media-item img,
.media-grid-4 .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-item .video-play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.media-item .video-play-badge::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}

.media-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(10, 9, 13, 0.85);
    color: var(--text-dim);
    font-size: 11px;
    padding: 2px 6px;
    font-weight: bold;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: inherit;
}

.media-item.audio-item {
    min-height: 196px;
    min-width: 196px;
    width: 196px;
    height: 196px;
    background: rgb(25, 23, 29);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-item.audio-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
}

.lightbox, .login-lightbox {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lightbox.open, .login-lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-media-wrap {
    max-width: 90vw;
    max-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media-wrap img,
.lightbox-media-wrap video {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-counter {
    color: var(--text-dim);
    font-size: 13px;
    margin-top: 10px;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text);
    font-size: 18px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text);
    font-size: 20px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
}

.lightbox-arrow.prev {
    left: 20px;
}

.lightbox-arrow.next {
    right: 20px;
}

.lightbox-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.post-actions {
    display: flex;
    gap: 18px;
    margin-top: 4px;
    align-items: center;
    justify-content: space-between;
}

.post-action {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 2px 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-action:hover {
    color: var(--text);
}

.post-action.liked {
    color: var(--like);
}

.action-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.like-count,
.reply-count {
    font-size: 13px;
}

.like-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transition: opacity 0.1s ease;
}

.like-btn:disabled:hover {
    opacity: 0.7;
}

.like-btn.liked:disabled:hover {
    opacity: 0.7;
}

.post-menu-wrap {
    position: relative;
    margin-left: auto;
}

.post-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    margin-top: 2px;
    line-height: 1;
}

.post-menu-btn:hover {
    color: var(--text);
}

.post-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 22px;
    background: var(--menu-bg);
    border-style: solid;
    border-width: 1px 1px 1px 4px;
    border-color: var(--accent-blue);
    min-width: 130px;
    z-index: 5;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.post-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.post-menu button,
.post-menu form button {
    background: none;
    border: none;
    color: var(--text);
    text-align: left;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    width: 100%;
}

.post-menu button:hover {
    background: var(--bg-hover);
}

.post-menu form {
    margin: 0;
}

.feed-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px 10px;
}

.reply-box {
    border-color: var(--accent-mint);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reply-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.reply-avatar {
    height: 28px;
    width: 28px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.reply-box-header span {
    font-size: 13px;
    color: var(--text-muted);
}

.replies {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.locked-note {
    border-color: var(--warn);
    font-size: 13px;
    text-align: center;
    color: var(--warn-text);
}

.admin-box {
    border-color: var(--warn);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-box-title {
    font-weight: bold;
    color: var(--warn);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    font-size: 13px;
}

.admin-info-grid dt {
    color: var(--text-muted);
}

.admin-info-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field label {
    font-size: 13px;
    color: var(--text-dim);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field textarea,
.lightbox input[type="text"] {
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 8px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-field input[type="file"] {
    color: var(--text-dim);
    font-size: 13px;
}

.tos-check {
    display: flex;
    align-items: center;
    gap: 8px;
    border-color: var(--accent-blue);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-dim);
}

.tos-check input {
    flex-shrink: 0;
}

.tos-check a {
    color: var(--link);
}

.form-error {
    border-color: rgb(253, 146, 146);
    font-size: 14px;
}

.form-success {
    border-color: var(--success);
    font-size: 14px;
}

.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 20px;
    padding: 20px;
}

.auth-box {
    border-color: var(--accent-purple);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 340px;
}

.auth-title {
    font-size: 20px;
    font-weight: bold;
}

.auth-switch {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
}

.landing {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.landing-box {
    border-color: var(--accent-purple);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    max-width: 420px;
    width: 100%;
}

.landing-title {
    font-size: 32px;
    font-weight: bold;
}

.landing-tagline {
    color: var(--text-dim);
    line-height: 1.5;
}

.landing-actions {
    display: flex;
    gap: 12px;
}

.title {
    font-size: 18px;
    font-weight: bold;
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 10px;
    text-align: center;
}

.error-page .code {
    font-size: 48px;
    font-weight: bold;
    color: rgb(253, 146, 146);
}

.list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-color: var(--accent-blue);
    width: 100%;
    max-width: var(--feed-max);
}

a.list-header {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.list-back {
    text-decoration: none;
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    padding: 4px 8px;
}

.list-back:hover {
    background: var(--bg-hover);
}

.list-header-titles {
    display: flex;
    flex-direction: column;
}

.list-header-title {
    font-weight: bold;
    font-size: 16px;
}

.list-header-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.list-page {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: var(--feed-max);
}

.list-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-color: var(--user-profile-color, var(--accent-peach));
    color: var(--text);
}

.list-card-avatar {
    flex-shrink: 0;
    text-decoration: none;
}

.list-card-avatar img {
    height: var(--avatar-md);
    width: var(--avatar-md);
    object-fit: cover;
    display: block;
}

.list-card-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.list-card-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.list-card-name-link {
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.list-card-name {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1.3;
}

.list-card-username {
    font-size: 12px;
    color: var(--text-muted);
}

.list-card-bio {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.list-follow-btn {
    padding: 5px 12px;
    font-size: 13px;
    min-width: 84px;
    flex-shrink: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.pagination-label {
    color: var(--text-muted);
    font-size: 13px;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

.thread-ancestor {
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0.75;
}

.thread-ancestor .post {
    padding: 8px 10px;
}

.thread-main-post {
    display: flex;
    flex-direction: column;
}

.thread-context-label {
    font-size: 13px;
    color: var(--text-muted);
}

.thread-context-label a {
    color: var(--text-muted);
    text-decoration: none;
}

.thread-context-label a:hover {
    text-decoration: underline;
}

.thread-replies-label {
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-weight: bold;
}

.thread-replies-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-thread-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-thread-container > .compose-box {
    margin: 10px 0;
}

.feed-item {
    margin-bottom: 15px;
}

.feed-item .post {
    border-color: var(--user-post-color, var(--accent-blue));
}

.post[data-depth="0"] {
    border-left-width: 4px;
}

.post[data-depth="1"] {
    border-left-width: 3px;
}

.post[data-depth="2"] {
    border-left-width: 2px;
    margin-left: 20px;
}

.post[data-depth="3"] {
    border-left-width: 2px;
    margin-left: 40px;
}

.view-more-replies {
    display: block;
    text-align: center;
    color: var(--link);
    font-size: 13px;
    text-decoration: none;
    padding: 8px 0;
}

.view-more-replies:hover {
    text-decoration: underline;
}

.actions-right {
    display: flex;
    gap: 5px;
}

.bookmarks-indicator {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-color: var(--accent-purple);
}

.success {
    color: var(--success);
    font-size: 15px !important;
    font-weight: normal !important;
}

.error {
    color: var(--like);
    font-size: 15px !important;
    font-weight: normal !important;
}


@media screen and (max-width: 640px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-wrap: wrap;
        position: static;
    }

    .site-brand {
        text-align: center;
        font-size: 20px;
    }

    .nav-box {
	    display: flex;
	    flex-direction: row;
	    border-color: var(--accent-blue);
	    padding: 5px;
	    white-space: nowrap;
	}
	    
	.nav-link {
	    display: block;
	    color: var(--text);
	    text-decoration: none;
	    padding: 8px 7px;
	    flex: 1;
	    text-align: center;
	    background: none;
	    border: none;
	    cursor: pointer;
	    font-size: 14px;
	}
	

    .feed-column {
        width: 100%;
    }

    .actions-left {
        display: flex;
        gap: 13px;
    }

    .like-count, .reply-count {
        font-size: 16px;
    }

    .post[data-depth="2"] {
        margin-left: 10px;
    }

    .post[data-depth="3"] {
        margin-left: 20px;
    }
}

.landingPage, .authPage {
    background-image: url('/img/landing.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.landing-box, .auth-box {
    background-color: var(--bg);
}

.site-footer {
    width: 100%;
    flex-shrink: 0;
    margin-top: 20px;
    padding: 0;
    background: var(--footer-bg);
    border-style: solid;
    border-width: 4px 0 0 0;
    border-color: var(--accent-blue);
    box-sizing: border-box;
    scroll-snap-align: end;
    scroll-margin-bottom: 0;
}

.footer-inner {
    max-width: var(--feed-max);
    margin: 0 auto;
    padding: 18px 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.footer-logo {
    font-size: 16px;
    font-weight: bold;
    color: var(--text);
}

.footer-meta {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.footer-center:hover {
    opacity: 1;
}

.footer-center img {
    width: 24px;
    height: 24px;
}

.footer-center span {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.footer-right a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-right a:hover {
    color: var(--link);
}

.compose-media-btn.uploading {
    min-width: 80px;
    text-align: center;
}

.compose-media-btn.uploading::after {
    content: '';
    display: inline-block;
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
    100% { content: ''; }
}

@media (max-width: 640px) {
    .footer-inner {
        padding: 12px 10px;
        gap: 10px;
        grid-template-columns: 1fr auto 1fr;
    }

    .footer-logo {
        font-size: 13px;
    }

    .footer-meta {
        font-size: 9px;
    }

    .footer-center img {
        width: 18px;
        height: 18px;
    }

    .footer-center span {
        font-size: 8px;
    }

    .footer-right a {
        font-size: 9px;
    }
}
