/* tube2 theme — "REEL"-inspired dark cinematic with red accent.
   Scoped via body.t2-theme. No sidebar; sticky top nav; auto-fill grid; serif headings. */

body.t2-theme {
  --bg:        #0a0a0c;
  --bg-2:      #101013;
  --surface:   #141418;
  --surface-2: #1c1c22;
  --border:    #2a2a32;
  --border-2:  #3a3a44;
  --text:      #f4f4f6;
  --text-dim:  #9a9aa3;
  --text-mute: #62626c;
  --accent:    #ff4d4d;
  --accent-ink:#ffffff;

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 14px;

  --gap: 24px;
  --card-min: 320px;
  --thumb-ratio: 56.25%;

  --font-sans:  "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

body.t2-theme *,
body.t2-theme *::before,
body.t2-theme *::after { box-sizing: border-box; }

body.t2-theme a { color: inherit; text-decoration: none; }
body.t2-theme img { display: block; max-width: 100%; }
body.t2-theme ::selection { background: var(--accent); color: #fff; }

body.t2-theme button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---------- Sticky top nav ---------- */
body.t2-theme .t2-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 32px;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
body.t2-theme .t2-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
  flex: 0 0 auto;
}
body.t2-theme .t2-brand .t2-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-4px);
}
body.t2-theme .t2-brand em {
  font-style: italic;
  color: var(--text-dim);
  font-size: 13px;
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-left: 4px;
}
body.t2-theme .t2-brand-img { height: 32px; max-width: 220px; object-fit: contain; }

body.t2-theme .t2-search {
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.18s, background 0.18s;
}
body.t2-theme .t2-search:focus-within {
  border-color: var(--border-2);
  background: var(--surface-2);
}
body.t2-theme .t2-search svg { color: var(--text-mute); flex: 0 0 auto; }
body.t2-theme .t2-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
body.t2-theme .t2-search input::placeholder { color: var(--text-mute); }
body.t2-theme .t2-search button {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  flex: 0 0 auto;
}
body.t2-theme .t2-search button:hover { color: var(--text); }

body.t2-theme .t2-burger {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  flex: 0 0 auto;
}
body.t2-theme .t2-burger:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Page containers ---------- */
body.t2-theme .t2-home {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px;
}
body.t2-theme .t2-watch {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px 64px;
}
body.t2-theme .t2-legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}

/* ---------- Hero strip (home) ---------- */
body.t2-theme .t2-hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
  padding-bottom: 8px;
}
body.t2-theme .t2-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
body.t2-theme .t2-hero-eyebrow b {
  color: var(--accent);
  font-weight: 500;
}
body.t2-theme .t2-hero-eyebrow .t2-rule {
  flex: 0 0 36px;
  height: 1px;
  background: var(--border-2);
}
body.t2-theme .t2-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
body.t2-theme .t2-hero h1 em {
  font-style: italic;
  color: var(--text-dim);
}
body.t2-theme .t2-hero-lede {
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
  margin: 0;
}

/* ---------- Chips ---------- */
body.t2-theme .t2-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
body.t2-theme .t2-chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
body.t2-theme .t2-chip:hover { background: var(--surface-2); color: var(--text); }
body.t2-theme .t2-chip.on {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ---------- Section header ---------- */
body.t2-theme .t2-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
body.t2-theme .t2-section-head h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}
body.t2-theme .t2-section-head h2 em { font-style: italic; color: var(--text-dim); }
body.t2-theme .t2-section-head .t2-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Auto-fill grid ---------- */
body.t2-theme .t2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
  gap: var(--gap);
  row-gap: calc(var(--gap) + 12px);
}

/* ---------- Card ---------- */
body.t2-theme .t2-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

body.t2-theme .t2-thumb {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
body.t2-theme .t2-card:hover .t2-thumb {
  transform: translateY(-2px);
  border-color: var(--border-2);
  box-shadow: 0 16px 40px -16px rgba(255, 77, 77, 0.18), 0 4px 16px rgba(0, 0, 0, 0.4);
}
body.t2-theme .t2-thumb-inner {
  position: relative;
  width: 100%;
  padding-top: var(--thumb-ratio);
  overflow: hidden;
}
body.t2-theme .t2-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1);
}
body.t2-theme .t2-card:hover .t2-thumb-img { transform: scale(1.03); }
body.t2-theme .t2-thumb-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
body.t2-theme .t2-thumb-dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 7px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 4px;
  color: #fff;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
body.t2-theme .t2-thumb-q {
  position: absolute;
  left: 10px;
  top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 7px;
  background: rgba(255, 77, 77, 0.85);
  color: #fff;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body.t2-theme .t2-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 0 2px;
}
body.t2-theme .t2-card-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.005em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.t2-theme .t2-card-sub {
  font-size: 12.5px;
  color: var(--text-mute);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
body.t2-theme .t2-card-sub .t2-cat { color: var(--text-dim); }
body.t2-theme .t2-card-sub .t2-cat:hover { color: var(--accent); }
body.t2-theme .t2-card-sub .t2-d { color: var(--text-mute); opacity: 0.6; }

/* ---------- Pagination ---------- */
body.t2-theme .t2-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 36px 0 8px;
}
body.t2-theme .t2-pager a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
body.t2-theme .t2-pager a:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
}
body.t2-theme .t2-pager a.on {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ---------- Watch page ---------- */
body.t2-theme .t2-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: 20px;
  transition: color 0.16s;
}
body.t2-theme .t2-back:hover { color: var(--text); }

body.t2-theme .t2-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px -32px rgba(255, 77, 77, 0.18), 0 6px 24px rgba(0, 0, 0, 0.5);
}
body.t2-theme .t2-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

body.t2-theme .t2-watch-meta {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
body.t2-theme .t2-watch-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 0 0 14px;
  text-wrap: balance;
}
body.t2-theme .t2-watch-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
}
body.t2-theme .t2-watch-subline .t2-pip { color: var(--accent); }
body.t2-theme .t2-watch-subline .t2-stat { color: var(--text-dim); }
body.t2-theme .t2-watch-subline a { color: var(--text-dim); }
body.t2-theme .t2-watch-subline a:hover { color: var(--accent); }

body.t2-theme .t2-watch-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
body.t2-theme .t2-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
body.t2-theme .t2-action:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
}
body.t2-theme .t2-action.on {
  background: rgba(255, 77, 77, 0.12);
  color: var(--accent);
  border-color: rgba(255, 77, 77, 0.5);
}

body.t2-theme .t2-divider {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

body.t2-theme .t2-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}
body.t2-theme .t2-related-head h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}
body.t2-theme .t2-related-head h2 em { font-style: italic; color: var(--text-dim); }

body.t2-theme .t2-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  row-gap: 26px;
}
body.t2-theme .t2-related-grid .t2-card-title { font-size: 13.5px; }
body.t2-theme .t2-related-grid .t2-card-sub { font-size: 11.5px; }

/* mini-related rows (mobile-only between ad slots on watch) */
body.t2-theme .t2-mini-related {
  display: none;
  margin: 14px 0;
}
@media (max-width: 760px) {
  body.t2-theme .t2-mini-related {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  body.t2-theme .t2-mini-related .t2-card-title { font-size: 12.5px; }
}

/* ---------- Mimic blocks (image popunder bait) — restyle for tube2 ---------- */
body.t2-theme .mimic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 0;
}
body.t2-theme .mimic-grid .mimic-cell {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
body.t2-theme .mimic-cell-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
body.t2-theme .mimic-cell-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1);
}
body.t2-theme .mimic-cell:hover .mimic-cell-thumb img { transform: scale(1.03); }
body.t2-theme .mimic-cell-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
body.t2-theme .mimic-cell-dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  backdrop-filter: blur(4px);
}
body.t2-theme .mimic-cell-title {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text);
  text-align: left;
  min-height: 0;
}

/* ---------- Ad-slot ---------- */
body.t2-theme .ad-slot {
  margin: 14px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}
body.t2-theme .ad-slot:empty { display: none; }

/* ---------- Legal article ---------- */
body.t2-theme .t2-article {
  padding: 0;
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 15.5px;
}
body.t2-theme .t2-article h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 20px;
  text-wrap: balance;
}
body.t2-theme .t2-article h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 32px 0 12px;
}
body.t2-theme .t2-article p { margin: 0 0 16px; max-width: 64ch; }
body.t2-theme .t2-article a { color: var(--accent); }
body.t2-theme .t2-article a:hover { color: var(--text); }

/* ---------- Overlay modal carryover ---------- */
body.t2-theme .tube-overlay {
  border-radius: var(--r-md);
  box-shadow: 0 24px 80px -32px rgba(255, 77, 77, 0.32), 0 6px 24px rgba(0, 0, 0, 0.6);
}
body.t2-theme .tube-overlay .overlay-close {
  background: #000;
  border-color: var(--border-2);
  color: #fff;
}
body.t2-theme .tube-overlay .overlay-close:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Footer ---------- */
body.t2-theme .t2-foot {
  margin-top: 80px;
  padding: 48px 32px 32px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
body.t2-theme .t2-foot-brand {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-dim);
}
body.t2-theme .t2-foot-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
body.t2-theme .t2-foot-nav a:hover { color: var(--text); }
body.t2-theme .t2-foot-note {
  flex-basis: 100%;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  body.t2-theme .t2-home { padding: 20px; }
  body.t2-theme .t2-watch { padding: 16px 20px 48px; }
  body.t2-theme .t2-legal { padding: 28px 20px 56px; }
  body.t2-theme .t2-nav { padding: 12px 16px; gap: 12px; }
  body.t2-theme .t2-brand em { display: none; }
  body.t2-theme .t2-watch-meta { grid-template-columns: 1fr; }
  body.t2-theme { --card-min: 240px; --gap: 18px; }
}

@media (max-width: 640px) {
  body.t2-theme { --card-min: 180px; }
  body.t2-theme .t2-search input { font-size: 13px; }
}
