:root {
  --page-bg: #050407;
  --surface: #15111b;
  --surface-soft: #1d1625;
  --surface-raised: #251a2f;
  --panel-light: #f3edf6;
  --text: #f7f1f8;
  --text-soft: #c5b8ca;
  --text-dark: #231929;
  --muted: #8f8196;
  --violet: #8b4dff;
  --violet-deep: #5a2cb9;
  --rose: #e74288;
  --rose-dark: #a51e59;
  --line: rgba(225, 196, 236, 0.18);
  --line-strong: rgba(231, 66, 136, 0.48);
  --gradient: linear-gradient(125deg, #6a35cf 0%, #9c3ab6 48%, #df397f 100%);
  --gradient-soft: linear-gradient(135deg, rgba(106, 53, 207, 0.2), rgba(223, 57, 127, 0.12));
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  --radius-sm: 3px;
  --radius: 7px;
  --radius-lg: 12px;
  --space: 16px;
  --container: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #000;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #f06aa3;
  outline-offset: 3px;
}

.container {
  width: min(100% - 24px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  background: var(--panel-light);
  color: var(--text-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-top: 3px solid transparent;
  border-image: var(--gradient) 1;
  background: #100c15;
}

.header-deck {
  display: grid;
  gap: 12px;
  padding-block: 14px;
}

.brand-panel {
  min-width: 0;
}

.brand {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 11px;
}

.brand-mark,
.footer-seal {
  display: inline-grid;
  width: 47px;
  height: 47px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 6px 24px rgba(153, 48, 177, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  overflow: hidden;
  font-size: clamp(19px, 5vw, 27px);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 4px;
  color: #b6a7bd;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-search {
  min-width: 0;
}

.search-label {
  display: block;
  margin-bottom: 5px;
  color: #d8cbdc;
  font-size: 12px;
  font-weight: 700;
}

.search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(219, 190, 229, 0.28);
  border-radius: var(--radius);
  background: #08070a;
}

.search-control:focus-within {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(231, 66, 136, 0.14);
}

.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 12px;
  background: transparent;
  color: #fff;
}

.search-control input::placeholder {
  color: #786d7d;
}

.search-control button {
  border: 0;
  padding: 0 15px;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.search-control button:hover {
  filter: brightness(1.1);
}

.search-hint {
  display: block;
  margin-top: 4px;
  color: #796e7f;
  font-size: 11px;
}

.access-panel {
  display: none;
}

.hot-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-block: 9px 11px;
}

.hot-strip__label {
  border-left: 3px solid var(--rose);
  padding-left: 7px;
  color: #f1dbe6;
  font-size: 12px;
  font-weight: 800;
}

.hot-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  min-width: 0;
}

.hot-strip__links a {
  max-width: 100%;
  overflow: hidden;
  color: #ad9bb5;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-strip__links a:hover {
  color: #fff;
}

.sponsor-banner,
.sponsor-banner.container {
  display: grid;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 2px 0 !important;
  padding: 0 !important;
  gap: 2px 6px;
  grid-template-columns: minmax(0, 1fr);
}

.sponsor-banner__item,
.sponsor-banner__item a,
.sponsor-banner__item img,
.sponsor-banner a,
.sponsor-banner img {
  width: 100%;
  height: 100%;
}

.sponsor-banner__item img,
.sponsor-banner img {
  display: block;
  border-radius: 2px;
  object-fit: fill;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-block: 2px;
  background: #08070a;
}

.category-nav a {
  display: grid;
  width: 100%;
  min-height: 42px;
  place-items: center;
  border: 1px solid #281e31;
  padding: 7px 5px;
  background: #17111d;
  color: #d7cadc;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.category-nav a:hover,
.category-nav a:focus-visible {
  border-color: var(--rose);
  background: #26172d;
  color: #fff;
}

.category-nav__home {
  background: var(--gradient) !important;
  color: #fff !important;
}

.page-main {
  padding-block: 18px 24px;
}

.content-section,
.catalog-section,
.search-results,
.related-section {
  margin-top: 22px;
}

.content-section:first-child {
  margin-top: 0;
}

.section-heading {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 11px;
  margin-bottom: 12px;
}

.section-heading h1,
.section-heading h2,
.catalog-intro h1,
.catalog-toolbar h2,
.search-summary h1,
.watch-heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 5.7vw, 32px);
  line-height: 1.16;
}

.section-heading p,
.catalog-intro p,
.watch-heading p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.section-index {
  flex: 0 0 auto;
  color: rgba(231, 66, 136, 0.7);
  font-family: Georgia, serif;
  font-size: 34px;
  font-style: italic;
  line-height: 0.9;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #d264aa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.heading-badge {
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 9px;
  color: #ed8bb4;
  font-size: 11px;
  font-weight: 800;
}

.section-heading--split,
.section-heading--search {
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.section-heading--split p,
.section-heading--search p,
.section-heading--related p,
.section-heading--rail p {
  display: none;
}

.curated-section {
  border-block: 1px solid rgba(205, 167, 218, 0.17);
  padding-block: 17px;
  background: linear-gradient(90deg, rgba(103, 47, 150, 0.1), rgba(231, 66, 136, 0.06), transparent);
}

.latest-section {
  position: relative;
  border-left: 3px solid #743acb;
  padding-left: 11px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 8px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.video-grid:empty::before {
  display: grid;
  min-height: 150px;
  grid-column: 1 / -1;
  place-items: center;
  border: 1px dashed rgba(210, 176, 222, 0.25);
  border-radius: var(--radius);
  background: rgba(28, 21, 35, 0.72);
  color: var(--muted);
  content: attr(data-empty-label);
  text-align: center;
}

.video-card {
  min-width: 0;
  height: 100%;
  border: 1px solid #2c2134;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.video-card > a {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
}

.video-card:hover {
  border-color: rgba(222, 64, 134, 0.64);
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.36);
  transform: translateY(-2px);
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: #0b090d;
}

.video-thumb::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 7, 20, 0.65), transparent 48%);
  content: "";
  pointer-events: none;
}

.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.video-card:hover .video-thumb img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.025);
}

.video-status {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  max-width: calc(100% - 42px);
  overflow: hidden;
  border-left: 3px solid #f269a4;
  border-radius: 1px;
  padding: 3px 6px;
  background: rgba(19, 10, 23, 0.82);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-symbol {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(71, 30, 79, 0.78);
  backdrop-filter: blur(3px);
}

.play-symbol::after {
  position: absolute;
  top: 50%;
  left: 53%;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #fff;
  content: "";
  transform: translate(-42%, -50%);
}

.video-info {
  display: flex;
  min-height: 72px;
  flex: 1;
  flex-direction: column;
  padding: 9px 9px 10px;
}

.video-info h3 {
  display: -webkit-box;
  min-width: 0;
  min-height: 2.8em;
  max-height: 2.8em;
  overflow: hidden;
  margin: 0;
  color: #f4edf6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-kicker,
.video-footnote {
  display: block;
  overflow: hidden;
  margin-bottom: 4px;
  color: #a675bb;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-footnote {
  margin: auto 0 0;
  padding-top: 6px;
  color: #8d788f;
}

.video-card--ranked .video-info {
  border-top: 2px solid transparent;
  border-image: var(--gradient) 1;
}

.video-card--curated {
  background: #eee7f1;
}

.video-card--curated .video-info h3 {
  color: var(--text-dark);
}

.video-card--curated .video-footnote {
  color: #794b86;
}

.video-card--latest .video-info {
  background: linear-gradient(145deg, #17111d, #211629);
}

.catalog-intro {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.catalog-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.catalog-stats div {
  min-width: 0;
  border: 1px solid rgba(207, 173, 220, 0.22);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--gradient-soft);
}

.catalog-stats dt {
  color: #aa9bae;
  font-size: 11px;
}

.catalog-stats dd {
  overflow: hidden;
  margin: 2px 0 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.catalog-toolbar > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.catalog-toolbar h2 {
  font-size: 20px;
}

.toolbar-number {
  color: var(--rose);
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 800;
}

.sort-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px;
  background: #120e17;
}

.sort-panel a,
.sort-panel button {
  display: inline-flex;
  margin: 2px;
  border: 1px solid #3a2b43;
  border-radius: 3px;
  padding: 6px 9px;
  background: #211829;
  color: #c9baca;
  cursor: pointer;
  font-size: 12px;
}

.sort-panel a:hover,
.sort-panel button:hover,
.sort-panel .active,
.sort-panel .current {
  border-color: var(--rose);
  background: #3a1b37;
  color: #fff;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.page-link {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid #3a2d42;
  border-radius: 4px;
  padding: 5px 9px;
  background: #18121e;
  color: #c9bbce;
  font-size: 13px;
  font-weight: 700;
}

.page-link:hover,
.page-link.current,
.page-link.active,
.page-link.on {
  border-color: transparent;
  background: var(--gradient);
  color: #fff;
}

.search-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(217, 179, 229, 0.2);
  border-left: 4px solid var(--rose);
  padding: 13px;
  background: linear-gradient(105deg, #21172a, #130f18);
}

.search-summary__mark {
  color: rgba(226, 65, 136, 0.65);
  font-family: Georgia, serif;
  font-size: 48px;
  font-style: italic;
  line-height: 1;
}

.search-summary h1 {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(20px, 5vw, 30px);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-summary p {
  margin: 5px 0 0;
  color: var(--text-soft);
}

.search-summary strong {
  color: #ef76aa;
}

.watch-section {
  border-top: 1px solid rgba(229, 63, 135, 0.55);
  padding-top: 13px;
}

.watch-heading {
  max-width: 960px;
  margin: 0 auto 12px;
}

.watch-heading__label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  color: #d793b5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(231, 66, 136, 0.13);
}

.watch-heading h1 {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(20px, 5vw, 30px);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.player-shell {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 540px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-inline: auto;
  border: 1px solid #4b3054;
  border-radius: var(--radius-sm);
  background: #000;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  overscroll-behavior: auto;
}

.player-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
}

.video-actions-panel {
  width: 100%;
  max-width: 960px;
  min-height: 42px;
  margin: 8px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: #17111d;
}

.video-actions-panel a,
.video-actions-panel button {
  margin: 2px 5px 2px 0;
  border: 1px solid #49344f;
  border-radius: 3px;
  padding: 6px 10px;
  background: #25192c;
  color: #eadfec;
  cursor: pointer;
}

.video-actions-panel a:hover,
.video-actions-panel button:hover {
  border-color: var(--rose);
  color: #fff;
}

.related-section {
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.site-footer {
  border-top: 1px solid rgba(208, 169, 221, 0.2);
  background: #0d0a10;
}

.footer-grid {
  display: grid;
  gap: 18px;
  padding-block: 21px;
}

.footer-identity {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-identity h2,
.friend-section h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 16px;
}

.footer-identity p {
  max-width: 620px;
  margin: 0;
  color: #998b9f;
  font-size: 12px;
}

.friend-section {
  border-left: 2px solid #5f3496;
  padding-left: 12px;
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
}

.friend-links a {
  max-width: 100%;
  overflow: hidden;
  color: #b7a7bd;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-links a:hover {
  color: #ef76aa;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  border-top: 1px solid #211927;
  padding-block: 12px;
  color: #716777;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.footer-bottom p {
  margin: 0;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
  background: #030204;
}

.error-main {
  width: min(100%, 680px);
}

.error-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(221, 183, 233, 0.23);
  border-top: 3px solid transparent;
  border-image: var(--gradient) 1;
  padding: clamp(25px, 7vw, 54px);
  background: linear-gradient(135deg, #211629, #100c14 72%);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-code {
  color: rgba(226, 62, 133, 0.18);
  font-family: Georgia, serif;
  font-size: clamp(86px, 30vw, 180px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.75;
}

.error-panel h1 {
  margin: 15px 0 8px;
  font-size: clamp(28px, 8vw, 46px);
}

.error-panel p {
  max-width: 480px;
  margin: 0 auto;
  color: #b8a9be;
}

.error-home {
  display: inline-flex;
  margin-top: 20px;
  border-radius: 4px;
  padding: 10px 18px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
}

.error-panel small {
  display: block;
  margin-top: 20px;
  color: #74677a;
  letter-spacing: 0.1em;
}

@media (min-width: 520px) {
  .category-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-grid {
    gap: 14px 11px;
  }

  .video-info {
    min-height: 78px;
    padding: 10px 11px 11px;
  }

  .video-info h3 {
    font-size: 14px;
  }
}

@media (min-width: 641px) {
  .sponsor-banner,
  .sponsor-banner.container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .container {
    width: min(100% - 36px, var(--container));
  }

  .header-deck {
    grid-template-columns: minmax(220px, 0.8fr) minmax(340px, 1.5fr);
    align-items: center;
  }

  .access-panel {
    display: none;
  }

  .category-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-heading--split p,
  .section-heading--search p,
  .section-heading--related p,
  .section-heading--rail p {
    display: block;
    max-width: 330px;
    margin-left: auto;
    text-align: right;
  }

  .catalog-intro {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.48fr);
    align-items: center;
  }

  .catalog-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .sort-panel {
    justify-self: end;
  }

  .footer-grid {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  }
}

@media (min-width: 900px) {
  .header-deck {
    grid-template-columns: minmax(240px, 0.8fr) minmax(380px, 1.35fr) minmax(170px, 0.45fr);
    gap: 22px;
    padding-block: 17px;
  }

  .access-panel {
    display: grid;
    justify-items: end;
    border-right: 3px solid var(--rose);
    padding-right: 10px;
  }

  .access-panel span {
    color: #e55b97;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.2em;
  }

  .access-panel strong {
    color: #fff;
    font-size: 15px;
  }

  .access-panel small {
    color: #897b8e;
    font-size: 10px;
  }

  .category-nav {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .page-main {
    padding-block: 22px 30px;
  }

  .content-section,
  .catalog-section,
  .search-results,
  .related-section {
    margin-top: 28px;
  }

  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px 13px;
  }

  .section-heading--offset {
    margin-left: 22px;
    border-left: 1px solid rgba(231, 66, 136, 0.45);
    padding-left: 14px;
  }

  .latest-section {
    padding-left: 18px;
  }
}

@media (min-width: 1200px) {
  .category-nav {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .video-grid--curated {
    gap: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .video-card:hover,
  .video-card:hover .video-thumb img {
    transform: none;
  }
}
