/* CFVideo — cfseo 配套影院风模板 */
:root {
  --cfv-bg: #0b0f19;
  --cfv-bg-elevated: #121826;
  --cfv-bg-soft: #171f31;
  --cfv-border: rgba(255, 255, 255, 0.08);
  --cfv-text: #e8edf7;
  --cfv-text-muted: #9aa6bd;
  --cfv-accent: #f0b429;
  --cfv-accent-2: #5b8def;
  --cfv-accent-soft: rgba(240, 180, 41, 0.14);
  --cfv-radius: 14px;
  --cfv-radius-sm: 10px;
  --cfv-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --cfv-container: 1200px;
  --cfv-header-h: 72px;
  --cfv-font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.cfv-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--cfv-font);
  color: var(--cfv-text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(91, 141, 239, 0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(240, 180, 41, 0.08), transparent 55%),
    var(--cfv-bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.cfv-container {
  width: min(100% - 32px, var(--cfv-container));
  margin-inline: auto;
}
.cfv-main { min-height: calc(100vh - var(--cfv-header-h) - 220px); }

.cfv-skip {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  padding: 10px 16px; background: var(--cfv-accent); color: #111;
}
.cfv-skip:focus { left: 16px; top: 16px; }

/* Header */
.cfv-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(11, 15, 25, 0.82);
  border-bottom: 1px solid var(--cfv-border);
}
.cfv-header__inner {
  min-height: var(--cfv-header-h);
  display: flex; align-items: center; gap: 20px;
}
.cfv-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; white-space: nowrap;
}
.cfv-logo__mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cfv-accent), #ffd978);
  color: #151515; font-size: 0.85rem;
}
.cfv-nav {
  display: flex; align-items: center; gap: 6px; flex: 1;
  overflow-x: auto; scrollbar-width: none;
}
.cfv-nav::-webkit-scrollbar { display: none; }
.cfv-nav__link {
  padding: 8px 12px; border-radius: 999px; color: var(--cfv-text-muted);
  transition: .2s ease;
}
.cfv-nav__link:hover { color: var(--cfv-text); background: rgba(255,255,255,.05); }

.cfv-search {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  min-width: min(280px, 100%);
}
.cfv-search__input {
  flex: 1; min-width: 0;
  height: 42px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--cfv-border);
  background: rgba(255,255,255,.04); color: var(--cfv-text);
}
.cfv-search__input:focus {
  outline: none; border-color: rgba(240,180,41,.45);
  box-shadow: 0 0 0 3px var(--cfv-accent-soft);
}
.cfv-search__btn {
  height: 42px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--cfv-accent); color: #151515; font-weight: 600; cursor: pointer;
}
.cfv-search--page { max-width: 560px; margin-top: 16px; }

.cfv-nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.06); cursor: pointer; margin-left: auto;
}
.cfv-nav-toggle__bar {
  display: block; width: 18px; height: 2px; margin: 4px auto;
  background: var(--cfv-text); border-radius: 2px;
}

/* Hero */
.cfv-hero { padding: 48px 0 24px; }
.cfv-hero__inner {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
}
.cfv-hero__eyebrow {
  margin: 0 0 8px; color: var(--cfv-accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem;
}
.cfv-hero__title {
  margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15;
}
.cfv-hero__desc {
  margin: 0 0 24px; color: var(--cfv-text-muted); max-width: 56ch;
}
.cfv-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cfv-hero__spotlight {
  position: relative; border-radius: calc(var(--cfv-radius) + 6px); overflow: hidden;
  aspect-ratio: 16/10; box-shadow: var(--cfv-shadow);
  border: 1px solid var(--cfv-border);
}
.cfv-hero__spotlight img {
  width: 100%; height: 100%; object-fit: cover;
  mask-image: linear-gradient(to top, rgba(0,0,0,.15), rgba(0,0,0,.65));
}

/* Sections */
.cfv-section { padding: 28px 0 12px; }
.cfv-section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  border-block: 1px solid var(--cfv-border);
}
.cfv-section__head { margin-bottom: 20px; }
.cfv-section__head--row {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
}
.cfv-section__title { margin: 0; font-size: 1.45rem; }
.cfv-section__sub { margin: 6px 0 0; color: var(--cfv-text-muted); font-size: .92rem; }
.cfv-link-more { color: var(--cfv-accent); font-weight: 600; }

/* Grid & Cards */
.cfv-grid { display: grid; gap: 18px; }
.cfv-grid--cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.cfv-grid--news { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.cfv-news-card {
  background: var(--cfv-bg-elevated); border: 1px solid var(--cfv-border);
  border-radius: var(--cfv-radius); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.cfv-news-card:hover { transform: translateY(-3px); border-color: rgba(240,180,41,.25); }
.cfv-news-card__link { display: block; color: inherit; }
.cfv-news-card__pic { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #111827; }
.cfv-news-card__body { padding: 14px 16px 16px; }
.cfv-news-card__title { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.35; }
.cfv-news-card__blurb {
  margin: 0 0 10px; color: var(--cfv-text-muted); font-size: .88rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cfv-news-card__time { color: var(--cfv-accent); font-size: .82rem; }

.cfv-article__head { margin-bottom: 24px; }
.cfv-article__title { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; }
.cfv-article__meta { margin: 0 0 12px; color: var(--cfv-text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.cfv-article__lead { margin: 0; color: #d5dced; font-size: 1.05rem; line-height: 1.7; }
.cfv-article__body { margin-bottom: 28px; }
.cfv-article__body .cfseo-watch-link a { color: var(--cfv-accent); font-weight: 600; }

.cfv-card {
  background: var(--cfv-bg-elevated); border: 1px solid var(--cfv-border);
  border-radius: var(--cfv-radius); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cfv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cfv-shadow);
  border-color: rgba(240,180,41,.25);
}
.cfv-card__link { display: block; height: 100%; }
.cfv-card__poster {
  position: relative; aspect-ratio: 2/3; overflow: hidden; background: #0a0d14;
}
.cfv-card__poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.cfv-card:hover .cfv-card__poster img { transform: scale(1.05); }
.cfv-card__badge {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: rgba(0,0,0,.72); color: #fff;
}
.cfv-card__score {
  position: absolute; right: 10px; top: 10px;
  padding: 4px 8px; border-radius: 8px; font-size: .78rem; font-weight: 700;
  background: var(--cfv-accent); color: #151515;
}
.cfv-card__body { padding: 12px 12px 14px; }
.cfv-card__title {
  margin: 0 0 6px; font-size: .95rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cfv-card__meta { margin: 0; color: var(--cfv-text-muted); font-size: .82rem; }

/* Buttons */
.cfv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; cursor: pointer;
  transition: .2s ease;
}
.cfv-btn--primary { background: var(--cfv-accent); color: #151515; }
.cfv-btn--primary:hover { filter: brightness(1.05); }
.cfv-btn--ghost {
  background: rgba(255,255,255,.04); border-color: var(--cfv-border); color: var(--cfv-text);
}
.cfv-btn--ghost:hover { background: rgba(255,255,255,.08); }
.cfv-btn--lg { min-height: 48px; padding-inline: 24px; }

/* Page */
.cfv-page { padding: 24px 0 48px; }
.cfv-page-head { margin-bottom: 24px; }
.cfv-page-head__title { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 2rem); }
.cfv-page-head__desc { margin: 0; color: var(--cfv-text-muted); max-width: 70ch; }

.cfv-breadcrumb { margin-bottom: 18px; }
.cfv-breadcrumb__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px; color: var(--cfv-text-muted); font-size: .88rem;
}
.cfv-breadcrumb__item:not(.is-current)::after {
  content: "/"; margin-left: 8px; opacity: .45;
}
.cfv-breadcrumb__item a:hover { color: var(--cfv-accent); }
.cfv-breadcrumb__item.is-current { color: var(--cfv-text); }

/* Detail */
.cfv-detail__hero {
  display: grid; grid-template-columns: 280px 1fr; gap: 28px;
  margin-bottom: 24px;
}
.cfv-detail__poster {
  border-radius: var(--cfv-radius); overflow: hidden;
  border: 1px solid var(--cfv-border); box-shadow: var(--cfv-shadow);
}
.cfv-detail__title { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; }
.cfv-detail__sub { margin: 0 0 18px; color: var(--cfv-text-muted); }
.cfv-meta { margin: 0 0 22px; }
.cfv-meta__row {
  display: grid; grid-template-columns: 72px 1fr; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--cfv-border);
}
.cfv-meta__row dt { margin: 0; color: var(--cfv-text-muted); }
.cfv-meta__row dd { margin: 0; }
.cfv-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cfv-panel {
  background: var(--cfv-bg-elevated); border: 1px solid var(--cfv-border);
  border-radius: var(--cfv-radius); padding: 20px; margin-bottom: 18px;
}
.cfv-panel__title { margin: 0 0 14px; font-size: 1.1rem; }
.cfv-content { color: #d5dced; }
.cfv-content img { border-radius: var(--cfv-radius-sm); margin: 10px 0; }
.cfv-content p { margin: 0 0 12px; }

.cfv-playgroup { margin-bottom: 16px; }
.cfv-playgroup__name { margin: 0 0 10px; font-size: .95rem; color: var(--cfv-text-muted); }
.cfv-episodes { display: flex; flex-wrap: wrap; gap: 8px; }
.cfv-episode {
  min-width: 52px; padding: 8px 12px; text-align: center;
  border-radius: 10px; background: rgba(255,255,255,.04);
  border: 1px solid var(--cfv-border); font-size: .86rem;
}
.cfv-episode:hover, .cfv-episode.is-active {
  border-color: rgba(240,180,41,.45); background: var(--cfv-accent-soft); color: #fff;
}

.cfv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cfv-tag {
  display: inline-flex; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--cfv-border); font-size: .82rem;
}
.cfv-tag--gold { background: var(--cfv-accent-soft); color: var(--cfv-accent); border-color: rgba(240,180,41,.25); }

/* Play page */
.cfv-play-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px;
}
.cfv-player-wrap {
  background: var(--cfv-bg-elevated); border: 1px solid var(--cfv-border);
  border-radius: var(--cfv-radius);
}
.cfv-page--play .cfv-player-wrap { overflow: visible; }
.cfv-player__head { padding: 16px 18px 0; }
.cfv-player__title { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.cfv-player__ep { color: var(--cfv-accent); font-weight: 600; margin-left: 8px; }
/* MacCMS 播放器：固定高度，避免 grid + aspect-ratio 把 iframe 压成 0 */
.cfv-player-area {
  padding: 12px 12px 0;
}
.cfv-player-box {
  position: relative;
  width: 100%;
  height: clamp(360px, 56vw, 720px);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.cfv-player-box #player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cfv-player-box #player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.cfv-player__nav {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px 18px;
}
.cfv-play-sidebar .cfv-panel { margin-bottom: 16px; }
.cfv-episodes--compact { max-height: 280px; overflow: auto; padding-right: 4px; }

.cfv-mini-list { display: grid; gap: 10px; }
.cfv-mini-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center;
  padding: 8px; border-radius: 12px; background: rgba(255,255,255,.03);
}
.cfv-mini-item img { border-radius: 8px; aspect-ratio: 2/3; object-fit: cover; }
.cfv-mini-item strong {
  display: block; font-size: .88rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cfv-mini-item small { color: var(--cfv-text-muted); }

/* Filters & paging */
.cfv-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.cfv-filter-chip {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--cfv-border);
}
.cfv-filter-chip:hover { border-color: rgba(240,180,41,.35); }

.cfv-paging { margin-top: 28px; display: grid; gap: 12px; justify-items: center; }
.cfv-paging__info { color: var(--cfv-text-muted); font-size: .88rem; }
.cfv-paging__links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cfv-paging__btn {
  min-width: 40px; height: 40px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--cfv-border); background: rgba(255,255,255,.03);
}
.cfv-paging__btn.is-active { background: var(--cfv-accent); color: #151515; border-color: transparent; font-weight: 700; }

.cfv-empty { color: var(--cfv-text-muted); padding: 40px 0; text-align: center; }

/* Footer */
.cfv-footer {
  margin-top: 40px; border-top: 1px solid var(--cfv-border);
  background: rgba(0,0,0,.22);
}
.cfv-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px;
  padding: 32px 0 20px;
}
.cfv-footer__title { display: block; margin-bottom: 8px; font-size: 1rem; }
.cfv-footer__desc { margin: 0; color: var(--cfv-text-muted); font-size: .9rem; }
.cfv-footer__label {
  display: block; margin-bottom: 10px; color: var(--cfv-text-muted); font-size: .82rem;
}
.cfv-footer__links a {
  display: inline-block; margin: 0 12px 8px 0; color: #c8d2e6; font-size: .88rem;
}
.cfv-footer__links a:hover { color: var(--cfv-accent); }
.cfv-footer__bottom {
  padding: 16px 0 28px; border-top: 1px solid var(--cfv-border);
  color: var(--cfv-text-muted); font-size: .82rem;
}
.cfv-footer__bottom p { margin: 0; }

/* Related news list (cfseo) */
.cfv-news-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.cfv-news-list__item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border-radius: var(--cfv-radius-sm);
  background: var(--cfv-bg-elevated); border: 1px solid var(--cfv-border);
  transition: border-color .2s ease, background .2s ease;
}
.cfv-news-list__item:hover { border-color: rgba(240, 180, 41, 0.35); background: var(--cfv-bg-soft); }
.cfv-news-list__item a {
  flex: 1; font-weight: 500; color: var(--cfv-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cfv-news-list__item a:hover { color: var(--cfv-accent); }
.cfv-news-list__time { flex-shrink: 0; color: var(--cfv-text-muted); font-size: .85rem; }

.cfv-news-strip {
  display: grid; gap: 12px;
}
.cfv-news-strip__item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px dashed var(--cfv-border);
}
.cfv-news-strip__item:last-child { border-bottom: 0; padding-bottom: 0; }
.cfv-news-strip__item a { color: var(--cfv-text); font-weight: 500; }
.cfv-news-strip__item a:hover { color: var(--cfv-accent); }
.cfv-news-strip__time { color: var(--cfv-text-muted); font-size: .82rem; white-space: nowrap; }

/* Responsive */
@media (max-width: 960px) {
  .cfv-hero__inner { grid-template-columns: 1fr; }
  .cfv-hero__spotlight { max-height: 240px; }
  .cfv-detail__hero { grid-template-columns: 1fr; }
  .cfv-detail__poster { max-width: 260px; }
  .cfv-play-layout { grid-template-columns: 1fr; }
  .cfv-player-box { height: clamp(240px, 56vw, 420px); }
  .cfv-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .cfv-nav-toggle { display: block; }
  .cfv-nav {
    position: fixed; inset: var(--cfv-header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; padding: 16px;
    background: rgba(11,15,25,.96); border-bottom: 1px solid var(--cfv-border);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: .25s ease;
  }
  .cfv-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .cfv-search { width: 100%; margin-left: 0; order: 3; }
  .cfv-header__inner { flex-wrap: wrap; padding-block: 10px; }
  .cfv-grid--cards { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
