/* 站点 2 · faceoracle 母版 · 电视剧 VOD · harbor-cyan 港湾清爽 */

:root {
  --site-accent: #1a5f7a;
  --site-accent-deep: #134a61;
  --site-accent-dark: #0d3648;
  --site-cyan-soft: #e8f2f6;
  --site-cyan-mid: #b8d4e0;
  --site-cta: #e8744f;
  --site-cta-deep: #d4623d;
  --site-bg: #eef4f7;
  --site-surface: #ffffff;
  --site-text: #1e3a4a;
  --site-muted: #5a7380;
  --site-line: #d4e3ea;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.body-site-vod-2 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.vod-accent-strip {
  height: 3px;
  background: linear-gradient(90deg, var(--site-accent) 0%, var(--site-cta) 50%, var(--site-accent) 100%);
}

a {
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.page-main {
  flex: 1;
  padding-bottom: 2rem;
}

.wythy-inner-page__wrap {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.wythy-inner-page__wrap--wide {
  max-width: var(--max, 80rem);
  margin-left: auto;
  margin-right: auto;
}

.wythy-search-filters,
.filter-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--site-surface);
  border: 1px solid var(--site-line);
  border-radius: var(--radius, 0.75rem);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .wythy-search-filters,
  .filter-panel {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 1rem 1.15rem;
  }
}

.wythy-search-filters input,
.wythy-search-filters select,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--site-line);
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--site-text);
  background: var(--site-bg);
  outline: none;
  box-sizing: border-box;
}

.wythy-search-filters input:focus,
.wythy-search-filters select:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 2px rgba(26, 95, 122, 0.15);
}

.wythy-search-filters input::placeholder,
.filter-panel input::placeholder {
  color: #8aa3ad;
}

.wythy-empty,
.empty-state {
  margin: 1.5rem 0 0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--site-muted);
  background: var(--site-surface);
  border: 1px dashed var(--site-line);
  border-radius: var(--radius, 0.75rem);
}

.wythy-empty[hidden],
.empty-state[hidden] {
  display: none !important;
}

.page-hero,
.compact-hero {
  max-width: var(--max, 80rem);
  margin: 1.25rem auto 1rem;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius, 0.75rem);
  background: linear-gradient(135deg, #1a5f7a, #134a61 45%, #0d3648);
  color: #fff;
  box-shadow: 0 16px 40px rgba(13, 54, 72, 0.22);
}

.page-hero .eyebrow,
.page-hero .eyebrow.solo,
.compact-hero .eyebrow {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--site-accent-dark);
  background: rgba(255, 255, 255, 0.92);
}

.page-hero h1,
.compact-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
}

.page-hero p,
.compact-hero p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  opacity: 0.95;
  max-width: 40rem;
}

.section-block {
  max-width: var(--max, 80rem);
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 800;
  color: var(--site-text);
}

.section-head a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--site-accent-deep);
  text-decoration: none;
}

.section-head a:hover {
  text-decoration: underline;
}

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.35rem;
  border-radius: 0.4rem;
  background: var(--site-cyan-soft);
  color: var(--site-accent);
  font-weight: 800;
  font-size: 0.875rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.category-grid.large {
  gap: 1rem;
}

.rank-panel {
  padding: 0;
  background: transparent;
  border: none;
}

.wythy-play__player-wrap {
  border-radius: var(--radius, 0.75rem);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(30, 58, 74, 0.12);
  border: 1px solid var(--site-line);
}

.mirror-local-player {
  display: block;
  width: 100%;
  background: #000;
}

.wythy-play__error {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 600;
}

.wythy-play__error[hidden] {
  display: none !important;
}

.wythy-vcard {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wythy-vcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(26, 95, 122, 0.12);
}

.wythy-vcard__poster {
  transition: transform 0.35s ease;
}

.wythy-vcard:hover .wythy-vcard__poster {
  transform: scale(1.03);
}

.wythy-home-hero__shell {
  max-width: var(--max, 80rem);
  margin: 0 auto;
}

.wythy-home-hero__layout {
  align-items: stretch;
}

.wythy-home-hero__cta {
  background: linear-gradient(135deg, var(--site-cta), var(--site-cta-deep)) !important;
  color: #fff !important;
  border: none !important;
}

.wythy-header__search-btn {
  background: linear-gradient(135deg, var(--site-cta), var(--site-cta-deep)) !important;
}

@media (max-width: 767px) {
  .wythy-header__inner {
    gap: 0.5rem 0.65rem;
  }

  .wythy-header__actions {
    display: none;
  }

  .wythy-header__search {
    order: 10;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .wythy-home-hero__layout {
    grid-template-columns: 1fr;
  }

  .wythy-home-hero__panel {
    padding: 1.5rem 1.25rem;
    text-align: center;
  }

  .wythy-home-hero__cta {
    display: inline-flex;
    margin: 0 auto;
  }

  .wythy-hot-panel {
    max-height: 20rem;
    overflow-y: auto;
  }

  .wythy-video-grid {
    gap: 0.65rem 0.5rem;
  }

  .wythy-footer__grid {
    gap: 1.25rem;
  }

  .wythy-footer__card-grid {
    grid-template-columns: 1fr;
  }

  .wythy-why__grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .compact-hero {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 1.35rem 1rem;
  }

  .section-block {
    padding: 0 1rem;
  }

  .wythy-inner-page__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  .wythy-header__brand-text {
    font-size: 1.15rem;
  }

  .wythy-cats .wythy-cat-tiles {
    grid-template-columns: 1fr;
  }

  .wythy-home-hero__title {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
