:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-2: #201f1f;
  --surface-3: #2a2a2a;
  --text: #f3efea;
  --muted: #d0c5af;
  --gold: #d4af37;
  --gold-soft: #f2ca50;
  --red: #4a0e0e;
  --line: rgba(255, 255, 255, 0.1);
  --max: 1520px;
  font-family: Inter, "Noto Sans TC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(74, 14, 14, 0.52), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(69, 47, 11, 0.48), transparent 24rem),
    linear-gradient(180deg, #0a0a0a 0%, #131313 48%, #090909 100%);
  color: var(--text);
  min-height: 100vh;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(22px);
}

.brand img {
  width: 182px;
  max-height: 42px;
  display: block;
}

.navlinks {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
}

.navlinks a:hover {
  color: var(--gold-soft);
}

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(360px, 38vw);
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(32, 31, 31, 0.75);
}

.search span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

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

main {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  min-height: 560px;
  align-items: stretch;
}

.hero-copy,
.hero-player,
.ad-placeholder,
.video-card {
  border: 1px solid var(--line);
  background: rgba(19, 19, 19, 0.74);
  backdrop-filter: blur(24px);
  border-radius: 18px;
}

.hero-copy {
  padding: clamp(28px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Montserrat, "Noto Sans TC", sans-serif;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.04;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.summary {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 680px;
}

.hero-actions,
.meta-row,
.chips,
.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-action,
.ghost-action,
.tag-strip button {
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.primary-action {
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #171008;
  font-weight: 900;
}

.ghost-action {
  padding: 12px 22px;
  color: var(--text);
  border-color: rgba(212, 175, 55, 0.34);
  background: rgba(255, 255, 255, 0.05);
}

.meta-row {
  margin-top: 24px;
}

.meta-row span,
.meta-row a,
.chips span,
.chips a,
.tag-strip button {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}

.hero-player {
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(74, 14, 14, 0.72), rgba(19, 19, 19, 0.98));
}

.hero-ad {
  min-height: 520px;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(42, 34, 18, 0.9), rgba(12, 12, 12, 0.98));
}

.hero-ad span {
  color: rgba(242, 202, 80, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-ad strong {
  color: var(--gold-soft);
  font-size: clamp(26px, 3vw, 44px);
}

.hero-ad small {
  color: rgba(208, 197, 175, 0.78);
  font-size: 15px;
}

.ad-slot {
  position: relative;
  display: grid;
  min-height: 96px;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 35%, rgba(212, 175, 55, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(42, 34, 18, 0.9), rgba(12, 12, 12, 0.98));
}

.ad-slot img {
  width: 100%;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
}

.ad-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  color: #171008;
  background: var(--gold);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-empty {
  min-height: inherit;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
}

.ad-empty strong {
  color: var(--gold-soft);
  font-size: clamp(22px, 3vw, 36px);
}

.ad-mobile-top,
.ad-leaderboard,
.ad-inline,
[data-ad-slot] {
  margin-bottom: 24px;
}

.ad-mobile-top {
  display: none;
}

.ad-hero {
  min-height: 100%;
}

.ad-native {
  min-height: 100%;
}

.ad-native strong {
  align-self: end;
  padding: 44px 16px 16px;
  font-size: 18px;
}

.player-shell {
  min-height: 520px;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(420px, 1fr) auto;
  background: #080808;
}

.hero-player iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  background: #080808;
}

.player-fallback-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(8, 8, 8, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.player-empty {
  height: 100%;
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.2), transparent 16rem),
    linear-gradient(135deg, rgba(74, 14, 14, 0.72), rgba(19, 19, 19, 0.96));
}

.player-empty img {
  width: 72px;
}

.ad-placeholder {
  margin: 28px auto;
  min-height: 90px;
  display: grid;
  place-items: center;
  color: rgba(208, 197, 175, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.ad-placeholder strong {
  color: rgba(242, 202, 80, 0.64);
}

.tag-strip {
  margin: 24px 0 34px;
}

.tag-strip button.active,
.tag-strip button:hover {
  color: #161006;
  background: var(--gold);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
}

.section-heading > span {
  color: var(--muted);
  font-weight: 800;
}

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

.video-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.52);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}

.thumb img,
.poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-fallback {
  display: grid;
  place-items: end start;
  padding: 16px;
  font: 900 34px/1 Montserrat, sans-serif;
  color: rgba(255, 255, 255, 0.76);
}

.poster-fallback.gold { background: linear-gradient(135deg, #3a2a06, #d4af37); }
.poster-fallback.sangria { background: linear-gradient(135deg, #170707, #741818); }
.poster-fallback.violet { background: linear-gradient(135deg, #120920, #49306b); }
.poster-fallback.smoke { background: linear-gradient(135deg, #101010, #4a4a4a); }
.poster-fallback.ember { background: linear-gradient(135deg, #221006, #9a4515); }
.poster-fallback.midnight { background: linear-gradient(135deg, #070b19, #18376b); }

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #110d05;
  background: var(--gold);
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin-bottom: 7px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  color: var(--muted);
  font-size: 13px;
}

.chips {
  gap: 6px;
}

.chips span {
  padding: 5px 8px;
}

.empty {
  color: var(--muted);
  grid-column: 1 / -1;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 28px;
}

footer img {
  width: 28px;
}

.seo-static-links {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.seo-detail {
  max-width: 1080px;
  margin: 0 auto;
}

.seo-detail .chips {
  margin: 18px 0 24px;
}

.seo-player {
  margin: 24px 0;
  min-height: 520px;
}

@media (max-width: 1040px) {
  .hero,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy,
  .hero-player {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand img {
    width: 148px;
  }

  .navlinks {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .search {
    min-width: 100%;
    order: 2;
  }

  main {
    width: min(100% - 24px, var(--max));
    padding-top: 20px;
    padding-bottom: 96px;
  }

  .hero {
    display: block;
    min-height: auto;
  }

  .hero-player {
    margin-top: 16px;
  }

  .ad-mobile-top {
    display: grid;
    margin-bottom: 18px;
  }

  .ad-leaderboard {
    display: none;
  }

  .ad-slot {
    margin-bottom: 16px;
  }

  .hero-player iframe,
  .player-empty {
    min-height: 260px;
  }

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