:root{
  --rt-bg: #0b0f17;
  --rt-surface:#111827;
  --rt-surface-2:#111b33;
  --rt-card: rgba(255,255,255,.03);
  --rt-text:#e5e7eb;
  --rt-muted:#9ca3af;
  --rt-accent:#6d28d9;
  --rt-accent-2:#22d3ee;
  --rt-link:#93c5fd;
  --rt-chip-bg: rgba(255,255,255,.035);
  --rt-chip-border: rgba(255,255,255,.12);
  --rt-chip-text: var(--rt-text);
  --rt-btn-bg: var(--rt-accent);
  --rt-btn-text:#ffffff;
  --rt-border: rgba(255,255,255,.10);
  --rt-radius: 12px;
  --rt-gap: 14px;
  --rt-container-max: 1320px;
  --rt-font-base: 14px;
  --rt-heading-scale: 1;
  --rt-font-family: system;
  --rt-shadow-strength: .35;
  --rt-glow-strength: .35;
  --rt-card-title-lines: 2;
  --rt-btn-radius: 12px;
  --rt-btn-style: ghost;
  --rt-grid-cols-tablet: 4;
  --rt-grid-cols-mobile: 2;
  --rt-single-sidebar-w: 340px;
  --rt-single-related-count: 12;
  --rt-single-sticky-sidebar: 1;
  --rt-logo-max-h-mobile: 34px;
  --rt-shadow: 0 6px 18px rgba(0,0,0,calc(var(--rt-shadow-strength)));
}

/* Font stacks controlled by Customizer */
:root{
  --rt-font-stack: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
:root[data-rt-font="inter"]{
  --rt-font-stack: ui-sans-serif, Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
:root[data-rt-font="serif"]{
  --rt-font-stack: ui-serif, Georgia, "Times New Roman", Times, serif;
}
:root[data-rt-font="mono"]{
  --rt-font-stack: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body.rt-body{
  background: radial-gradient(1200px 600px at 20% -10%, rgba(79,70,229,.22), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(6,182,212,.18), transparent 55%),
              var(--rt-bg);
  color: var(--rt-text);
  margin:0;
  font-family: var(--rt-font-stack);
  font-size: var(--rt-font-base);
}
a{color:var(--rt-link);text-decoration:none}
a:hover{filter:brightness(1.15)}
.rt-wrap{max-width:var(--rt-container-max);margin:0 auto;padding:0 var(--rt-page-gutter, 24px)}
.rt-header{border-bottom:1px solid var(--rt-border); background: color-mix(in srgb, var(--rt-surface) 70%, transparent); backdrop-filter: blur(12px);}
.rt-header-inner{display:flex;align-items:center;justify-content:space-between;padding:var(--rt-header-py) var(--rt-header-px);gap:18px}
.rt-site-title{font-weight:800;letter-spacing:0.2px}
.rt-topnav ul{list-style:none;margin:0;padding:0;display:flex;gap:var(--rt-nav-gap);flex-wrap:wrap;align-items:center}
.rt-topnav a{color:#fff}
.rt-topnav a:hover{color:#fff;filter:brightness(1.06)}
.rt-main{padding:22px 0}
.rt-section{margin: 0 0 28px 0}
.rt-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 12px 0}
.rt-section-title{display:flex;flex-direction:column;gap:6px;min-width:0}
.rt-section-h{margin:0;display:inline-flex;align-items:center;gap:10px;line-height:1.05;letter-spacing:.2px;position:relative}
.rt-section-h:after{content:"";display:block;height:2px;width:42px;margin-top:8px;border-radius:999px;background:color-mix(in srgb, var(--rt-accent) 70%, transparent)}
.rt-section-sub{font-size:12px;color:var(--rt-muted);line-height:1.2;max-width:60ch}
.rt-section-link{font-size:12px;color:var(--rt-link);border:1px solid var(--rt-border);padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.03);transition:filter .15s ease, transform .15s ease}
.rt-section-link:hover{filter:brightness(1.15);transform:translateY(-1px)}
.rt-h1{margin:0;font-size:calc(var(--rt-font-base) * 2 * var(--rt-heading-scale))}
.rt-h2{margin:0;font-size:calc(var(--rt-font-base) * 1.6 * var(--rt-heading-scale))}
.rt-h3{margin:0;font-size:calc(var(--rt-font-base) * 1.3 * var(--rt-heading-scale))}
.rt-chip{font-size:12px;color:var(--rt-chip-text);background:var(--rt-chip-bg);border:1px solid var(--rt-chip-border);padding:6px 10px;border-radius:var(--rt-chip-radius, 999px);line-height:1}
.rt-grid{--rt-grid-cols:var(--rt-grid-max-cols);display:grid;grid-template-columns:repeat(var(--rt-grid-cols),minmax(0,1fr));gap:var(--rt-gap)}
@media (max-width: 1200px){.rt-grid{grid-template-columns:repeat(5,1fr)}}
@media (max-width: 1024px){.rt-grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width: 820px){.rt-grid{--rt-grid-cols:var(--rt-grid-cols-tablet);}}
@media (max-width: 620px){.rt-grid{--rt-grid-cols:var(--rt-archive-mobile-cols,var(--rt-grid-cols-mobile));gap:12px}}
@media (max-width: 420px){.rt-grid{grid-template-columns:repeat(1,1fr)}}
.rt-grid-ad{grid-column:1/-1}
.rt-card{background:var(--rt-card);border:1px solid var(--rt-border);border-radius:var(--rt-radius);overflow:hidden;display:block;box-shadow:0 0 0 rgba(0,0,0,0);transition:transform .14s ease, border-color .14s ease, box-shadow .14s ease}
.rt-card:hover{transform:translateY(-3px);border-color:rgba(255,255,255,0.22);box-shadow:var(--rt-shadow), 0 0 calc(22px * var(--rt-glow-strength)) color-mix(in srgb, var(--rt-accent) 45%, transparent)}
.rt-thumb{aspect-ratio:16/9;background:#0a0f1a}
.rt-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rt-card-body{padding:12px}
.rt-card-submeta{font-size:12px;color:var(--rt-muted);margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-card-title{font-weight:700;line-height:1.25;margin:0;display:-webkit-box;-webkit-line-clamp:var(--rt-card-title-lines);-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em}
.rt-card-meta{font-size:12px;color:var(--rt-muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.rt-playerpage{display:grid;grid-template-columns:minmax(0,1fr) var(--rt-single-sidebar-w);gap:18px;align-items:start}
@media (max-width: 1024px){.rt-playerpage{grid-template-columns:1fr}}
.rt-playerbox{background:var(--rt-surface-2);border:1px solid var(--rt-border);border-radius:var(--rt-radius);overflow:hidden}
.rt-iframe{width:100%;height:520px;border:0;display:block;background:#000}
@media (max-width:720px){.rt-iframe{height:260px}}
.rt-meta{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.rt-pill{font-size:12px;color:var(--rt-muted);border:1px solid var(--rt-border);padding:6px 10px;border-radius:999px}
.rt-desc{background:var(--rt-surface);border:1px solid var(--rt-border);border-radius:var(--rt-radius);padding:14px}
.rt-muted{color:var(--rt-muted)}
.rt-adwrap{margin:14px 0}
.rt-ad svg{width:100%;height:auto;display:block;border-radius:14px}
.rt-footer{border-top:1px solid var(--rt-border);padding:24px 0;margin-top:34px}
.rt-footer-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.rt-footer-brand{display:flex;align-items:center}
.rt-footer-brandlink{display:flex;align-items:center;gap:10px;text-decoration:none}
.rt-footer-brandname{font-weight:800;letter-spacing:.2px;color:var(--rt-text)}
.rt-footer-brand .custom-logo-link{display:flex;align-items:center;gap:10px}
.rt-footer-brand img.custom-logo,.rt-footer-brand .custom-logo-link img{max-height:34px;height:auto;width:auto}

/* Browse templates */
.rt-browse .rt-term-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:16px}
.rt-browse .rt-term-card{display:block;padding:14px;border:1px solid rgba(0,0,0,.08);border-radius:10px;text-decoration:none}
.rt-browse .rt-term-card:hover{box-shadow:0 6px 18px rgba(0,0,0,.08)}
.rt-browse .rt-term-name{font-weight:700}
.rt-browse .rt-term-count{opacity:.75;margin-top:6px;font-size:.95em}
.rt-letter-bar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}

/* ------------------------------------------------------------
   Step 3: Brand bar + chip rail polish
------------------------------------------------------------ */

/* Density */
body.rt-density-compact .rt-main{padding:16px 0}
body.rt-density-compact .rt-section{margin:0 0 20px 0}
body.rt-density-spacious .rt-main{padding:28px 0}
body.rt-density-spacious .rt-section{margin:0 0 34px 0}

/* Header styles */
body.rt-header-clean .rt-brandbar{background: color-mix(in srgb, var(--rt-surface) 75%, transparent);}
body.rt-header-glass .rt-brandbar{background: color-mix(in srgb, var(--rt-surface) 45%, transparent);backdrop-filter: blur(18px);}
body.rt-header-neon .rt-brandbar{background: linear-gradient(180deg, color-mix(in srgb, var(--rt-surface) 75%, transparent), transparent);
  box-shadow: 0 10px 40px rgba(0,0,0,.25), 0 0 calc(28px * var(--rt-glow-strength)) color-mix(in srgb, var(--rt-accent) 45%, transparent);
}
body.rt-header-retro .rt-brandbar{background: var(--rt-surface);border-bottom: 2px solid color-mix(in srgb, var(--rt-border) 80%, #fff 10%);}

.rt-logo img{max-height:var(--rt-logo-max-h);height:auto;width:auto;display:block}
.rt-default-logo{display:block;height:auto;width:auto;max-height:var(--rt-logo-max-h);filter:drop-shadow(0 10px 18px rgba(0,0,0,.28))}
.rt-default-logo--wide{max-height:var(--rt-logo-max-h)}
.rt-default-logo--square{max-height:34px}
.rt-brand{display:flex;align-items:center;flex:0 0 var(--rt-brand-col-w);min-width:0;transform:translateX(var(--rt-brand-offset-x))}
.rt-brand .custom-logo-link{display:flex;align-items:center;gap:10px}
.rt-header-utility{display:flex;align-items:center;justify-content:flex-end;align-self:center;flex:0 1 var(--rt-header-utility-max-w);max-width:var(--rt-header-utility-max-w);min-width:0}
.rt-header-utility-socials{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.rt-header-utility > *{max-width:100%}
.rt-header-utility-link,
.rt-header-utility-text{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid color-mix(in srgb, var(--rt-border) 80%, transparent);
  background:color-mix(in srgb, var(--rt-surface) 70%, transparent);
  color:var(--rt-text);
  font-size:12px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}
.rt-header-utility-cta{
  background:color-mix(in srgb, var(--rt-accent) 16%, var(--rt-surface));
  border-color:color-mix(in srgb, var(--rt-accent) 48%, var(--rt-border));
}
.rt-header-utility-ad{max-width:min(var(--rt-header-utility-max-w), 30vw);width:100%}
.rt-header-utility-ad .rt-ad-slot{margin:0}
.rt-topnav-bar{
  position:relative;
  z-index:30;
  background:
    radial-gradient(120% 180% at 0% 0%, color-mix(in srgb, var(--rt-accent-2) 26%, transparent), transparent 48%),
    linear-gradient(180deg, color-mix(in srgb, var(--rt-accent) 84%, #05070d 16%), color-mix(in srgb, var(--rt-accent) 72%, #05070d 28%));
  border-top:1px solid color-mix(in srgb, var(--rt-accent-2) 28%, rgba(255,255,255,.06));
  border-bottom:1px solid color-mix(in srgb, var(--rt-accent) 52%, #fff 10%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -1px 0 rgba(0,0,0,.24),
    0 10px 24px rgba(0,0,0,.18),
    0 0 24px color-mix(in srgb, var(--rt-accent) 18%, transparent);
}
.rt-topnav-bar:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent),
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 38%);
  opacity:.55;
  pointer-events:none;
}
.rt-topnav-inner{
  position:relative;
  z-index:31;
  display:flex;
  align-items:center;
  min-height:54px;
}
.rt-topnav{width:100%}
.rt-topnav > ul{
  min-height:54px;
  display:flex;
  gap:var(--rt-nav-gap);
  align-items:center;
  flex-wrap:wrap;
}
.rt-topnav li{
  position:relative;
  list-style:none;
}
.rt-topnav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  margin:8px 0;
  padding:0 14px;
  border-radius:999px;
  border:1px solid transparent;
  color:#fff;
  font-size:13px;
  font-weight:800;
  letter-spacing:.18px;
  text-shadow:0 1px 0 rgba(0,0,0,.22);
  transition:transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
}
.rt-topnav li.current-menu-item > a,
.rt-topnav li.current_page_item > a,
.rt-topnav li.current-menu-ancestor > a{
  background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  border-color:rgba(255,255,255,.18);
  box-shadow:
    0 10px 18px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.rt-topnav a:hover{
  transform:translateY(-1px);
  background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  border-color:rgba(255,255,255,.16);
  box-shadow:
    0 8px 16px rgba(0,0,0,.16),
    0 0 18px color-mix(in srgb, var(--rt-accent-2) 24%, transparent);
  filter:none;
}
.rt-topnav .menu-item-has-children > a:after{
  content:"";
  width:7px;
  height:7px;
  margin-left:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-1px) rotate(45deg);
  opacity:.8;
}
.rt-topnav .sub-menu{
  position:absolute;
  left:0;
  top:calc(100% + 6px);
  z-index:80;
  min-width:220px;
  padding:10px;
  display:none;
  flex-direction:column;
  gap:6px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(180deg, rgba(18,22,40,.97), rgba(11,14,28,.98));
  box-shadow:
    0 24px 42px rgba(0,0,0,.42),
    0 0 22px color-mix(in srgb, var(--rt-accent) 18%, transparent);
  backdrop-filter:blur(18px);
}
.rt-topnav .sub-menu li{
  width:100%;
}
.rt-topnav .sub-menu a{
  width:100%;
  justify-content:flex-start;
  margin:0;
  min-height:36px;
  padding:0 12px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.08);
  font-size:12px;
  font-weight:700;
  text-transform:none;
  white-space:nowrap;
}
.rt-topnav li:hover > .sub-menu,
.rt-topnav li:focus-within > .sub-menu{
  display:flex;
}

.rt-catstrip{
  position:relative;
  z-index:10;
}

/* Search bar variants */
.rt-searchform{display:flex;align-items:center;gap:10px;min-width:min(520px, 52vw)}
.rt-searchform input[type="search"]{flex:1;min-width:180px;background: color-mix(in srgb, var(--rt-bg) 35%, transparent);color:var(--rt-text);
  border:1px solid color-mix(in srgb, var(--rt-border) 80%, transparent);padding:10px 14px;border-radius: calc(var(--rt-search-radius, 16px));
  outline:none;transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.rt-searchform button{background:var(--rt-accent);color:#fff;border:0;padding:10px 14px;border-radius: calc(var(--rt-search-radius, 16px));
  font-weight:700;cursor:pointer}
.rt-searchform button:hover{filter:brightness(1.05)}

body.rt-search-squared .rt-searchform input[type="search"],
body.rt-search-squared .rt-searchform button{border-radius:8px}

body.rt-search-glass .rt-searchform input[type="search"]{background: color-mix(in srgb, var(--rt-surface) 35%, transparent);
  backdrop-filter: blur(10px);}

body.rt-search-neon .rt-searchform input[type="search"]{
  border-color: color-mix(in srgb, var(--rt-accent) 55%, var(--rt-border));
  box-shadow: 0 0 calc(var(--rt-search-glow, 18px) * 1px) color-mix(in srgb, var(--rt-accent) 50%, transparent);
}
body.rt-search-neon .rt-searchform button{box-shadow: 0 0 calc(var(--rt-search-glow, 18px) * .8px) color-mix(in srgb, var(--rt-accent) 45%, transparent);}

/* Chip rail */
.rt-catstrip{border-bottom:1px solid var(--rt-border);background: color-mix(in srgb, var(--rt-bg) 35%, transparent)}
.rt-catstrip-wrap{position:relative;display:flex;align-items:center;gap:10px;padding:10px 0}
.rt-chiprail-inner{display:flex;gap:8px;overflow:auto;scrollbar-width:none;-ms-overflow-style:none;padding:2px 2px}
.rt-chiprail-inner::-webkit-scrollbar{display:none}
.rt-chiprail-edge{position:absolute;top:0;bottom:0;width:22px;pointer-events:none;z-index:2}
.rt-chiprail-edge-left{left:0;background: linear-gradient(90deg, var(--rt-bg), transparent)}
.rt-chiprail-edge-right{right:88px;background: linear-gradient(270deg, var(--rt-bg), transparent)}

.rt-chip{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;line-height:1;
  border-radius:999px;padding:7px 10px;border:1px solid var(--rt-border);color:var(--rt-muted);
  background: color-mix(in srgb, var(--rt-surface) 65%, transparent);
}
body.rt-chipstyle-outline .rt-chip{background:transparent}
body.rt-chipstyle-glass .rt-chip{background: color-mix(in srgb, var(--rt-surface) 35%, transparent);backdrop-filter: blur(10px)}

.rt-chip:hover{color:var(--rt-text);border-color: color-mix(in srgb, var(--rt-border) 40%, #fff 20%)}
.rt-chip.rt-active{color:#fff;border-color: color-mix(in srgb, var(--rt-accent) 55%, var(--rt-border));background: color-mix(in srgb, var(--rt-accent) 25%, var(--rt-surface));}
body.rt-chipglow-on .rt-chip.rt-active{box-shadow: 0 0 18px color-mix(in srgb, var(--rt-accent) 50%, transparent)}

.rt-chip-ico{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:6px;
  font-size:11px;font-weight:800;color:#fff;background: color-mix(in srgb, var(--rt-accent) 60%, transparent)}

.rt-chiprail-more{margin-left:auto;flex:0 0 auto;border-radius:12px;padding:8px 12px;
  border:1px solid color-mix(in srgb, var(--rt-border) 80%, transparent);
  background: color-mix(in srgb, var(--rt-surface) 70%, transparent);
  color:var(--rt-text);font-weight:700}
.rt-chiprail-more:hover{filter:brightness(1.08)}

@media (max-width: 820px){
  .rt-searchform{min-width: min(520px, 90vw)}
  .rt-chiprail-edge-right{right:74px}
}
@media (max-width: 640px){
  .rt-searchform{
    width:100%;
    min-width:0;
    gap:8px;
  }
  .rt-searchform input[type="search"]{min-width:0}
  .rt-searchform button{flex:0 0 auto}
}
.rt-letter-bar a{text-decoration:none;opacity:.8}
.rt-letter-bar a:hover{opacity:1}

/* RoverTube browse templates */
.rt-browse .rt-term-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:14px;
  margin-top:18px;
}
.rt-browse .rt-term-card{
  display:block;
  padding:14px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:12px;
  text-decoration:none;
  background:rgba(0,0,0,0.25);
}
.rt-browse .rt-term-card:hover{
  transform:translateY(-1px);
}
.rt-browse .rt-term-card__name{
  font-weight:700;
}
.rt-browse .rt-term-card__count{
  opacity:.75;
  font-size:.9em;
  margin-top:6px;
}



/* Video cards (tube grid) */
.rt-video-card{background:var(--rt-surface);border:1px solid var(--rt-border);border-radius:var(--rt-radius);overflow:hidden;box-shadow:0 0 0 rgba(0,0,0,0);transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}
.rt-video-card:hover{transform:translateY(-3px);border-color:rgba(255,255,255,.22);box-shadow:var(--rt-shadow)}
.rt-card-link{display:block;padding:0}
.rt-card-media{position:relative;aspect-ratio:16/9;background:rgba(255,255,255,0.03);overflow:hidden}
.rt-card-thumb{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .15s ease}
.rt-card-title{margin:10px 12px 12px;font-size:14px;line-height:1.25;font-weight:600;letter-spacing:.1px}

/* Badges */
.rt-badge{position:absolute;bottom:8px;left:8px;display:inline-flex;align-items:center;gap:6px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;line-height:1;padding:6px 8px;border-radius:999px;backdrop-filter:blur(8px)}
.rt-badge-provider{left:8px;right:auto;bottom:8px;max-width:28%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-badge-duration{left:auto;right:8px}

/* Hover preview video */
.rt-hover-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .15s ease;pointer-events:none}
.rt-video-card.rt-hovering .rt-hover-video{opacity:1}
.rt-video-card.rt-hovering .rt-card-thumb{opacity:0}
.rt-pagination{margin-top:24px}
.rt-pagination .nav-links{display:flex;gap:10px;flex-wrap:wrap}
.rt-pagination a,.rt-pagination span{padding:8px 10px;border:1px solid var(--rt-border);border-radius:10px}
.rt-pagination .current{background:rgba(255,255,255,.06)}



/* Single video page */
.rt-single{max-width:1100px;margin:0 auto}
.rt-single-head{margin-bottom:12px}
.rt-single-title{margin:0}
.rt-player{margin:12px 0 16px}
.rt-player iframe{width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:var(--rt-radius);background:#000}
.rt-player-video{width:100%;max-width:100%;aspect-ratio:16/9;border-radius:var(--rt-radius);background:#000}
.rt-notice{padding:12px;border:1px solid var(--rt-border);border-radius:12px;background:rgba(255,255,255,.04)}
.rt-single-meta{display:grid;gap:6px;font-size:14px;opacity:.9;margin:12px 0 18px}
.rt-single-meta a{text-decoration:underline;text-decoration-color:rgba(255,255,255,.35)}
.rt-single-content{margin:14px 0 0;line-height:1.6;opacity:.95}
.rt-h2{margin:0;font-size:18px}
.rt-related{margin-top:28px}


/* --------------------------------------------------------------------------
   Retro mode legacy overrides
   NOTE: These used to apply globally and were fighting the newer "pro" header,
   chip rail, and card system. They are now scoped to retro mode only.
---------------------------------------------------------------------------- */
body.rt-mode-retro .rt-header{
  background: var(--rt-surface);
  border-bottom: 1px solid var(--rt-border);
}
body.rt-mode-retro .rt-header:before{
  content:"";
  display:block;
  height:4px;
  background: var(--rt-accent);
}
body.rt-mode-retro .rt-header-inner{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 0;
}
body.rt-mode-retro .rt-logo img{max-height:34px;height:auto;width:auto}
body.rt-mode-retro .rt-site-title{font-weight:800;letter-spacing:.2px}
body.rt-mode-retro .rt-site-title span, body.rt-mode-retro .rt-site-title{color:var(--rt-text)}
body.rt-mode-retro .rt-search{
  flex:1;
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:center;
}
body.rt-mode-retro .rt-search form{
  width:100%;
  max-width:620px;
  display:flex;
  gap:8px;
}
body.rt-mode-retro .rt-search input[type="search"]{
  flex:1;
  padding:10px 12px;
  border:1px solid var(--rt-border);
  border-radius: 8px;
  background:var(--rt-surface);
  outline:none;
}
body.rt-mode-retro .rt-search input[type="search"]:focus{
  border-color: var(--rt-accent-2);
  box-shadow: 0 0 0 3px rgba(255,106,0,.15);
}
body.rt-mode-retro .rt-search button{
  padding:10px 14px;
  border:1px solid var(--rt-accent);
  background: var(--rt-accent);
  color:#fff;
  border-radius:8px;
  font-weight:700;
  cursor:pointer;
}
body.rt-mode-retro .rt-search button:hover{filter:brightness(.95)}
body.rt-mode-retro .rt-nav a{
  color:var(--rt-text);
  padding:8px 10px;
  border-radius:8px;
}
body.rt-mode-retro .rt-nav a:hover{background:#f3f4f6}

body.rt-mode-retro .rt-wrap{max-width:1220px;padding:0 max(12px, calc(var(--rt-page-gutter, 24px) - 4px))}

/* category strip */
body.rt-mode-retro .rt-catstrip.rt-sticky{position:sticky;top:0;z-index:50}
body.rt-mode-retro .rt-catstrip{
  background:var(--rt-surface);
  border-bottom:1px solid var(--rt-border);
}
body.rt-mode-retro .rt-catstrip-inner{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 0;
  overflow:auto;
  white-space:nowrap;
}
body.rt-mode-retro .rt-catstrip a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:1px solid var(--rt-border);
  border-radius: 999px;
  background:var(--rt-surface);
}
body.rt-mode-retro .rt-catstrip a:hover{
  border-color: var(--rt-accent-2);
  color: var(--rt-accent);
}

/* grid */
body.rt-mode-retro .rt-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
@media (min-width: 1200px){
  body.rt-mode-retro .rt-grid{grid-template-columns: repeat(6, 1fr);}
}
@media (max-width: 980px){
  body.rt-mode-retro .rt-grid{grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));}
}

/* cards */
body.rt-mode-retro .rt-video-card{
  background: var(--rt-surface);
  border:1px solid var(--rt-border);
  border-radius: var(--rt-radius);
  box-shadow: var(--rt-shadow);
  overflow:hidden;
}
body.rt-mode-retro .rt-card-link{display:block}

/* Player page (theater + sidebar) */
body.rt-mode-retro .rt-playerpage{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}
@media (max-width: 1024px){body.rt-mode-retro .rt-playerpage{grid-template-columns:1fr}}
body.rt-mode-retro .rt-theater{background:#070a10;border:1px solid var(--rt-border);border-radius:14px;padding:12px}
body.rt-mode-retro .rt-player iframe, body.rt-mode-retro .rt-player video{width:100%;aspect-ratio:16/9;border:0;border-radius:10px;background:#000;display:block}
body.rt-mode-retro .rt-single-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
body.rt-mode-retro .rt-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:var(--rt-chip-radius, 999px);border:1px solid var(--rt-border);background:rgba(255,255,255,.04);font-size:12px;color:var(--rt-text)}
body.rt-mode-retro .rt-chip a{color:inherit}
body.rt-mode-retro .rt-sidebar{position:sticky;top:16px}
@media (max-width: 1024px){body.rt-mode-retro .rt-sidebar{position:static}}
body.rt-mode-retro .rt-related-list{display:flex;flex-direction:column;gap:10px}
body.rt-mode-retro .rt-related-item{display:grid;grid-template-columns:120px 1fr;gap:10px;align-items:center;border:1px solid var(--rt-border);border-radius:12px;overflow:hidden;background:var(--rt-surface)}
body.rt-mode-retro .rt-related-item img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:16/9}
body.rt-mode-retro .rt-related-item-title{font-weight:700;line-height:1.2;display:-webkit-box;-webkit-line-clamp:var(--rt-card-title-lines);-webkit-box-orient:vertical;overflow:hidden}
body.rt-mode-retro .rt-related-item-meta{color:var(--rt-muted);font-size:12px;margin-top:4px}

/* Directory pages */
.rt-directory-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:16px 0}
.rt-directory-search{flex:1;min-width:220px}
.rt-directory-search input{width:100%;padding:10px 12px;border-radius:999px;border:1px solid var(--rt-border);background:rgba(255,255,255,.04);color:var(--rt-text)}
.rt-az{display:flex;flex-wrap:wrap;gap:6px}
.rt-az button{border:1px solid var(--rt-border);background:rgba(255,255,255,.03);color:var(--rt-text);border-radius:10px;padding:6px 8px;font-size:12px;cursor:pointer}
.rt-az button.rt-active{background:rgba(109,40,217,.25);border-color:rgba(109,40,217,.55)}
.rt-term-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
@media (max-width: 1024px){.rt-term-grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width: 720px){.rt-term-grid{grid-template-columns:repeat(2,1fr)}}
.rt-term-card{border:1px solid var(--rt-border);background:rgba(255,255,255,.03);border-radius:12px;padding:12px;display:block}
.rt-term-card__name{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rt-term-card__count{color:var(--rt-muted);font-size:12px;margin-top:6px}

.rt-mobile-related{display:none;margin-top:18px}
@media (max-width: 1024px){.rt-mobile-related{display:block}.rt-sidebar{display:none}}


/* Header branding */
.rt-logo img, .custom-logo{max-height: var(--rt-logo-max-h); width:auto; height:auto; display:block;}
@media (max-width: 768px){
  .rt-logo img, .custom-logo{max-height: var(--rt-logo-max-h-mobile);}
  .rt-default-logo,
  .rt-default-logo--wide{max-height:var(--rt-logo-max-h-mobile)}
}

/* Category strip behavior */
.rt-catstrip-wrap{position:relative;display:flex;align-items:center;gap:12px}
.rt-catstrip-inner{flex:1;scrollbar-width:thin}
.rt-catstrip-wrap:after{
  content:"";
  position:absolute;
  right:76px;
  top:0;
  width:64px;
  height:100%;
  pointer-events:none;
  background:linear-gradient(to right, rgba(0,0,0,0), var(--rt-surface));
}
.rt-catstrip-more{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid var(--rt-border);
  background:rgba(255,255,255,.04);
  color:var(--rt-text);
}
.rt-catstrip-more:hover{border-color:var(--rt-accent-2); color:var(--rt-accent);}

/* Pagination */
.rt-pagination{margin:18px 0 0 0; display:flex; justify-content:center;}
.rt-pagination-links .nav-links{display:flex; gap:8px; align-items:center; flex-wrap:wrap;}
.rt-pagination-links .page-numbers{
  display:inline-flex;
  min-width:36px;
  height:34px;
  padding:0 10px;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  border:1px solid var(--rt-border);
  background:rgba(255,255,255,.03);
  color:var(--rt-text);
}
.rt-pagination-links .page-numbers:hover{border-color:var(--rt-accent-2); color:var(--rt-accent);}
.rt-pagination-links .page-numbers.current{
  background:rgba(79,70,229,.25);
  border-color:rgba(79,70,229,.55);
  color:var(--rt-text);
}

.rt-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:40px;
  padding:0 14px;
  border-radius:var(--rt-btn-radius);
  border:1px solid var(--rt-border);
  background:rgba(255,255,255,.04);
  color:var(--rt-text);
  cursor:pointer;
}
:root[data-rt-btn="solid"] .rt-btn{
  background:var(--rt-btn-bg);
  border-color:color-mix(in srgb, var(--rt-btn-bg) 70%, rgba(255,255,255,.25));
  color:var(--rt-btn-text);
}
:root[data-rt-btn="solid"] .rt-btn:hover{
  filter:brightness(1.05);
}
:root[data-rt-btn="ghost"] .rt-btn{
  background:transparent;
}
:root[data-rt-btn="ghost"] .rt-btn:hover{
  border-color:rgba(255,255,255,.25);
}

.rt-btn:hover{border-color:var(--rt-accent-2); color:var(--rt-accent); box-shadow: 0 0 calc(18px * var(--rt-glow-strength)) color-mix(in srgb, var(--rt-accent-2) 55%, transparent);}
.rt-btn:disabled{opacity:.6; cursor:not-allowed;}
.rt-load-more-status{margin-top:10px; text-align:center;}
.rt-pagination-loadmore{flex-direction:column; align-items:center;}

/* Header spacing refinements */
.rt-search{max-width:520px; flex:1 1 320px; min-width:220px; margin:0 8px;}
@media (min-width: 981px){
  .rt-header-inner{flex-wrap:nowrap}
  .rt-brand{justify-content:flex-start}
  .rt-search{margin-inline:clamp(8px, 1.4vw, 18px)}
}
@media (max-width: 980px){
  .rt-header-inner{flex-wrap:wrap; justify-content:center;}
  .rt-brand{order:1;}
  .rt-header-utility{order:2;}
  .rt-search{order:3; flex-basis:100%; max-width:none; margin:10px 0 0 0;}
}

@media (max-width: 760px){
  .rt-header-inner{
    justify-content:flex-start;
    gap:12px;
  }
  .rt-brand{
    width:100%;
    flex-basis:100%;
    transform:none;
    justify-content:center;
  }
  .rt-header-utility{
    order:2;
    width:100%;
    max-width:none;
    flex-basis:100%;
    justify-content:center;
  }
  .rt-header-utility-socials{
    justify-content:center;
  }
  .rt-topnav > ul{
    flex-wrap:nowrap;
    overflow-x:auto;
    scrollbar-width:none;
    -ms-overflow-style:none;
    padding:6px 0;
    justify-content:flex-start;
  }
  .rt-topnav > ul::-webkit-scrollbar{display:none}
  .rt-topnav a{
    display:inline-flex;
    align-items:center;
    white-space:nowrap;
    min-height:36px;
    margin:0;
    padding:0 12px;
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border-color:rgba(255,255,255,.12);
  }
  .rt-search{
    order:3;
    width:100%;
    margin-top:2px;
  }
  .rt-topnav-inner{
    min-height:48px;
  }
  .rt-topnav .sub-menu{
    display:none !important;
  }
  .rt-adwrap{
    margin:10px 0;
  }
  .rt-adwrap-below-header{
    margin-top:8px;
  }
}


/* Theater mode */
body.rt-theater-on .rt-wrap.rt-main,
body.rt-theater-on .rt-header-wrap {
  max-width: none;
}
body.rt-theater-on .rt-theater {
  padding-left: 0;
  padding-right: 0;
}
body.rt-theater-on .rt-player-wrap {
  border-radius: 0;
}
.rt-player-bar{
  display:flex;
  justify-content:flex-end;
  margin-bottom:10px;
}
.rt-btn{ cursor:pointer; }
.rt-btn-ghost{
  background: transparent;
  border: 1px solid var(--rt-border);
  color: var(--rt-text);
  padding: 8px 10px;
  border-radius: var(--rt-btn-radius);
}
.rt-btn-ghost:hover{ border-color: rgba(255,255,255,.25); }

/* Mini-player */
.rt-miniplayer{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
  z-index: 9999;
  overflow: hidden;
}
.rt-miniplayer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
}
.rt-miniplayer-title{
  font-size: 13px;
  color: var(--rt-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rt-miniplayer-close{
  width: 34px;
  height: 28px;
  border-radius: var(--rt-btn-radius);
  border: 1px solid var(--rt-border);
  background: transparent;
  color: var(--rt-text);
  font-size: 18px;
  line-height: 1;
}
.rt-miniplayer-body .rt-player{
  width:100%;
}
body.rt-miniplayer-on .rt-player-wrap{
  margin:0;
}
.rt-player-placeholder{
  display:block;
  width:100%;
  pointer-events:none;
}

/* Responsive ad helper */
.rt-ad-slot{
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
  margin:12px 0;
}
.rt-ad-label{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:color-mix(in srgb, var(--rt-muted) 80%, var(--rt-text));
  font-weight:800;
  text-align:center;
}
.rt-only-desktop{ display:none; }
.rt-only-tablet{ display:none; }
.rt-only-mobile{ display:none; }
@media (min-width: 1025px){
  .rt-only-desktop{ display:flex; }
}
@media (min-width: 641px) and (max-width: 1024px){
  .rt-only-tablet{ display:flex; }
}
@media (max-width: 640px){
  .rt-only-mobile{ display:flex; }
}
.rt-ad-slot .rt-ad-inner{
  width:100%;
  max-width: var(--rt-ad-max, 970px);
  margin:0 auto;
  overflow:hidden;
  border-radius:18px;
}
.rt-ad-style-glass .rt-ad-inner{
  padding:10px;
  border:1px solid color-mix(in srgb, var(--rt-border) 82%, transparent);
  background:color-mix(in srgb, var(--rt-surface) 82%, transparent);
  backdrop-filter:blur(10px);
}
.rt-ad-style-outline .rt-ad-inner{
  padding:10px;
  border:1px solid color-mix(in srgb, var(--rt-border) 88%, transparent);
  background:transparent;
}
.rt-ad-style-plain .rt-ad-inner{
  padding:0;
  border:0;
  background:transparent;
}
.rt-ad-slot svg,
.rt-ad-slot iframe,
.rt-ad-slot img{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
}
.rt-grid-ad .rt-ad-slot{
  margin:6px 0 2px;
}
@media (max-width: 640px){
  .rt-ad-slot{
    gap:6px;
    margin:10px 0;
  }
  .rt-ad-style-glass .rt-ad-inner,
  .rt-ad-style-outline .rt-ad-inner{
    padding:8px;
    border-radius:16px;
  }
}


/* === Single video usability overhaul === */
.rt-singlepage .rt-single{max-width:none}
.rt-singlepage .rt-single-head{margin-bottom:10px}
.rt-single-submeta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px}
.rt-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--rt-border);border-radius:999px;font-size:13px;opacity:.92;background:rgba(255,255,255,.03)}
.rt-pill-provider{border-color:rgba(255,255,255,.18)}
.rt-player-actions{display:flex;gap:10px;flex-wrap:wrap}
.rt-single-info{background:var(--rt-surface);border:1px solid var(--rt-border);border-radius:var(--rt-radius);padding:14px;margin:14px 0 18px}
.rt-info-grid{display:grid;gap:10px}
.rt-info-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;align-items:start}
@media (max-width: 720px){.rt-info-row{grid-template-columns:1fr;gap:6px}}
.rt-info-label{font-size:13px;opacity:.72}
.rt-info-value a{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid var(--rt-chip-border);border-radius:999px;margin:0 8px 8px 0;font-size:13px;text-decoration:none;background:var(--rt-chip-bg);color:var(--rt-chip-text)}
.rt-info-value a:hover{filter:brightness(1.08)}
.rt-shots{margin:18px 0 0}
.rt-shots-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
@media (max-width: 720px){.rt-shots-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rt-shot{display:block;border-radius:12px;overflow:hidden;border:1px solid var(--rt-border);background:#000}
.rt-shot img{display:block;width:100%;height:auto}
.rt-sidebar-related{position:sticky;top:84px;align-self:start}
@media (max-width: 1024px){.rt-sidebar-related{position:static}}


/* Single page sidebar sticky (Customizer) */
@media (min-width: 1025px){
  .rt-sidebar-related{position:sticky;top:calc(var(--rt-header-py) + 16px);}
  :root[data-rt-sticky-sidebar="0"] .rt-sidebar-related{position:static;}
}


/* === PRO PIZAZZ (BC vibe) === */
body{background:radial-gradient(1200px 800px at 20% -10%, color-mix(in srgb, var(--rt-accent-2) 18%, transparent), transparent 60%), radial-gradient(900px 700px at 80% 0%, color-mix(in srgb, var(--rt-accent) 16%, transparent), transparent 55%), linear-gradient(180deg, var(--rt-bg), color-mix(in srgb, var(--rt-bg) 85%, #000));}
.rt-surface, .rt-panel, .rt-card, .rt-single .rt-info-panel{backdrop-filter:saturate(1.1) blur(6px);}
.rt-card:hover{transform:translateY(calc(-3px * (0.4 + var(--rt-glow-strength)))); box-shadow: var(--rt-shadow), 0 0 calc(34px * var(--rt-glow-strength)) color-mix(in srgb, var(--rt-accent) 45%, transparent);}
.rt-btn:hover{box-shadow: 0 0 calc(26px * var(--rt-glow-strength)) color-mix(in srgb, var(--rt-accent) 50%, transparent);}
.rt-chip:hover{box-shadow: 0 0 calc(18px * var(--rt-glow-strength)) color-mix(in srgb, var(--rt-accent-2) 55%, transparent);}
.rt-meta-pill{border-color:color-mix(in srgb, var(--rt-border) 65%, transparent);}

/* Make sure your player wrapper is position:relative */
.rt-player-wrap { position: relative; }

/* Theater / Copy link / Source buttons wrapper */
.rt-player-actions{
  position: absolute;
  z-index: 20;
  display: var(--rt-player-actions-display, flex);
  gap: 10px;
  top: var(--rt-player-actions-top, 16px);
  right: var(--rt-player-actions-right, 16px);
  bottom: var(--rt-player-actions-bottom, auto);
  left: var(--rt-player-actions-left, auto);
}
/* === Player embed sizing fix (forces provider iframes to fill area) === */

.rt-player {
  width: 100%;
}

/* Responsive frame: keeps a consistent player shape */
.rt-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--rt-player-aspect, 16 / 9);
  background: #000;
  overflow: hidden;
  border-radius: var(--rt-radius, 12px);
}

/* Force any iframe/embed inside to cover the full frame */
.rt-embed-frame iframe,
.rt-embed-frame embed,
.rt-embed-frame object,
.rt-embed-frame video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border: 0 !important;
  display: block !important;
}

/* Some providers wrap iframes in extra divs/spans */
.rt-embed-frame > div,
.rt-embed-frame > span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* If provider returns <p><iframe ...></iframe></p> */
.rt-embed-frame p {
  margin: 0 !important;
  height: 100%;
}


/* === Featured rail (home hero) === */
.rt-featured{margin-top: 6px;}
.rt-featured-rail{display:flex;gap:14px;overflow-x:auto;padding:6px 2px 10px;scroll-snap-type:x mandatory;scrollbar-width:none;}
.rt-featured-rail::-webkit-scrollbar{display:none;}
.rt-featured-rail .rt-video-card{flex:0 0 auto;width:min(360px,78vw);scroll-snap-align:start;}
body.rt-density-compact .rt-featured-rail .rt-video-card{width:min(330px,74vw);}
body.rt-density-spacious .rt-featured-rail .rt-video-card{width:min(400px,82vw);}


/* Featured rail carousel arrows (overlay, centered) */
.rt-featured-wrap{
  position: relative;
}
.rt-carousel-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--rt-carousel-arrow-size, 46px);
  height: var(--rt-carousel-arrow-size, 46px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,15,23,.70);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: calc(var(--rt-carousel-arrow-size, 46px) * 0.64);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
  opacity: .92;
}
.rt-carousel-arrow:hover{
  background: rgba(20,26,38,.92);
  box-shadow: 0 0 14px rgba(124,58,237,.28);
  transform: translateY(-50%) scale(1.06);
  opacity: 1;
}
.rt-carousel-arrow.is-disabled,
.rt-carousel-arrow:disabled{
  opacity: .35;
  cursor: default;
  box-shadow: none;
}
.rt-featured-wrap .rt-carousel-prev{ left: -18px; }
.rt-featured-wrap .rt-carousel-next{ right: -18px; }

/* Keep arrows inside on small screens */
@media (max-width: 640px){
  .rt-featured-wrap .rt-carousel-prev{ left: 6px; }
  .rt-featured-wrap .rt-carousel-next{ right: 6px; }
  .rt-carousel-arrow{ width: 40px; height: 40px; font-size: 26px; }
}


/* Featured carousel arrow SVG support */
.rt-carousel-arrow.is-svg{font-size:0;}
.rt-carousel-arrow.is-svg svg{width:calc(var(--rt-carousel-arrow-size,46px)*0.42);height:calc(var(--rt-carousel-arrow-size,46px)*0.42);display:block;}
.rt-carousel-arrow.is-svg svg path{fill:currentColor;}

/* Archive polish */
.rt-archive-hero{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:18px;
  align-items:end;
  margin:0 0 20px;
  padding:18px 18px 16px;
  border:1px solid color-mix(in srgb, var(--rt-border) 82%, transparent);
  border-radius:calc(var(--rt-radius) + 4px);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--rt-accent) 16%, transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--rt-surface) 92%, transparent), color-mix(in srgb, var(--rt-surface) 74%, transparent));
  box-shadow:0 18px 40px rgba(0,0,0,.20);
}
.rt-home-hero{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:18px;
  align-items:end;
  margin:0 0 22px;
  padding:18px 18px 16px;
  border:1px solid color-mix(in srgb, var(--rt-border) 82%, transparent);
  border-radius:calc(var(--rt-radius) + 6px);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--rt-accent-2) 14%, transparent), transparent 34%),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--rt-accent) 14%, transparent), transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, var(--rt-surface) 92%, transparent), color-mix(in srgb, var(--rt-surface) 74%, transparent));
  box-shadow:0 18px 42px rgba(0,0,0,.22);
}
.rt-home-hero__copy{min-width:0}
.rt-home-hero__title{margin:0}
.rt-home-hero__subtitle{
  margin-top:8px;
  max-width:760px;
  color:color-mix(in srgb, var(--rt-muted) 82%, var(--rt-text));
  line-height:1.55;
}
.rt-home-hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
}
.rt-archive-hero__content{min-width:0;}
.rt-archive-hero__kicker{
  margin:0 0 8px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:color-mix(in srgb, var(--rt-muted) 84%, var(--rt-text));
}
.rt-archive-hero__title{
  margin:0;
}
.rt-archive-hero__subtitle{
  margin-top:8px;
  max-width:760px;
  color:color-mix(in srgb, var(--rt-muted) 82%, var(--rt-text));
  line-height:1.55;
}
.rt-archive-hero__count{
  display:grid;
  gap:2px;
  min-width:110px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid color-mix(in srgb, var(--rt-border) 80%, transparent);
  background:color-mix(in srgb, var(--rt-surface) 72%, transparent);
  text-align:right;
}
.rt-archive-hero__count-num{
  font-size:24px;
  font-weight:800;
  line-height:1;
}
.rt-archive-hero__count-label{
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--rt-muted);
}
.rt-archive-rail{
  margin-top:4px;
}
.rt-archive-grid-section{
  margin-top:6px;
}
.rt-archive-grid-section .rt-section-head{
  margin-bottom:14px;
}
.rt-home-featured-block .rt-section-head,
.rt-home-section .rt-section-head{
  margin-bottom:14px;
}
.rt-home-section{
  padding-top:6px;
}
.rt-home-section-trending .rt-section-head .rt-section-sub{
  max-width:46ch;
}
.rt-empty{
  padding:18px;
  border:1px solid color-mix(in srgb, var(--rt-border) 82%, transparent);
  border-radius:16px;
  background:color-mix(in srgb, var(--rt-surface) 78%, transparent);
  color:var(--rt-muted);
}

@media (max-width: 760px){
  .rt-archive-hero{
    grid-template-columns:minmax(0, 1fr);
    padding:16px 14px;
  }
  .rt-home-hero{
    grid-template-columns:minmax(0, 1fr);
    padding:16px 14px;
  }
  .rt-archive-hero__count{
    text-align:left;
    min-width:0;
    justify-self:start;
  }
  .rt-home-hero__meta{
    justify-content:flex-start;
  }
  .rt-featured-rail{
    gap:12px;
    padding-bottom:8px;
  }
  .rt-featured-rail .rt-video-card{
    width:min(360px, var(--rt-mobile-rail-card-width, 82vw));
  }
}


/* Term count styles */
.rt-term-card{display:inline-flex;align-items:center;gap:8px;}
.rt-term-count--subtle{font-size:12px;opacity:.55;font-weight:600;}
.rt-term-count--badge{font-size:11px;opacity:.95;font-weight:700;padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);}
.rt-term-count--paren{font-size:12px;opacity:.55;font-weight:600;}
body.rt-termcount-none .rt-term-count{display:none;}

/* === March 2026 single-player containment fix (stabilized) === */
.rt-watch-grid > * {
  min-width: 0;
}

.rt-single,
.rt-theater,
.rt-player-wrap,
.rt-player,
.rt-embed-frame,
.rt-watch-sidebar,
.rt-watch-sidebar-inner {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.rt-player {
  position: relative;
  overflow: hidden;
}

.rt-embed-frame {
  isolation: isolate;
  contain: layout paint;
  overflow: hidden;
}

.rt-embed-frame,
.rt-embed-frame * {
  box-sizing: border-box;
}

.rt-embed-frame > * {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
}

.rt-embed-frame iframe,
.rt-embed-frame video,
.rt-embed-frame embed,
.rt-embed-frame object,
.rt-embed-frame img,
.rt-embed-frame > * iframe,
.rt-embed-frame > * video,
.rt-embed-frame > * embed,
.rt-embed-frame > * object,
.rt-embed-frame > * img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  display: block !important;
}

.rt-embed-frame img {
  object-fit: cover;
}

.rt-watch-sidebar,
.rt-sidebar-related,
.rt-watch-sidebar-inner {
  min-width: 0;
}

@media (min-width: 981px) {
  .rt-watch-classic .rt-watch-grid {
    grid-template-columns: minmax(0, 1fr) var(--rt-watch-sidebar, 340px);
  }
}
