/* ==========================================================================
   PovVod — tube-style layout, dark theme
   ========================================================================== */

:root {
  --bg: #0a0a0f;
  --bg-elev: #111118;
  --card: #14141d;
  --card-hover: #1a1a25;
  --line: #23232f;
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f4f4f7;
  --muted: #9b9bad;
  --muted-2: #6c6c7c;
  --accent: #ff2e63;
  --accent-2: #ff8a3d;
  --accent-soft: rgba(255, 46, 99, 0.14);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 500px at 15% -10%, rgba(255, 46, 99, 0.09), transparent 60%),
    radial-gradient(900px 420px at 90% -15%, rgba(255, 138, 61, 0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.82);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.logo-accent { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.18s, background 0.18s;
}

.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.main-nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0;
  width: 340px;
  max-width: 42vw;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 6px 0 16px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.search:focus-within {
  border-color: rgba(255, 46, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 46, 99, 0.12);
}

.search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 14px;
  padding: 9px 0;
}

.search input::placeholder { color: var(--muted-2); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.search button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: filter 0.18s, transform 0.18s;
}

.search button:hover { filter: brightness(1.12); }
.search button:active { transform: scale(0.94); }

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
}

.lang-select:hover,
.lang-select:focus-visible {
  color: var(--text);
  border-color: rgba(255, 46, 99, 0.55);
  outline: none;
}

.age-pill {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 26px;
  border: 1px solid rgba(255, 46, 99, 0.5);
  border-radius: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ---------------------------------------------------------- category bar */

.category-bar {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(17, 17, 24, 0.6);
}

.category-bar-shell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-bar-inner {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.category-bar-inner::-webkit-scrollbar { display: none; }

.cat-scroll-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.cat-scroll {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  transition: color 0.18s, border-color 0.18s;
}

.cat-scroll:hover {
  color: var(--text);
  border-color: #35354a;
}

.cat-scroll.is-off {
  visibility: hidden;
  pointer-events: none;
}

.cat-scroll[hidden] { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.chip:hover { color: var(--text); border-color: #35354a; }

.chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff5b3d);
  border-color: transparent;
}

.chip small {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
}

.chip.active small { color: rgba(255, 255, 255, 0.75); }

/* ------------------------------------------------------------------ layout */

#app { padding-top: 26px; padding-bottom: 56px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.page-head h1 {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.page-head .page-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 5px;
}

.sort-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex: 0 0 auto;
}

.sort-tabs a {
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.sort-tabs a:hover { color: var(--text); }
.sort-tabs a.active { background: var(--card-hover); color: var(--text); }

/* -------------------------------------------------------------------- grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 20px 18px;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(145deg, #1b1b26, #101017);
  border: 1px solid var(--line-soft);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.22s, border-color 0.22s;
}

.card:hover .card-thumb {
  transform: translateY(-3px);
  border-color: rgba(255, 46, 99, 0.35);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

.card:hover .card-thumb img { transform: scale(1.055); }

.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
  opacity: 0.9;
  pointer-events: none;
}

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.card-play span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 46, 99, 0.92);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 46, 99, 0.35);
  backdrop-filter: blur(4px);
}

.card:hover .card-play { opacity: 1; }

.badge {
  position: absolute;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.4;
}

.badge.duration {
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.badge.hd {
  left: 8px;
  top: 8px;
  background: var(--accent);
  color: #fff;
}

.badge.type {
  left: 8px;
  top: 8px;
  background: rgba(10, 10, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-body { padding: 9px 2px 0; }

.card-title {
  font-size: 13.8px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.1px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.card:hover .card-title { color: #fff; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 12px;
}


/* ------------------------------------------------------------- pagination */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.pagination a:hover { color: var(--text); border-color: #38384d; }

.pagination .current {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff5b3d);
  border-color: transparent;
}

.pagination .disabled { opacity: 0.35; pointer-events: none; }
.pagination .gap { border: 0; background: transparent; min-width: 20px; }

/* ----------------------------------------------------------------- sidebar */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.widget {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px;
}

.widget h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
  margin-bottom: 12px;
}

.widget h3::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
}

.widget-list { display: flex; flex-direction: column; gap: 2px; }

.widget-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  margin: 0 -9px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #cfcfda;
  transition: background 0.16s, color 0.16s;
}

.widget-list a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

.widget-list a.active { color: #fff; background: rgba(255, 46, 99, 0.12); }
.widget-list a.active .count { color: var(--accent); }

.widget-list .count {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 2px 8px;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.16s, border-color 0.16s;
}

.tag:hover { color: var(--text); border-color: rgba(255, 46, 99, 0.45); }
.tag b { font-size: 10.5px; color: var(--muted-2); font-weight: 700; }

.sidebar-cta {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 138, 61, 0.22), transparent 55%),
    linear-gradient(140deg, rgba(255, 46, 99, 0.2), rgba(20, 20, 29, 0.6));
  border: 1px solid rgba(255, 46, 99, 0.3);
}

.sidebar-cta h4 { font-size: 15px; margin-bottom: 6px; }
.sidebar-cta p { font-size: 12.5px; color: #c9c9d4; margin-bottom: 12px; }

.sidebar-cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 12.5px;
  font-weight: 700;
}

/* --------------------------------------------------------------- watch page */

.watch { max-width: 1180px; margin: 0 auto; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.crumbs a:hover { color: var(--text); }
.crumbs span { opacity: 0.5; }

.watch-player {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.watch-player video {
  width: 100%;
  max-height: 74vh;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}

.watch-player img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #050508;
  cursor: zoom-in;
}

.watch-source {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #ff5b3d);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: filter 0.18s, transform 0.18s;
}

.watch-source:hover { filter: brightness(1.12); }
.watch-source:active { transform: scale(0.98); }

.watch-title {
  font-size: 25px;
  line-height: 1.22;
  letter-spacing: -0.6px;
  margin: 20px 0 10px;
}

.watch-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: #cfcfda;
  font-size: 12px;
  font-weight: 600;
}

.meta-pill.accent {
  color: var(--accent);
  border-color: rgba(255, 46, 99, 0.4);
  background: var(--accent-soft);
}

button.meta-pill { cursor: pointer; transition: border-color 0.16s, color 0.16s; }
button.meta-pill:hover { border-color: rgba(255, 46, 99, 0.5); color: #fff; }

.watch-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0 6px;
  max-width: 75ch;
}

.watch-tags { margin-top: 16px; }

.watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}

.up-next h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
  margin-bottom: 12px;
}

.mini {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  padding: 7px;
  margin: 0 -7px;
  border-radius: 10px;
  transition: background 0.16s;
}

.mini:hover { background: rgba(255, 255, 255, 0.04); }

.mini-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  overflow: hidden;
  background: #15151f;
}

.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }

.mini-thumb .badge { font-size: 10px; padding: 2px 5px; right: 5px; bottom: 5px; }

.mini-title {
  font-size: 12.8px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-meta { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }

p.mini-meta { font-size: 13px; line-height: 1.5; }

.related { margin-top: 38px; }

.related h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

/* -------------------------------------------------------------- empty state */

.empty {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
}

.empty-icon { font-size: 34px; margin-bottom: 10px; opacity: 0.6; }
.empty h2 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 13.5px; }

.not-found { padding: 60px 0; }

/* ---------------------------------------------------------------- skeletons */

.skeleton {
  background: linear-gradient(100deg, #15151f 30%, #1e1e2b 50%, #15151f 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite linear;
  border-radius: 8px;
}

@keyframes shimmer {
  from { background-position: 140% 0; }
  to { background-position: -140% 0; }
}

.skeleton-line { height: 18px; margin-bottom: 20px; }
.w40 { width: 40%; }
.skeleton-card { border-radius: var(--radius-sm); overflow: hidden; }
.skeleton-card .thumb { aspect-ratio: 16 / 9; }
.skeleton-card .line { height: 12px; margin: 12px 4px 0; }
.skeleton-card .line.short { width: 60%; }

/* ------------------------------------------------------------------ footer */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(17, 17, 24, 0.55);
  padding: 40px 0 26px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 30px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 13px;
  max-width: 34ch;
  margin-top: 10px;
}

.footer-col { display: flex; flex-direction: column; gap: 8px; }

.footer-col h4 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted-2);
  margin-bottom: 4px;
}

.footer-col a { font-size: 13.5px; color: #cfcfda; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 12px;
}

.footer-age { color: #8a8a9a; }

/* ---------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(5, 5, 8, 0.94);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------------------------------------------------------------- age gate */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(10px);
}

.age-gate[hidden] { display: none; }

.age-card {
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border-radius: 18px;
  background: linear-gradient(160deg, #171722, #101018);
  border: 1px solid rgba(255, 46, 99, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.age-logo { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 16px; }

.age-card h2 { font-size: 22px; letter-spacing: -0.5px; margin-bottom: 10px; }

.age-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.age-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 22px 0 14px;
}

.age-actions button,
.age-actions a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid transparent;
}

.age-actions button {
  background: linear-gradient(135deg, var(--accent), #ff5b3d);
  color: #fff;
}

.age-actions button:hover { filter: brightness(1.1); }

.age-actions a {
  border-color: var(--line);
  color: var(--muted);
  background: transparent;
}

.age-actions a:hover { color: #fff; border-color: #3a3a4f; }

.age-note { font-size: 11.5px !important; color: var(--muted-2) !important; }
.age-note a { color: var(--accent); }

/* ------------------------------------------------------------- legal pages */

.legal {
  max-width: 780px;
  padding: 38px 0 24px;
}

.legal-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -1px;
  margin: 8px 0 6px;
}

.legal-updated {
  color: var(--muted-2);
  font-size: 12.5px;
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.legal p { margin: 8px 0; }

.legal ul {
  margin: 8px 0;
  padding-left: 22px;
}

.legal li { margin: 5px 0; }

.legal a { color: var(--accent); }

.legal strong { color: var(--text); }

.legal-note {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.legal-back {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1120px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
  }
  .sidebar-cta { display: none; }
  .watch-grid { grid-template-columns: minmax(0, 1fr); }
  .up-next { order: 2; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .search { max-width: none; width: auto; flex: 1; min-width: 0; }
  .header-row { gap: 14px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .logo { font-size: 17px; }
  .age-pill { display: none; }
  .category-bar-inner { gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .chip { gap: 5px; padding: 6px 10px; font-size: 12px; }
  .chip small { font-size: 10px; }
  .cat-scroll { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .card-title { font-size: 12.5px; }
  .card-meta { font-size: 11px; }
  .sidebar { grid-template-columns: 1fr; }
  .watch-title { font-size: 20px; }
  .badge.hd { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
