* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --bg:#0e0f12; --panel:#17181d; --line:#26282f; --line2:#34363f; --text:#fff; --soft:#e7e3dc; --mute:#8d8a85; --accent:#ff6a00; --accent2:#ffb347; --on-accent:#140800; --font-head: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrapper { max-width: 1100px; margin: 0 auto; padding: 0 15px 20px; display: flex; flex-direction: column; gap: 22px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--panel); border-bottom: 3px solid var(--accent); }
.site-header .inner, footer .inner { max-width: 1100px; margin: 0 auto; padding: 0 15px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.logo { font-family: var(--font-head); font-size: 1.3rem; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.logo b { color: var(--accent); }
.logo span { background: var(--accent); color: var(--on-accent); padding: 1px 7px; border-radius: 4px; margin-left: 5px; font-size: .85em; }
.search { display: flex; flex: 1; max-width: 360px; }
.search input { flex: 1; min-width: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-right: 0; border-radius: 8px 0 0 8px; padding: 8px 14px; font: inherit; font-size: .85rem; }
.search button { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 0 8px 8px 0; padding: 8px 16px; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.nav { display: flex; gap: 4px; align-items: center; padding-bottom: 10px; font-size: .85rem; color: var(--soft); flex-wrap: wrap; }
.nav > a, .nav summary { padding: 5px 12px; border-radius: 6px; cursor: pointer; list-style: none; }
.nav > a:hover, .nav summary:hover, .nav details[open] summary { background: var(--line); color: var(--accent2); }
.nav summary::-webkit-details-marker { display: none; }
.cats { position: relative; }
.cat-menu { position: absolute; top: 110%; left: 0; z-index: 30; width: min(560px, 92vw); max-height: 55vh; overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; padding: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 2px; box-shadow: 0 12px 30px rgba(0,0,0,.6); }
.cat-menu a { padding: 6px 8px; border-radius: 4px; font-size: .8rem; color: var(--soft); }
.cat-menu a:hover { background: var(--line); color: var(--accent); }

/* ad slots */
.ad { background: var(--panel); border: 1px dashed var(--line2); color: #7d7b77; font-size: .72rem; letter-spacing: .5px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 6px; width: 100%; overflow: hidden; }
.ad small { opacity: .7; margin-top: 2px; }
.ad-top, .ad-banner { min-height: 90px; margin-top: 18px; }
.ad-banner { margin-top: 0; }
.ad-infeed { min-height: 120px; }

/* sections + grid */
.section-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: "▶"; color: var(--accent); font-size: .8em; }
.section-title small { margin-left: auto; font-weight: 600; font-size: .68rem; color: var(--mute); text-transform: none; letter-spacing: 0; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.state { color: var(--mute); font-size: .85rem; padding: 10px 0; grid-column: 1 / -1; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 24px rgba(255,106,0,.18); outline: none; }

/* thumbnail = film frame (perforated edges) + teaser progress bar */
.thumb-box { position: relative; background: #000; aspect-ratio: 16/9; overflow: hidden; }
.thumb-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-box::before, .thumb-box::after { content: ""; position: absolute; top: 0; bottom: 0; width: 9px; z-index: 3; background: repeating-linear-gradient(180deg, #000 0 5px, #3b3b42 5px 11px); opacity: .9; }
.thumb-box::before { left: 0; } .thumb-box::after { right: 0; }
.pbar { position: absolute; left: 9px; bottom: 0; height: 3px; width: 0; background: var(--accent); z-index: 4; transition: width .6s linear; }
.tbadge { position: absolute; left: 15px; top: 8px; z-index: 4; background: var(--accent); color: var(--on-accent); font-size: .6rem; font-weight: 900; letter-spacing: .8px; padding: 2px 7px; border-radius: 3px; opacity: 0; transition: opacity .2s; }
.card.playing .tbadge { opacity: 1; }
.play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center; transition: opacity .2s; z-index: 2; pointer-events: none; }
.card.playing .play-overlay, .card:hover .play-overlay { opacity: 0; }
.play-btn-icon { width: 42px; height: 42px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.6); }
.play-btn-icon::after { content: ''; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 11px solid var(--on-accent); margin-left: 3px; }
.duration { position: absolute; bottom: 8px; right: 15px; background: rgba(0,0,0,.85); font-size: .7rem; padding: 2px 6px; border-radius: 4px; font-weight: 600; z-index: 4; }
.card-info { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { display: flex; justify-content: space-between; font-size: .7rem; color: var(--mute); }
.more { display: block; margin: 14px auto 0; background: var(--panel); color: var(--soft); border: 1px solid var(--line2); border-radius: 8px; padding: 9px 26px; font: inherit; font-size: .85rem; cursor: pointer; }
.more:hover { border-color: var(--accent); color: #fff; }

/* watch page */
.player-box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.player-wrapper { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000; }
.player-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-info { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.video-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; line-height: 1.3; }
.video-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--mute); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags a { background: var(--bg); border: 1px solid var(--line2); border-radius: 6px; padding: 2px 10px; font-size: .72rem; color: var(--soft); }
.tags a:hover { border-color: var(--accent); color: #fff; }
.src-link { font-size: .78rem; color: var(--accent2); }

/* info + footer */
.info-box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; font-size: .8rem; color: var(--mute); display: flex; flex-direction: column; gap: 6px; }
.info-box h2 { font-family: var(--font-head); font-size: .9rem; color: var(--soft); }
.info-box.warn { border-color: #5a2d10; }
.info-box.warn h2 { color: var(--accent); }
footer { background: var(--panel); border-top: 1px solid var(--line); margin-top: 6px; }
footer .inner { padding-top: 18px; padding-bottom: 18px; display: flex; flex-direction: column; gap: 8px; font-size: .75rem; color: var(--mute); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a:hover { color: var(--accent); }

/* 18+ gate */
.agegate { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.agegate > div { background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; padding: 28px; max-width: 420px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.agegate h2 { font-family: var(--font-head); color: var(--accent); text-transform: uppercase; }
.agegate p { font-size: .85rem; color: var(--soft); }
.agegate .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.agegate button, .agegate a { font: inherit; font-weight: 700; font-size: .85rem; padding: 9px 20px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg); color: var(--soft); cursor: pointer; }
.agegate button { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

@media (max-width: 800px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 520px) { .bar { flex-wrap: wrap; } .search { max-width: none; order: 3; flex-basis: 100%; } .card-info { padding: 8px; } .video-title { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
