/* teal-wave · 青绿浪潮 · site 25 */
:root {
  --tw-primary: #14b8a6;
  --tw-primary-dark: #0d9488;
  --tw-cta: #f59e0b;
  --tw-cta-dark: #d97706;
  --tw-hot: #f59e0b;
  --tw-bg: #f0fdfa;
  --tw-bg-deep: #042f2e;
  --tw-surface: #ffffff;
  --tw-ink: #134e4a;
  --tw-muted: #5f7a78;
  --tw-line: #99f6e4;
  --tw-shadow: 0 14px 44px rgba(20, 184, 166, 0.14);
  --tw-radius: 12px;
  --tw-radius-lg: 20px;
}

html { scroll-behavior: smooth; }

.tw-body {
  margin: 0;
  min-height: 100vh;
  background: var(--tw-bg);
  color: var(--tw-ink);
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.tw-body a { text-decoration: none; transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.tw-body img { display: block; max-width: 100%; height: auto; }
.tw-body img.image-off { opacity: 0; }

/* ── Header: centered brand + tab nav ── */
.tw-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--tw-bg-deep);
  box-shadow: 0 6px 28px rgba(4, 47, 46, 0.35);
}

.tw-header__brand {
  display: flex;
  justify-content: center;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(153, 246, 228, 0.15);
}

.tw-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff !important;
}

.tw-brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--tw-primary), var(--tw-accent));
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35), 0 10px 24px rgba(20, 184, 166, 0.45);
}

.tw-brand__text { display: flex; flex-direction: column; gap: 2px; }
.tw-brand__name { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; }
.tw-brand__tag { font-size: 12px; font-weight: 600; color: #99f6e4; opacity: 0.9; }
.tw-brand--sm .tw-brand__mark { width: 32px; height: 32px; font-size: 0.85rem; }
.tw-brand--sm .tw-brand__name { font-size: 1rem; }

.tw-header__bar {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 20px 14px;
}

.tw-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tw-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #ccfbf1 !important;
  border-bottom: 3px solid transparent;
}

.tw-nav a:hover {
  color: #fff !important;
  background: rgba(20, 184, 166, 0.2);
  border-bottom-color: var(--tw-cta);
}

.tw-nav a[aria-current="page"] {
  color: #fff !important;
  background: rgba(20, 184, 166, 0.35);
  border-bottom-color: var(--tw-primary);
}

.tw-search {
  display: flex;
  align-items: stretch;
  border: 2px solid rgba(153, 246, 228, 0.35);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  min-width: 200px;
}

.tw-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.tw-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 9px 14px;
  font-size: 14px;
  color: #fff;
  background: transparent;
}

.tw-search input::placeholder { color: rgba(204, 251, 241, 0.55); }

.tw-search__btn {
  border: 0;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--tw-cta), var(--tw-cta-dark));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.tw-search__btn:hover { filter: brightness(1.08); }

.tw-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 2px solid rgba(153, 246, 228, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.tw-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--tw-primary);
  border-radius: 2px;
}

/* ── Main ── */
.tw-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

/* ── Hero: centered brand first screen ── */
.tw-hero {
  position: relative;
  margin-bottom: 32px;
  padding: 48px 28px 52px;
  border-radius: var(--tw-radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #042f2e 0%, #0f766e 55%, #14b8a6 100%);
  text-align: center;
  box-shadow: var(--tw-shadow);
}

.tw-hero__wave {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(245, 158, 11, 0.25) 0%, transparent 55%),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.tw-hero__core { position: relative; max-width: 640px; margin: 0 auto; }

.tw-hero__eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
}

.tw-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4.5vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}

.tw-hero__lead {
  margin: 0 auto 26px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.75;
  color: #ccfbf1;
}

.tw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 2px solid transparent;
}

.tw-btn--cta {
  background: linear-gradient(135deg, var(--tw-cta), var(--tw-cta-dark));
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.4);
}

.tw-btn--cta:hover { transform: translateY(-2px); filter: brightness(1.06); }

.tw-btn--ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
}

.tw-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }

.tw-btn--block { width: 100%; }

/* ── Channel strip ── */
.tw-channels { margin-bottom: 36px; }

.tw-channels__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

/* ── Zones ── */
.tw-zone { margin-bottom: 40px; }

.tw-zone__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tw-line);
}

.tw-zone__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tw-zone__title h2 {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  color: var(--tw-ink);
}

.tw-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--tw-primary) 15%, #fff);
  color: var(--tw-primary-dark);
}

.tw-chip--hot {
  background: color-mix(in srgb, var(--tw-hot) 20%, #fff);
  color: #b45309;
}

.tw-chip--new {
  background: color-mix(in srgb, var(--tw-cta) 18%, #fff);
  color: var(--tw-cta-dark);
}

.tw-more {
  font-size: 14px;
  font-weight: 800;
  color: var(--tw-primary) !important;
  white-space: nowrap;
}

.tw-more:hover { color: var(--tw-cta) !important; }

/* ── Grids ── */
.tw-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

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

.tw-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.tw-rail .tw-card { flex: 0 0 min(160px, 42vw); scroll-snap-align: start; }
.tw-rail .tw-rank { flex: 0 0 min(280px, 85vw); scroll-snap-align: start; }

/* ── Overlay cards ── */
.tw-card {
  border-radius: var(--tw-radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tw-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(20, 184, 166, 0.22);
}

.tw-card__link { display: block; color: inherit !important; }

.tw-card__thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--tw-radius);
  background: linear-gradient(145deg, #ccfbf1, #fef3c7);
}

.tw-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.tw-card:hover .tw-card__thumb img { transform: scale(1.08); }

.tw-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--tw-hot);
  color: #422006;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
  z-index: 2;
}

.tw-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 14px;
  background: linear-gradient(0deg, rgba(4, 47, 46, 0.92) 0%, rgba(4, 47, 46, 0.35) 55%, transparent 100%);
  z-index: 1;
}

.tw-card__title {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tw-card__meta {
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: #99f6e4;
  font-weight: 600;
}

.tw-card__play {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tw-cta), var(--tw-cta-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* ── Rank cards (horizontal) ── */
.tw-rank {
  display: grid;
  grid-template-columns: 36px 72px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--tw-radius);
  background: var(--tw-surface);
  border: 1px solid var(--tw-line);
  box-shadow: 0 4px 16px rgba(19, 78, 74, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tw-rank:hover {
  border-color: var(--tw-primary);
  box-shadow: 0 10px 28px rgba(20, 184, 166, 0.16);
}

.tw-rank__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tw-cta), var(--tw-cta-dark));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.tw-rank__thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.tw-rank__thumb img { width: 100%; height: 100%; object-fit: cover; }

.tw-rank__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tw-rank__title a { color: var(--tw-ink) !important; }
.tw-rank__title a:hover { color: var(--tw-primary) !important; }

.tw-rank__meta {
  margin: 0;
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--tw-muted);
  font-weight: 600;
}

.tw-rank__go {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tw-primary);
  color: #fff !important;
  font-size: 12px;
}

.tw-rank__go:hover { background: var(--tw-cta); }

/* ── Category page ── */
.tw-cat-head { margin-bottom: 24px; }

.tw-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tw-muted);
}

.tw-crumb a { color: var(--tw-primary) !important; }
.tw-crumb--play { margin-bottom: 18px; }

.tw-cat-head h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 900;
  color: var(--tw-ink);
}

.tw-cat-head__desc {
  margin: 0;
  max-width: 680px;
  color: var(--tw-muted);
  line-height: 1.7;
}

.tw-cat-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.tw-cat-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: var(--tw-radius);
  background: var(--tw-surface);
  border: 1px solid var(--tw-line);
  box-shadow: 0 6px 20px rgba(19, 78, 74, 0.06);
}

.tw-cat-sidebar__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--tw-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tw-cat-sidebar input,
.tw-cat-sidebar select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--tw-line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tw-ink);
  background: #fff;
  outline: none;
}

.tw-cat-sidebar input:focus,
.tw-cat-sidebar select:focus { border-color: var(--tw-primary); }

.tw-empty {
  padding: 36px;
  text-align: center;
  border-radius: var(--tw-radius);
  background: #fff;
  color: var(--tw-muted);
  font-weight: 700;
}

/* ── Play page ── */
.tw-play { margin-bottom: 32px; }

.tw-play__screen {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--tw-radius-lg);
  background: var(--tw-bg-deep);
  box-shadow: var(--tw-shadow);
}

.tw-play__frame {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.tw-play__frame video,
#movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.tw-play__status {
  margin: 12px 4px 0;
  font-size: 13px;
  font-weight: 700;
  color: #99f6e4;
}

.tw-play__detail {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  border-radius: var(--tw-radius-lg);
  background: var(--tw-surface);
  border: 1px solid var(--tw-line);
  box-shadow: 0 8px 28px rgba(19, 78, 74, 0.06);
}

.tw-play__poster {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(19, 78, 74, 0.15);
}

.tw-play__poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

.tw-play__meta h1 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 900;
  line-height: 1.2;
}

.tw-play__tags {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tw-play__tags li span {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in srgb, var(--tw-primary) 12%, #fff);
  color: var(--tw-primary-dark);
}

.tw-play__brief {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--tw-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tw-synopsis {
  padding: 22px 24px;
  border-radius: var(--tw-radius);
  background: var(--tw-surface);
  border-left: 4px solid var(--tw-cta);
  box-shadow: 0 4px 16px rgba(19, 78, 74, 0.04);
}

.tw-synopsis p {
  margin: 0;
  line-height: 1.85;
  color: #334155;
  font-size: 15px;
}

/* ── Footer ── */
.tw-footer {
  margin-top: 24px;
  background: var(--tw-bg-deep);
  color: #ccfbf1;
}

.tw-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  padding: 36px 20px 24px;
}

.tw-footer__desc {
  margin: 12px 0 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.65;
  color: #99f6e4;
}

.tw-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tw-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tw-footer__col strong {
  margin-bottom: 4px;
  font-size: 14px;
  color: #fff;
}

.tw-footer__col a {
  font-size: 14px;
  font-weight: 600;
  color: #99f6e4 !important;
}

.tw-footer__col a:hover { color: var(--tw-cta) !important; }

.tw-footer__bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  border-top: 1px solid rgba(153, 246, 228, 0.15);
  font-size: 13px;
  font-weight: 600;
  color: #5eead4;
}

.tw-footer__note { color: #99f6e4; opacity: 0.75; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .tw-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tw-cat-layout { grid-template-columns: 1fr; }
  .tw-cat-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tw-cat-sidebar__block { flex: 1 1 160px; }
  .tw-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .tw-header__bar {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .tw-nav-toggle { display: flex; }

  .tw-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    padding: 12px 16px;
    background: var(--tw-bg-deep);
    border-top: 1px solid rgba(153, 246, 228, 0.15);
    box-shadow: 0 12px 32px rgba(4, 47, 46, 0.4);
  }

  .tw-nav.open { display: flex; }
  .tw-header__bar { position: relative; }
  .tw-nav a { border-radius: 8px; border-bottom: 0; }

  .tw-search { min-width: 0; grid-column: 2; }
  .tw-main { padding: 20px 16px 48px; }
  .tw-hero { padding: 36px 20px 40px; }
  .tw-grid--3,
  .tw-grid--4,
  .tw-grid--catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tw-channels__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-play__detail { grid-template-columns: 1fr; }
  .tw-play__poster { max-width: 140px; }
  .tw-footer__links { grid-template-columns: 1fr; }
  .tw-footer__bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .tw-grid--3,
  .tw-grid--4 { grid-template-columns: 1fr; }
  .tw-rail .tw-rank { flex: 0 0 min(260px, 90vw); }
}

@media (prefers-reduced-motion: reduce) {
  .tw-card__thumb img { transition: none; }
}
