/* ============================================================
   Filmlane × BossV Design System
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background-color: #0a0f0f;
  color: #fff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #11141d; }
::-webkit-scrollbar-thumb { background: #e2d703; border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
[class~="navbar"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #171d21;
  padding: 18px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

[class~="logo"] a,
[class~="logo"] span {
  color: #e2d703;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
}

[class~="nav-list"] {
  display: flex;
  align-items: center;
  gap: 36px;
}

[class~="nav-list"] li a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.25s;
}

[class~="nav-list"] li a:hover { color: #e2d703; }

[class~="nav-list"] [class~="btn"] {
  border: 2px solid #e2d703;
  color: #e2d703;
  padding: 9px 28px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s;
}

[class~="nav-list"] [class~="btn"]:hover {
  background-color: #e2d703;
  color: #1d1a28;
}

/* Hamburger */
[class~="hamburger"] {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

[class~="hamburger"] [class~="line"] {
  width: 26px;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: background-color 0.25s;
}

[class~="hamburger"]:hover [class~="line"] { background-color: #e2d703; }

/* ============================================================
   HERO
   ============================================================ */
[class~="hero"] {
  min-height: 90vh;
  max-height: 1000px;
  display: flex;
  align-items: center;
  padding: 0 30px;
  background-image: linear-gradient(
    105deg,
    rgba(10, 15, 15, 0.92) 40%,
    rgba(23, 29, 33, 0.65) 100%
  );
  background-color: #0a0f0f;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

[class~="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0a0f0f 30%, transparent 80%);
  pointer-events: none;
}

[class~="hero-content"] {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

[class~="hero-content"] h1 {
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}

[class~="hero-content"] [class~="accent"] {
  font-size: 26px;
  font-weight: 600;
  color: #e2d703;
  margin-bottom: 28px;
}

[class~="hero-content"] p[class~="desc"] {
  font-size: 15px;
  color: #cecaca;
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 480px;
}

[class~="watch-btn"] {
  display: inline-block;
  border: 2px solid #e2d703;
  color: #e2d703;
  padding: 13px 36px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.25s, color 0.25s;
}

[class~="watch-btn"]:hover {
  background-color: #e2d703;
  color: #1d1a28;
}

/* Hero banner (non-homepage) */
[class~="hero-banner"] {
  background: linear-gradient(135deg, #11141d 0%, #171d21 100%);
  padding: 60px 30px;
  text-align: center;
  border-bottom: 2px solid #e2d703;
}

[class~="hero-banner"] h1 {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
}

[class~="hero-banner"] [class~="breadcrumb"] {
  margin-top: 10px;
  font-size: 14px;
  color: #cecaca;
}

[class~="hero-banner"] [class~="breadcrumb"] a {
  color: #e2d703;
  transition: opacity 0.2s;
}

[class~="hero-banner"] [class~="breadcrumb"] a:hover { opacity: 0.75; }

/* ============================================================
   SECTIONS
   ============================================================ */
section {
  padding: 80px 30px;
}

section[class~="alt-bg"] {
  background: linear-gradient(180deg, #11141d 0%, #0a0f0f 100%);
}

section[class~="dark-tex"] {
  background: linear-gradient(160deg, #0e1218 0%, #11141d 60%, #0a0f0f 100%);
}

/* Section Header */
[class~="section-header"] {
  text-align: center;
  margin-bottom: 50px;
}

[class~="section-header"] small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #e2d703;
  margin-bottom: 10px;
}

[class~="section-header"] h2,
[class~="section-header"] h4 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

/* ============================================================
   CARD GRID
   ============================================================ */
[class~="wrapper"] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 48px;
  column-gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
}

[class~="wrapper-4"] {
  grid-template-columns: repeat(4, 1fr);
}

/* Single Card */
[class~="card"] {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[class~="card"] [class~="img"] {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

[class~="card"] [class~="img"] img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.35s, opacity 0.35s;
}

[class~="card"] [class~="img"]:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}

[class~="card"] [class~="img"] [class~="overlay"] {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: opacity 0.3s;
}

[class~="card"] [class~="img"]:hover [class~="overlay"] { opacity: 1; }

[class~="card"] [class~="img"] [class~="overlay"] [class~="play-icon"] {
  font-size: 42px;
  color: #e2d703;
}

[class~="card"] [class~="title"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

[class~="card"] [class~="title"] [class~="name"] a {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: color 0.25s;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[class~="card"] [class~="title"] [class~="name"] a:hover { color: #e2d703; }

[class~="card"] [class~="title"] [class~="year"] {
  font-size: 13px;
  color: #e2d703;
  white-space: nowrap;
  flex-shrink: 0;
}

[class~="card"] [class~="footer"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

[class~="card"] [class~="footer"] [class~="quality"] {
  border: 2px solid #fff;
  color: #e2d703;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[class~="card"] [class~="footer"] [class~="time"] {
  font-size: 12px;
  color: #fff;
}

[class~="card"] [class~="footer"] [class~="rating"] {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}

[class~="card"] [class~="footer"] [class~="rating"] i { color: #e2d703; }

/* ============================================================
   MOVIE DETAIL
   ============================================================ */
[class~="movie-detail"] {
  background: linear-gradient(160deg, #11141d 0%, #0e121a 100%);
  padding: 60px 30px;
}

[class~="movie-detail"] [class~="main"] {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

[class~="movie-detail"] [class~="poster"] {
  flex-shrink: 0;
  width: 280px;
}

[class~="movie-detail"] [class~="poster"] img {
  width: 280px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

[class~="movie-detail"] [class~="content"] {
  flex: 1;
  max-width: 680px;
}

[class~="movie-detail"] [class~="content"] h1 {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

[class~="movie-detail"] [class~="meta"] {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

[class~="movie-detail"] [class~="meta"] span {
  font-size: 13px;
  color: #cecaca;
  background: #242c38;
  border: 1px solid #333;
  padding: 4px 12px;
  border-radius: 20px;
}

[class~="movie-detail"] [class~="meta"] [class~="score"] {
  color: #e2d703;
  border-color: #e2d703;
}

[class~="movie-detail"] [class~="synopsis"] {
  font-size: 14px;
  color: #cecaca;
  line-height: 1.8;
  margin-bottom: 28px;
}

[class~="movie-detail"] [class~="actions"] {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

[class~="movie-detail"] [class~="actions"] a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

[class~="movie-detail"] [class~="actions"] [class~="btn-primary"] {
  background-color: #e2d703;
  color: #1d1a28;
}

[class~="movie-detail"] [class~="actions"] [class~="btn-primary"]:hover {
  background-color: #cfc200;
}

[class~="movie-detail"] [class~="actions"] [class~="btn-outline"] {
  border: 2px solid #e2d703;
  color: #e2d703;
}

[class~="movie-detail"] [class~="actions"] [class~="btn-outline"]:hover {
  background-color: #e2d703;
  color: #1d1a28;
}

/* ============================================================
   PLAYER
   ============================================================ */
[class~="player-section"] {
  background: #0a0f0f;
  padding: 30px;
}

[class~="player-section"] [class~="inner"] {
  max-width: 1200px;
  margin: 0 auto;
}

[class~="player-wrap"] {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

[class~="player-wrap"] iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

/* Episode links */
[class~="episode-links"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1rem 0 2rem;
}

[class~="episode-links"] a {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #e2d703;
  color: #fff;
  font-size: 13px;
  border-radius: 20px;
  transition: background-color 0.2s, color 0.2s;
}

[class~="episode-links"] a:hover,
[class~="episode-links"] a[class~="active"] {
  background-color: #e2d703;
  color: #1d1a28;
}

/* ============================================================
   SEARCH
   ============================================================ */
[class~="search-form"] {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
  max-width: 640px;
}

[class~="search-form"] input[type="text"] {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #333;
  border-radius: 30px;
  background: #11141d;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

[class~="search-form"] input[type="text"]:focus {
  border-color: #e2d703;
}

[class~="search-form"] button {
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  background: #e2d703;
  color: #1d1a28;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

[class~="search-form"] button:hover { background: #cfc200; }

/* ============================================================
   PAGINATION
   ============================================================ */
[class~="pagination-wrap"] {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 30px 0;
}

[class~="pagination-wrap"] a,
[class~="pagination-wrap"] span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #333;
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

[class~="pagination-wrap"] a:hover {
  background-color: #e2d703;
  border-color: #e2d703;
  color: #1d1a28;
}

[class~="pagination-wrap"] [class~="current"] {
  background-color: #e2d703;
  border-color: #e2d703;
  color: #1d1a28;
  font-weight: 700;
}

/* ============================================================
   RANK LIST
   ============================================================ */
[class~="rank-section"] {
  padding: 80px 30px;
  background: linear-gradient(180deg, #11141d 0%, #0a0f0f 100%);
}

[class~="rank-section"] [class~="inner"] {
  max-width: 900px;
  margin: 0 auto;
}

[class~="rank-list"] ol {
  list-style: none;
  counter-reset: rank-counter;
}

[class~="rank-list"] ol li {
  counter-increment: rank-counter;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #1e2530;
}

[class~="rank-list"] ol li::before {
  content: counter(rank-counter);
  font-size: 20px;
  font-weight: 700;
  color: #e2d703;
  min-width: 28px;
  text-align: center;
}

[class~="rank-list"] ol li:nth-child(-n+3)::before {
  font-size: 24px;
}

[class~="rank-list"] ol li a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  flex: 1;
}

[class~="rank-list"] ol li a:hover { color: #e2d703; }

[class~="rank-list"] ol li [class~="rank-score"] {
  font-size: 13px;
  color: #e2d703;
}

/* ============================================================
   NEWS
   ============================================================ */
[class~="news-list"] [class~="news-item"] {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1e2530;
}

[class~="news-list"] [class~="news-item"] [class~="thumb"] {
  flex-shrink: 0;
  width: 140px;
  height: 90px;
  overflow: hidden;
  border-radius: 6px;
}

[class~="news-list"] [class~="news-item"] [class~="thumb"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

[class~="news-list"] [class~="news-item"] [class~="thumb"] img:hover { transform: scale(1.05); }

[class~="news-list"] [class~="news-item"] [class~="info"] h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  transition: color 0.2s;
}

[class~="news-list"] [class~="news-item"] [class~="info"] h3 a:hover { color: #e2d703; }

[class~="news-list"] [class~="news-item"] [class~="info"] [class~="excerpt"] {
  font-size: 13px;
  color: #cecaca;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[class~="news-list"] [class~="news-item"] [class~="info"] [class~="meta"] {
  margin-top: 8px;
  font-size: 12px;
  color: #888;
}

/* News Detail */
[class~="news-detail"] {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 30px;
}

[class~="news-detail"] [class~="cover"] {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 28px;
  max-height: 420px;
  object-fit: cover;
}

[class~="news-detail"] [class~="article-meta"] {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #888;
  margin-bottom: 28px;
}

[class~="news-detail"] [class~="article-meta"] i { color: #e2d703; }

[class~="news-detail"] [class~="article-body"] {
  font-size: 15px;
  color: #cecaca;
  line-height: 1.85;
}

[class~="news-detail"] [class~="article-body"] p { margin-bottom: 16px; }

[class~="news-detail"] [class~="article-body"] img {
  max-width: 100%;
  border-radius: 6px;
  margin: 12px auto;
}

/* ============================================================
   SITEMAP
   ============================================================ */
[class~="sitemap-section"] {
  padding: 60px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

[class~="sitemap-section"] [class~="cat-group"] {
  margin-bottom: 36px;
}

[class~="sitemap-section"] [class~="cat-group"] h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e2d703;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e2530;
}

[class~="sitemap-section"] [class~="cat-group"] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

[class~="sitemap-section"] [class~="cat-group"] ul li a {
  font-size: 14px;
  color: #cecaca;
  padding: 5px 14px;
  border: 1px solid #2a3040;
  border-radius: 20px;
  transition: border-color 0.2s, color 0.2s;
}

[class~="sitemap-section"] [class~="cat-group"] ul li a:hover {
  border-color: #e2d703;
  color: #e2d703;
}

/* ============================================================
   404
   ============================================================ */
[class~="not-found"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 60px 30px;
}

[class~="not-found"] [class~="code"] {
  font-size: 120px;
  font-weight: 700;
  color: #e2d703;
  line-height: 1;
  margin-bottom: 16px;
}

[class~="not-found"] h1 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 14px;
}

[class~="not-found"] p {
  font-size: 15px;
  color: #cecaca;
  margin-bottom: 32px;
}

[class~="not-found"] [class~="back-btn"] {
  display: inline-block;
  border: 2px solid #e2d703;
  color: #e2d703;
  padding: 12px 36px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s;
}

[class~="not-found"] [class~="back-btn"]:hover {
  background-color: #e2d703;
  color: #1d1a28;
}

/* ============================================================
   SIDEBAR / LAYOUT HELPERS
   ============================================================ */
[class~="page-layout"] {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 30px;
  align-items: start;
}

[class~="sidebar"] {
  position: sticky;
  top: 90px;
}

[class~="sidebar"] [class~="widget"] {
  background: #11141d;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 28px;
}

[class~="sidebar"] [class~="widget-title"] {
  font-size: 16px;
  font-weight: 700;
  color: #e2d703;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e2530;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  margin-top: 20px;
}

footer [class~="main"] [class~="footer-top"] {
  background: linear-gradient(160deg, #11141d 0%, #0e121a 100%);
  padding: 80px 30px 60px;
}

footer [class~="main"] [class~="footer-top"] nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

footer [class~="main"] [class~="footer-top"] [class~="logo"] span {
  color: #e2d703;
  font-weight: 700;
  font-size: 20px;
}

footer [class~="main"] [class~="footer-top"] [class~="list"] {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

footer [class~="main"] [class~="footer-top"] [class~="list"] li a {
  color: #cecaca;
  font-size: 14px;
  transition: color 0.2s;
}

footer [class~="main"] [class~="footer-top"] [class~="list"] li a:hover { color: #e2d703; }

footer [class~="main"] [class~="footer-top"] hr {
  border: none;
  border-top: 1px solid #1e2530;
  margin: 28px 0;
}

footer [class~="main"] [class~="footer-top"] [class~="links"] {
  text-align: center;
}

footer [class~="main"] [class~="footer-top"] [class~="links"] [class~="text-links"] {
  font-size: 13px;
  color: #888;
  line-height: 2;
}

footer [class~="main"] [class~="footer-top"] [class~="links"] [class~="text-links"] a {
  color: #cecaca;
  transition: color 0.2s;
  margin: 0 6px;
}

footer [class~="main"] [class~="footer-top"] [class~="links"] [class~="text-links"] a:hover { color: #e2d703; }

footer [class~="main"] [class~="footer-bottom"] {
  background-color: #171d21;
  padding: 20px 30px;
  text-align: center;
}

footer [class~="main"] [class~="footer-bottom"] [class~="copyright"] p {
  font-size: 13px;
  color: #888;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
[class~="back-to-top"] {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: #e2d703;
  color: #1d1a28;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(226, 215, 3, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 999;
  text-decoration: none;
}

[class~="back-to-top"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(226, 215, 3, 0.55);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ≥1200px — 4 columns */
@media (min-width: 1200px) {
  [class~="wrapper-4"] {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ≤909px — hamburger, nav side-slide */
@media (max-width: 909px) {
  [class~="hamburger"] { display: flex; }

  [class~="nav-list"] {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #171d21;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right 0.35s ease;
    z-index: 999;
    padding: 20px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.7);
  }

  [class~="nav-list"][class~="active"] { right: 0; }

  [class~="hero-content"] h1 { font-size: 38px; }
  [class~="hero-content"] [class~="accent"] { font-size: 20px; }

  [class~="movie-detail"] [class~="main"] {
    flex-direction: column;
    align-items: center;
  }

  [class~="movie-detail"] [class~="poster"] { width: 220px; }
  [class~="movie-detail"] [class~="poster"] img { width: 220px; }

  [class~="page-layout"] {
    grid-template-columns: 1fr;
  }
}

/* ≤767px — 2 columns */
@media (max-width: 767px) {
  [class~="wrapper"] {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 18px;
    row-gap: 36px;
  }

  [class~="wrapper-4"] {
    grid-template-columns: repeat(2, 1fr);
  }

  section { padding: 60px 20px; }

  [class~="hero"] { padding: 0 20px; min-height: 80vh; }

  [class~="section-header"] h2,
  [class~="section-header"] h4 { font-size: 28px; }

  footer [class~="main"] [class~="footer-top"] { padding: 60px 20px 40px; }
}

/* ≤549px — 1 column */
@media (max-width: 549px) {
  [class~="wrapper"] {
    grid-template-columns: 1fr;
  }

  [class~="wrapper-4"] {
    grid-template-columns: repeat(2, 1fr);
  }

  [class~="hero-content"] h1 { font-size: 28px; }
  [class~="hero-content"] [class~="accent"] { font-size: 17px; }

  [class~="not-found"] [class~="code"] { font-size: 80px; }
}

/* ============================================================
   BossV pic-list grid compatibility
   BossV outputs: <ul class="pic-list"><li><a class="pic-img"><img></a></li>...
   Map to filmlane .wrapper/.card visual style
   ============================================================ */
ul[class~="pic-list"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1400px;
}

@media (max-width: 1200px) { ul[class~="pic-list"] { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { ul[class~="pic-list"] { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { ul[class~="pic-list"] { grid-template-columns: repeat(2, 1fr); } }

ul[class~="pic-list"] li { list-style: none; }

ul[class~="pic-list"] [class~="pic-img"] {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  text-decoration: none;
}

ul[class~="pic-list"] [class~="pic-img"] img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  transition: transform 0.35s, opacity 0.35s;
}

ul[class~="pic-list"] [class~="pic-img"]:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}

ul[class~="pic-list"] [class~="pic-img"] [class~="score"] {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #e2d703;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

ul[class~="pic-list"] [class~="pic-img"] [class~="tips"] {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-size: 11px;
  padding: 14px 8px 6px;
}

ul[class~="pic-list"] li p {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 6px 0 0;
}

/* ============================================================
   Search results grid (SearchPageHandler outputs .movie-card)
   ============================================================ */
[class~="search-results"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 900px)  { [class~="search-results"] { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { [class~="search-results"] { grid-template-columns: repeat(2, 1fr); } }

[class~="movie-card"] {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  background: #111;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s;
}
[class~="movie-card"]:hover { transform: scale(1.03); }
[class~="movie-poster"] { position: relative; aspect-ratio: 2/3; overflow: hidden; }
[class~="movie-poster"] img { width: 100%; height: 100%; object-fit: cover; display: block; }
[class~="movie-score"] { position: absolute; top: 6px; left: 6px; background: #e2d703; color: #111; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
[class~="movie-badge"] { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.7); color: #e2d703; font-size: 10px; padding: 2px 6px; border-radius: 3px; }
[class~="movie-info"] { padding: 8px 10px; }
[class~="movie-title"] { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
[class~="movie-meta"] { font-size: 11px; color: #888; }

/* Fix: ul.pic-list inside .wrapper must span full width */
[class~="wrapper"] > ul[class~="pic-list"] {
  grid-column: 1 / -1;
}

/* ============================================================
   Player video tag & episode-links li fix
   ============================================================ */
[class~="player-wrap"] video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

/* {选集列表} outputs <li><a>...</a></li> elements directly */
[class~="episode-links"] { list-style: none; }
[class~="episode-links"] li { display: inline; }
[class~="episode-links"] li a {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #e2d703;
  color: #fff;
  font-size: 13px;
  border-radius: 20px;
  text-decoration: none;
  margin: 2px;
  transition: background-color 0.2s, color 0.2s;
}
[class~="episode-links"] li a:hover,
[class~="episode-links"] li a[class~="active"] {
  background-color: #e2d703;
  color: #1d1a28;
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 769px) { [class~="menu-open-btn"] { display: none !important; } }

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

/* 相关推荐网格布局 */
[class~="detail-related"] .pic-list,
[class~="detail-related"] [class*="pic-list"] {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px !important;
}
[class~="detail-related"] .pic-list li,
[class~="detail-related"] [class*="pic-list"] li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}
[class~="detail-related"] .pic-img,
[class~="detail-related"] [class*="pic-img"] {
    display: block !important;
    position: relative !important;
    aspect-ratio: 2/3 !important;
    overflow: hidden !important;
    border-radius: 6px !important;
}
[class~="detail-related"] .pic-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
[class~="detail-related"] .movie-title {
    font-size: 0.85rem !important;
    padding: 4px 0 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
[class~="detail-related"] .movie-title a {
    text-decoration: none !important;
}
@media (max-width: 768px) {
    [class~="detail-related"] .pic-list,
    [class~="detail-related"] [class*="pic-list"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
