:root {
    --accent: #ff6b2c;
    --accent-strong: #ff8a3d;
    --accent-soft: rgba(255, 107, 44, 0.16);
    --bg: #030711;
    --bg-elevated: rgba(8, 13, 24, 0.96);
    --surface: #0e1524;
    --surface-2: #151f33;
    --text: #f8f8fb;
    --muted: #9ba8c3;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
    --page-background: radial-gradient(circle at top left, rgba(255, 107, 44, 0.22), transparent 24%), linear-gradient(135deg, #02050d 0%, var(--bg) 100%);
    --header-bg: linear-gradient(180deg, rgba(4, 8, 16, 0.96), rgba(3, 6, 13, 0.95));
    --sidebar-bg: linear-gradient(180deg, rgba(8, 13, 24, 0.98), rgba(4, 8, 16, 0.98));
    --card-bg: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
    --hero-bg: linear-gradient(135deg, rgba(255, 107, 44, 0.34), rgba(255, 145, 86, 0.14) 55%, rgba(5, 10, 20, 0.95));
    --footer-bg: rgba(4, 8, 15, 0.95);
    --input-bg: rgba(255,255,255,0.05);
    --panel-bg: rgba(255, 255, 255, 0.04);
    --accent-readable: #ffd0a8;
    --accent-readable-strong: #ffb07d;
    --control-bg: #111827;
}

:root[data-theme='light'] {
    --accent: #ff6b2c;
    --accent-strong: #ff8a3d;
    --accent-soft: rgba(255, 107, 44, 0.14);
    --bg: #f5f7fc;
    --bg-elevated: rgba(255, 255, 255, 0.95);
    --surface: #ffffff;
    --surface-2: #eef2ff;
    --text: #101828;
    --muted: #5e6b85;
    --border: rgba(15, 23, 42, 0.12);
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --page-background: radial-gradient(circle at top left, rgba(255, 107, 44, 0.14), transparent 24%), linear-gradient(135deg, #f8f9fe 0%, var(--bg) 100%);
    --header-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 255, 0.97));
    --sidebar-bg: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(241, 245, 255, 0.98));
    --card-bg: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244, 247, 255, 0.9));
    --hero-bg: linear-gradient(135deg, rgba(255, 107, 44, 0.16), rgba(255, 145, 86, 0.08) 55%, rgba(255, 255, 255, 0.96));
    --footer-bg: rgba(245, 247, 252, 0.95);
    --input-bg: rgba(15, 23, 42, 0.04);
    --panel-bg: rgba(255, 255, 255, 0.8);
    --accent-readable: #a83a12;
    --accent-readable-strong: #a83a12;
    --control-bg: #ffffff;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--page-background);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.25s ease, color 0.25s ease;
}

body {
    display: flex;
    flex-direction: column;
}

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

img {
    max-width: 100%;
    display: block;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), #ff9156);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff9156;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 24px;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
    background: linear-gradient(135deg, var(--accent), #ff9156);
    box-shadow: 0 10px 24px rgba(255, 107, 44, 0.25);
}

.brand-text {
    font-size: 1rem;
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 560px;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.search-box input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 12px 15px;
    color: var(--text);
    outline: none;
}

.search-box input::placeholder {
    color: var(--muted);
}

.search-box button {
    border: 0;
    padding: 0 15px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-sidebar-toggle {
    display: none;
}

.theme-switcher {
    display: flex;
    gap: 6px;
}

.theme-switcher button,
#language-selector,
.btn {
    border: 1px solid var(--border);
    background: var(--control-bg);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.92rem;
}

.theme-switcher button {
    cursor: pointer;
}

.theme-switcher button[aria-pressed='true'] {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    border-color: transparent;
}

#language-selector {
    min-width: 56px;
    color-scheme: dark;
    color: var(--text);
    background-color: var(--control-bg);
}

#language-selector option {
    color: var(--text);
    background-color: var(--control-bg);
}

:root[data-theme='light'] #language-selector {
    color-scheme: light;
}

.layout {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: visible;
}

.sidebar {
    width: 292px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 0;
    overflow: hidden;
    box-shadow: 12px 0 24px rgba(0, 0, 0, 0.16);
    position: sticky;
    top: 72px;
    align-self: flex-start;
    max-height: calc(100vh - 72px);
}

.sidebar-scroll-area {
    flex: 1;
    min-height: 0;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 12px 22px;
    scrollbar-gutter: stable;
    overscroll-behavior-y: contain;
    scroll-behavior: smooth;
    touch-action: pan-y;
    position: relative;
    border-radius: 18px;
    margin-right: 2px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), inset 0 10px 24px rgba(0,0,0,0.16);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.18) transparent;
}

.sidebar-scroll-area::before {
    content: '';
    position: sticky;
    top: 0;
    display: block;
    height: 8px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,107,44,0.28), transparent);
    opacity: 0.7;
    pointer-events: none;
}

.sidebar-scroll-area:hover {
    box-shadow: inset 0 0 0 1px rgba(255,107,44,0.16), inset 0 10px 24px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,107,44,0.12);
}

.sidebar-scroll-area:focus-within {
    box-shadow: inset 0 0 0 1px rgba(255,107,44,0.26), inset 0 12px 28px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,107,44,0.18);
}

.sidebar-scroll-area::-webkit-scrollbar {
    width: 6px;
}
.recommendations {
    margin-top: 30px;
    padding: 20px;
}

.recommendations-section {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.15rem;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.video-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 44, 0.45);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.video-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.video-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    flex: 1;
}

.video-card h3 {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
    line-height: 1.35;
}

.video-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.8rem;
}

.empty-state {
    color: var(--muted);
    padding: 8px 0;
}

.pornstar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.pornstar-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card-bg);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.pornstar-card__photo {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--surface-2);
}

.pornstar-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.pornstar-card:hover .pornstar-card__photo img { transform: scale(1.04); }

.pornstar-card__body { padding: 13px; }
.pornstar-card__body h2 { margin: 0 0 12px; font-size: 1rem; }
.pornstar-card__body h2 a:hover { color: var(--accent-strong); }

.pornstar-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pornstar-stats span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 7px 4px;
    border-radius: 9px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.pornstar-stats strong { font-size: 0.82rem; color: var(--text); }
.pornstar-stats small { color: var(--muted); font-size: 0.64rem; }
.sidebar-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.sidebar-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.sidebar-intro {
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 107, 44, 0.20), rgba(255, 145, 86, 0.08));
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.sidebar-intro strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent-readable);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.sidebar-toolbar {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    margin: 6px 0 10px;
}

.sidebar-toggle {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-toggle:hover {
    color: var(--text);
    border-color: rgba(255,107,44,0.32);
    box-shadow: 0 0 0 1px rgba(255,107,44,0.12);
}

.sidebar-toggle:hover {
    color: var(--text);
    border-color: rgba(255, 107, 44, 0.35);
}

.sidebar-nav {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 8px 10px 10px;
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 8px;
}

.sidebar-nav summary {
    padding: 2px 0;
}

.sidebar-nav:hover {
    border-color: rgba(255, 107, 44, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.group-title {
    margin: 0 0 8px;
    color: var(--accent-readable-strong);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.group-title::-webkit-details-marker {
    display: none;
}

.chevron {
    transition: transform 0.2s ease;
    color: var(--muted);
    font-size: 0.85rem;
}

.sidebar-nav[open] .chevron {
    transform: rotate(180deg);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

.nav-links li a {
    display: block;
    padding: 7px 9px;
    color: var(--muted);
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    font-weight: 600;
    font-size: 0.92rem;
}

.nav-links li a:hover {
    color: var(--text);
    background: var(--accent-soft);
    transform: translateX(2px);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 44, 0.16);
}

.content,
.watch-content {
    flex: 1;
    padding: 24px 28px 40px;
    overflow: visible;
    overflow-x: hidden;
    min-width: 0;
    min-height: 0;
}

/* Ad slots reserve their space before third-party scripts render so ads do
   not move headings, cards, or the primary content after page load. */
.ad-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--panel) 78%, transparent);
}

.ad-label {
    display: block;
    padding-top: 8px;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

.ad-frame {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.ad-frame--300 {
    min-height: 250px;
}

.ad-frame--468 {
    min-height: 60px;
}

.ad-frame--728 {
    min-height: 90px;
}

.ad-frame--160 {
    min-height: 600px;
}

.ad-frame--320 {
    min-height: 50px;
}

.ad-native {
    min-height: 120px;
    padding-bottom: 10px;
}

.ad-native__content {
    width: 100%;
    min-height: 90px;
    overflow: hidden;
}

.smartlink-card {
    display: grid;
    gap: 8px;
    margin: 20px 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}

.smartlink-card .ad-label {
    padding-top: 0;
}

.smartlink-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.smartlink-card a {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.smartlink-card a:hover {
    color: var(--accent-strong);
}

.page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.page-main-column {
    min-width: 0;
}

.page-side-column {
    min-width: 0;
}

.page-side-panel {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
}

.simple-page-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
}

.simple-page-content {
    display: grid;
    gap: 14px;
}

.simple-page-content h2 {
    margin: 0;
    color: var(--text);
}

.simple-page-content p,
.simple-page-content a {
    color: var(--muted);
    line-height: 1.7;
}

.simple-page-content a {
    color: var(--accent-readable-strong);
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
}

.auth-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--input-bg);
    color: var(--text);
}

.auth-form button {
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent), #ff9156);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.form-error {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 107, 44, 0.14);
    color: var(--accent-readable-strong);
}

.form-link {
    margin-top: 6px;
}

.featured-section {
    margin-top: 24px;
}

.featured-stack {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.small-video-card {
    border-radius: 16px;
}

.small-video-card .thumbnail {
    aspect-ratio: 16 / 10;
}

.small-video-card .card-body {
    padding: 12px;
}

.small-video-card .card-body h2 {
    font-size: 0.9rem;
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.page-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding: 28px 30px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 107, 44, 0.26);
    border-radius: 28px;
    background: var(--hero-bg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    min-height: 210px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: auto -20px -20px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 139, 74, 0.25), transparent 70%);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent-readable);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hero-primary-cta,
.hero-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-primary-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 107, 44, 0.28);
}

.hero-secondary-cta {
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: var(--text);
}

.hero-primary-cta:hover,
.hero-secondary-cta:hover {
    transform: translateY(-2px);
}

.eyebrow::before {
    content: '⚡';
    font-size: 0.85rem;
}

.page-hero h1,
.watch-heading h1 {
    margin: 0 0 8px;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.intro,
.description-block p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.hero-stat {
    min-width: 128px;
    padding: 16px 18px;
    border-radius: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.hero-stat strong {
    display: block;
    font-size: 1.15rem;
}

.hero-stat span {
    color: var(--muted);
    font-size: 0.9rem;
}

.featured-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 107, 44, 0.24);
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(255, 107, 44, 0.20), rgba(255, 145, 86, 0.08));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.featured-banner__content h2 {
    margin: 4px 0 4px;
    font-size: 1.05rem;
}

.featured-banner__content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.featured-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: white;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(255, 107, 44, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 107, 44, 0.36);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.video-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 44, 0.45);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34);
}

.video-card a {
    display: block;
}

.thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #000);
}

.thumbnail::before {
    content: '▶';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 2;
    color: #fff;
    font-size: 1.45rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
    opacity: 0.9;
}

.thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    filter: saturate(1.12) contrast(1.04) brightness(0.95);
}

.video-card:hover .thumbnail img {
    transform: scale(1.04);
}

@media (max-width: 1100px) {
    .page-shell {
        grid-template-columns: 1fr;
    }
}

.duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    z-index: 3;
}

.play-indicator {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
}

.card-body {
    padding: 12px 12px 14px;
}

.card-body h2 {
    margin: 0 0 8px;
    font-size: 0.98rem;
    line-height: 1.35;
    color: var(--text);
    font-weight: 700;
}

.card-body:hover h2 {
    color: var(--accent-readable);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.85rem;
}

.watch-label {
    color: var(--accent-readable);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.74rem;
}

.empty {
    padding: 32px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 20px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.pagination a {
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 700;
}

.pagination a[aria-current='page'] {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(255, 107, 44, 0.25);
}

.site-footer {
    width: 100%;
    flex-shrink: 0;
    padding: 24px 28px 28px;
    border-top: 1px solid var(--border);
    background: var(--footer-bg);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand strong {
    font-size: 1.05rem;
    color: var(--text);
}

.footer-brand span {
    color: var(--accent);
}

.footer-brand p,
.copyright {
    margin: 6px 0 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--text);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: var(--accent-readable-strong);
    font-weight: 600;
}

.watch-heading {
    margin-bottom: 20px;
}

.player {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.player iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    background: #000;
}

.desktop-video-fallback {
    display: none;
    width: 100%;
    min-height: 420px;
    max-height: 75vh;
    background: #000;
}

.desktop-video-fallback.is-visible {
    display: block;
}

.desktop-video-error {
    margin: 0;
    padding: 12px 16px;
    color: var(--accent-readable-strong);
    background: #090d16;
    text-align: center;
}

@media (max-width: 960px) {
    .desktop-video-fallback {
        display: none !important;
    }
}

.video-info {
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.video-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
}

.video-stats span {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    min-width: 110px;
}

.video-stats small {
    color: var(--muted);
    margin-bottom: 4px;
}

.video-stats strong {
    font-size: 1rem;
}

.tag-title {
    margin-top: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    border: 1px solid var(--border);
}

.tag:hover {
    color: var(--text);
    background: var(--accent-soft);
}

@media (max-width: 960px) {
    .main-header {
        flex-wrap: wrap;
        padding: 14px 16px;
        z-index: 1100;
    }

    .search-box {
        order: 3;
        width: 100%;
        max-width: none;
    }

    .mobile-sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        order: -1;
        border: 1px solid var(--border);
        border-radius: 999px;
        padding: 8px 11px;
        background: rgba(255, 255, 255, 0.06);
        color: var(--text);
        cursor: pointer;
        font: inherit;
        font-size: 0.82rem;
        font-weight: 700;
    }

    .layout {
        display: block;
    }

    .sidebar {
        position: fixed;
        z-index: 1050;
        top: 0;
        left: 0;
        width: min(86vw, 340px);
        height: 100dvh;
        max-height: none;
        padding-top: 76px;
        border-right: 1px solid var(--border);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        box-shadow: 18px 0 40px rgba(0, 0, 0, 0.35);
    }

    .mobile-sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-scroll-area {
        max-height: none;
        height: 100%;
        padding-top: 10px;
    }

    .mobile-sidebar-open::after {
        content: '';
        position: fixed;
        z-index: 1040;
        inset: 0;
        background: rgba(0, 0, 0, 0.48);
    }

    .content,
    .watch-content {
        position: relative;
        z-index: 1;
    }

    .page-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .content,
    .watch-content {
        padding: 16px 16px 28px;
    }

    .page-hero,
    .video-info {
        padding: 18px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .header-controls {
        width: 100%;
        justify-content: space-between;
    }
}
.scroll-container {
            flex: 1;
            overflow-y: auto;
            padding: 10px;
        }
        .scroll-container::-webkit-scrollbar { width: 5px; }
        .scroll-container::-webkit-scrollbar-thumb { background: #555; border-radius: 10px; }
