:root {
  color-scheme: dark;
  --bg: #080b0e;
  --panel: #12171c;
  --panel-2: #171e24;
  --line: #24303a;
  --text: #f6faf8;
  --muted: #97a6ae;
  --soft: #c7d2d9;
  --accent: #75f0c8;
  --accent-2: #a8c7ff;
  --danger: #ff8f8f;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

img {
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) minmax(220px, 330px);
  gap: 20px;
  align-items: center;
  min-height: 72px;
  padding: 0 28px;
  background: rgba(8, 11, 14, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.search {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #06130f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.nav {
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-link {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--soft);
  font-size: 15px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  color: #07130f;
  background: var(--accent);
}

.search {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1216;
  overflow: hidden;
}

.search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.search button {
  height: 100%;
  padding: 0 14px;
  color: #06130f;
  background: var(--accent);
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.shell,
.watch-shell {
  width: min(1500px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.hero h1,
.watch-meta h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.04;
}

.hero p,
.watch-meta p {
  max-width: 740px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px;
}

.hero-stats span,
.info-strip span,
.metric-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1216;
  color: var(--muted);
  font-size: 13px;
}

.hero-stats strong {
  margin-right: 6px;
  color: var(--text);
}

.ad-line {
  margin: 20px 0;
  min-height: 0;
}

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

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.section-head span {
  color: var(--muted);
  font-size: 13px;
}

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

.video-card {
  min-width: 0;
}

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #0d1216;
  border: 1px solid #1e2a32;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .18s ease, opacity .18s ease;
}

.video-card:hover .thumb img {
  transform: scale(1.035);
  opacity: .92;
}

.duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .75);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-copy {
  padding: 10px 1px 0;
}

.card-title {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-copy p {
  display: -webkit-box;
  min-height: 38px;
  margin: 7px 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  gap: 10px;
  color: #7e8c94;
  font-size: 12px;
}

.feed-ad {
  grid-column: span 2;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.side,
.watch-side {
  display: grid;
  gap: 18px;
}

.side-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.side-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.rank {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #1f2a32;
}

.rank:last-child {
  border-bottom: 0;
}

.rank b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #07130f;
  background: var(--accent);
  font-size: 12px;
}

.rank span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.rank em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.watch-shell {
  width: min(1520px, calc(100vw - 40px));
}

.watch-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  padding-top: 20px;
}

.player,
.mock-player,
.player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #000;
}

.player {
  overflow: hidden;
  border: 1px solid #1f2b34;
  box-shadow: var(--shadow);
}

.mock-player {
  position: relative;
}

.mock-player img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: .78;
}

.mock-player button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(117, 240, 200, .45);
  border-radius: 8px;
  background: rgba(8, 11, 14, .78);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.mock-player button span {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--accent);
}

.mock-player.playing img {
  opacity: .45;
}

.timeline {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  overflow: hidden;
}

.timeline i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.watch-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 10px;
  border-bottom: 1px solid var(--line);
}

.watch-meta h1 {
  font-size: clamp(26px, 3vw, 42px);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 250px;
}

.info-strip,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.tag-row a {
  padding: 7px 10px;
  border-radius: 6px;
  background: #102019;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.related {
  margin-top: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.footer {
  padding: 28px 20px 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.footer [data-ad-slot] {
  width: min(720px, 100%);
  margin: 0 auto 18px;
}

.empty,
.error {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

html[data-adsite="video"] .adsdk-label {
  border: 1px solid rgba(117, 240, 200, .22);
  border-radius: 4px;
  background: rgba(8, 11, 14, .72);
  color: var(--accent);
}

html[data-adsite="video"] .adsdk-img {
  border-radius: 6px;
  object-fit: cover;
}

html[data-adsite="video"] .adsdk-banner,
html[data-adsite="video"] .adsdk-native,
html[data-adsite="video"] .adsdk-tiles,
html[data-adsite="video"] .adsdk-tl {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  overflow: hidden;
}

html[data-adsite="video"] .adsdk-native {
  min-height: 124px;
}

html[data-adsite="video"] .adsdk-na-title,
html[data-adsite="video"] .adsdk-tile i {
  color: var(--text);
}

html[data-adsite="video"] .adsdk-na-desc,
html[data-adsite="video"] .adsdk-tg-h {
  color: var(--muted);
}

html[data-adsite="video"] .adsdk-na-spon {
  color: var(--accent);
}

html[data-adsite="video"] .adsdk-na-cta {
  border-radius: 6px;
  background: var(--accent);
  color: #07130f;
}

html[data-adsite="video"] .adsdk-tile img,
html[data-adsite="video"] .adsdk-emoji {
  border: 1px solid #2b3943;
  border-radius: 8px;
  background: #0c1115;
}

html[data-adsite="video"] .adsdk-pill {
  border-color: #2c3b45;
  border-radius: 6px;
  background: #101a16;
  color: var(--accent);
}

html[data-adsite="video"] .adsdk-float,
html[data-adsite="video"] .adsdk-modal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

html[data-adsite="video"] .adsdk-cta {
  background: #0d1216;
  border-top: 1px solid var(--line);
  color: var(--text);
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 20px;
  }

  .layout,
  .watch-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .shell,
  .watch-shell {
    width: calc(100vw - 24px);
    padding-top: 12px;
  }

  .hero,
  .watch-meta {
    display: block;
  }

  .hero-stats,
  .metric-row {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .video-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .feed-ad {
    grid-column: span 2;
  }

  .card-title {
    min-height: 42px;
    font-size: 15px;
  }

  .card-copy p {
    display: none;
  }

  .metric-row {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 12px;
  }

  .video-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .feed-ad {
    grid-column: span 1;
  }
}
