:root {
  color-scheme: dark;
  --bg: #121212;
  --panel: #151515;
  --panel-soft: #1b1b1b;
  --text: #f4f4f5;
  --muted: #666666;
  --line: #2b2b2b;
  --line-soft: #242424;
  --accent: #e60000;
  --accent-strong: #ff0000;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif; font-size: 14px; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-strong); }
img, video { max-width: 100%; }
button, input, a, article, section, aside, nav, div, span { border-radius: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(18, 18, 18, 0.98); border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.header-top { display: grid; grid-template-columns: auto auto minmax(180px, 1fr) auto auto; gap: 8px; align-items: center; max-width: 1420px; margin: 0 auto; padding: 6px 8px; }
.brand { font-size: 25px; line-height: 1; font-weight: 900; letter-spacing: -0.05em; color: #fff; white-space: nowrap; }
.brand::first-letter { color: var(--accent); }
.site-nav { display: flex; gap: 4px; min-width: 0; overflow-x: auto; }
.site-nav a { color: #e4e4e7; background: #151515; border: 1px solid var(--line-soft); padding: 5px 8px; border-radius: 0; font-weight: 800; font-size: 13px; line-height: 1; white-space: nowrap; text-transform: uppercase; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.search-toggle { display: none; align-items: center; justify-content: center; width: 34px; height: 32px; border: 1px solid var(--line); border-radius: 0; background: #0f0f0f; color: #fff; font-size: 20px; font-weight: 900; cursor: pointer; }
.site-search { display: flex; min-width: 0; }
.site-search input { width: 100%; min-width: 0; border: 1px solid #3b3b3b; border-right: 0; border-radius: 0; background: #fff; color: #111; padding: 8px 9px; font: 15px "Archivo Narrow", "Arial Narrow", Arial, sans-serif; font-weight: 700; }
.site-search button { border: 1px solid var(--accent); border-radius: 0; padding: 0 14px; background: var(--accent); color: #fff; font-weight: 900; cursor: pointer; text-transform: uppercase; }
.site-search button:hover { background: var(--accent-strong); }
.lang-dropdown { position: relative; justify-self: end; max-width: 80px; }
.lang-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 56px; max-width: 80px; border: 1px solid var(--line); background: #101010; color: #fff; padding: 6px 8px; border-radius: 0; font-size: 12px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.lang-trigger:hover, .lang-dropdown.open .lang-trigger { color: #fff; border-color: var(--accent); }
.lang-chevron { font-size: 10px; line-height: 1; }
.lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 4px); min-width: 96px; margin: 0; padding: 4px; list-style: none; border: 1px solid var(--line); border-radius: 0; background: #101010; box-shadow: 0 10px 24px rgba(0,0,0,.42); z-index: 40; }
.lang-dropdown.open .lang-menu { display: block; }
.lang-menu li { margin: 0; }
.lang-menu li[aria-selected="true"] a { color: var(--accent-strong); font-weight: 900; }
.lang-menu a { display: block; color: #d4d4d8; padding: 7px 9px; border-radius: 0; font-size: 12px; line-height: 1; }
.lang-menu a:hover, .lang-menu a:focus { color: #fff; background: #1d1d1d; outline: 0; }

#content { max-width: 1420px; margin: 0 auto; padding: 8px; }
.page-intro { background: #151515; border: 1px solid var(--line); border-radius: 0; padding: 8px; margin-bottom: 8px; }
.page-intro.compact { padding: 8px; }
.listing-intro { border-left: 3px solid var(--accent); }
h1 { margin: 0 0 4px; font-size: clamp(18px, 3vw, 24px); line-height: 1.08; letter-spacing: -0.03em; }
h2 { margin: 0; font-size: 18px; line-height: 1.2; }
p { color: var(--muted); line-height: 1.35; margin: 0; }

.category-strip { position: sticky; top: 42px; z-index: 18; margin: -2px 0 8px; background: #FBF9F8; overflow-x: auto; overflow-y: hidden; border-bottom: 1px solid #dbdad9; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.category-strip::-webkit-scrollbar { display: none; }
.category-strip-track { display: flex; gap: 0; min-width: max-content; padding: 0 8px; }
.category-strip-pill { display: inline-flex; align-items: center; border-left: 1px solid #dbdad9; border-top: 0; border-bottom: 0; border-right: 0; border-radius: 0; background: #FBF9F8; color: #121212; padding: 7px 8px; font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif; font-size: 12px; font-weight: 900; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.category-strip-pill:last-child { border-right: 1px solid #dbdad9; }
.category-strip-pill:hover { color: #fff; background: #FF0000; border-color: #dbdad9; }

.ad-slot { min-height: 62px; border: 1px dashed #3f3f46; border-radius: 0; display: grid; place-items: center; color: #d4d4d8; background: #101010; margin: 8px 0; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }
.ad-slot-300x250 { width: 300px; max-width: 100%; min-height: 250px; margin: 0 auto; }
.right-rail-ads { display: grid; gap: 8px; margin: 0; justify-items: center; }
.section-heading-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; border-bottom: 1px solid var(--line); margin: 0 0 8px; padding-bottom: 5px; }
.trending-videos-section + .newest-videos-section { margin-top: 50px; }
.section-heading-row h2 { font-size: 18px; font-weight: 900; text-transform: uppercase; }
.section-note { color: var(--muted); font-size: 12px; }
.compact-row { margin-top: 0; }
.entity-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #151515; color: #f4f4f5; padding: 5px 8px; border-radius: 0; font-weight: 800; font-size: 12px; }

.video-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.video-card { min-width: 0; background: transparent; border: 0; border-radius: 0; overflow: hidden; }
.video-thumb { position: relative; display: block; background: #000; aspect-ratio: 16 / 9; border-radius: 0; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s ease, transform .15s ease; }
.video-thumb:hover img { opacity: .86; transform: scale(1.01); }
.duration, .quality-badge { position: absolute; background: rgba(0,0,0,.86); color: #fff; padding: 2px 5px; border-radius: 0; font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif; font-size: 11px; font-weight: 900; line-height: 1.2; }
.duration { right: 5px; bottom: 5px; }
.quality-badge { left: 5px; top: 5px; color: #fff; background: var(--accent); }
.video-card h2 { font-size: 14px; line-height: 1.1; margin: 4px 0 1px; font-weight: 700; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 31px; }
.video-meta { display: flex; gap: 5px; flex-wrap: wrap; color: var(--muted); font-size: 12px; line-height: 1.15; padding: 0 0 3px; }
.video-meta a { color: #c9c9d1; }
.empty-state { grid-column: 1 / -1; padding: 12px; border: 1px solid var(--line); background: #151515; border-radius: 0; }

.entity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.entity-card { border: 1px solid var(--line); background: #151515; border-radius: 0; padding: 8px; min-height: 82px; display: flex; flex-direction: column; gap: 5px; }
.entity-card:hover { border-color: var(--accent); background: #1b1b1b; }
.entity-card strong { font-size: 15px; line-height: 1.15; }
.entity-card em { color: var(--accent-strong); font-style: normal; font-size: 12px; font-weight: 800; }
.entity-card span { color: var(--muted); font-size: 12px; line-height: 1.3; }
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 18px 0 8px; color: var(--muted); }
.page-current, .page-link { min-width: 40px; text-align: center; border: 1px solid var(--line); border-radius: 0; padding: 7px 10px; background: #151515; font-weight: 800; font-size: 13px; }
.page-link { color: #fff; }
.page-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.video-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.watch-column { min-width: 0; }
.player-shell { position: relative; background: #000; border-radius: 0; overflow: hidden; border: 1px solid var(--line); }
.native-player { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }
.play-overlay { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: #FF0000; color: #fff; border-radius: 0; transform: translate(-50%, -50%); transition: none; cursor: pointer; z-index: 3; }
.play-overlay:hover, .play-overlay:active { background: #FF0000; color: #fff; filter: brightness(1.08); }
.play-overlay:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.play-overlay-icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; transform: translateX(2px); line-height: 1; }
.play-arrow-svg { width: 46px; height: 46px; display: block; fill: currentColor; }
.player-shell.playing .play-overlay { display: none; }
.player-progress { position: relative; height: 12px; background: #111; border-top: 1px solid #242424; }
.player-progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--progress, 0%); background: #FF0000; pointer-events: none; }
.player-progress-seek { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; accent-color: #FF0000; }
.vjs-play-progress, .video-js .vjs-volume-level { background: #FF0000; }
.video-detail-meta span { font-family: "Archivo Narrow", "Arial Narrow", Arial, sans-serif; font-weight: 900; }
.partner-cta { display: block; margin: 8px auto; max-width: 440px; text-align: center; background: var(--accent); border-radius: 0; padding: 10px 12px; color: white; font-size: 17px; font-weight: 900; text-transform: uppercase; }
.partner-cta:hover { color: #fff; background: var(--accent-strong); }
.video-info-block { background: #151515; border: 1px solid var(--line); border-radius: 0; padding: 8px; }
.video-detail-meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); margin: 4px 0 8px; font-size: 12px; }
.video-description { margin: 0 0 8px; }
.video-tags { margin-top: 6px; }
.main-related-videos { margin-top: 10px; }
.main-related-videos h2 { margin: 0 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 5px; text-transform: uppercase; }
.main-related-videos .rail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.side-rail { min-width: 0; }
.side-rail h2 { margin: 0 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.rail-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.legal-page { max-width: 760px; margin-inline: auto; }
.legal-section { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.legal-section:first-of-type { border-top: 0; padding-top: 0; }
.legal-section h2 { font-size: 1rem; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .08em; }
.legal-section p { margin: 0 0 10px; }
.legal-section ol { margin: 0 0 10px 22px; padding: 0; }
.legal-section li { margin: 0 0 6px; }

.site-footer { border-top: 1px solid var(--line); background: #0f0f0f; padding: 16px 8px 24px; color: var(--muted); }
.site-footer > * { max-width: 1420px; margin-left: auto; margin-right: auto; }
.footer-brand { color: #fff; font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.site-footer a { color: #d4d4d8; }

@media (max-width: 1180px) {
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .entity-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .video-page { grid-template-columns: 1fr; }
  .side-rail { order: 2; }
  .right-rail-ads { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }
  .right-rail-ad { min-height: 180px; }
}

@media (max-width: 640px) {
  .header-top { grid-template-columns: auto 1fr auto auto; gap: 6px; padding: 6px 8px; }
  .brand { font-size: 23px; }
  .site-nav { display: none; }
  [data-search-toggle] { display: inline-flex; justify-self: end; }
  .site-search:not(.open) { display: none; }
  .site-search { grid-column: 1 / -1; grid-row: 2; }
  .site-search input { padding: 7px 8px; }
  .lang-dropdown { align-self: center; }
  #content { padding: 6px; }
  .page-intro { padding: 6px; margin-bottom: 6px; }
  .listing-intro p { display: none; }
  .category-strip { top: 42px; margin: 0 -6px 6px; }
  .category-strip-track { gap: 0; padding: 0 8px; }
  .category-strip-pill { padding: 7px 8px; font-size: 12px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .video-card h2 { font-size: 14px; min-height: 31px; margin-top: 3px; }
  .video-meta { font-size: 12px; gap: 4px; }
  .main-related-videos .rail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .right-rail-ads { grid-template-columns: 1fr; }
  .entity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading-row { margin-bottom: 6px; padding-bottom: 4px; }
  .section-note { display: none; }
}
