/* 幻想影视：品牌配色与装饰。沿用 green 的尺寸、网格和响应式规则。 */
:root {
  --primary: #137E7C;
  --primary-dark: #0B494A;
  --primary-light: #4FD1C5;
  --accent: #4FD1C5;
  --accent-warm: #D9B46B;
  --bg-dark: #0B1F20;
  --bg-card: #102A2B;
  --bg-card-hover: #163638;
  --gradient-ocean: linear-gradient(135deg, #137E7C 0%, #0B494A 50%, #0B1F20 100%);
  --shadow-card: 0 8px 32px rgba(19, 126, 124, .15);
  --shadow-glow: 0 0 20px rgba(79, 209, 197, .22);
}
.header { background: rgba(11, 31, 32, .94); border-bottom-color: rgba(217, 180, 107, .17); }
.header__logo-icon, .footer__logo-icon { background: transparent; }
.header__logo-icon svg { display: block; width: 40px; height: 40px; flex-shrink: 0; }
.footer__logo-icon svg { display: block; width: 36px; height: 36px; flex-shrink: 0; }
.header__nav-link.active, .header__nav-link:hover { color: var(--accent-warm); }
.header__nav-link::after { background: var(--accent-warm); }
.section__title { position: relative; }
.section__title::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-warm), rgba(217, 180, 107, 0));
  pointer-events: none;
}
.video-card { box-shadow: inset 0 0 0 1px rgba(79, 209, 197, .13), 0 8px 32px rgba(0, 0, 0, .12); }
.video-card:hover { box-shadow: inset 0 0 0 1px rgba(217, 180, 107, .45), 0 10px 32px rgba(19, 126, 124, .2); }
.hero__btn--primary { background: var(--primary); color: #fff; }
.hero__btn--primary:hover { background: var(--primary-dark); box-shadow: 0 0 18px rgba(79, 209, 197, .22); }
.season-btn.active, .sort-btn.active { background: var(--accent-warm); border-color: var(--accent-warm); color: #0B1F20; }
.episode-item.active { border-color: var(--accent-warm); }
.footer { background: #0B1F20; border-top-color: rgba(217, 180, 107, .2); }
.footer__col-title { color: var(--accent-warm); }
.footer__bottom { border-top-color: rgba(217, 180, 107, .18); }
.footer .sitemap a:hover { color: var(--accent-warm); }

/* 整站视觉精修：只覆盖组件外观，保留原布局、字体与断点。 */
:root { --text-muted: #85B4B2; }

/* 导航高亮的底片不占用布局空间。 */
.header__nav-link { isolation: isolate; }
.header__nav-link::before {
  content: ""; position: absolute; inset: 3px -10px;
  background: transparent; border-radius: 8px; z-index: -1; pointer-events: none;
}
.header__nav-link.active::before { background: rgba(79, 209, 197, .09); }
.header__nav-link::after { border-radius: 2px; }
.header__search-input {
  background: rgba(16, 42, 43, .7); border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(79, 209, 197, .12);
}
.header__search-btn, .header__history-btn {
  background: #102F30; border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(79, 209, 197, .16);
}
.header__search-btn svg, .header__history-btn svg { fill: #C2E2DF; }
.mobile-menu { background: rgba(11, 31, 32, .98); }
.mobile-menu__link { border-bottom-color: rgba(79, 209, 197, .12); }
.mobile-menu__link.active { color: var(--accent-warm); }

/* 轮播保留原高度；蒙层兼顾海报与文字，底部接入页面背景。 */
.hero__slide-bg::after {
  background:
    linear-gradient(0deg, #0B1F20 0%, rgba(11, 31, 32, .22) 28%, transparent 58%),
    linear-gradient(90deg, rgba(11, 31, 32, .96) 0%, rgba(11, 31, 32, .7) 42%, rgba(11, 31, 32, .12) 100%);
}
.hero__btn, .detail-hero__action { border-radius: 10px; }
.hero__btn--secondary, .detail-hero__action--secondary {
  background: rgba(16, 42, 43, .76); border-color: rgba(79, 209, 197, .25);
}
.hero__slide-tag, .detail-hero__tag { border-radius: 6px; }
.hero__slide-tag--hot, .detail-hero__tag--hot {
  background: #D9B46B; color: #0B1F20;
}
.hero__slide-tag:not(.hero__slide-tag--hot), .detail-hero__tag:not(.detail-hero__tag--hot) {
  background: #113D3F; color: #C2E2DF; box-shadow: inset 0 0 0 1px rgba(79, 209, 197, .2);
}
.hero__control {
  border-radius: 10px; background: rgba(16, 42, 43, .8); border-color: rgba(217, 180, 107, .22);
}
.hero__dot.active { background: var(--accent-warm); }

/* 海报比例与卡片信息区尺寸不变。 */
.video-card {
  border-radius: 12px;
  background: linear-gradient(155deg, #123032, #102A2B);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.video-card__info {
  background: linear-gradient(135deg, rgba(79, 209, 197, .045), transparent 80%);
  box-shadow: inset 0 1px 0 rgba(79, 209, 197, .1);
}
.video-card__score { background: #D9B46B; color: #0B1F20; border-radius: 6px; }
.video-card__badge {
  background: rgba(7, 25, 26, .9); color: #EBF5F2; border-radius: 6px;
  max-width: calc(100% - 78px); overflow-wrap: anywhere; text-align: right;
  box-shadow: inset 0 0 0 1px rgba(217, 180, 107, .2);
}
.video-card__tag { background: #123D3E; color: #B9DED9; border-radius: 4px; }
.video-card__play { background: rgba(19, 126, 124, .95); box-shadow: inset 0 0 0 1px rgba(79, 209, 197, .4); }
.video-card__overlay { background: linear-gradient(0deg, rgba(11, 31, 32, .86), rgba(11, 31, 32, .12) 75%); }

/* 共用栏目标题、面板与头部的层次。 */
.section__title::after { width: 40px; }
.category-header {
  background: radial-gradient(ellipse at 12% 0%, rgba(19, 126, 124, .33), transparent 68%), linear-gradient(110deg, #103839, #0B1F20 90%);
  border-bottom-color: rgba(217, 180, 107, .2);
}
.category-icon { background: #123D3F; box-shadow: inset 0 0 0 1px rgba(79, 209, 197, .2); }
.category-icon svg { fill: var(--accent-warm); }
.search-header, .cascade-header, .channel-header {
  background: radial-gradient(ellipse at top left, rgba(19, 126, 124, .15), transparent 75%), #102A2B;
  border-color: rgba(79, 209, 197, .19); box-shadow: inset 0 2px 0 rgba(217, 180, 107, .35);
}
.cascade-result { background: rgba(16, 42, 43, .8); border-color: rgba(79, 209, 197, .17); }
.breadcrumb { background: #0D2526; }
.breadcrumb__sep { color: var(--accent-warm); }
.sort-btn, .season-btn, .search-filter__item, .channel-header__filter-item,
.cascade-filter__item, .cascade-result__sort-item, .pagination__btn, .pagination__num {
  border-radius: 8px; background: #113233; border-color: rgba(79, 209, 197, .2); color: #B9DED9;
}
.sort-btn.active, .season-btn.active, .search-filter__item.active,
.channel-header__filter-item.active, .cascade-filter__item.active,
.cascade-filter__item--all, .cascade-result__sort-item.active, .pagination__num--active {
  background: #D9B46B; border-color: #D9B46B; color: #0B1F20;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

/* 详情与播放仅装饰外层面板，不选择播放器及其内部元素。 */
.detail-hero { background: linear-gradient(115deg, #103B3D, #0B1F20 85%); }
.detail-hero__poster { box-shadow: 0 12px 36px rgba(0, 0, 0, .24), 0 0 0 1px rgba(217, 180, 107, .32); }
.detail-hero__score { background: rgba(217, 180, 107, .09); border-color: rgba(217, 180, 107, .32); }
.detail-section, .detail-sidebar__section, .play-sidebar__section, .rank-list {
  background: linear-gradient(145deg, #112E30, #102A2B 75%);
  box-shadow: inset 0 0 0 1px rgba(79, 209, 197, .14);
}
.detail-section__title, .detail-sidebar__title, .play-sidebar__title, .rank-list__title {
  border-bottom-color: rgba(217, 180, 107, .2);
}
.detail-section__title svg, .detail-sidebar__title svg, .play-sidebar__title svg { fill: var(--accent-warm); }
.detail-intro__tag { background: #123D3E; color: #B9DED9; border-color: rgba(79, 209, 197, .2); }
.detail-section .episode-list ul li a {
  border-radius: 6px; background: #113233; border-color: rgba(79, 209, 197, .2); color: #C2E2DF;
}
.detail-section .episode-list ul li.playon { background: transparent; }
.detail-section .episode-list ul li.playon a, .detail-section .episode-list ul li a.active {
  background: #D9B46B; border-color: #D9B46B; color: #0B1F20;
}
.rank-list__item { border-bottom-color: rgba(79, 209, 197, .1); }
.rank-list__rank { background: rgba(79, 209, 197, .06); color: #A8D5D5; border-radius: 6px; }
.rank-list__rank--top { background: linear-gradient(135deg, #E3C68D, #D9B46B); color: #0B1F20; }
.rank-list__item:nth-child(2) .rank-list__rank--top { background: #B0C6C4; color: #0B1F20; }
.rank-list__item:nth-child(3) .rank-list__rank--top { background: #9D7952; color: #fff; }
.footer {
  background: radial-gradient(ellipse at 0% 0%, rgba(19, 126, 124, .13), transparent 65%), #0B1F20;
  box-shadow: inset 0 1px 0 rgba(217, 180, 107, .12);
}
.footer__bottom { border-top-color: rgba(79, 209, 197, .15); }
.footer .sitemap a { color: #B9DED9; }

/* 触屏不保留鼠标悬停引起的位移；鼠标使用较小幅度。 */
.video-card:hover { transform: none; box-shadow: inset 0 0 0 1px rgba(79, 209, 197, .13), 0 8px 32px rgba(0, 0, 0, .12); }
.video-card:hover .video-card__img { transform: none; }
.hero__slide.active .hero__slide-bg { transform: none; }
.detail-hero__action--primary:hover, .detail-hero__play-btn:hover { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .header__nav-link:hover::before { background: rgba(79, 209, 197, .08); }
  .video-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(217, 180, 107, .45), 0 10px 32px rgba(19, 126, 124, .2); }
  .video-card:hover .video-card__img { transform: scale(1.035); }
  .hero__slide.active .hero__slide-bg { transform: scale(1); }
  .sort-btn:hover, .season-btn:hover, .search-filter__item:hover, .channel-header__filter-item:hover,
  .cascade-filter__item:hover, .cascade-result__sort-item:hover, .pagination__btn:hover, .pagination__num:hover {
    background: #1B4545; color: #ECF6F3; border-color: rgba(79, 209, 197, .45);
  }
  .sort-btn.active:hover, .season-btn.active:hover, .search-filter__item.active:hover,
  .channel-header__filter-item.active:hover, .cascade-filter__item.active:hover,
  .cascade-filter__item--all:hover, .cascade-result__sort-item.active:hover, .pagination__num--active:hover {
    background: #D9B46B; color: #0B1F20; border-color: #D9B46B;
  }
  .detail-section .episode-list ul li a:hover { background: #1B4545; border-color: #4FD1C5; color: #ECF6F3; }
  .detail-section .episode-list ul li.playon a:hover, .detail-section .episode-list ul li a.active:hover { background: #D9B46B; border-color: #D9B46B; color: #0B1F20; }
}
.header a:focus-visible, .header button:focus-visible, .header input:focus-visible,
.mobile-menu a:focus-visible, .main a:focus-visible, .main button:focus-visible,
.hero a:focus-visible, .hero button:focus-visible, .detail-page a:focus-visible,
.detail-page button:focus-visible, .play-page a:focus-visible, .play-page button:focus-visible,
.footer a:focus-visible, .history-panel button:focus-visible {
  outline: 2px solid #D9B46B; outline-offset: 3px;
}
.header__search-input:focus-visible { border-bottom-color: #D9B46B; }
@media (prefers-reduced-motion: reduce) {
  .video-card, .video-card__img, .video-card__overlay, .video-card__play,
  .hero__slide, .hero__slide-bg, .hero__dot, .hero__control, .hero__btn,
  .detail-hero__action, .detail-hero__play-btn, .header__nav-link::after,
  .mobile-menu, .history-panel, .history-overlay { transition: none !important; }
  .video-card:hover, .video-card:hover .video-card__img, .hero__slide.active .hero__slide-bg { transform: none; }
}
