/* RACEXR - Hardcore Grunge CSS */
:root {
    --bg: #080808;
    --bg-card: #0d0d0d;
    --border: #252525;
    --border-hover: #ff3c38;
    --red: #ff3c38;
    --xrplus: #FFD700;
    --xrgo: #3355FF;
    --xrtv: #00CC44;
    --text: #f0f0f0;
    --text-dim: #999;
    --text-dark: #666;
    --mono: 'IBM Plex Mono', monospace;
    --display: 'Bevan', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; width: 100%; }
body { font-family: var(--mono); background: var(--bg); color: var(--text); min-height: 100vh; position: relative; overflow-x: clip; width: 100%; max-width: 100vw; }
main { width: 100%; }

::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #222; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red) !important; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* -- Grunge Texture Layers -- */
@keyframes flicker { 0%,100%{opacity:0.03} 50%{opacity:0.06} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.2} }

.grunge-noise {
    position: fixed; inset: 0; pointer-events: none; z-index: 9998;
    opacity: 0.07; animation: flicker 4s infinite;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grunge-scratch {
    position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: 0.025;
    background: repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,0.08) 3px, rgba(255,255,255,0.08) 4px),
                repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(255,255,255,0.04) 7px, rgba(255,255,255,0.04) 8px);
}
.grunge-vignette {
    display: none; /* vignette removed */
}
.grunge-scanline {
    position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: 0.03;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.1) 2px, rgba(255,255,255,0.1) 4px);
}
.grunge-grain {
    position: fixed; inset: 0; pointer-events: none; z-index: 9998;
    mix-blend-mode: overlay; opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* -- Header -- */
.site-header {
    position: sticky; top: 0; z-index: 200; width: 100%;
    background: rgba(10,10,10,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid #252525;
    padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
    max-width: 1300px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between; height: 56px;
}
.logo img { height: 30px; mix-blend-mode: screen; }
.main-nav { display: flex; gap: 2px; }
.main-nav a {
    font-family: var(--display); font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 3px; color: #999; padding: 6px 12px;
    border-bottom: 2px solid transparent; transition: all 0.15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--red); border-bottom-color: var(--red); }
.header-actions { display: flex; gap: 8px; }

/* -- Buttons -- */
.btn {
    font-family: var(--display); font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 3px; padding: 6px 14px; cursor: pointer; border: none; display: inline-block;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #e02020; }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-lg { font-size: 0.85rem; padding: 12px 28px; }
.btn-xrtv { background: #00cec9; color: #000; font-weight: 700; }
.btn-signin {
    background: transparent; color: var(--red) !important; border: 1px solid var(--red);
    font-weight: 700; letter-spacing: 3px;
}
.btn-signin:hover { background: var(--red); color: #fff !important; }

/* -- Badges -- */
.badge-live {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--red); color: #fff; font-family: var(--display);
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; padding: 3px 10px 2px;
}
.pulse-dot { width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: pulse 1s infinite; }
.badge-access {
    display: inline-block; font-family: var(--mono); font-size: 0.6rem;
    text-transform: uppercase; letter-spacing: 2px; padding: 2px 8px 1px;
    border: 1px solid #666; background: rgba(0,0,0,0.6);
}
.badge-cat {
    font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase;
    letter-spacing: 3px; padding: 2px 8px 1px; color: #000; font-weight: 700;
}

/* -- Video Cards -- */
.video-card {
    display: block; background: var(--bg-card); border: 1px solid var(--border);
    overflow: hidden; transition: all 0.15s;
}
.video-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255,60,56,0.15); }
.card-thumb {
    position: relative; aspect-ratio: 16/9; background: #080808; overflow: hidden;
}
.card-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    filter: contrast(1.1) brightness(1) saturate(1.15); opacity: 1;
    transition: filter 0.3s, transform 0.3s;
}
.video-card:hover .card-thumb img {
    filter: contrast(1.15) brightness(1.05) saturate(1.25);
    transform: scale(1.03);
}
.card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.6));
}
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.card-badge-tr { position: absolute; top: 8px; right: 8px; }
.card-duration {
    position: absolute; bottom: 8px; right: 8px;
    font-family: var(--mono); font-size: 0.7rem;
    background: rgba(0,0,0,0.8); color: #aaa; padding: 2px 6px; border: 1px solid var(--border);
}
.card-thumb-podcast {
    background: linear-gradient(135deg, #0a0a0a, #111, #0a0a0a);
    display: flex; align-items: center; justify-content: center;
}
.podcast-icon { font-size: 2.5rem; opacity: 0.3; }
.card-body { padding: 12px 14px 14px; }
.card-title {
    font-family: var(--display); font-size: 0.88rem; line-height: 1.3;
    color: var(--text); margin-bottom: 6px; text-transform: uppercase;
}
.card-meta {
    font-family: var(--mono); font-size: 0.65rem; color: var(--text-dim);
    display: flex; gap: 10px; text-transform: uppercase; letter-spacing: 1px;
}

/* -- Grid -- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* -- Sections -- */
.section { margin-bottom: 48px; }
.section-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
.section-title {
    font-family: var(--display); font-size: 1.1rem; text-transform: uppercase;
    letter-spacing: 4px; color: var(--text-dim); margin: 0;
}
.section-title.accent { color: var(--red); }
.section-link {
    font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 2px; color: var(--text-dim); border: 1px solid var(--border);
    padding: 4px 12px; cursor: pointer;
}
.section-link:hover { border-color: var(--red); color: var(--red); }

/* -- Hero / Featured Gallery -- */
.hero {
    position: relative; min-height: 520px; display: flex; align-items: flex-end;
    background: #080808; overflow: hidden; width: 100%;
}
.hero-slash {
    position: absolute; right: -10%; top: -20%; width: 55%; height: 140%;
    background: var(--red); transform: skewX(-12deg); opacity: 0.15; z-index: 1;
}
.hero-line {
    position: absolute; left: 0; bottom: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--red), var(--red) 50%, transparent 90%);
    z-index: 5;
}
.hero-content { position: relative; z-index: 3; padding: 0 48px 60px; max-width: 750px; }
.hero-badges { display: flex; gap: 8px; margin-bottom: 14px; }
.hero-bg {
    position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    filter: contrast(1.15) brightness(1) saturate(1.2); opacity: 1;
}
/* Gradient overlay so text reads over the poster */
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(to right, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.7) 35%, rgba(8,8,8,0.2) 65%, transparent 100%),
        linear-gradient(to top, rgba(8,8,8,0.9) 0%, rgba(8,8,8,0.3) 40%, transparent 70%);
}

/* Taped headline */
.taped-headline {
    display: inline-block; position: relative; margin: 0 0 12px; transform: rotate(-1.5deg);
}
.tape {
    position: absolute; height: 24px; z-index: 4;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.tape-1 {
    top: -12px; left: 10px; width: 80px;
    background: linear-gradient(180deg, rgba(200,185,120,0.6), rgba(180,165,100,0.35));
    transform: rotate(-4deg);
    background-image: repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(255,255,255,0.1) 8px, rgba(255,255,255,0.1) 9px);
}
.tape-2 {
    top: -10px; right: 20px; width: 72px;
    background: linear-gradient(180deg, rgba(200,185,120,0.55), rgba(180,165,100,0.3));
    transform: rotate(5deg);
    background-image: repeating-linear-gradient(90deg, transparent, transparent 6px, rgba(255,255,255,0.08) 6px, rgba(255,255,255,0.08) 7px);
}
.tape-3 {
    bottom: -12px; left: 30%; width: 68px;
    background: linear-gradient(180deg, rgba(200,185,120,0.5), rgba(180,165,100,0.25));
    transform: rotate(-3deg);
}
.ink-splat {
    position: absolute; background: rgba(20,20,20,0.7); z-index: 2;
}
.ink-1 { top: -4px; left: -8px; width: 16px; height: 16px; border-radius: 40% 60% 50% 70%; transform: rotate(25deg); }
.ink-2 { bottom: 5px; right: -6px; width: 10px; height: 12px; border-radius: 60% 40% 70% 30%; transform: rotate(-15deg); opacity: 0.5; }
.ink-3 { top: 40%; left: -5px; width: 6px; height: 8px; border-radius: 50%; opacity: 0.4; }
.taped-shadow {
    position: absolute; inset: -2px; background: rgba(0,0,0,0.6);
    transform: rotate(0.8deg) translate(6px, 6px) skewX(-0.5deg); filter: blur(10px); z-index: 0;
}
.taped-paper {
    position: relative; z-index: 1;
}
.paper-stain {
    position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.15;
    background-image:
        radial-gradient(ellipse at 20% 80%, rgba(120,100,60,0.4), transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(100,80,40,0.3), transparent 40%),
        radial-gradient(ellipse at 60% 90%, rgba(80,60,30,0.25), transparent 35%);
}
.taped-h1 {
    font-family: var(--display); font-size: 3.2rem; line-height: 1.05; color: #0a0a0a;
    margin: 0; text-transform: uppercase; letter-spacing: 2px;
    background: #f5f1e9; padding: 18px 30px 14px; display: inline-block;
    background-image: linear-gradient(170deg, #faf7f0 0%, #f0ece4 30%, #e8e4dc 60%, #f2eee6 100%);
    border-top: 2px solid #fff; border-left: 1px solid #e8e4dc;
    border-right: 2px solid #c8c4bc; border-bottom: 3px solid #b0aca4;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.3);
    box-shadow: 6px 8px 24px rgba(0,0,0,0.6), 0 0 60px rgba(0,0,0,0.3);
}
.hero-bar { width: 80px; height: 4px; background: var(--red); margin: 14px 0 18px; box-shadow: 0 0 12px rgba(255,60,56,0.4); }
.hero-desc { font-family: var(--mono); font-size: 0.85rem; color: #ccc; margin: 0 0 28px; letter-spacing: 0.5px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.hero-btns { display: flex; gap: 12px; }

/* Gallery controls */
.hero-gallery-nav {
    position: absolute; bottom: 20px; left: 48px; z-index: 10;
    display: flex; align-items: center; gap: 12px;
}
.gallery-arrow {
    background: none; border: 1px solid var(--border); color: #666;
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.8rem;
}
.gallery-arrow:hover { border-color: var(--red); color: var(--red); }
.gallery-dots { display: flex; gap: 6px; }
.gallery-dot {
    width: 8px; height: 3px; background: var(--border); border: none; cursor: pointer;
    transition: all 0.3s;
}
.gallery-dot.active { width: 24px; background: var(--red); }
.gallery-count {
    font-family: var(--mono); font-size: 0.55rem; color: var(--text-dark);
    text-transform: uppercase; letter-spacing: 2px; margin-left: 8px;
}

/* -- Playlist Cards -- */
.pl-card {
    display: block; background: var(--bg-card); border: 1px solid var(--border);
    padding: 18px 20px; transition: border-color 0.15s;
}
.pl-card:hover { border-color: var(--red); }
.pl-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pl-card-count { font-family: var(--mono); font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }
.pl-card-name { font-family: var(--display); font-size: 1rem; color: var(--text); margin-bottom: 4px; text-transform: uppercase; }
.pl-card-desc { font-family: var(--mono); font-size: 0.7rem; color: var(--text-dim); }

/* -- XRTV Block -- */
.xrtv-block {
    position: relative; background: #0a0a0a; border: 1px solid var(--border);
    padding: 40px; margin-top: 48px; overflow: hidden;
}
.xrtv-circle {
    position: absolute; right: 20px; top: 20px; width: 120px; height: 120px;
    border: 2px solid #00cec9; border-radius: 50%; opacity: 0.1;
}
.xrtv-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.xrtv-label { font-family: var(--mono); font-size: 0.6rem; color: #00cec9; text-transform: uppercase; letter-spacing: 3px; }
.xrtv-title { font-family: var(--display); font-size: 1.6rem; color: var(--text); margin: 0; text-transform: uppercase; }
.xrtv-desc { font-family: var(--mono); font-size: 0.75rem; color: #999; margin-top: 8px; }

/* -- Watch Page -- */
.player-wrap {
    position: relative; width: 100%; max-width: 1300px; margin: 0 auto;
    aspect-ratio: 16/9; background: #000; overflow: hidden;
}
.player-wrap video { width: 100%; height: 100%; object-fit: cover; }
.player-wrap .poster-img {
    width: 100%; height: 100%; object-fit: cover;
    filter: contrast(1.1) brightness(0.8);
}
.watch-info { max-width: 1300px; margin: 0 auto; padding: 24px 48px; }
.watch-title {
    font-family: var(--display); font-size: 1.6rem; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text); margin: 0 0 10px;
}
.watch-meta {
    display: flex; gap: 14px; font-family: var(--mono); font-size: 0.65rem;
    color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
}
.watch-bar { width: 40px; height: 2px; background: var(--red); margin-bottom: 16px; }
.watch-desc { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); line-height: 1.7; }

/* -- Paywall Overlay -- */
.paywall {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 10;
}
.paywall-inner { text-align: center; }
.paywall-title {
    font-family: var(--display); font-size: 1.5rem; text-transform: uppercase;
    color: var(--text); margin-bottom: 12px;
}
.paywall-desc { font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim); margin-bottom: 20px; }

/* -- Category Page -- */
.page-content { padding: 40px 48px 80px; max-width: 1300px; margin: 0 auto; }
.page-title {
    font-family: var(--display); font-size: 2rem; text-transform: uppercase;
    letter-spacing: 4px; color: var(--text); margin: 0 0 8px;
}
.page-bar { width: 60px; height: 3px; background: var(--red); margin-bottom: 32px; }
.filter-bar { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-btn {
    font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase;
    letter-spacing: 2px; padding: 5px 12px; border: 1px solid var(--border);
    background: transparent; color: var(--text-dim); cursor: pointer;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--red); background: var(--red); color: #fff; }
.sub-title {
    font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 3px; color: var(--text-dim); margin-bottom: 14px;
}

/* -- Footer -- */
.site-footer {
    border-top: 1px solid var(--border); padding: 32px 48px; position: relative; width: 100%;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
    max-width: 1300px; margin: 0 auto;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-top { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.footer-logo img { height: 14px; mix-blend-mode: screen; opacity: 0.5; }
.footer-copy { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 2px; color: #888; white-space: nowrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a {
    font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase;
    letter-spacing: 2px; color: #888; white-space: nowrap;
}
.footer-links a:hover { color: var(--red); }
.footer-legal {
    margin-left: auto; display: flex; gap: 16px;
}
.footer-legal a {
    font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase;
    letter-spacing: 2px; color: #555;
}
.footer-legal a:hover { color: var(--red); }
.footer-credit {
    flex: 0 0 100% !important; width: 100%; order: 99;
    text-align: center; box-sizing: border-box;
    margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
    font-family: var(--mono); font-size: 0.58rem; font-weight: 400;
    text-transform: uppercase; letter-spacing: 2px; color: #555;
    line-height: 1.6;
}
.footer-credit a { color: #888; transition: color 0.15s; }
.footer-credit a:hover { color: var(--red); }

/* -- Content Container -- */
.container { padding: 48px 48px 80px; max-width: 1300px; margin: 0 auto; width: 100%; }

/* -- Empty State -- */
.empty { font-family: var(--mono); font-size: 0.8rem; color: #444; padding: 40px 0; text-align: center; }

/* -- Forms (Login, etc) -- */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block; font-family: var(--mono); font-size: 0.6rem;
    text-transform: uppercase; letter-spacing: 2px; color: #444; margin-bottom: 6px;
}
.form-input {
    width: 100%; background: #080808; border: 1px solid var(--border);
    padding: 10px 12px; color: #ccc; font-family: var(--mono); font-size: 0.8rem;
}
.form-select {
    width: 100%; background: #080808; border: 1px solid var(--border);
    padding: 10px 12px; color: #ccc; font-family: var(--mono); font-size: 0.8rem;
}

/* -- Legal Content -- */
.legal-content { font-family: var(--mono); font-size: 0.8rem; color: #bbb; line-height: 2; }
.legal-content h2 {
    font-family: var(--display); font-size: 1.05rem; text-transform: uppercase;
    letter-spacing: 2px; color: var(--red); margin: 40px 0 14px; padding-top: 24px;
    border-top: 1px solid var(--border);
}
.legal-content h3 { font-family: var(--display); font-size: 0.9rem; color: #ccc; margin: 24px 0 10px; text-transform: uppercase; letter-spacing: 1px; }
.legal-content p { margin-bottom: 16px; }
.legal-content a { color: var(--red); }
.legal-content strong { color: #f0f0f0; }

/* -- About Sections -- */
.about-section { margin-bottom: 40px; }

/* -- Responsive -- */
/* -- Mobile Hamburger -- */
.mobile-burger {
    display: none;
    background: none; border: none; cursor: pointer;
    width: 32px; height: 24px; position: relative;
    flex-shrink: 0; z-index: 301;
}
.mobile-burger span {
    display: block; position: absolute; left: 0; width: 100%; height: 2px;
    background: #fff; transition: all 0.3s ease;
}
.mobile-burger span:nth-child(1) { top: 0; }
.mobile-burger span:nth-child(2) { top: 11px; }
.mobile-burger span:nth-child(3) { top: 22px; }
.mobile-burger.open span:nth-child(1) { top: 11px; transform: rotate(45deg); background: var(--red); }
.mobile-burger.open span:nth-child(2) { opacity: 0; }
.mobile-burger.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); background: var(--red); }

/* -- Mobile Nav Overlay -- */
.mobile-nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 300; background: rgba(5,5,5,0.98);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-inner {
    min-height: 100vh; display: flex; flex-direction: column;
    padding: 0 28px 40px;
}
.mobile-nav-header {
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; margin-bottom: 32px;
}
.mobile-nav-header .logo img { height: 28px; mix-blend-mode: screen; }
.mobile-close {
    background: none; border: none; color: #666; font-size: 2rem;
    cursor: pointer; padding: 0; line-height: 1; transition: color 0.15s;
}
.mobile-close:hover { color: var(--red); }

.mobile-nav-links {
    display: flex; flex-direction: column; gap: 0;
}
.mobile-nav-links a {
    font-family: var(--display); font-size: 2.2rem; text-transform: uppercase;
    letter-spacing: 6px; color: #444; padding: 14px 0;
    border-bottom: 1px solid #1a1a1a; transition: all 0.2s;
    position: relative;
}
.mobile-nav-links a:hover, .mobile-nav-links a.active {
    color: #fff;
    padding-left: 16px;
}
.mobile-nav-links a.active::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 60%; background: var(--red);
}

.mobile-nav-divider {
    width: 60px; height: 3px; background: var(--red); margin: 28px 0;
}

.mobile-nav-actions {
    display: flex; flex-direction: column; gap: 12px;
}
.mobile-nav-actions a {
    font-family: var(--display); font-size: 1rem; text-transform: uppercase;
    letter-spacing: 4px; color: #888; padding: 10px 0; transition: color 0.15s;
}
.mobile-nav-actions a:hover { color: #fff; }
.mobile-nav-subscribe {
    display: inline-block !important;
    background: var(--red) !important; color: #fff !important;
    padding: 14px 28px !important; text-align: center;
    font-family: var(--display) !important; font-size: 1rem !important;
    letter-spacing: 4px !important; margin-bottom: 8px;
    transition: background 0.15s !important;
}
.mobile-nav-subscribe:hover { background: #e02020 !important; }
.mobile-nav-dim { color: #444 !important; }

.mobile-nav-tag {
    margin-top: auto; padding-top: 40px;
    font-family: var(--mono); font-size: 0.6rem; color: #333;
    letter-spacing: 3px; text-transform: uppercase;
}

@media (max-width: 768px) {
    .header-inner { padding: 0 16px; }
    .main-nav { display: none; }
    .header-actions { display: none; }
    .mobile-burger { display: block; }
    .hero { min-height: 380px; }
    .hero-content { padding: 0 20px 50px; }
    .taped-h1 { font-size: 1.8rem; padding: 12px 16px 10px; }
    .hero-gallery-nav { left: 20px; }
    .container, .page-content, .watch-info { padding-left: 16px; padding-right: 16px; }
    .grid-3 { grid-template-columns: 1fr; }
    .xrtv-inner { flex-direction: column; gap: 20px; align-items: flex-start; }

    /* Footer mobile fix */
    .site-footer { padding: 24px 16px; }
    .footer-inner { flex-direction: column; gap: 14px; align-items: center; text-align: center; }
    .footer-top { justify-content: center; }
    .footer-links { justify-content: center; gap: 8px 14px; }
    .footer-links a { font-size: 0.55rem; letter-spacing: 1px; }
    .footer-legal { margin-left: 0; border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 12px; justify-content: center; width: 100%; }
    .footer-legal a { font-size: 0.55rem; letter-spacing: 1px; }
    .footer-credit { font-size: 0.5rem; letter-spacing: 0.5px; line-height: 1.8; padding: 14px 8px 0; margin-top: 16px; }
    .footer-credit .fc-part { display: inline-block; white-space: nowrap; }

    /* Watch page mobile */
    .watch-meta { flex-wrap: wrap; gap: 8px; }
    .watch-title { font-size: 1.2rem; }

    /* Header — fixed on mobile to avoid sticky breakage */
    .site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 200; padding-top: env(safe-area-inset-top, 0px); }
    /* Push content clear of the fixed header. The header inner row is 56px plus its
       1px border; reserve extra headroom so the top of every page (badges, hero, gate,
       player) sits comfortably below the bar instead of tucking under it. */
    body { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }

    /* Global overflow safety */
    main, .page-content, .watch-info, .site-footer { max-width: 100vw; overflow-x: hidden; box-sizing: border-box; }
}

@media (max-width: 480px) {
    .mobile-nav-links a { font-size: 1.8rem; letter-spacing: 4px; padding: 12px 0; }
    .hero { min-height: 320px; }
    .taped-h1 { font-size: 1.4rem; }
    .hero-btns { flex-direction: column; gap: 8px; }
    .hero-btns .btn { width: 100%; text-align: center; }
}
