:root {
    --bg-page: #0c0c0f;
    --bg-surface: #141419;
    --bg-surface-elevated: #1a1a22;
    --bg-input: #101015;
    --border: #272733;
    --border-hover: #3d3d4f;
    --accent: #f43f85;
    --accent-hover: #e0246f;
    --accent-dim: rgba(244, 63, 133, 0.12);
    --gold: #f59e0b;
    --gold-dim: rgba(245, 158, 11, 0.12);
    --purple: #a855f7;
    --purple-dim: rgba(168, 85, 247, 0.12);
    --text-primary: #f3f3f6;
    --text-secondary: #9090a2;
    --text-muted: #58586c;
    --danger: #ef4444;
    --danger-dim: rgba(239, 68, 68, 0.12);
    --success: #10b981;
    --success-dim: rgba(16, 185, 129, 0.12);
    --radius: 3px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Chrome / Browser Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #101015 inset !important;
    -webkit-text-fill-color: #f3f3f6 !important;
    caret-color: #fff;
    transition: background-color 5000s ease-in-out 0s;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* =========================================================================
   NAVIGATION BAR
   ========================================================================= */
.navbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-brand-badge {
    font-size: 10px;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    padding: 1px 5px;
    border-radius: var(--radius);
}

.nav-search {
    position: relative;
    flex: 1;
    max-width: 520px;
    display: flex;
    align-items: center;
}

.nav-search .search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--text-muted);
    pointer-events: none;
    line-height: 1;
}

.nav-search input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px 8px 34px;
    border-radius: var(--radius);
    font-size: 13px;
    font-family: var(--font-sans);
    outline: none;
    transition: all 0.15s;
}

.nav-search input:focus {
    border-color: var(--accent);
    background: #14141b;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* 🟢 Live Gooner Online Counter Badge */
.online-counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0d0d12;
    border: 1px solid rgba(134, 239, 172, 0.28);
    color: #86efac;
    padding: 5px 10px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    user-select: none;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(134, 239, 172, 0.08);
}

.online-counter-badge:hover {
    border-color: #86efac;
    background: #121218;
    box-shadow: 0 0 16px rgba(134, 239, 172, 0.2);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: livePulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
    flex-shrink: 0;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.85);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@media (max-width: 720px) {
    .online-counter-badge {
        padding: 4px 7px;
        font-size: 10px;
    }
    .online-counter-badge .online-label-suffix {
        display: none;
    }
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius);
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    border-color: var(--border);
    color: var(--text-primary);
}
.btn-secondary:hover {
    border-color: var(--border-hover);
    background: #20202a;
    color: #fff;
}

.btn-admin {
    background: var(--gold-dim);
    color: var(--gold);
    border-color: var(--gold);
}
.btn-admin:hover {
    background: var(--gold);
    color: #000;
}

.btn-danger {
    background: var(--danger-dim);
    color: var(--danger);
    border-color: var(--danger);
}
.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-success {
    background: var(--success-dim);
    color: var(--success);
    border-color: var(--success);
}
.btn-success:hover {
    background: var(--success);
    color: #fff;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

/* =========================================================================
   MAIN LAYOUT & CONTAINERS
   ========================================================================= */
.main-content {
    flex: 1;
    max-width: 1360px;
    width: 100%;
    margin: 0 auto;
    padding: 16px;
}

/* Filter / Toolbar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    transition: all 0.15s;
    cursor: pointer;
}

.tag-pill:hover, .tag-pill.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.tag-pill.artist {
    color: var(--gold);
    border-color: rgba(245, 158, 11, 0.35);
    background: var(--gold-dim);
}
.tag-pill.artist:hover {
    border-color: var(--gold);
    background: rgba(245, 158, 11, 0.2);
}

.tag-pill.meta-tag {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.1);
}
.tag-pill.meta-tag:hover {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.22);
}

/* =========================================================================
   MEDIA GRID & CARDS
   ========================================================================= */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.media-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, transform 0.1s;
    position: relative;
}

.media-card:hover {
    border-color: var(--border-hover);
}

.media-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: #09090d;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-thumb-ambient {
    position: absolute;
    top: -15%;
    left: -15%;
    width: 130%;
    height: 130%;
    object-fit: cover;
    filter: blur(18px) brightness(0.4) saturate(1.5);
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
    transform: scale(1.1);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.media-thumb {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.media-card:hover .media-thumb {
    transform: scale(1.03);
}

.media-thumb-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.media-card.is-previewing .media-thumb-preview {
    opacity: 1;
}

.media-card:hover .media-thumb-ambient {
    filter: blur(22px) brightness(0.55) saturate(1.8);
    opacity: 1;
}

.media-type-tag {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.85);
    padding: 2px 6px;
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    text-transform: uppercase;
}

.media-type-tag.video { color: var(--accent); }
.media-type-tag.image { color: var(--success); }

.media-status-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--gold);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: var(--radius);
}

.media-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.media-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.media-title:hover {
    color: var(--accent);
}

.media-artist-credit {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-meta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: auto;
}

.media-creator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}
.media-creator:hover {
    color: var(--text-primary);
}

.creator-avatar {
    width: 18px;
    height: 18px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--bg-surface-elevated);
}

/* =========================================================================
   FORMS & AUTH CARDS
   ========================================================================= */
.form-card, .form-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    max-width: 440px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.form-card.upload, .form-box.upload {
    max-width: 760px;
    margin: 24px auto;
}

.form-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 9px 12px;
    font-size: 13px;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.15s;
}

.form-control:focus {
    border-color: var(--accent);
    background: #14141c;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 4px;
    display: block;
}

.alert-error {
    background: var(--danger-dim);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 12px;
    font-family: var(--font-mono);
}

.alert-success {
    background: var(--success-dim);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 12px;
    font-family: var(--font-mono);
}

/* Dropzone (Boxy & Minimal) */
.dropzone, .dropzone-box {
    border: 1px dashed var(--border);
    background: var(--bg-input);
    border-radius: var(--radius);
    padding: 36px 16px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.15s;
}

.dropzone:hover, .dropzone.dragover, .dropzone-box:hover, .dropzone-box.dragover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.dropzone-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.progress-container {
    height: 4px;
    background: var(--border);
    border-radius: 0;
    overflow: hidden;
    margin: 12px 0;
    display: none;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.15s;
}

/* =========================================================================
   USER PROFILE & BANNER SYSTEM
   ========================================================================= */
.profile-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-banner-container {
    width: 100%;
    height: 220px;
    background: #111118;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.profile-banner-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    background: rgba(12, 12, 16, 0.88) !important;
    backdrop-filter: blur(4px);
}

.profile-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-banner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--purple);
    border-radius: var(--radius);
}

.profile-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 0 24px 20px 24px;
    margin-bottom: 24px;
    position: relative;
    z-index: 5;
}

.profile-avatar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: -60px;
    margin-bottom: 16px;
    position: relative;
    z-index: 15;
    pointer-events: none;
}

.profile-avatar-box {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: var(--radius);
    border: 3px solid var(--bg-surface);
    background: var(--bg-input);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    flex-shrink: 0;
    z-index: 20;
    pointer-events: auto;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-avatar-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid var(--purple);
    color: var(--purple);
    font-size: 9px;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 1px 4px;
    border-radius: var(--radius);
}

.profile-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    pointer-events: auto;
    position: relative;
    z-index: 20;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-username-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-username {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.profile-bio {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
    max-width: 800px;
    white-space: pre-wrap;
}

.profile-meta-tags {
    display: flex;
    gap: 16px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-top: 4px;
}

/* =========================================================================
   POST DETAIL VIEW (BOORU STYLE)
   ========================================================================= */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    align-items: flex-start;
}

.media-viewport {
    background: #000;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.post-sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.meta-box {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
}

.meta-label {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.meta-val {
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* =========================================================================
   🎬 ADVANCED HIGH-PERFORMANCE VIDEO PLAYER & MINI-PLAYER
   ========================================================================= */
.player-container {
    position: relative;
    background: #000;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius);
    outline: none;
    user-select: none;
}

.custom-video {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    cursor: pointer;
    background: #000;
}

/* Fullscreen scaling on desktop & mobile */
.player-container:fullscreen,
.player-container:-webkit-full-screen,
.player-container.is-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    background: #000 !important;
}

.player-container:fullscreen .custom-video,
.player-container:-webkit-full-screen .custom-video,
.player-container.is-fullscreen .custom-video {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    object-fit: contain !important;
}

/* Auto-hiding controls (2.5s) */
.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(12, 12, 15, 0) 0%, rgba(12, 12, 15, 0.88) 35%, rgba(12, 12, 15, 0.98) 100%);
    padding: 18px 12px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20;
    transition: opacity 0.25s cubic-bezier(0.2, 0, 0, 1), transform 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.player-container.controls-hidden .player-controls {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
}

/* Scrubber Bar & Buffer & Tooltip */
.player-scrubber-wrapper {
    position: relative;
    width: 100%;
    padding: 6px 0;
    cursor: pointer;
}

.scrubber-tooltip {
    position: absolute;
    bottom: 22px;
    left: 0;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid var(--accent);
    color: #fff;
    font-size: 11px;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: var(--radius);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    white-space: nowrap;
    z-index: 25;
}

.player-progress-bar {
    position: relative;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    transition: height 0.15s ease;
}

.player-scrubber-wrapper:hover .player-progress-bar {
    height: 7px;
}

.player-progress-buffer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: rgba(255, 255, 255, 0.32);
    border-radius: 2px;
    pointer-events: none;
}

.player-progress-filled {
    position: relative;
    height: 100%;
    background: linear-gradient(90deg, #ec4899 0%, var(--accent) 100%);
    width: 0%;
    border-radius: 2px;
}

.scrubber-thumb {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(244, 63, 133, 0.85);
    transition: transform 0.15s ease;
}

.player-scrubber-wrapper:hover .scrubber-thumb {
    transform: translateY(-50%) scale(1);
}

/* Controls Buttons Row */
.player-buttons-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.player-left-controls, .player-right-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-btn {
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: 13px;
    font-family: var(--font-mono);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, transform 0.1s, background 0.15s;
}

.player-btn:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.player-btn.active {
    color: var(--accent);
    background: var(--accent-dim);
}

.player-time {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-left: 4px;
}

/* Volume Slider */
.player-volume-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.player-volume-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: width 0.2s;
}

.player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

/* Center Play/Pause Flash Ripple */
.center-play-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 2px solid var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    pointer-events: none;
    opacity: 0;
    z-index: 15;
}

.center-play-flash.animate-flash {
    animation: centerFlashRipple 0.45s ease-out forwards;
}

@keyframes centerFlashRipple {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    40% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

/* YouTube Style Touch Double-Tap Overlays */
.touch-seek-overlay {
    position: absolute;
    top: 0;
    bottom: 54px;
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    z-index: 16;
}

.touch-seek-left {
    left: 0;
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
}

.touch-seek-right {
    right: 0;
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

.touch-seek-pill {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
}

.touch-seek-overlay.animate-ripple {
    animation: seekRippleFlash 0.6s ease-out forwards;
}

@keyframes seekRippleFlash {
    0% { opacity: 0; background: transparent; transform: scale(0.85); }
    30% { opacity: 1; background: rgba(244, 63, 133, 0.15); transform: scale(1.03); }
    100% { opacity: 0; background: transparent; transform: scale(1); }
}

/* =========================================================================
   🗗 IN-PAGE MINI-PLAYER (HOTKEY 'I')
   ========================================================================= */
.mini-player-bar {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(12, 12, 15, 0.95);
    border-bottom: 1px solid var(--accent);
    padding: 6px 10px;
    align-items: center;
    justify-content: space-between;
    z-index: 22;
}

.mini-player-title {
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
}

.mini-player-actions {
    display: flex;
    gap: 4px;
}

.mini-bar-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: var(--radius);
}
.mini-bar-btn:hover { color: var(--accent); }

.player-container.is-mini-player {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 350px !important;
    max-width: 90vw !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    z-index: 9999 !important;
    border: 2px solid var(--accent) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85) !important;
    animation: miniPlayerDock 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.player-container.is-mini-player .mini-player-bar {
    display: flex !important;
}

.player-container.is-mini-player .player-controls {
    padding: 10px 8px 6px 8px !important;
}

.player-container.is-mini-player .player-volume-slider,
.player-container.is-mini-player .player-time,
.player-container.is-mini-player .theater-btn {
    display: none !important;
}

@keyframes miniPlayerDock {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================================
   🗖 THEATER MODE (HOTKEY 'T')
   ========================================================================= */
.post-layout.theater-mode {
    grid-template-columns: 1fr;
}
.post-layout.theater-mode .media-viewport {
    max-height: 85vh;
}
.post-layout.theater-mode .player-container {
    max-height: 85vh;
}

/* Image Lightbox Zoom */
.image-viewer-container {
    text-align: center;
    background: #000;
    overflow: hidden;
    position: relative;
}

.image-viewer-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.image-viewer-container img.is-zoomed {
    transform: scale(1.75);
    cursor: zoom-out;
}

/* Moderation Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th, .data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: var(--bg-surface-elevated);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
}

/* =========================================================================
   MODALS (PROFILE SETTINGS & CROPPER)
   ========================================================================= */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 580px;
    width: 100%;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: var(--bg-surface-elevated);
}

/* Tab Navigation inside Modal */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin: -18px -18px 18px -18px;
    background: var(--bg-input);
}

.modal-tab-btn {
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.15s;
}

.modal-tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--bg-surface);
}

/* Cropper Workspace */
.cropper-workspace {
    max-height: 380px;
    min-height: 250px;
    background: #09090c;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.cropper-workspace img {
    max-width: 100%;
    max-height: 380px;
    display: block;
}

.cropper-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.gif-banner-notice {
    background: var(--purple-dim);
    border: 1px solid var(--purple);
    color: #d8b4fe;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 11px;
    font-family: var(--font-mono);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Toast Notifications */
.toast-notice {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.2s ease-out;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive styles moved to unified @media (max-width: 860px) below */

/* =========================================================================
   COMMENTS SYSTEM (FADED BANNER BACKDROP & HIGH VISIBILITY)
   ========================================================================= */
.comments-section {
    margin-top: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.comment-form {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-item {
    position: relative;
    overflow: hidden;
    background: #121217;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}

.comment-item:hover {
    border-color: var(--border-hover);
}

.comment-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.14;
    filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}

.comment-body-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.comment-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.comment-username {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}

.comment-time {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.comment-text {
    font-size: 13px;
    color: #f3f3f6;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-top: 4px;
}

.vote-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.vote-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.vote-btn.active-like {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

.vote-btn.active-dislike {
    border-color: var(--danger);
    background: var(--danger-dim);
    color: var(--danger);
}

.reply-btn, .report-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-mono);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
}

.reply-btn:hover { color: var(--text-primary); }
.report-btn:hover { color: var(--danger); }

.comment-replies {
    margin-left: 28px;
    margin-top: 10px;
    padding-left: 12px;
    border-left: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inline-reply-box {
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* =========================================================================
   ⚡ RULE34 1-CLICK RIPPER & IMPORTER
   ========================================================================= */
.r34-ripper-card {
    background: linear-gradient(135deg, rgba(244, 63, 133, 0.08) 0%, rgba(20, 20, 28, 0.95) 100%);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.r34-ripper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.r34-ripper-title {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.r34-input-row {
    display: flex;
    gap: 8px;
}

.r34-progress-box {
    margin-top: 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    display: none;
}

.r34-progress-bar {
    width: 100%;
    height: 8px;
    background: #232330;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 8px 0;
}

.r34-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent) 0%, #ff6fa8 100%);
    transition: width 0.15s;
}

.r34-tag-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.r34-tag-badge {
    font-size: 10px;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: var(--radius);
    border: 1px solid;
}
.r34-tag-badge.artist { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }
.r34-tag-badge.copyright { color: #d8b4fe; border-color: #d8b4fe; background: rgba(216, 180, 254, 0.12); }
.r34-tag-badge.character { color: #86efac; border-color: #86efac; background: rgba(134, 239, 172, 0.12); }
.r34-tag-badge.meta { color: #f59e0b; border-color: #f59e0b; background: rgba(245, 158, 11, 0.15); }

/* =========================================================================
   🌟 POST ACTION STRIP (VIEWS, LIKES, DISLIKES, SHARE, REPORT)
   ========================================================================= */
.post-action-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: none;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    margin-bottom: 18px;
    gap: 12px;
}

.action-strip-left, .action-strip-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-stat.views-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: var(--radius);
}

.action-stat.views-stat .stat-num {
    font-weight: 700;
    color: var(--text-primary);
}

.post-vote-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    overflow: hidden;
}

.post-action-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}

.post-vote-group .post-action-btn:first-child {
    border-right: 1px solid var(--border);
}

.post-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.post-action-btn.like-btn.active-liked {
    background: var(--accent-dim);
    color: var(--accent);
}

.post-action-btn.dislike-btn.active-disliked {
    background: var(--danger-dim);
    color: var(--danger);
}

.post-action-btn.share-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.post-action-btn.share-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.post-action-btn.report-btn {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
}
.post-action-btn.report-btn:hover {
    color: var(--danger);
    border-color: var(--danger);
}

@keyframes votePopAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.18); }
    100% { transform: scale(1); }
}
.vote-pop {
    animation: votePopAnim 0.3s cubic-bezier(0.2, 0, 0, 1);
}

/* =========================================================================
   🔗 1-CLICK SHARE MODAL
   ========================================================================= */
.share-dialog {
    max-width: 520px;
}

.share-field-group {
    margin-bottom: 14px;
}

.share-field-label {
    display: block;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 700;
}

.share-input-row {
    display: flex;
    gap: 8px;
}

.share-input-row .form-control {
    flex: 1;
    font-size: 12px;
    background: #0d0d12;
    color: #e2e8f0;
}

.share-social-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 14px;
}

.social-label {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-weight: 700;
}

.social-btn {
    padding: 5px 10px;
    border-radius: var(--radius);
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border);
    color: #fff;
    transition: transform 0.12s, filter 0.15s;
}
.social-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
}

.social-btn.twitter { background: #1da1f2; border-color: #1da1f2; }
.social-btn.reddit { background: #ff4500; border-color: #ff4500; }
.social-btn.telegram { background: #0088cc; border-color: #0088cc; }
.social-btn.whatsapp { background: #25d366; border-color: #25d366; }

/* =========================================================================
   🔍 SEARCH AUTOCOMPLETE DROPDOWN
   ========================================================================= */
.nav-search {
    position: relative;
}

.search-suggestions-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #14141c;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
    max-height: 380px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-header {
    padding: 6px 12px;
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    background: #0f0f15;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}
.suggestion-header:first-child {
    border-top: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.12s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover, .suggestion-item.is-selected {
    background: var(--accent-dim);
    color: #fff;
}

.suggestion-icon {
    font-size: 13px;
    opacity: 0.85;
}

.suggestion-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-count {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 1px 6px;
    border-radius: 10px;
}

.suggestion-item.artist-item .suggestion-label {
    color: var(--gold);
    font-weight: 700;
}

/* =========================================================================
   🎞️ VIDEO HOVER PREVIEW SCRUBBER
   ========================================================================= */
.preview-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
    overflow: hidden;
}

.preview-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
    transition: width 0.1s linear;
}

.media-card.is-previewing .media-thumb.video-preview-target {
    transform: scale(1.02);
}

/* =========================================================================
   📑 PAGINATION CONTROLS
   ========================================================================= */
.pagination-wrapper {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.pagination-info {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.pagination-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.page-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 700;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    cursor: default;
}

/* =========================================================================
   📱 MOBILE OVERHAUL: FIT MUCH MORE CONTENT & 2-COLUMN COMPACT GRID
   ========================================================================= */
@media (max-width: 860px) {
    /* Viewport & Anti-Horizontal Overflow Shield */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    .main-content {
        padding: 8px 6px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2-Column Compact High-Density Media Grid (Fits 4-6 Posts per screen) */
    .media-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .media-card {
        border-radius: var(--radius) !important;
        overflow: hidden !important;
    }

    .media-thumb-wrapper {
        aspect-ratio: 16 / 10 !important;
        height: auto !important;
        min-height: 90px !important;
        max-height: 120px !important;
        position: relative !important;
    }

    .media-thumb {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .media-thumb-ambient {
        display: none !important;
    }

    .media-thumb-preview {
        display: none !important;
    }

    .media-info {
        padding: 5px 6px !important;
        gap: 3px !important;
    }

    .media-title {
        font-size: 11px !important;
        line-height: 1.25 !important;
        -webkit-line-clamp: 2 !important;
        max-height: 2.5em !important;
        font-weight: 600 !important;
    }

    .media-artist-credit {
        font-size: 9px !important;
        gap: 2px !important;
        margin: 0 !important;
    }

    .media-meta-strip {
        font-size: 9.5px !important;
        margin-top: 2px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .creator-avatar {
        width: 13px !important;
        height: 13px !important;
    }

    .creator-name {
        max-width: 50px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 9.5px !important;
    }

    .card-stats-row {
        font-size: 9.5px !important;
        gap: 4px !important;
    }

    .card-stat {
        gap: 2px !important;
    }

    .media-type-tag {
        font-size: 8px !important;
        padding: 1px 3px !important;
        bottom: 3px !important;
        right: 3px !important;
    }

    /* Single-Row Horizontal Swipeable Filter Bar */
    .filter-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 5px !important;
        padding-bottom: 6px !important;
        margin-bottom: 10px !important;
        scrollbar-width: none !important;
    }
    .filter-bar::-webkit-scrollbar {
        display: none !important;
    }

    .filter-group {
        display: flex !important;
        flex-wrap: nowrap !important;
        flex-shrink: 0 !important;
        gap: 4px !important;
    }

    .tag-pill {
        padding: 4px 7px !important;
        font-size: 10.5px !important;
        white-space: nowrap !important;
        height: 26px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    /* High-Utility Mobile Navbar: Clean 2-Row Grid */
    .navbar {
        padding: 8px 10px !important;
        overflow-x: hidden !important;
    }

    .nav-container {
        display: grid !important;
        grid-template-columns: auto 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 6px 8px !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .nav-brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
        font-size: 13.5px !important;
        font-weight: 800 !important;
        gap: 4px !important;
        white-space: nowrap !important;
    }

    .nav-brand-badge {
        display: none !important;
    }

    .nav-links {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        white-space: nowrap !important;
    }

    .nav-links .btn {
        padding: 4px 7px !important;
        font-size: 12px !important;
        height: 30px !important;
        min-width: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        border-radius: var(--radius) !important;
        box-sizing: border-box !important;
    }

    .nav-btn-text {
        display: none !important;
    }

    .nav-btn-logout {
        color: var(--text-muted) !important;
        padding: 4px 7px !important;
        font-size: 13px !important;
    }

    .online-counter-badge {
        padding: 3px 6px !important;
        font-size: 10.5px !important;
        height: 30px !important;
        gap: 4px !important;
        border-radius: var(--radius) !important;
    }

    .online-label-word,
    .online-label-suffix {
        display: none !important;
    }

    .nav-search {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 2px 0 0 0 !important;
        position: relative !important;
    }

    .nav-search input {
        width: 100% !important;
        padding: 7px 10px 7px 32px !important;
        font-size: 12px !important;
        height: 34px !important;
        box-sizing: border-box !important;
    }

    .search-icon {
        left: 10px !important;
        font-size: 12px !important;
    }

    /* Single-Row Action Strip on Mobile */
    .post-layout {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .profile-avatar-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin-top: -50px !important;
    }

    .post-action-strip {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        padding: 6px 8px !important;
        margin-top: 6px !important;
        margin-bottom: 10px !important;
    }

    .action-strip-left, .action-strip-right {
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        width: auto !important;
    }

    .action-stat.views-stat {
        padding: 3px 6px !important;
        font-size: 10.5px !important;
        height: 28px !important;
        gap: 3px !important;
    }

    .action-stat.views-stat .stat-unit {
        display: none !important;
    }

    .post-vote-group {
        height: 28px !important;
    }

    .post-action-btn {
        padding: 3px 6px !important;
        font-size: 10.5px !important;
        height: 28px !important;
        gap: 3px !important;
    }

    .player-controls {
        padding: 8px 6px 4px 6px !important;
    }

    .player-volume-group {
        display: none !important;
    }

    /* Strictly Hide Theatre and Miniplayer on Mobile Devices */
    #theaterBtn,
    #miniBtn,
    .player-btn.theater-btn,
    .player-btn.mini-btn,
    #globalMiniPlayer,
    .global-mini-player,
    .mini-player-bar {
        display: none !important;
    }

    .player-time {
        font-size: 9.5px !important;
    }

    .player-btn {
        font-size: 12px !important;
        padding: 2px 4px !important;
        min-width: 24px !important;
    }

    .comments-section {
        padding: 12px 10px !important;
        margin-top: 10px !important;
    }
}

/* Card Stats Row (Likes, Dislikes, Views on every card) */
.card-stats-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    margin-left: auto;
}

.card-stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-secondary);
    font-weight: 700;
}

.card-stat.like {
    color: #4ade80;
}

.card-stat.dislike {
    color: #f87171;
}

.card-stat.views {
    color: var(--text-muted);
}

/* Real-time live counter pulse */
.stat-live-pulse {
    animation: statLiveFlash 0.4s ease-out;
}

@keyframes statLiveFlash {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); color: #fff; text-shadow: 0 0 8px var(--accent); }
    100% { transform: scale(1); }
}

/* =========================================================================
   🌸 PERSISTENT GLOBAL MINI-PLAYER (ACROSS ALL PAGES)
   ========================================================================= */
.global-mini-player {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 360px !important;
    max-width: 90vw !important;
    background: #000 !important;
    border: 2px solid var(--accent) !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.95) !important;
    z-index: 99999 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    animation: miniPlayerDock 0.25s cubic-bezier(0.2, 0, 0, 1);
}

.global-mini-player .mini-player-bar {
    display: flex !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #0e0e14 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 6px 10px !important;
    align-items: center !important;
    justify-content: space-between !important;
    z-index: 25 !important;
}

.global-mini-player .mini-player-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 260px !important;
    cursor: pointer !important;
}
.global-mini-player .mini-player-title:hover {
    color: var(--accent) !important;
}

.global-mini-player .mini-bar-btn {
    background: none !important;
    border: none !important;
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    line-height: 1 !important;
}
.global-mini-player .mini-bar-btn:hover {
    color: var(--accent) !important;
}

.global-mini-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

#globalMiniVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
    background: #000;
}

.global-mini-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 100%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    z-index: 5;
}

.mini-ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mini-ctrl-btn:hover {
    color: var(--accent);
}

.mini-progress-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.mini-progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    border-radius: 2px;
    transition: width 0.1s linear;
}


