/* s1 Template — Simple Baidu SEO
 * BossV v2.2.36+  |  Clean · Fast · Mobile-First
 * ================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* s1 内部变量 */
  --primary:      #f5820a;
  --primary-dark: #d96c00;
  --navy:         #1a2e4a;
  --ink:          #222;
  --muted:        #666;
  --light:        #f7f8fa;
  --border:       #e8eaed;
  --white:        #fff;
  --radius:       8px;
  --shadow:       0 2px 10px rgba(0,0,0,[class~="07"]);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;

  /* 对齐系统注入内联CSS的变量名，确保颜色一致 */
  --primary-color:  #f5820a;   /* 覆盖系统默认的青色 #00d4ff */
  --bg-card:        #fff;
  --border-color:   #e8eaed;
  --border-radius:  8px;
  --text-primary:   #1a2e4a;
  --text-secondary: #666;
  --grid-gap:       14px;
  --spacing-xxl:    40px;
}

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--light);
  line-height: 1.6;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

[class~="container"] {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

[class~="text-overflow"] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== SKIP LINK (A11Y) ===== */
[class~="skip-link"] {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
[class~="skip-link"]:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  z-index: 9999;
  font-size: 14px;
}

/* ===== HEADER ===== */
[class~="site-header"] {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,[class~="25"]);
}
[class~="header-inner"] {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 54px;
}

[class~="logo"] {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}
[class~="logo"]:hover { color: var(--primary); }

[class~="main-nav"] {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 1;
  min-width: 0;
}
[class~="main-nav"]::-webkit-scrollbar { display: none; }
[class~="main-nav"] a {
  color: rgba(255,255,255,[class~="82"]);
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  transition: background [class~="15s"];
}
[class~="main-nav"] a:hover, [class~="main-nav"] a[class~="active"] {
  color: #fff;
  background: rgba(255,255,255,[class~="15"]);
}

/* Search bar */
[class~="search-bar"] {
  display: flex;
  margin-left: auto;
  flex-shrink: 0;
}
[class~="search-bar"] input {
  width: 190px;
  padding: 6px 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  background: rgba(255,255,255,[class~="13"]);
  color: #fff;
}
[class~="search-bar"] input::placeholder { color: rgba(255,255,255,[class~="45"]); }
[class~="search-bar"] input:focus { background: rgba(255,255,255,[class~="2"]); }
[class~="search-bar"] button {
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font);
  white-space: nowrap;
  transition: background [class~="15s"];
}
[class~="search-bar"] button:hover { background: var(--primary-dark); }

/* Mobile hamburger */
[class~="nav-toggle"] {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,[class~="35"]);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

/* ===== BREADCRUMB ===== */
[class~="breadcrumb"] {
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
[class~="breadcrumb"] a { color: var(--muted); }
[class~="breadcrumb"] a:hover { color: var(--primary); }
[class~="breadcrumb"] [class~="sep"] { color: #ccc; }

/* ===== MAIN ===== */
[class~="main"] { padding: 12px 0 36px; }

/* ===== SECTION ===== */
[class~="section"] { margin-bottom: 28px; }

[class~="section-head"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
[class~="section-head"] h1,
[class~="section-head"] h2 { font-size: 17px; color: var(--navy); }
[class~="more-link"] { font-size: 13px; color: var(--primary); }
[class~="more-link"]:hover { color: var(--primary-dark); }

/* ===== MOVIE GRID
 * 系统注入内联CSS已将 [class~="movie-grid"] 设为 display:grid repeat(6,1fr)，
 * 并将 ul[class~="pic-list"] 设为 display:contents（thumbnail-fix.css 同理）。
 * li 直接成为 .movie-grid 的 grid-item。
 * 此处只做响应式列数覆盖 + 卡片样式。
 * ===== */

/* 基础 grid 布局 - 确保即使系统未注入也能正常显示 */
[class~="movie-grid"] {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}
[class~="movie-grid"] ul,
[class~="movie-grid"] [class~="pic-list"] {
  list-style: none;
  padding: 0;
  margin: 0;
  display: contents;
}
[class~="movie-grid"] li {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform [class~="2s"], box-shadow [class~="2s"];
}
[class~="movie-grid"] li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* 响应式列数 — 用 !important 覆盖内联CSS的 repeat(6,1fr) */
@media (max-width: 1200px) {
  [class~="movie-grid"] { grid-template-columns: repeat(5, 1fr) !important; }
}
@media (max-width: 960px) {
  [class~="movie-grid"] { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 768px) {
  [class~="movie-grid"] { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 480px) {
  [class~="movie-grid"] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Card hover（thumbnail-fix.css 的 display/aspect-ratio 已处理好，此处只加交互效果） */
[class~="movie-grid"] [class~="pic-img"],
[class~="movie-grid"] a[class~="pic-img"] {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform [class~="2s"], box-shadow [class~="2s"];
}
[class~="movie-grid"] [class~="pic-img"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,[class~="15"]);
}
/* Score badge */
[class~="movie-grid"] [class~="pic-img"] [class~="score"] {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--primary);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
/* HD/Tips badge */
[class~="movie-grid"] [class~="pic-img"] [class~="tips"] {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(26,46,74,[class~="8"]);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}
/* Title overlay */
[class~="movie-grid"] [class~="pic-img"] [class~="title"] {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 8px 7px;
  background: linear-gradient(transparent, rgba(0,0,0,[class~="75"]));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Title below card */
[class~="movie-grid"] h3[class~="name"],
[class~="movie-grid"] [class~="name"] {
  padding: 7px 6px 3px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
}
[class~="movie-grid"] h3[class~="name"] a,
[class~="movie-grid"] [class~="name"] a { color: inherit; }
[class~="movie-grid"] h3[class~="name"] a:hover,
[class~="movie-grid"] [class~="name"] a:hover { color: var(--primary); }

/* ===== PAGE LAYOUT ===== */
[class~="page-layout"] {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* ===== SIDEBAR ===== */
[class~="sidebar-card"] {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
[class~="sidebar-title"] {
  background: var(--navy);
  color: #fff;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
}
[class~="sidebar-body"] { padding: 12px; }

/* Sidebar compact pic-list */
[class~="sidebar-card"] ul[class~="pic-list"] {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
[class~="sidebar-card"] ul[class~="pic-list"] li {
  list-style: none;
  width: auto !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
[class~="sidebar-card"] ul[class~="pic-list"] li[class*="col-"] {
  width: auto !important;
  float: none !important;
  padding: 0 !important;
}
[class~="sidebar-card"] [class~="pic-img"],
[class~="sidebar-card"] a[class~="pic-img"] {
  display: block;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
}
[class~="sidebar-card"] [class~="pic-img"] img { width: 100%; height: 80px; object-fit: cover; }
[class~="sidebar-card"] [class~="pic-img"] [class~="score"] {
  position: absolute;
  top: 2px;
  left: 2px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
}
[class~="sidebar-card"] [class~="pic-img"] [class~="tips"] { display: none; }
[class~="sidebar-card"] h3[class~="name"],
[class~="sidebar-card"] [class~="name"] {
  font-size: 11px;
  padding: 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[class~="sidebar-card"] h3[class~="name"] a { color: var(--ink); }
[class~="sidebar-card"] h3[class~="name"] a:hover { color: var(--primary); }

/* Mini link list */
[class~="mini-link-list"] a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
[class~="mini-link-list"] a:last-child { border-bottom: none; }
[class~="mini-link-list"] a:hover { color: var(--primary); }

/* ===== FILTER BAR ===== */
[class~="filter-bar"] {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
[class~="filter-group"] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
[class~="filter-group"]:last-child { margin-bottom: 0; }
[class~="filter-group"] > span:first-child {
  color: var(--muted);
  font-size: 13px;
  min-width: 36px;
}
[class~="filter-group"] a {
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 13px;
  color: var(--ink);
  background: var(--light);
  border: 1px solid var(--border);
}
[class~="filter-group"] a:hover,
[class~="filter-group"] a[class~="active"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
[class~="filter-tags"] { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; }
[class~="filter-tags"] li { list-style: none; }
[class~="filter-tags"] li a { display: inline-block; padding: 3px 10px; border-radius: 3px; font-size: 13px; color: var(--ink); background: var(--light); border: 1px solid var(--border); text-decoration: none; transition: all 0.2s; white-space: nowrap; }
[class~="filter-tags"] li a:hover, [class~="filter-tags"] li a[class~="active"] { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== PAGINATION ===== */
[class~="pagination"] {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}
[class~="pagination"] a,
[class~="pagination"] span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink);
  background: var(--white);
}
[class~="pagination"] a:hover,
[class~="pagination"] [class~="current"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== PLAY PAGE ===== */
[class~="play-layout"] {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

[class~="movie-detail-card"] {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
}
[class~="movie-poster"] { position: relative; flex-shrink: 0; }
[class~="movie-poster"] img {
  width: 130px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,[class~="2"]);
}
[class~="score-badge"] {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
[class~="movie-info"] h1 { font-size: 20px; color: var(--navy); margin-bottom: 6px; }
[class~="movie-info"] [class~="alias"] { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
[class~="movie-meta"] { list-style: none; padding: 0; }
[class~="movie-meta"] li {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  display: flex;
  gap: 6px;
}
[class~="movie-meta"] li strong { color: var(--ink); min-width: 48px; }

/* Player */
[class~="player-section"] {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}
[class~="player-tabs"] {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #111;
}
[class~="tab-btn"] {
  padding: 5px 13px;
  background: #333;
  color: #ccc;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  transition: background [class~="15s"];
}
[class~="tab-btn"][class~="active"], [class~="tab-btn"]:hover { background: var(--primary); color: #fff; }
[class~="player-wrapper"] {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
[class~="player-wrapper"] video { width: 100%; height: 100%; display: block; }
[class~="episode-list"] {
  display: none;
  flex-wrap: wrap;
  gap: 5px;
  padding: 8px 12px;
  background: #111;
  max-height: 130px;
  overflow-y: auto;
}
[class~="episode-list"][class~="active"] { display: flex; }
[class~="ep-btn"] {
  padding: 3px 10px;
  background: #2a2a2a;
  color: #bbb;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font);
  transition: background [class~="15s"];
}
[class~="ep-btn"][class~="active"], [class~="ep-btn"]:hover { background: var(--primary); color: #fff; }

/* Synopsis */
[class~="synopsis-card"] {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 14px;
}
[class~="synopsis-card"] h2 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}
[class~="synopsis-card"] p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* Interaction buttons */
[class~="interaction-bar"] {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
[class~="int-btn"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  transition: all [class~="15s"];
}
[class~="int-btn"]:hover { border-color: var(--primary); color: var(--primary); }
[class~="int-btn"][class~="active"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Related section */
[class~="content-section"] {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 14px;
}
[class~="content-section"] h2 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}

/* FAQ */
[class~="faq-item"] {
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
}
[class~="faq-item"]:last-child { border-bottom: none; }
[class~="faq-q"] { font-weight: 600; color: var(--navy); font-size: 13px; margin-bottom: 4px; }
[class~="faq-a"] { font-size: 13px; color: var(--muted); }

/* ===== NEWS ===== */
/* System-generated news list classes */
[class~="news-list-page"] { list-style: none; }
[class~="news-item"] {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
[class~="news-item"]:last-child { border-bottom: none; }
[class~="news-thumb"] { width: 120px; flex-shrink: 0; }
[class~="news-thumb"] img {
  width: 120px; height: 80px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
[class~="news-info"] { flex: 1; min-width: 0; }
[class~="news-title"] { font-size: 14px; font-weight: 500; margin-bottom: 4px; line-height: 1.4; }
[class~="news-title"] a { color: var(--ink); }
[class~="news-title"] a:hover { color: var(--primary); }
[class~="news-summary"] {
  font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
[class~="news-meta"] { font-size: 12px; color: var(--muted); display: flex; gap: 8px; }
/* Backward-compat aliases */
[class~="news-row"] { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
[class~="news-row"]:last-child { border-bottom: none; }
[class~="news-title-link"] { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.4; display: block; }
[class~="news-title-link"]:hover { color: var(--primary); }
[class~="news-meta-text"] { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* News Detail */
[class~="news-detail-wrap"] {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
[class~="news-detail-h1"] { font-size: 22px; color: var(--navy); margin-bottom: 8px; }
[class~="news-detail-meta"] {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
[class~="news-detail-body"] {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
}
[class~="news-detail-body"] img { max-width: 100%; border-radius: 4px; margin: 12px 0; }

/* ===== SEARCH ===== */
[class~="search-info-bar"] {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}
[class~="search-info-bar"] strong { color: var(--navy); }

/* ===== RANK ===== */
[class~="rank-block"] {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
[class~="rank-head"] {
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 15px;
}

/* ===== RANK LIST (system-generated by {本周热播榜}) ===== */
[class~="box-title"] { display: none; }  /* s1 provides its own section heading; suppress duplicate */
[class~="txt-list-ccc"] { list-style: none; }
[class~="txt-list-ccc"] a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  text-decoration: none; transition: background [class~="15s"];
}
[class~="txt-list-ccc"] a:hover { background: var(--light); }
[class~="txt-list-ccc"] a:last-child { border-bottom: none; }
[class~="txt-list-ccc"] i {
  font-style: normal; width: 22px; height: 22px;
  background: var(--border); color: var(--muted);
  border-radius: 50%; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
[class~="txt-list-ccc"] a:nth-child(1) i { background: #e74c3c; color: #fff; }
[class~="txt-list-ccc"] a:nth-child(2) i { background: #e67e22; color: #fff; }
[class~="txt-list-ccc"] a:nth-child(3) i { background: #f39c12; color: #fff; }
[class~="txt-list-ccc"] h3 {
  flex: 1; font-size: 14px; font-weight: 400; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0;
}
[class~="txt-list-ccc"] [class~="text-muted"] { font-size: 12px; color: var(--muted); flex-shrink: 0; }

/* ===== SITEMAP ===== */
[class~="sitemap-section"] {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 18px;
}
[class~="sitemap-section"] h2 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}
[class~="tag-links"] { display: flex; flex-wrap: wrap; gap: 6px; }
[class~="tag-links"] a {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--ink);
  background: var(--light);
}
[class~="tag-links"] a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== 404 ===== */
[class~="error-page"] { text-align: center; padding: 80px 16px; }
[class~="error-page"] [class~="code"] { font-size: 80px; color: #dde; font-weight: 900; line-height: 1; }
[class~="error-page"] h1 { font-size: 22px; color: var(--navy); margin: 14px 0 10px; }
[class~="error-page"] p { color: var(--muted); margin-bottom: 24px; }
[class~="btn-primary"] {
  display: inline-block;
  padding: 9px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
}
[class~="btn-primary"]:hover { background: var(--primary-dark); color: #fff; }

/* ===== FOOTER ===== */
[class~="site-footer"] {
  background: var(--navy);
  color: rgba(255,255,255,[class~="65"]);
  padding: 24px 0;
  margin-top: 32px;
  font-size: 13px;
}
[class~="footer-nav"] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 14px;
}
[class~="footer-nav"] a { color: rgba(255,255,255,[class~="75"]); }
[class~="footer-nav"] a:hover { color: var(--primary); text-decoration: underline; }
[class~="footer-friend"] {
  margin-bottom: 12px;
  line-height: 1.9;
}
[class~="footer-friend"] a { color: rgba(255,255,255,[class~="5"]); margin-right: 10px; }
[class~="footer-friend"] a:hover { color: var(--primary); }
[class~="footer-copy"] {
  border-top: 1px solid rgba(255,255,255,[class~="1"]);
  padding-top: 12px;
  text-align: center;
  color: rgba(255,255,255,[class~="4"]);
}
[class~="footer-copy"] a { color: rgba(255,255,255,[class~="55"]); }
[class~="footer-copy"] a:hover { color: var(--primary); }
[class~="footer-disclaimer"] {
  font-size: 12px;
  color: rgba(255,255,255,[class~="28"]);
  margin-top: 10px;
  line-height: 1.65;
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity [class~="4s"] ease, transform [class~="4s"] ease;
}
[data-reveal][class~="is-visible"] { opacity: 1; transform: none; }

/* ===== LAZYLOAD ===== */
img[class~="lazyload"] { opacity: 0; transition: opacity [class~="3s"]; }
img[class~="loaded"] { opacity: 1; }

/* ===== RESPONSIVE (layout & nav only; movie-grid 列数已在 MOVIE GRID 块定义) ===== */
@media (max-width: 960px) {
  [class~="page-layout"], [class~="play-layout"] { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  [class~="nav-toggle"] { display: block; margin-left: auto; }
  [class~="search-bar"] { display: none; }
  [class~="main-nav"] {
    display: none;
    position: absolute;
    top: 54px;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,[class~="3"]);
    z-index: 99;
  }
  [class~="main-nav"][class~="open"] { display: flex; }
  [class~="main-nav"] a { width: 100%; padding: 10px 16px; border-radius: 0; }
  [class~="movie-detail-card"] { flex-direction: column; }
  [class~="movie-poster"] img { width: 120px; }
}
@media (max-width: 480px) {
  [class~="movie-info"] h1 { font-size: 18px; }
}

/* ===== Back to Top ===== */
[class~="back-to-top"] { position: fixed; bottom: 30px; right: 30px; width: 46px; height: 46px; background: #f5820a; color: #fff; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 9999; box-shadow: 0 4px 12px rgba(245,130,10,0.4); }
[class~="back-to-top"][class~="visible"] { opacity: 1; visibility: visible; transform: translateY(0); }
[class~="back-to-top"]:hover { opacity: 0.85; transform: translateY(-3px); }

/* ===== Footer ICP ===== */
[class~="disclaimer"] { color: rgba(255,255,255,0.4); font-size: 12px; line-height: 1.6; margin: 8px auto; text-align: center; max-width: 800px; }
[class~="icp-info"] { color: rgba(255,255,255,0.4); font-size: 12px; text-align: center; margin-top: 4px; }
[class~="icp-info"] a { color: rgba(255,255,255,0.4); }
[class~="icp-info"] a:hover { color: rgba(255,255,255,0.7); }

/* Logo text fallback */
[class~="logo-text"] {
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

/* ===== Detail Page Styles (added v-next) ===== */
[class~="detail-container"] { display: flex; gap: 30px; max-width: 1200px; margin: 0 auto; padding: 20px 15px; flex-wrap: wrap; }
[class~="detail-poster"] { flex-shrink: 0; width: 200px; }
[class~="detail-poster"] img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
[class~="detail-info"] { flex: 1; min-width: 280px; }
[class~="detail-title"] { font-size: 1.8rem; font-weight: 700; margin-bottom: 15px; line-height: 1.3; color: var(--navy); }
[class~="detail-meta"] { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
[class~="meta-item"] strong { color: var(--ink); }
[class~="detail-synopsis"] { margin-bottom: 20px; line-height: 1.8; }
[class~="detail-synopsis"] h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
[class~="detail-play-btn"] { margin: 20px 0; }
[class~="btn-play-now"] { display: inline-block; padding: 12px 32px; background: var(--primary); color: #fff !important; border-radius: 4px; text-decoration: none; font-size: 16px; font-weight: 600; transition: background 0.2s; }
[class~="btn-play-now"]:hover { background: var(--primary-dark); }
[class~="detail-episodes"] { max-width: 1200px; margin: 24px auto; padding: 0 15px; }
[class~="detail-episodes"] h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
[class~="detail-related"] { max-width: 1200px; margin: 24px auto; padding: 0 15px; }
[class~="detail-related"] h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
@media (max-width: 768px) {
    [class~="detail-container"] { flex-direction: column; }
    [class~="detail-poster"] { width: 140px; margin: 0 auto; }
    [class~="detail-title"] { font-size: 1.4rem; }
    [class~="btn-play-now"] { width: 100%; text-align: center; box-sizing: border-box; }
}
