:root {
  --bg: #11131a;
  --panel: #181b26;
  --panel-2: #1f2332;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f4f8;
  --muted: #9aa2b8;
  --accent-1: #1877f2;
  --accent-2: #3b93ff;
  --accent-grad: linear-gradient(135deg, #1877f2, #3b93ff);
  --imdb: #f5c518;
  --tm: #16a34a;
  --lt: #2563eb;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; color: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.mv-container { width: 100%; max-width: 1840px; margin: 0 auto; padding: 0 36px; }
.mv-main { padding-top: 72px; padding-bottom: 64px; min-height: 80vh; }
.mv-home-main { padding-top: 0; }
.mv-home-widget { margin-bottom: 34px; }
.mv-home-widget:nth-child(2) { position: relative; z-index: 10; margin-top: -54px; }
.mv-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 28px 32px; }

/* HEADER */
.mv-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 68px;
  background: linear-gradient(180deg, rgba(17,19,26,0.92), rgba(17,19,26,0.68));
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.25s;
}
.mv-header.is-scrolled { background: rgba(17,19,26,0.96); }
body.admin-bar .mv-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .mv-header { top: 46px; } }
.mv-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mv-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; flex-shrink: 0; }
.mv-brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-grad); display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 16px; }
.mv-brand img { max-height: 36px; width: auto; height: auto; object-fit: contain; display: block; }

.mv-nav { flex: 1; }
.mv-nav-list { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.mv-nav-list > li { position: relative; }
.mv-nav-list > li > a { display: inline-block; padding: 8px 12px; font-size: 13.5px; font-weight: 500; color: #d6dbe8; border-radius: 8px; transition: color 0.2s, background 0.2s; }
.mv-nav-list > li > a:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* Match the default desktop menu arrow for WordPress custom menus. */
@media (min-width: 901px) {
  .mv-nav-list > li.menu-item-has-children > a::after { content: " ▾"; white-space: pre; }
}

.mv-dropdown-grid, .mv-nav-list .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 360px; padding: 14px;
  background: #1a1e2b; border: 1px solid var(--border); border-radius: 14px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.2s;
  box-shadow: 0 20px 48px rgba(0,0,0,0.55); list-style: none; margin: 0;
}
.mv-has-drop:hover .mv-dropdown-grid, .mv-nav-list li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mv-dropdown-grid a, .mv-nav-list .sub-menu a { padding: 7px 10px; border-radius: 8px; font-size: 13px; color: #cdd3e3; display: block; }
.mv-dropdown-grid a:hover, .mv-nav-list .sub-menu a:hover { background: rgba(24,119,242,0.16); color: #fff; }

.mv-header-right { display: flex; align-items: center; gap: 12px; }
.mv-search-box { position: relative; width: 250px; }
.mv-search-box input {
  width: 100%; height: 38px; padding: 0 14px 0 36px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06);
  font-size: 13px; color: #fff; outline: none; transition: border 0.2s, background 0.2s;
}
.mv-search-box input:focus { border-color: var(--accent-1); background: rgba(255,255,255,0.1); }
.mv-search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.mv-search-results {
  position: absolute; top: calc(100% + 8px); right: 0; width: 340px;
  background: #1a1e2b; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.65); overflow: hidden; display: none; z-index: 120;
}
.mv-search-results.is-open { display: block; }
.mv-sr-item { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.mv-sr-item:hover { background: rgba(255,255,255,0.05); }
.mv-sr-item img { width: 42px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.mv-sr-title { font-weight: 600; font-size: 13px; color: #fff; }
.mv-sr-sub { font-size: 12px; color: var(--muted); }
.mv-btn-auth {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.12); white-space: nowrap;
}
.mv-btn-auth:hover { background: rgba(255,255,255,0.16); }
.mv-mob-menu-btn, .mv-btn-auth-ico { display: none; }

/* HERO SLIDER */
.mv-hero { position: relative; width: 100%; height: clamp(560px, 78vh, 760px); overflow: hidden; background: #0c0e14; }
.mv-hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s ease; }
.mv-hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.mv-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; }
.mv-hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.mv-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #11131a 0%, rgba(17,19,26,0.82) 38%, rgba(17,19,26,0.22) 72%, rgba(17,19,26,0.4) 100%),
              linear-gradient(0deg, #11131a 0%, rgba(17,19,26,0) 45%);
}
.mv-hero-inner { position: relative; z-index: 3; height: 100%; display: flex; align-items: flex-end; padding-bottom: 64px; }
.mv-hero-content { max-width: 540px; }
.mv-hero-logo { max-height: 92px; max-width: 360px; object-fit: contain; margin-bottom: 12px; }
.mv-hero-title { font-size: 40px; font-weight: 800; line-height: 1.15; margin: 0 0 8px; }
.mv-hero-orig { color: #e2b857; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.mv-meta-pills, .mv-genre-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.mv-pill { padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); }
.mv-pill.is-age { background: var(--accent-grad); border-color: transparent; color: #fff; }
.mv-genre-tag { padding: 4px 11px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,0.07); color: #dce1f0; border: 1px solid rgba(255,255,255,0.1); }
.mv-genre-tag:hover { background: rgba(24,119,242,0.25); }
.mv-hero-desc { color: #c7cee0; font-size: 13.5px; line-height: 1.6; margin: 0 0 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mv-hero-actions { display: flex; align-items: center; gap: 12px; }
.mv-btn-play-circle {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(110deg, #ffd166 0%, #ffe29a 52%, #fff0c0 100%); color: #18140c;
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(255, 198, 71, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}
.mv-btn-play-circle:hover {
  transform: scale(1.06);
  filter: brightness(1.05);
  box-shadow: 0 8px 28px rgba(255, 198, 71, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.mv-btn-icon-circle {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.mv-btn-icon-circle:hover, .mv-btn-icon-circle.is-fav { background: rgba(24,119,242,0.28); border-color: var(--accent-1); }

.mv-hero-thumbs {
  position: absolute; right: 28px; bottom: 42px; z-index: 5;
  display: flex; gap: 10px;
}
.mv-hero-thumb {
  width: 66px; height: 92px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.18); background: #181b26; opacity: 0.65; transition: all 0.2s;
}
.mv-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mv-hero-thumb.is-active, .mv-hero-thumb:hover { opacity: 1; border-color: var(--accent-2); transform: translateY(-4px); }
.mv-hero-mobile { display: none; }

/* SECTION HEADERS */
.mv-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.mv-sec-title { font-size: 20px; font-weight: 800; margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.mv-sec-title.has-bar::before { content: ''; width: 4px; height: 22px; border-radius: 4px; background: var(--accent-grad); display: inline-block; }
.mv-grad-pink { background: linear-gradient(90deg, #f9a8d4, #ffffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mv-grad-green { background: linear-gradient(90deg, #6ee7b7, #ffffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mv-grad-purple { background: linear-gradient(90deg, #6cb4ff, #ffffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mv-grad-amber { background: linear-gradient(90deg, #fcd34d, #ffffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mv-link-muted { font-size: 13px; color: var(--muted); background: none; border: none; cursor: pointer; }
.mv-link-muted:hover { color: #fff; }
.mv-sec-tools { display: flex; align-items: center; gap: 14px; }

/* CARDS & BADGES */
.mv-card { display: flex; flex-direction: column; min-width: 0; }
.mv-card-thumb {
  position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden;
  background: var(--panel-2); border: 1px solid rgba(255,255,255,0.06);
}
.mv-card-thumb.is-16x9 { aspect-ratio: 16 / 9; }
.mv-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.mv-card-thumb::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; z-index: 1;
  background: linear-gradient(0deg, rgba(12, 14, 20, 0.82), transparent); pointer-events: none;
}
.mv-card:hover .mv-card-thumb { border-color: rgba(255, 255, 255, 0.45); }
.mv-card:hover .mv-card-thumb img { transform: scale(1.05); }

.mv-top-badges {
  position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 6px; pointer-events: none;
}
.mv-badge-score { background: var(--imdb); color: #111; font-weight: 800; font-size: 11px; padding: 3px 7px; border-radius: 5px; }
.mv-badge-bilingual {
  background: #ffffff; color: #1877f2; font-weight: 700; font-size: 11px; padding: 3px 7px; border-radius: 5px;
  display: inline-flex; align-items: center; gap: 3px; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.mv-badge-quality { background: rgba(15,17,24,0.82); color: #fff; font-weight: 700; font-size: 11px; padding: 3px 7px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.16); }

.mv-ep-badges { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 5px; pointer-events: none; }
.mv-badge-ep { font-size: 10px; font-weight: 700; padding: 2px 6px; line-height: 1.35; border-radius: 5px; color: #fff; }
.mv-badge-ep.is-pd { background: rgba(24,28,40,0.88); border: 1px solid rgba(255,255,255,0.15); }
.mv-badge-ep.is-tm { background: var(--tm); }
.mv-badge-ep.is-lt { background: var(--lt); }

.mv-card-info { padding-top: 10px; }
.mv-card-title { margin: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-card-title a:hover { color: #6cb4ff; }
.mv-card-orig { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* GRIDS */
.mv-rec-layout { display: grid; grid-template-columns: 235px 1fr; gap: 28px; align-items: center; }
.mv-eyebrow { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.mv-rec-title { font-size: 34px; font-weight: 800; line-height: 1.15; margin: 0; background: linear-gradient(135deg, #6cb4ff, #ffffff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.mv-grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 18px; }
.mv-grid-7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.mv-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* CONTINUE WATCHING */
.mv-cw-card { display: block; }
.mv-cw-thumb { position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; background: var(--panel-2); }
.mv-cw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mv-cw-badge-red { position: absolute; top: 8px; left: 8px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 5px; }
.mv-cw-badge-ep { position: absolute; top: 8px; right: 8px; background: rgba(15,17,24,0.85); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 5px; }
.mv-cw-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,0.22); }
.mv-cw-progress > span { display: block; height: 100%; background: var(--accent-grad); }
.mv-cw-title { margin-top: 8px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* TOP RANK 1-6 */
.mv-rank-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 18px; }
.mv-rank-card { position: relative; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; display: block; }
.mv-rank-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.mv-rank-card:hover img { transform: scale(1.06); }
.mv-rank-tint { position: absolute; inset: 0; }
.mv-rank-card.is-rank-1 .mv-rank-tint { background: linear-gradient(0deg, rgba(168,118,38,0.95) 0%, rgba(168,118,38,0.35) 38%, transparent 72%); }
.mv-rank-card.is-rank-2 .mv-rank-tint { background: linear-gradient(0deg, rgba(15,134,124,0.95) 0%, rgba(15,134,124,0.35) 38%, transparent 72%); }
.mv-rank-card.is-rank-3 .mv-rank-tint { background: linear-gradient(0deg, rgba(44,82,196,0.95) 0%, rgba(44,82,196,0.35) 38%, transparent 72%); }
.mv-rank-card.is-rank-4 .mv-rank-tint { background: linear-gradient(0deg, rgba(176,34,34,0.95) 0%, rgba(176,34,34,0.35) 38%, transparent 72%); }
.mv-rank-card.is-rank-5 .mv-rank-tint { background: linear-gradient(0deg, rgba(24,119,242,0.95) 0%, rgba(24,119,242,0.35) 38%, transparent 72%); }
.mv-rank-card.is-rank-6 .mv-rank-tint { background: linear-gradient(0deg, rgba(186,104,24,0.95) 0%, rgba(186,104,24,0.35) 38%, transparent 72%); }
.mv-rank-info { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; }
.mv-rank-num { display: block; font-size: 46px; font-weight: 800; font-style: italic; line-height: 0.9; text-shadow: 0 6px 18px rgba(0,0,0,0.45); margin-bottom: 6px; }
.mv-rank-title { margin: 0; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* SCHEDULE TODAY */
.mv-schedule-box { background: #141722; border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; }
.mv-schedule-title-wrap { display: flex; align-items: center; gap: 10px; }
.mv-badge-released-count { background: rgba(16,185,129,0.16); color: #34d399; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.mv-schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.mv-schedule-item { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 10px; transition: background 0.15s; }
.mv-schedule-item:hover { background: rgba(255,255,255,0.04); }
.mv-sch-time { width: 46px; font-size: 13px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.mv-sch-time.is-live { color: #4d9eff; }
.mv-sch-thumb { width: 42px; height: 58px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.mv-sch-meta { min-width: 0; }
.mv-sch-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-sch-sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.mv-pill-done { background: rgba(16,185,129,0.16); color: #34d399; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 5px; }
.mv-pill-soon { color: var(--muted); }

/* BENTO 1+6 */
.mv-bento-grid { display: grid; grid-template-columns: 1.55fr repeat(3, 1fr); gap: 14px; }
.mv-bento-featured { grid-row: span 2; }
.mv-bento-featured-link { position: relative; display: block; height: 100%; min-height: 330px; border-radius: 14px; overflow: hidden; }
.mv-bento-featured-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.mv-bento-featured:hover img { transform: scale(1.04); }
.mv-bento-grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,17,24,0.94) 0%, rgba(15,17,24,0.2) 55%, transparent 100%); }
.mv-bento-bottom { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mv-bento-text h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.mv-bento-text p { margin: 0 0 10px; font-size: 12.5px; color: #cbd2e6; }
.mv-bento-featured .mv-ep-badges { position: static; }
.mv-bento-play { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; flex-shrink: 0; }
.mv-bento-pager { display: inline-flex; align-items: center; gap: 6px; }
.mv-pg-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel-2); cursor: pointer; }
.mv-pg-btn:hover { background: var(--accent-1); }
.mv-pg-num { font-size: 12px; color: var(--muted); min-width: 28px; text-align: center; }

/* DETAIL PAGE */
.mv-detail-hero { position: relative; padding: 104px 0 42px; overflow: hidden; }
.mv-detail-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; filter: brightness(0.45); }
.mv-detail-hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, #11131a 0%, rgba(17,19,26,0.55) 60%, rgba(17,19,26,0.75) 100%); }
.mv-detail-hero-inner { position: relative; z-index: 2; display: flex; gap: 28px; align-items: flex-end; }
.mv-detail-poster { width: 200px; flex-shrink: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 42px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.12); }
.mv-detail-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.mv-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.mv-breadcrumb a:hover { color: #fff; }
.mv-detail-logo { max-height: 76px; max-width: 380px; object-fit: contain; margin-bottom: 8px; }
.mv-detail-title { font-size: 32px; font-weight: 800; margin: 0 0 6px; }
.mv-detail-orig { color: #c7cee0; margin: 0 0 14px; font-size: 14px; }

.mv-star-rating { display: flex; align-items: center; gap: 10px; margin: 12px 0 18px; }
.mv-stars { display: inline-flex; gap: 3px; }
.mv-star { background: none; border: none; font-size: 20px; color: #474f68; cursor: pointer; padding: 0 2px; transition: color 0.15s, transform 0.15s; }
.mv-star:hover, .mv-star.is-lit { color: var(--imdb); transform: scale(1.1); }
.mv-rating-text { font-size: 12.5px; color: var(--muted); }

.mv-detail-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mv-btn-watch-now {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px;
  background: var(--accent-grad); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 24px rgba(24,119,242,0.4);
}
.mv-btn-glass-circle { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid var(--border); display: grid; place-items: center; cursor: pointer; }
.mv-btn-glass { padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid var(--border); font-weight: 600; cursor: pointer; }
.mv-btn-primary { padding: 10px 20px; border-radius: 10px; background: var(--accent-grad); color: #fff; border: none; font-weight: 700; cursor: pointer; display: inline-block; }

.mv-detail-body { display: grid; grid-template-columns: 1fr 320px; gap: 28px; margin-top: 24px; align-items: start; }
.mv-detail-section { margin-bottom: 36px; }
.mv-ep-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.mv-ep-quick-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.mv-btn-watch-sm { padding: 9px 18px; border-radius: 999px; background: var(--accent-grad); font-weight: 700; font-size: 13px; }
.mv-btn-glass-sm { padding: 9px 16px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }

/* Toggle Switch Thu gon */
.mv-toggle-compact { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.mv-toggle-compact input { display: none; }
.mv-switch { width: 38px; height: 22px; background: #2c3145; border-radius: 999px; position: relative; transition: background 0.2s; }
.mv-switch::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform 0.2s; }
.mv-toggle-compact input:checked + .mv-switch { background: var(--accent-1); }
.mv-toggle-compact input:checked + .mv-switch::after { transform: translateX(16px); }

.mv-sv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mv-sv-tab { padding: 6px 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.mv-sv-tab.is-active { background: rgba(24,119,242,0.22); border-color: var(--accent-1); color: #fff; }

.mv-ep-container { display: none; }
.mv-ep-container.is-active { display: block; }
.mv-ep-grid-detail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mv-ep-item { display: block; border-radius: 10px; overflow: hidden; transition: transform 0.15s; }
.mv-ep-item.is-extra-ep { display: none; }
.mv-ep-container.is-expanded .mv-ep-item.is-extra-ep { display: block; }
.mv-ep-card-thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--panel-2); margin-bottom: 6px; }
.mv-ep-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mv-ep-play-dot { position: absolute; left: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(15,17,24,0.85); color: #fff; font-size: 10px; display: grid; place-items: center; }
.mv-ep-num { display: block; font-weight: 700; font-size: 13px; }
.mv-ep-sub, .mv-ep-dur { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Compact mode on Detail page */
.mv-ep-container.is-compact .mv-ep-grid-detail { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.mv-ep-container.is-compact .mv-ep-card-thumb,
.mv-ep-container.is-compact .mv-ep-sub,
.mv-ep-container.is-compact .mv-ep-dur { display: none; }
.mv-ep-container.is-compact .mv-ep-item {
  background: var(--panel-2); border: 1px solid var(--border); padding: 9px 10px; text-align: center;
}
.mv-ep-container.is-compact .mv-ep-item:hover { background: var(--accent-1); border-color: transparent; }
.mv-ep-container.is-compact .mv-ep-item.is-extra-ep { display: block; }
.mv-ep-container.is-compact .mv-btn-expand-eps { display: none; }
.mv-btn-expand-eps {
  width: 100%; margin-top: 14px; padding: 11px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--border); font-weight: 600; cursor: pointer;
}

/* Info Sticky Box */
.mv-info-box { position: sticky; top: 86px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.mv-info-box h3 { margin: 0 0 14px; font-size: 16px; }
.mv-info-list { margin: 0; display: grid; gap: 10px; }
.mv-info-list > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 13px; }
.mv-info-list dt { color: var(--muted); }
.mv-info-list dd { margin: 0; color: #e8ecf8; }

/* Cast */
.mv-cast-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px 12px; }
.mv-cast-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
.mv-cast-card { text-align: center; }
.mv-cast-avatar { width: 70px; height: 70px; margin: 0 auto 8px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255,255,255,0.08); background: var(--panel-2); }
.mv-cast-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.mv-cast-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-cast-role { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mv-seo-prose { color: #c7cee0; line-height: 1.75; }
.mv-seo-prose p { margin: 0 0 12px; }

/* WATCH PAGE */
.mv-watch-crumb { margin: 12px 0 16px; }
.mv-watch-stage { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.mv-player-frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 14px 14px 0 0; overflow: hidden; border: 1px solid var(--border); }
.mv-player-frame iframe, .mv-player-frame video { width: 100%; height: 100%; border: 0; display: block; }
.mv-player-empty { height: 100%; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }

.mv-player-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border); border-top: 0;
  border-radius: 0 0 14px 14px; padding: 12px 16px;
}
.mv-player-bar-left, .mv-player-bar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mv-bar-btn { background: none; border: none; font-size: 13px; font-weight: 600; color: #dce1f0; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.mv-bar-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mv-bar-ico { flex-shrink: 0; display: block; opacity: 0.92; }
.mv-bar-btn:hover .mv-bar-ico { opacity: 1; }
.mv-bar-btn.is-fav { color: #fb7185; }
.mv-bar-btn.is-fav .mv-bar-ico-heart { fill: currentColor; }
.mv-pill-state { font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: #2d3347; color: var(--muted); }
.mv-pill-state.is-on { background: var(--accent-1); color: #fff; }

/* Server Popover */
.mv-server-picker { position: relative; }
.mv-btn-server-trigger {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 10px;
  background: rgba(24,119,242,0.16); border: 1px solid rgba(24,119,242,0.55); color: #cce4ff; font-weight: 700; font-size: 13px; cursor: pointer;
}
.mv-sv-dot { width: 8px; height: 8px; border-radius: 50%; background: #facc15; }
.mv-server-popover {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  width: 320px; background: #1c2030; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.75); padding: 14px; display: none; z-index: 90;
}
.mv-server-popover.is-open { display: block; }
.mv-sv-pop-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.mv-sv-pop-head strong { display: block; font-size: 14px; }
.mv-sv-pop-head span { font-size: 12px; color: #4d9eff; }
.mv-sv-count { font-size: 12px; color: var(--muted) !important; }
.mv-sv-pop-list { display: grid; gap: 8px; }
.mv-sv-option {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid transparent; text-align: left; cursor: pointer;
}
.mv-sv-option:hover:not(.is-disabled) { background: rgba(255,255,255,0.07); }
.mv-sv-option.is-selected { background: rgba(24,119,242,0.18); border-color: rgba(24,119,242,0.55); }
.mv-sv-option.is-disabled { opacity: 0.42; cursor: not-allowed; }
.mv-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.mv-signal i { width: 3px; background: #525b75; border-radius: 2px; display: block; }
.mv-signal i:nth-child(1) { height: 5px; } .mv-signal i:nth-child(2) { height: 9px; } .mv-signal i:nth-child(3) { height: 14px; }
.mv-signal.is-good i { background: #34d399; }
.mv-sv-opt-meta { flex: 1; min-width: 0; }
.mv-sv-opt-title { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.mv-sv-lang { font-size: 11px; color: #60a5fa; font-weight: 600; }
.mv-sv-opt-sub { font-size: 11.5px; color: var(--muted); }
.mv-sv-code { padding: 4px 9px; border-radius: 7px; font-weight: 800; font-size: 12px; background: #2c3145; }
.mv-sv-option.is-selected .mv-sv-code { background: var(--accent-1); color: #fff; }

.mv-player-hints { margin-top: 10px; font-size: 12.5px; }
.mv-hint-blue { color: #60a5fa; margin: 0 0 4px; }
.mv-hint-muted { color: var(--muted); margin: 0; }
.mv-link-inline { background: none; border: none; color: #fff; text-decoration: underline; cursor: pointer; padding: 0; }

/* Watch Sidebar */
.mv-watch-sidebar {
  background: #10131c; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 16px;
}
.mv-ws-lang-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mv-ws-lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 8px;
  background: #1a1e29; border: 1px solid rgba(255,255,255,0.09);
  color: #eef1fa; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all 0.15s;
}
.mv-ws-lang-btn:hover { border-color: rgba(255,255,255,0.24); background: #212635; }
.mv-ws-lang-btn.is-active {
  background: rgba(34, 197, 94, 0.08);
  border-color: #22c55e;
  color: #22c55e;
}
.mv-ws-bars {
  display: inline-flex; align-items: flex-end; gap: 2px; height: 12px;
}
.mv-ws-bars i {
  display: block; width: 3px; border-radius: 1.5px; background: currentColor;
}
.mv-ws-bars i:nth-child(1) { height: 4px; }
.mv-ws-bars i:nth-child(2) { height: 8px; }
.mv-ws-bars i:nth-child(3) { height: 12px; }

.mv-ws-search-wrap {
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mv-ws-search {
  width: 100%; height: 40px; padding: 0 14px; border-radius: 8px;
  background: #141822; border: 1px solid rgba(255,255,255,0.1);
  color: #eef1fa; font-size: 13px; outline: none; transition: border-color 0.15s;
}
.mv-ws-search::placeholder { color: #6c748a; }
.mv-ws-search:focus { border-color: rgba(255,255,255,0.28); }

.mv-watch-ep-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; max-height: 440px; overflow-y: auto; padding-right: 4px;
}
.mv-watch-ep-btn {
  height: 42px; padding: 0 6px; border-radius: 8px;
  background: #141822; border: 1px solid rgba(255,255,255,0.08);
  color: #f3f4f8; font-size: 13.5px; font-weight: 700;
  cursor: pointer; text-align: center; transition: all 0.15s;
}
.mv-watch-ep-btn:hover { background: #1d2230; border-color: rgba(255,255,255,0.22); }
.mv-watch-ep-btn.is-active {
  background: #e50914; border-color: #e50914; color: #ffffff;
}
.mv-watch-ep-btn.is-hidden-search { display: none !important; }

/* Watch Lower */
.mv-watch-lower { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-top: 28px; align-items: start; }
.mv-watch-info-strip { display: grid; grid-template-columns: 118px minmax(220px, 0.9fr) 1.45fr; gap: 22px; align-items: start; margin-bottom: 24px; }
.mv-strip-poster { width: 118px; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 26px rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.1); }
.mv-strip-meta h2 { margin: 0 0 5px; font-size: 20px; line-height: 1.25; }
.mv-strip-orig { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.mv-strip-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mv-strip-genre {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #d6dbe8; font-size: 11.5px; font-weight: 500; transition: border-color 0.15s, color 0.15s;
}
.mv-strip-genre:hover { border-color: var(--accent-1); color: #fff; }
.mv-strip-status {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09);
  font-size: 12px; color: #e2e6f3; font-weight: 600;
}
.mv-strip-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4d9eff; flex-shrink: 0; }
.mv-strip-desc p { margin: 0 0 10px; color: #b8c0d4; font-size: 13.5px; line-height: 1.65; }
.mv-link-white { font-weight: 700; font-size: 13.5px; }
.mv-comments-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.mv-comments-title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
.mv-comments-ico { color: var(--dt-gold, #1877f2); flex-shrink: 0; }
.mv-comments-num { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.mv-comment-field textarea, .mv-modal textarea { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; color: #fff; resize: vertical; }
.mv-comment-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.mv-comment-list li { background: var(--panel-2); padding: 12px 14px; border-radius: 12px; }
.mv-side-block { margin-bottom: 24px; }
.mv-side-block h3 { margin: 0 0 12px; font-size: 16px; }
.mv-muted-text { color: var(--muted); font-size: 13px; margin: 0; }
.mv-related-section { margin-top: 40px; }

/* FILTER & ARCHIVE */
.mv-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; background: var(--panel); border: 1px solid var(--border); padding: 16px; border-radius: 14px; margin: 16px 0 24px; }
.mv-filter-bar select { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; min-width: 150px; flex: 1; }
.mv-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.mv-pagination .page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--panel); border: 1px solid var(--border); font-weight: 600; }
.mv-pagination .page-numbers.current { background: var(--accent-grad); border-color: transparent; }
.mv-empty-box { padding: 48px 20px; text-align: center; background: var(--panel); border-radius: 16px; color: var(--muted); }
.mv-admin-notice { background: rgba(24,119,242,0.14); border: 1px solid rgba(24,119,242,0.45); border-radius: 12px; padding: 14px 18px; font-size: 13.5px; }

/* FOOTER & MOBILE NAV */
.mv-footer { border-top: 1px solid var(--border); background: #0e1017; padding: 40px 0 84px; margin-top: 48px; }
.mv-footer-discovery h3 { margin: 0 0 18px; font-size: 16px; }
.mv-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mv-footer-col h4 { margin: 0 0 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.mv-footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: #cfd5e6; }
.mv-footer-links a:hover { color: #4d9eff; }
.mv-footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); }
.mv-footer-menu ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.mv-footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.mv-footer-widget-col { min-width: 0; }
.mv-footer-widget + .mv-footer-widget { margin-top: 20px; }
.mv-footer-widget-title { margin: 0 0 12px; font-size: 13.5px; font-weight: 700; color: #eef1fa; text-transform: uppercase; letter-spacing: 0.04em; }
.mv-footer-widget p { margin: 0 0 10px; font-size: 13px; line-height: 1.65; color: #9ea6bc; }
.mv-footer-widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.mv-footer-widget ul li a { font-size: 13px; color: #cfd5e6; transition: color 0.15s; }
.mv-footer-widget ul li a:hover { color: #4d9eff; }
.mv-footer-widget img { max-width: 100%; height: auto; }

.mv-mobile-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
  background: rgba(17,19,26,0.96); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
  grid-template-columns: repeat(4, 1fr); padding: 8px 6px;
}
.mv-mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); }
.mv-mobile-nav a.is-active { color: #4d9eff; }

/* MODALS & TOAST */
.mv-modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.72); display: grid; place-items: center; padding: 16px; }
.mv-modal[hidden] { display: none; }
.mv-modal-card { width: 100%; max-width: 440px; background: #1a1e2b; border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.mv-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mv-modal-head h3 { margin: 0; font-size: 16px; }
.mv-modal-close { background: none; border: none; font-size: 18px; cursor: pointer; }
.mv-toast {
  position: fixed; right: 20px; bottom: 80px; z-index: 220; padding: 12px 18px; border-radius: 10px;
  background: #23283b; border: 1px solid rgba(24,119,242,0.5); color: #fff; font-weight: 600; font-size: 13px;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: all 0.25s;
}
.mv-toast.is-show { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1280px) {
  .mv-container { padding: 0 22px; }
  .mv-rec-layout { grid-template-columns: 190px 1fr; gap: 20px; }
}
@media (max-width: 1180px) {
  .mv-rec-layout { grid-template-columns: 1fr; }
  .mv-bento-grid { grid-template-columns: repeat(3, 1fr); }
  .mv-bento-featured { grid-column: span 3; grid-row: span 1; }
  .mv-grid-7 { grid-template-columns: repeat(5, 1fr); }
  .mv-watch-stage, .mv-watch-lower, .mv-detail-body { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .mv-home-widget:nth-child(2) { margin-top: 0; }
  .mv-panel { padding: 18px; }
  .mv-nav, .mv-hero-thumbs { display: none; }
  .mv-mobile-nav { display: grid; }
  .mv-search-box { width: 170px; }
  .mv-hero { height: 500px; }
  .mv-hero-title { font-size: 28px; }
  .mv-grid-6, .mv-rank-grid { grid-template-columns: repeat(3, 1fr); }
  .mv-grid-7 { grid-template-columns: repeat(3, 1fr); }
  .mv-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mv-schedule-grid, .mv-footer-cols { grid-template-columns: 1fr; }
  .mv-detail-hero-inner { flex-direction: column; align-items: flex-start; }
  .mv-detail-poster { width: 140px; }
  .mv-cast-grid { grid-template-columns: repeat(4, 1fr); }
  .mv-ep-grid-detail { grid-template-columns: repeat(2, 1fr); }
  .mv-ep-container.is-compact .mv-ep-grid-detail { grid-template-columns: repeat(4, 1fr); }
  .mv-watch-info-strip { grid-template-columns: 72px 1fr; }
  .mv-strip-desc { grid-column: span 2; }
}
@media (max-width: 520px) {
  .mv-container { padding: 0 14px; }
  .mv-grid-6, .mv-grid-7, .mv-rank-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mv-bento-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-bento-featured { grid-column: span 2; }
}
/* DETAIL PAGE V2 LAYOUT (SCOPED TO SINGLE-CONTENT.PHP ONLY) */
.mv-dt-page {
  --dt-gold: #1877f2;
  --dt-gold-soft: #6cb4ff;
  --dt-gold-grad: linear-gradient(135deg, #1877f2 0%, #3b93ff 100%);
}
.mv-dt-page .mv-detail-hero {
  position: relative; padding: 112px 0 44px; min-height: 430px;
  background: #0a0b10; overflow: hidden; display: flex; align-items: center;
}
.mv-dt-page .mv-detail-hero-bg {
  position: absolute; top: 0; right: 0; bottom: 0; left: 20%;
  background-size: cover; background-position: center 22%;
  filter: brightness(0.88) contrast(1.03);
}
.mv-dt-page .mv-detail-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #0a0b10 0%, #0a0b10 21%, rgba(10,11,16,0.92) 33%, rgba(10,11,16,0.52) 54%, rgba(10,11,16,0.12) 78%, rgba(10,11,16,0.28) 100%),
    linear-gradient(0deg, #11131a 0%, rgba(17,19,26,0.38) 24%, rgba(17,19,26,0) 58%, rgba(10,11,16,0.68) 100%);
}
.mv-dt-page .mv-detail-hero-inner {
  position: relative; z-index: 2; display: flex; gap: 34px; align-items: center;
}
.mv-dt-mob-hero { display: none; }
.mv-dt-page .mv-detail-poster {
  width: 226px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 22px 54px rgba(0,0,0,0.75); border: 1px solid rgba(255,255,255,0.14);
}
.mv-dt-page .mv-detail-summary { flex: 1; min-width: 0; }
.mv-dt-page .mv-detail-title {
  font-size: clamp(26px, 2.3vw, 34px); font-weight: 800; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 6px; color: #fff;
}
.mv-dt-page .mv-detail-orig { color: #b7bfcf; margin: 0 0 14px; font-size: 15px; font-weight: 500; line-height: 1.4; }

.mv-dt-page .mv-meta-pills { gap: 8px; margin-bottom: 16px; }
.mv-dt-page .mv-pill { padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.mv-dt-page .mv-pill.is-quality { background: linear-gradient(135deg, #ffd36c 0%, #fff0ba 100%); color: #18140c; border-color: transparent; font-weight: 800; }
.mv-dt-page .mv-pill.is-outline { background: rgba(17,19,26,0.65); border: 1px solid rgba(255,255,255,0.22); color: #eef1fa; }
.mv-dt-page .mv-pill.is-rating {
  padding: 0; overflow: hidden; display: inline-flex; align-items: stretch;
  background: rgba(15,18,28,0.85); border: 1px solid rgba(56,189,248,0.45);
}
.mv-dt-page .mv-pill-rate-src { background: #0ea5e9; color: #fff; padding: 4px 7px; font-size: 11px; font-weight: 800; }
.mv-dt-page .mv-pill-rate-num { padding: 4px 8px; color: #fff; font-size: 12px; font-weight: 700; }
.mv-dt-page .mv-meta-pills .mv-pill.is-imdb-rate { border-color: rgba(245, 197, 24, 0.5); }
.mv-dt-page .mv-meta-pills .mv-pill.is-imdb-rate .mv-pill-rate-src { background: var(--imdb); color: #11131a; }

.mv-dt-page .mv-hero-specs {
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 48px;
  margin: 14px 0 24px; font-size: 14px; justify-content: start;
}
.mv-dt-page .mv-spec-col { display: grid; gap: 7px; align-content: start; }
.mv-dt-page .mv-spec-row { display: flex; align-items: baseline; gap: 10px; line-height: 1.45; }
.mv-dt-page .mv-spec-label { color: #8c95ab; min-width: 78px; flex-shrink: 0; }
.mv-dt-page .mv-spec-val { color: #f1f4fb; font-weight: 500; }

.mv-dt-page .mv-detail-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mv-dt-page .mv-btn-watch-now {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 34px; border-radius: 999px;
  background: linear-gradient(110deg, #ffd166 0%, #ffe29a 52%, #fff0c0 100%); color: #18140c; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 22px rgba(255, 198, 71, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45); transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}
.mv-dt-page .mv-btn-watch-now:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 8px 28px rgba(255, 198, 71, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.mv-dt-page .mv-btn-glass {
  padding: 12px 26px; border-radius: 999px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16); font-weight: 700; font-size: 14px; color: #fff;
}
.mv-dt-page .mv-btn-glass:hover { background: rgba(255,255,255,0.18); }

.mv-dt-page .mv-action-group {
  display: inline-flex; align-items: center; background: rgba(15,17,24,0.72);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; overflow: hidden;
}
.mv-dt-page .mv-action-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 11px 18px;
  background: transparent; border: 0; border-right: 1px solid rgba(255,255,255,0.1);
  font-size: 13.5px; font-weight: 600; color: #e2e6f3; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.mv-dt-page .mv-action-chip:last-child { border-right: 0; }
.mv-dt-page .mv-action-chip:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mv-dt-page .mv-action-chip.is-fav,
.mv-dt-page .mv-action-chip.is-saved { color: var(--dt-gold-soft); background: rgba(24,119,242,0.18); }

/* THÂN TRANG 2 CỘT + MÀU NHẤN GOLD ĐỒNG BỘ */
.mv-dt-layout {
  display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 32px;
  margin-top: 22px; align-items: start;
}
.mv-dt-side-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; display: grid; gap: 14px;
}
.mv-dt-side-card .mv-seo-prose { font-size: 13px; line-height: 1.65; color: #b8c0d4; }
.mv-dt-block { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.mv-dt-block:last-child { border-bottom: 0; padding-bottom: 0; }
.mv-dt-side-heading {
  margin: 0 0 12px; font-size: 15px; font-weight: 800; letter-spacing: 0.03em;
  display: flex; align-items: center; gap: 9px; color: #fff;
}
.mv-dt-side-heading::before { content: ''; width: 3.5px; height: 17px; border-radius: 3px; background: var(--dt-gold); }
.mv-dt-sub-heading { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); }
.mv-dt-text { margin: 0; font-size: 13.5px; color: #e8ecf8; }
.mv-dt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mv-dt-tag {
  padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: var(--panel-2); border: 1px solid var(--border); color: #d6dbe8;
}
.mv-dt-tag:hover { border-color: var(--dt-gold); color: var(--dt-gold-soft); }
.mv-dt-meta-list { margin: 0; display: grid; gap: 8px; font-size: 13px; }
.mv-dt-meta-list > div { display: flex; justify-content: space-between; gap: 12px; }
.mv-dt-meta-list dt { color: var(--muted); }
.mv-dt-meta-list dd { margin: 0; color: #eef1fa; font-weight: 500; text-align: right; }

.mv-dt-tabbar {
  display: flex; align-items: center; gap: 28px;
  border-bottom: 1px solid var(--border); margin-bottom: 18px;
}
.mv-dt-tab {
  position: relative; background: none; border: 0; padding: 8px 2px 13px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em; color: var(--muted); cursor: pointer; transition: color 0.15s;
}
.mv-dt-tab:hover { color: #fff; }
.mv-dt-tab.is-active { color: var(--dt-gold-soft); }
.mv-dt-tab.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--dt-gold); border-radius: 2px;
}
.mv-dt-panel { display: none; }
.mv-dt-panel.is-active { display: block; }

.mv-dt-sv-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.mv-dt-sv-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mv-dt-season { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; color: #fff; }
.mv-dt-season svg { color: var(--dt-gold); }
.mv-dt-active-lang { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.mv-dt-sv-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mv-dt-sv-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: #d6dbe8; cursor: pointer;
}
.mv-dt-sv-pill:hover { border-color: rgba(24,119,242,0.55); color: #fff; }
.mv-dt-sv-pill.is-active {
  border-color: var(--dt-gold); background: rgba(24,119,242,0.14); color: #fff;
}
.mv-dt-sv-badge {
  padding: 1px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 800;
  background: rgba(255,255,255,0.1); color: #d6dbe8;
}
.mv-dt-sv-pill.is-active .mv-dt-sv-badge { background: var(--dt-gold); color: #ffffff; }

.mv-dt-page .mv-toggle-compact input:checked + .mv-switch { background: var(--dt-gold); }
.mv-dt-page .mv-toggle-compact input:checked + .mv-switch::after { background: #ffffff; }

.mv-dt-ep-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.mv-dt-ep-count { font-size: 12.5px; color: var(--muted); }
.mv-dt-ep-count strong { color: #fff; }
.mv-dt-ep-count span { color: var(--dt-gold-soft); font-weight: 700; }
.mv-dt-ep-controls { display: flex; align-items: center; gap: 8px; }
.mv-dt-ep-search { position: relative; display: flex; align-items: center; }
.mv-dt-ep-search svg { position: absolute; left: 9px; color: var(--muted); pointer-events: none; }
.mv-dt-ep-search input {
  width: 156px; height: 31px; padding: 0 10px 0 28px; border-radius: 7px;
  background: var(--panel); border: 1px solid var(--border); font-size: 12px; color: #fff; outline: none;
}
.mv-dt-ep-search input:focus { border-color: var(--dt-gold); }
.mv-dt-ep-sort {
  width: 31px; height: 31px; border-radius: 7px; background: var(--panel);
  border: 1px solid var(--border); color: #d6dbe8; font-size: 13px; cursor: pointer;
}
.mv-dt-ep-sort:hover, .mv-dt-ep-sort.is-reversed { border-color: var(--dt-gold); color: var(--dt-gold-soft); }

/* PHỤ ĐỀ / THUYẾT MINH SUB-TABS & HÀNG MÁY CHỦ */
.mv-dt-lang-tabs {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.mv-dt-lang-tab {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 6px 2px 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--muted);
  cursor: pointer; transition: color 0.15s;
}
.mv-dt-lang-tab:hover { color: #fff; }
.mv-dt-lang-tab.is-active { color: var(--dt-gold); }
.mv-dt-lang-tab.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--dt-gold); border-radius: 2px;
}

.mv-dt-server-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.mv-dt-server-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); flex-shrink: 0;
}
.mv-dt-server-groups { display: flex; flex-wrap: wrap; gap: 7px; }
.mv-dt-sv-group { display: none; flex-wrap: wrap; gap: 7px; }
.mv-dt-sv-group.is-active { display: flex; }
.mv-dt-sv-btn {
  padding: 5px 11px; border-radius: 7px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.14);
  color: #d6dbe8; cursor: pointer; transition: all 0.15s;
}
.mv-dt-sv-btn:hover { border-color: var(--dt-gold); color: #fff; }
.mv-dt-sv-btn.is-active {
  background: var(--dt-gold); border-color: var(--dt-gold); color: #ffffff;
  box-shadow: 0 4px 14px rgba(24,119,242,0.35);
}

.mv-dt-ep-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mv-dt-ep-item { display: block; border-radius: 10px; overflow: hidden; transition: all 0.15s; }
.mv-dt-ep-item.is-hidden-search { display: none !important; }
.mv-ep-container.is-compact .mv-dt-ep-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; }
.mv-ep-container.is-compact .mv-dt-ep-item {
  background: #141722; border: 1px solid rgba(255,255,255,0.1); padding: 8px 6px;
  text-align: center; border-radius: 7px;
}
.mv-ep-container.is-compact .mv-ep-num {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 600;
}
.mv-ep-container.is-compact .mv-ep-ico { opacity: 0.7; flex-shrink: 0; }
.mv-ep-container:not(.is-compact) .mv-ep-ico { display: none; }
.mv-ep-container.is-compact .mv-dt-ep-item:hover {
  background: var(--dt-gold); border-color: var(--dt-gold); color: #ffffff;
}
.mv-ep-container.is-compact .mv-dt-ep-item:hover .mv-ep-ico { opacity: 1; }

.mv-dt-cast-panel { margin-bottom: 0; }
.mv-dt-rel-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mv-dt-comments-wrap { margin-top: 28px; }
.mv-dt-comments-wrap .mv-btn-primary { background: var(--dt-gold-grad); color: #ffffff; }

@media (max-width: 1280px) {
  .mv-ep-container.is-compact .mv-dt-ep-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .mv-dt-rel-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .mv-dt-page .mv-detail-hero-bg { left: 0; }
  .mv-dt-layout { grid-template-columns: 1fr; }
  .mv-dt-left { order: 2; }
  .mv-dt-right { order: 1; }
  .mv-ep-container.is-compact .mv-dt-ep-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .mv-dt-page .mv-detail-hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .mv-dt-page .mv-detail-poster { width: 160px; }
  .mv-dt-page .mv-detail-title { font-size: 28px; }
  .mv-dt-page .mv-hero-specs { grid-template-columns: 1fr; }
  .mv-dt-ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-ep-container.is-compact .mv-dt-ep-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mv-dt-rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* UNIFIED CAST PANEL (ĐỒNG NHẤT TRANG THÔNG TIN PHIM & TRANG XEM PHIM) */
.mv-cast-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px 26px;
  margin-bottom: 22px;
}
.mv-cast-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.mv-cast-panel-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}
.mv-cast-panel-title::before {
  content: '';
  width: 3.5px;
  height: 19px;
  border-radius: 3px;
  background: var(--dt-gold, #1877f2);
  flex-shrink: 0;
}
.mv-cast-director {
  font-size: 13.5px;
  color: var(--muted);
}
.mv-cast-director strong {
  color: #e8ecf8;
  font-weight: 600;
}
.mv-cast-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 140px));
  gap: 26px 24px;
  justify-content: start;
}
.mv-cast-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  text-decoration: none;
}
.mv-cast-person-avatar {
  width: 112px;
  height: 112px;
  margin-bottom: 12px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #212638, #161925);
  border: 2.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
a.mv-cast-person:hover .mv-cast-person-avatar {
  border-color: var(--dt-gold, #1877f2);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
}
.mv-cast-person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.mv-cast-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #6b7490;
}
.mv-cast-person-name {
  width: 100%;
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease;
}
a.mv-cast-person:hover .mv-cast-person-name {
  color: var(--dt-gold-soft, #6cb4ff);
}
.mv-cast-person-role {
  width: 100%;
  margin-top: 3px;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Watch Right Sidebar: Top Viewed Movies Ranking */
.mv-watch-rank-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.mv-watch-rank-head {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mv-watch-rank-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.mv-watch-rank-title svg {
  color: var(--imdb);
  flex-shrink: 0;
}
.mv-wrank-list {
  display: grid;
  gap: 8px;
}
.mv-wrank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.mv-wrank-item:hover {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.08);
}
.mv-wrank-item.is-current {
  background: rgba(24,119,242,0.12);
  border-color: rgba(24,119,242,0.32);
}
.mv-wrank-num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  color: #8c95ab;
}
.mv-wrank-num.is-top-1 {
  background: linear-gradient(135deg, #fde047, #f59e0b);
  color: #11131a;
}
.mv-wrank-num.is-top-2 {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #11131a;
}
.mv-wrank-num.is-top-3 {
  background: linear-gradient(135deg, #fdba74, #ea580c);
  color: #11131a;
}
.mv-wrank-poster {
  width: 48px;
  height: 68px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,0.08);
}
.mv-wrank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mv-wrank-info {
  flex: 1;
  min-width: 0;
}
.mv-wrank-title {
  font-size: 13px;
  font-weight: 700;
  color: #f3f4f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mv-wrank-item:hover .mv-wrank-title {
  color: #6cb4ff;
}
.mv-wrank-orig {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mv-wrank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 11px;
}
.mv-wrank-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #9aa3ba;
  font-weight: 600;
  white-space: nowrap;
}
.mv-wrank-ep {
  color: #6cb4ff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .mv-cast-panel { padding: 18px 18px 20px; }
  .mv-cast-panel-head { margin-bottom: 18px; }
  .mv-cast-showcase {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 20px 14px;
  }
  .mv-cast-person-avatar { width: 92px; height: 92px; margin-bottom: 10px; }
  .mv-cast-person-name { font-size: 13.5px; }
  .mv-cast-person-role { font-size: 12px; }
}
@media (max-width: 480px) {
  .mv-cast-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 10px;
  }
  .mv-cast-person-avatar { width: 80px; height: 80px; margin-bottom: 8px; }
  .mv-cast-person-name { font-size: 13px; }
  .mv-cast-person-role { font-size: 11.5px; }
}
/* CINE FILTER CARD (BỘ LỌC ĐIỆN ẢNH — THU GỌN MẶC ĐỊNH) */
.mv-flt-collapsible {
  margin: 14px 0 24px;
}
.mv-flt-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mv-flt-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 10px;
  background: #171b26;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.mv-flt-toggle-btn:hover {
  background: #1f2433;
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.mv-flt-toggle-btn.is-open,
.mv-flt-toggle-btn.has-active {
  border-color: rgba(24, 119, 242, 0.45);
  background: #1d2230;
}
.mv-flt-toggle-ico {
  color: #1877f2;
  flex-shrink: 0;
  display: block;
}
.mv-flt-toggle-arrow {
  color: #9ca3af;
  flex-shrink: 0;
  display: block;
  transition: transform 0.2s ease, color 0.2s ease;
}
.mv-flt-toggle-btn.is-open .mv-flt-toggle-arrow {
  transform: rotate(180deg);
  color: #1877f2;
}
.mv-flt-toggle-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.2);
  border: 1px solid rgba(24, 119, 242, 0.4);
  color: #60a5fa;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mv-filter-card {
  background: #0e1118;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 14px 0 0;
}
.mv-filter-card[hidden] {
  display: none !important;
}
.mv-flt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mv-flt-head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mv-flt-ico-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(24, 119, 242, 0.12);
  border: 1px solid rgba(24, 119, 242, 0.22);
  color: #1877f2;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mv-flt-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mv-flt-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}
.mv-flt-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(24, 119, 242, 0.14);
  border: 1px solid rgba(24, 119, 242, 0.34);
  color: #60a5fa;
  font-size: 11.5px;
  font-weight: 700;
}
.mv-flt-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #8c95ab;
}
.mv-flt-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.mv-flt-reset-btn svg {
  color: #1877f2;
}
.mv-flt-reset-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(24, 119, 242, 0.45);
  color: #ffffff;
}

.mv-flt-section {
  margin-bottom: 20px;
}
.mv-flt-label-caps {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8c95ab;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.mv-flt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mv-flt-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mv-flt-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}
.mv-flt-pill.is-active {
  background: linear-gradient(135deg, #1877f2, #125ac0);
  border-color: #1877f2;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 18px rgba(24, 119, 242, 0.38);
}
.mv-flt-pill-ico {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
}
.mv-flt-pill.is-active .mv-flt-pill-ico {
  opacity: 1;
}
.mv-flt-check {
  margin-left: 2px;
}

.mv-flt-selects {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.mv-flt-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #eef1fa;
  margin-bottom: 8px;
}
.mv-flt-select-wrap {
  position: relative;
}
.mv-flt-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #cbd5e1;
  border-bottom: 2px solid #cbd5e1;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.mv-flt-select-wrap select {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 16px;
  border-radius: 999px;
  background: #141822;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eef1fa;
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}
.mv-flt-select-wrap select:hover,
.mv-flt-select-wrap select:focus {
  border-color: rgba(24, 119, 242, 0.55);
}

.mv-flt-applied {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.mv-flt-applied-label {
  font-size: 12.5px;
  color: #8c95ab;
  letter-spacing: 0.02em;
}
.mv-flt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mv-flt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 12.5px;
  transition: background 0.15s, border-color 0.15s;
}
.mv-flt-chip strong {
  color: #ffffff;
  font-weight: 700;
}
.mv-flt-chip-x {
  margin-left: 3px;
  font-size: 14px;
  line-height: 1;
  color: #94a3b8;
}
.mv-flt-chip:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
}
.mv-flt-chip:hover .mv-flt-chip-x {
  color: #fca5a5;
}

@media (max-width: 1120px) {
  .mv-flt-selects {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .mv-flt-selects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .mv-filter-card {
    padding: 16px;
  }
  .mv-flt-selects {
    grid-template-columns: 1fr;
  }
}
/* ĐỔI SERVER TRỰC TIẾP: LAG/LỖI ĐỔI SERVER -> [SV BUTTONS] */
.mv-lag-sv-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 6px;
}
.mv-sv-lag-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  user-select: none;
}
.mv-sv-lag-hint svg {
  color: #f1f5f9;
  flex-shrink: 0;
}
.mv-lag-sv-pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.mv-lag-sv-btn {
  min-width: 56px;
  height: 36px;
  padding: 0 15px;
  border-radius: 10px;
  background: #252936;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mv-lag-sv-btn:hover:not(:disabled) {
  background: #303647;
  border-color: rgba(253, 224, 71, 0.55);
  color: #ffffff;
}
.mv-lag-sv-btn.is-active {
  background: linear-gradient(180deg, #ffe27a 0%, #facc15 100%);
  border-color: #fde047;
  color: #11131a;
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.48);
}
.mv-lag-sv-btn.is-disabled,
.mv-lag-sv-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
/* =====================================================================
 * TRANG DIỄN VIÊN (taxonomy-actor.php)
 * ===================================================================== */
.mv-actor-main {
  padding-top: 96px;
  padding-bottom: 72px;
}
.mv-actor-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.mv-actor-sidebar {
  position: sticky;
  top: 90px;
  padding-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.mv-actor-avatar-box {
  width: 100%;
  max-width: 248px;
  aspect-ratio: 2 / 3;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  background: #1b2030;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}
.mv-actor-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.mv-actor-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #64748b;
  background: linear-gradient(145deg, #1b2030, #121521);
}
.mv-actor-name {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.mv-actor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.mv-actor-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.mv-actor-pill-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.mv-actor-pill-btn.is-fav {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.45);
  color: #fb7185;
}
.mv-actor-pill-btn.is-fav .mv-actor-ico-heart {
  color: #f43f5e;
}
.mv-actor-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mv-actor-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mv-actor-label {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}
.mv-actor-val,
.mv-actor-bio {
  font-size: 13.5px;
  line-height: 1.65;
  color: #9ca3af;
  word-break: break-word;
}
.mv-actor-bio.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mv-actor-bio-more {
  align-self: flex-start;
  margin-top: 2px;
  padding: 0;
  background: none;
  border: 0;
  color: #f59e0b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mv-actor-bio-more:hover {
  text-decoration: underline;
}
.mv-actor-inline-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.55;
}
.mv-actor-inline-row .mv-actor-label {
  flex-shrink: 0;
}

/* Cột phải: Phim tham gia & Tabs */
.mv-actor-content {
  min-width: 0;
}
.mv-actor-head {
  margin-bottom: 16px;
}
.mv-actor-sec-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}
.mv-actor-sec-title::before {
  content: '';
  width: 3.5px;
  height: 20px;
  border-radius: 4px;
  background: var(--accent-grad);
  flex-shrink: 0;
}
.mv-actor-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}
.mv-actor-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 4px 12px;
  background: none;
  border: 0;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}
.mv-actor-tab:hover {
  color: #e5e7eb;
}
.mv-actor-tab.is-active {
  color: #f59e0b;
}
.mv-actor-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #f59e0b;
}
.mv-actor-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 16px;
}

/* Tab Thời gian (Timeline theo năm — thẻ Poster dọc chuẩn OTT) */
.mv-actor-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mv-tl-year-block {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.mv-tl-year-rail {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 4px;
}
.mv-tl-year-rail::after {
  content: '';
  position: absolute;
  right: 4.5px;
  top: 19px;
  bottom: -36px;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.mv-tl-year-block:last-child .mv-tl-year-rail::after {
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
}
.mv-tl-year-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #8c95a8;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.mv-tl-dot {
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid var(--accent-1);
  background: var(--bg);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--bg);
}
.mv-tl-year-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px 16px;
}

@media (max-width: 1440px) {
  .mv-actor-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mv-tl-year-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .mv-actor-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
  .mv-actor-sidebar { padding-right: 20px; }
  .mv-actor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mv-tl-year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mv-actor-layout { grid-template-columns: 1fr; gap: 30px; }
  .mv-actor-sidebar {
    position: static;
    padding-right: 0;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mv-actor-avatar-box { margin-left: auto; margin-right: auto; }
  .mv-actor-name { text-align: center; }
  .mv-actor-actions { justify-content: center; }
  .mv-actor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mv-tl-year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .mv-actor-main { padding-top: 84px; }
  .mv-actor-avatar-box { width: 190px; max-width: 100%; aspect-ratio: 2 / 3; height: auto; border-radius: 14px; }
  .mv-actor-name { font-size: 24px; }
  .mv-actor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .mv-tl-year-block { grid-template-columns: 1fr; gap: 12px; }
  .mv-tl-year-rail {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding-top: 0;
  }
  .mv-tl-year-rail::after { display: none; }
  .mv-tl-dot { order: -1; margin-top: 0; box-shadow: none; }
  .mv-tl-year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
}

/* Hata v33: mobile layout only; existing desktop and state rules remain intact. */
@media (max-width: 900px) {
  .mv-dark-body { --mv-mobile-header: 58px; --mv-mobile-gutter: 14px; }
  .mv-container {
    padding-left: var(--mv-mobile-gutter, 14px);
    padding-right: var(--mv-mobile-gutter, 14px);
  }
  .mv-header {
    height: var(--mv-mobile-header, 58px);
    background: rgba(12, 14, 20, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .mv-header.is-scrolled { background: rgba(12, 14, 20, 0.98); }
  .mv-header-inner { gap: 10px; justify-content: flex-start; }
  .mv-mob-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-left: -4px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #d6dbe8;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.18s ease, background 0.18s ease;
  }
  .mv-mob-menu-btn:hover,
  .mv-mob-menu-btn.is-open {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }
  .mv-brand {
    min-width: 0;
    max-width: 136px;
    flex-shrink: 0;
    min-height: 36px;
    gap: 7px;
    font-size: 18px;
  }
  .mv-brand-mark { width: 26px; height: 26px; border-radius: 7px; font-size: 14px; flex-shrink: 0; }
  .mv-brand-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
  .mv-brand img { max-width: 120px; max-height: 28px; object-fit: contain; }
  .mv-header-right { flex: 1; min-width: 0; justify-content: flex-end; gap: 6px; }
  .mv-search-box { flex: 1; min-width: 0; max-width: none; width: auto; }
  .mv-search-ico { left: 12px; width: 16px; height: 16px; color: #9aa2b8; }
  .mv-search-box input {
    height: 38px;
    min-width: 0;
    padding: 0 12px 0 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 14px;
    color: #ffffff;
  }
  .mv-search-box input::placeholder { color: #8f97ad; }
  .mv-btn-auth { display: none; }
  .mv-search-results {
    position: fixed;
    top: calc(var(--mv-mobile-header, 58px) + 6px);
    left: var(--mv-mobile-gutter, 14px);
    right: var(--mv-mobile-gutter, 14px);
    width: auto;
    max-height: 55vh;
    max-height: 55dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  /* Mobile navigation drawer (reuses existing .mv-nav) */
  .mv-nav.is-mob-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--mv-mobile-header, 58px) - 64px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    background: #141722;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px var(--mv-mobile-gutter, 14px) 16px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.72);
    z-index: 110;
  }
  .mv-nav.is-mob-open .mv-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .mv-nav.is-mob-open .mv-nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
  }
  .mv-nav.is-mob-open .mv-dropdown-grid,
  .mv-nav.is-mob-open .mv-nav-list .sub-menu {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 10px;
    margin-top: 6px;
    padding: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: none;
  }
  .mv-nav.is-mob-open li.is-sub-open > .mv-dropdown-grid,
  .mv-nav.is-mob-open li.is-sub-open > .sub-menu {
    display: grid;
  }
  .mv-sr-item > div { min-width: 0; overflow-wrap: anywhere; }
  .mv-main { padding-top: calc(var(--mv-mobile-header, 68px) + 16px); }
  .mv-home-main { padding-top: 0; }
  .mv-home-widget { margin-bottom: 26px; }
  .mv-home-widget:first-child:not(:has(.mv-hero)) { padding-top: calc(var(--mv-mobile-header, 68px) + 12px); }
  .mv-home-main:not(:has(.mv-home-widget)) { padding-top: calc(var(--mv-mobile-header, 68px) + 12px); }

  /* Hero Mobile: Poster Coverflow Slider (Desktop unchanged). */
  .mv-hero { display: block; height: auto; overflow: hidden; background: linear-gradient(180deg, #151822 0%, #11131a 72%); }
  .mv-hero-slide, .mv-hero-thumbs { display: none; }
  .mv-hero-mobile {
    display: block;
    --hm-card-w: clamp(210px, 34vw, 256px);
    padding-top: calc(var(--mv-mobile-header, 68px) + 18px);
    padding-bottom: 18px;
  }
  .mv-hm-stage {
    position: relative;
    width: 100%;
    height: calc(var(--hm-card-w) * 1.5);
    margin: 0 auto 20px;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
  }
  .mv-hm-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--hm-card-w);
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #181b26;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transform: translate3d(-50%, 0, 0) scale(0.74);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.36s ease, border-color 0.3s ease, box-shadow 0.36s ease;
    will-change: transform, opacity;
  }
  .mv-hm-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .mv-hm-card.is-active {
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    border-color: rgba(255, 255, 255, 0.36);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.62);
    transform: translate3d(-50%, 0, 0) scale(1);
  }
  .mv-hm-card.is-prev {
    opacity: 0.42;
    z-index: 2;
    pointer-events: auto;
    border-radius: 14px;
    transform: translate3d(calc(-50% - 101%), 0, 0) scale(0.84);
  }
  .mv-hm-card.is-next {
    opacity: 0.42;
    z-index: 2;
    pointer-events: auto;
    border-radius: 14px;
    transform: translate3d(calc(-50% + 101%), 0, 0) scale(0.84);
  }
  .mv-hm-body { text-align: center; }
  .mv-hm-info { display: none; }
  .mv-hm-info.is-active { display: block; animation: mvHmFade 0.28s ease; }
  @keyframes mvHmFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .mv-hm-title {
    display: block;
    font-size: clamp(21px, 5.4vw, 26px);
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
  }
  .mv-hm-orig {
    font-size: 14px;
    font-weight: 500;
    color: #9aa2b8;
    line-height: 1.4;
    margin: 0 0 18px;
    overflow-wrap: anywhere;
  }
  .mv-hm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 390px;
    margin: 0 auto 16px;
  }
  .mv-hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.16s ease, filter 0.16s ease;
  }
  .mv-hm-btn:active { transform: scale(0.98); }
  .mv-hm-btn-play {
    background: linear-gradient(110deg, #ffd166 0%, #ffe29a 52%, #fff0c0 100%);
    color: #18140c;
    box-shadow: 0 6px 20px rgba(255, 209, 102, 0.28);
  }
  .mv-hm-btn-info {
    background: #ffffff;
    color: #11131a;
  }
  .mv-hm-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto 14px;
    max-width: 440px;
  }
  .mv-hm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f1f4fb;
  }
  .mv-hm-badge.is-quality {
    background: #fff7e2;
    border-color: #fff7e2;
    color: #18140c;
    font-weight: 800;
  }
  .mv-hm-desc {
    margin: 0 auto 16px;
    max-width: 460px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #a6aec2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mv-hm-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding-top: 2px;
  }
  .mv-hm-dot {
    background: none;
    border: 0;
    padding: 10px 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mv-hm-dot span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.26);
    transition: width 0.26s ease, background-color 0.26s ease;
  }
  .mv-hm-dot.is-active span {
    width: 26px;
    background: #ffd166;
  }

  /* Movie cards and archive grids. */
  .mv-grid-6, .mv-grid-7, .mv-rank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .mv-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .mv-bento-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .mv-bento-featured-link { min-height: 0; aspect-ratio: 16/10; }
  .mv-bento-text { min-width: 0; overflow-wrap: anywhere; }
  .mv-bento-text h3 { font-size: 17px; }
  .mv-rec-layout { grid-template-columns: minmax(0, 1fr); }
  .mv-sec-head { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  .mv-sec-title { min-width: 0; font-size: 18px; overflow-wrap: anywhere; }
  .mv-sec-title.has-bar::before { flex-shrink: 0; }
  .mv-sec-tools { min-width: 0; flex-wrap: wrap; gap: 8px; }
  .mv-card-info { padding-top: 7px; }
  .mv-card-title, .mv-card-orig { white-space: normal; overflow-wrap: anywhere; }
  .mv-card-title { font-size: 13px; }
  .mv-card-orig { font-size: 12px; }
  .mv-ep-badges { left: 5px; right: 5px; bottom: 5px; gap: 3px; }
  .mv-badge-ep { max-width: 100%; overflow-wrap: anywhere; }
  .mv-pg-btn { width: 44px; height: 44px; }
  .mv-pagination { gap: 6px; }
  .mv-pagination a.page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

  /* Detail Mobile: centered poster hero + full 16:9 backdrop + collapsible Thông tin phim (Desktop unchanged). */
  .mv-dt-page .mv-detail-hero {
    display: block;
    padding: calc(var(--mv-mobile-header, 58px) + clamp(130px, 28vw, 200px)) 0 8px;
    min-height: min(calc(100vh - 60px), 740px);
    min-height: min(calc(100svh - 60px - env(safe-area-inset-bottom, 0px)), 740px);
    background: #11131a;
  }
  .mv-dt-page .mv-detail-hero-bg {
    left: 0;
    right: auto;
    top: var(--mv-mobile-header, 58px);
    bottom: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 360px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: brightness(0.96) contrast(1.04) saturate(1.05);
  }
  .mv-dt-page .mv-detail-hero-overlay {
    left: 0;
    right: auto;
    top: var(--mv-mobile-header, 58px);
    bottom: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 360px;
    background: linear-gradient(
      180deg,
      rgba(17, 19, 26, 0.18) 0%,
      rgba(17, 19, 26, 0) 14%,
      rgba(17, 19, 26, 0.06) 52%,
      rgba(17, 19, 26, 0.76) 84%,
      #11131a 100%
    );
  }
  .mv-dt-page .mv-detail-hero-inner { display: none; }
  .mv-dt-mob-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
  }
  .mv-dt-mob-poster {
    width: clamp(152px, 40vw, 186px);
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    margin: 0 auto 14px;
    background: #161925;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.72);
  }
  .mv-dt-mob-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .mv-dt-mob-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    margin: 0 0 10px;
  }
  .mv-dt-mob-meta .mv-pill {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.3;
  }
  .mv-dt-mob-meta .mv-pill.is-rating {
    padding: 0;
  }
  .mv-dt-mob-meta .mv-pill.is-imdb-rate {
    border-color: rgba(245, 197, 24, 0.5);
  }
  .mv-dt-mob-meta .mv-pill.is-imdb-rate .mv-pill-rate-src {
    background: #f5c518;
    color: #11131a;
  }
  .mv-dt-mob-year {
    font-size: 13.5px;
    font-weight: 600;
    color: #d6dbe8;
    padding-left: 2px;
  }
  .mv-dt-mob-logo {
    max-width: min(280px, 85%);
    max-height: 68px;
    object-fit: contain;
    margin: 0 auto 8px;
    display: block;
  }
  .mv-dt-mob-title {
    width: 100%;
    font-size: clamp(22px, 5.8vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: #ffffff;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
  }
  .mv-dt-mob-orig {
    width: 100%;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.38;
    color: #9aa2b8;
    margin: 0 0 14px;
    overflow-wrap: anywhere;
  }
  .mv-dt-mob-cta {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
  .mv-dt-page .mv-dt-mob-watch-btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    padding: 11px 24px;
    font-size: 15px;
  }
  .mv-dt-mob-info-wrap {
    width: 100%;
    margin-top: 6px;
  }
  .mv-dt-mob-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 6px 18px;
    background: transparent;
    border: 0;
    color: #f3cf7a;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.18s ease;
  }
  .mv-dt-mob-chevron {
    transition: transform 0.22s ease;
    flex-shrink: 0;
  }
  .mv-dt-mob-toggle.is-open .mv-dt-mob-chevron {
    transform: rotate(180deg);
  }
  .mv-dt-mob-drawer {
    width: 100%;
    margin-top: 8px;
    padding: 18px 16px;
    border-radius: 14px;
    background: #131621;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
  }
  .mv-dt-mob-drawer[hidden] {
    display: none !important;
  }
  .mv-dt-mob-drawer-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }
  .mv-dt-mob-drawer-pills .mv-pill.is-imdb-rate {
    border-color: rgba(245, 197, 24, 0.5);
  }
  .mv-dt-mob-drawer-pills .mv-pill.is-imdb-rate .mv-pill-rate-src {
    background: #f5c518;
    color: #11131a;
  }
  .mv-dt-mob-specs {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 9px 12px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .mv-dt-mob-spec-label {
    color: #8c95ab;
    font-weight: 500;
  }
  .mv-dt-mob-spec-val {
    color: #eef1fa;
    font-weight: 500;
    overflow-wrap: anywhere;
  }
  .mv-dt-mob-heading {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
  }
  .mv-dt-mob-prose {
    font-size: 13.5px;
    line-height: 1.7;
    color: #b8c0d4;
    overflow-wrap: anywhere;
  }
  .mv-dt-mob-prose p {
    margin: 0 0 10px;
  }
  .mv-dt-mob-prose p:last-child {
    margin-bottom: 0;
  }
  .mv-dt-mob-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mv-dt-mob-act-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e6f3;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  }
  .mv-dt-mob-act-btn.is-fav,
  .mv-dt-mob-act-btn.is-saved {
    color: var(--dt-gold-soft);
    border-color: rgba(24, 119, 242, 0.45);
    background: rgba(24, 119, 242, 0.16);
  }
  .mv-dt-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 10px; }
  .mv-dt-left { display: none; }
  .mv-dt-right, .mv-dt-panel { min-width: 0; overflow-wrap: anywhere; }
  .mv-dt-tabbar {
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 12px;
  }
  .mv-dt-tabbar::-webkit-scrollbar,
  .mv-dt-lang-tabs::-webkit-scrollbar,
  .mv-dt-server-row::-webkit-scrollbar { display: none; }
  .mv-dt-tab {
    min-height: 38px;
    padding: 8px 2px 10px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .mv-dt-lang-tabs {
    gap: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 12px;
  }
  .mv-dt-lang-tab {
    min-height: 36px;
    padding: 6px 2px 10px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .mv-dt-sv-pill { min-height: 36px; }
  .mv-dt-server-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mv-dt-server-label {
    font-size: 12px;
    white-space: nowrap;
  }
  .mv-dt-server-groups {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    min-width: auto;
    max-width: none;
  }
  .mv-dt-sv-group {
    flex-wrap: nowrap;
    gap: 8px;
    min-width: auto;
    max-width: none;
  }
  .mv-dt-sv-btn {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .mv-dt-ep-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 36px;
    align-items: center;
    gap: 10px 8px;
    margin-bottom: 12px;
  }
  .mv-dt-ep-count {
    grid-column: 1 / 2;
    grid-row: 1;
    font-size: 13px;
    white-space: nowrap;
  }
  .mv-dt-ep-controls { display: contents; }
  .mv-dt-ep-tools .mv-toggle-compact {
    grid-column: 2 / 4;
    grid-row: 1;
    justify-self: end;
    min-height: 32px;
    font-size: 12.5px;
    gap: 7px;
  }
  .mv-dt-ep-search {
    grid-column: 1 / 3;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }
  .mv-dt-ep-search input {
    width: 100%;
    min-width: 0;
    height: 36px;
    font-size: 14px;
    border-radius: 8px;
  }
  .mv-dt-ep-sort {
    grid-column: 3 / 4;
    grid-row: 2;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .mv-toggle-compact { min-height: 32px; }
  .mv-switch { flex-shrink: 0; }
  .mv-ep-container.is-compact .mv-dt-ep-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 8px;
  }
  .mv-ep-container.is-compact .mv-dt-ep-item {
    min-height: 40px;
    padding: 9px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mv-ep-container.is-compact .mv-ep-card-meta {
    max-width: 100%;
    min-width: 0;
  }
  .mv-ep-container.is-compact .mv-ep-num {
    max-width: 100%;
    font-size: 13px;
    gap: 6px;
    white-space: nowrap;
  }
  .mv-ep-container.is-compact .mv-ep-num span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Watch: outer layout and toolbar only. Do not touch player frame or media controls. */
  .mv-watch-stage, .mv-watch-lower { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mv-player-col, .mv-watch-sidebar, .mv-watch-lower-left, .mv-watch-lower-right { min-width: 0; }
  .mv-player-bar { padding: 8px 10px; gap: 6px; }
  .mv-player-bar-left, .mv-player-bar-right { min-width: 0; gap: 6px; }
  .mv-bar-btn { min-height: 44px; padding: 6px 8px; max-width: 100%; overflow-wrap: anywhere; }
  .mv-lag-sv-wrap { flex: 1 1 100%; margin-left: 0; gap: 8px; min-width: 0; }
  .mv-lag-sv-pills { min-width: 0; max-width: 100%; }
  .mv-lag-sv-btn { min-width: 48px; min-height: 44px; height: auto; padding: 6px 12px; max-width: 100%; overflow-wrap: anywhere; }
  .mv-ws-lang-btn { min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
  .mv-ws-search { height: 44px; font-size: 16px; }
  .mv-watch-ep-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; max-height: 330px; max-height: min(330px, 50dvh); padding-right: 4px; }
  .mv-watch-ep-btn { height: auto; min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
  .mv-watch-info-strip { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .mv-strip-poster { width: 100%; }
  .mv-strip-meta, .mv-strip-desc { min-width: 0; overflow-wrap: anywhere; }
  .mv-strip-meta h2 { font-size: 18px; }
  .mv-strip-desc { grid-column: 1 / -1; }
  .mv-strip-status { max-width: 100%; overflow-wrap: anywhere; }
  .mv-wrank-meta { flex-wrap: wrap; }
  .mv-comments-panel, .mv-watch-rank-panel { padding: 14px; overflow-wrap: anywhere; }
  .mv-comment-field textarea { font-size: 16px; }
  .mv-comments-panel .mv-btn-primary { min-height: 44px; }

  /* Cast: keep complete names and roles visible without overflowing the columns. */
  .mv-cast-panel { padding: 16px 14px; }
  .mv-cast-panel-head { gap: 8px; margin-bottom: 16px; }
  .mv-cast-director { min-width: 0; overflow-wrap: anywhere; }
  .mv-cast-showcase { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 16px 10px; }
  .mv-cast-person-avatar { width: min(92px, 100%); height: auto; aspect-ratio: 1; }
  .mv-cast-person-name, .mv-cast-person-role { white-space: normal; overflow-wrap: anywhere; }

  /* Filter controls: keep collapsed/active behavior unchanged. */
  .mv-filter-card { padding: 16px; }
  .mv-flt-head, .mv-flt-head-left { min-width: 0; gap: 10px; }
  .mv-flt-head-left > div { min-width: 0; overflow-wrap: anywhere; }
  .mv-flt-toggle-btn, .mv-flt-reset-btn, .mv-flt-pill, .mv-flt-chip { min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
  .mv-flt-pills, .mv-flt-chips { gap: 7px; min-width: 0; }
  .mv-flt-field, .mv-flt-select-wrap { min-width: 0; }
  .mv-flt-select-wrap select { height: 46px; min-width: 0; font-size: 16px; }
  .mv-filter-bar select { min-width: 0; max-width: 100%; min-height: 44px; font-size: 16px; }

  /* Bottom navigation: reserve safe-area space without changing viewport markup. */
  .mv-mobile-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); padding-left: max(6px, env(safe-area-inset-left, 0px)); padding-right: max(6px, env(safe-area-inset-right, 0px)); }
  .mv-mobile-nav a { min-height: 48px; justify-content: center; text-align: center; min-width: 0; line-height: 1.2; overflow-wrap: anywhere; }
  .mv-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .mv-toast { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 28px); right: 14px; overflow-wrap: anywhere; }
}
@media (max-width: 520px) {
  .mv-dark-body { --mv-mobile-header: 56px; --mv-mobile-gutter: 12px; }
  .mv-header-inner { gap: 8px; }
  .mv-brand { max-width: 112px; font-size: 17px; gap: 6px; }
  .mv-brand img { max-width: 104px; max-height: 26px; }
  .mv-search-box input { height: 36px; padding: 0 10px 0 34px; font-size: 13.5px; }
  .mv-search-ico { left: 11px; width: 15px; height: 15px; }
  .mv-hero-mobile { --hm-card-w: clamp(188px, 56vw, 232px); padding-top: calc(var(--mv-mobile-header, 56px) + 14px); }
  .mv-hm-stage { margin-bottom: 18px; }
  .mv-grid-6, .mv-grid-7, .mv-rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-bento-bottom { left: 10px; right: 10px; bottom: 10px; gap: 8px; }
  .mv-dt-page .mv-detail-hero {
    padding-top: calc(var(--mv-mobile-header, 56px) + clamp(92px, 29vw, 136px));
  }
  .mv-dt-mob-poster { width: clamp(144px, 39vw, 168px); margin-bottom: 14px; }
  .mv-dt-mob-drawer { padding: 16px 14px; }
  .mv-dt-mob-specs { grid-template-columns: 86px minmax(0, 1fr); gap: 8px 10px; }
  .mv-ep-container.is-compact .mv-dt-ep-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }
  .mv-watch-sidebar { padding: 12px; }
  .mv-player-bar-left { flex: 1 1 100%; }
  .mv-player-bar-right { margin-left: auto; }
  .mv-watch-info-strip { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .mv-cast-showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
  .mv-cast-person-avatar { width: min(80px, 100%); }
  .mv-cast-person-name { font-size: 12.5px; }
  .mv-cast-person-role { font-size: 11.5px; }
  .mv-filter-card { padding: 12px; }
  .mv-flt-selects { grid-template-columns: minmax(0, 1fr); }
  .mv-flt-pill, .mv-flt-chip { padding-left: 11px; padding-right: 11px; }
}

/* Hata: five controls on the first row; server switch on the second row, mobile only. */
@media (max-width: 900px) {
  .mv-watch-main .mv-player-bar {
    display: grid;
    grid-template-columns: 36px 36px minmax(max-content, 1fr) minmax(max-content, 1fr) max-content;
    align-items: stretch;
    gap: 6px;
    padding: 8px 10px;
  }
  .mv-watch-main .mv-player-bar > .mv-player-bar-left,
  .mv-watch-main .mv-player-bar > .mv-player-bar-right {
    display: contents;
  }
  .mv-watch-main .mv-player-bar .mv-bar-btn {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 36px;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.035);
    font-size: 12.5px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .mv-watch-main .mv-player-bar .mv-bar-btn[data-fav-id] {
    order: 0;
    flex: 0 0 36px;
    padding-inline: 0;
  }
  .mv-watch-main .mv-player-bar .mv-bar-btn[data-share-url] {
    order: 1;
    flex: 0 0 36px;
    padding-inline: 0;
  }
  .mv-watch-main .mv-player-bar #mvAutoNextBtn,
  .mv-watch-main .mv-player-bar #mvSkipIntroBtn {
    min-width: 0;
    display: inline-flex;
    flex-wrap: nowrap;
    align-self: stretch;
    padding-inline: 5px;
    white-space: nowrap;
    text-align: center;
    overflow-wrap: normal;
  }
  .mv-watch-main .mv-player-bar #mvAutoNextBtn {
    order: 2;
    flex: 1 1 0;
  }
  .mv-watch-main .mv-player-bar #mvSkipIntroBtn {
    order: 3;
    flex: 1.4 1 0;
  }
  .mv-watch-main .mv-player-bar > .mv-player-bar-right > .mv-bar-btn {
    order: 4;
    margin: 0;
    padding-inline: 7px;
  }
  .mv-watch-main .mv-player-bar .mv-bar-btn[data-fav-id] > span,
  .mv-watch-main .mv-player-bar .mv-bar-btn[data-share-url] > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .mv-watch-main .mv-player-bar .mv-bar-btn:hover {
    background: rgba(255,255,255,.08);
  }
  .mv-watch-main .mv-player-bar .mv-pill-state {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    padding: 2px 5px;
    font-size: 10px;
  }
  .mv-watch-main .mv-player-bar .mv-lag-sv-wrap {
    order: 5;
    grid-column: 1 / -1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
    border-top: 0;
  }
  .mv-watch-main .mv-player-bar .mv-sv-lag-hint {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    gap: 4px;
  }
  .mv-watch-main .mv-player-bar .mv-sv-lag-hint svg {
    width: 13px;
    height: 13px;
  }
  .mv-watch-main .mv-player-bar .mv-lag-sv-pills {
    flex: 0 1 auto;
    min-width: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .mv-watch-main .mv-player-bar .mv-lag-sv-btn {
    flex: 0 0 auto;
    min-width: 38px;
    min-height: 34px;
    height: auto;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 8px;
    white-space: nowrap;
  }
  .mv-watch-main .mv-player-bar .mv-lag-sv-btn.is-active {
    box-shadow: 0 0 10px rgba(250,204,21,.22);
  }
}


@media (max-width: 480px) {
  .mv-watch-main .mv-player-bar { grid-template-columns: repeat(2, clamp(26px, 7.7vw, 30px)) minmax(max-content, 1fr) minmax(max-content, 1fr) max-content; column-gap: 3px; padding-inline: 8px; }
  .mv-watch-main .mv-player-bar .mv-bar-btn { font-size: clamp(9px, 2.7vw, 11px); gap: 3px; }
  .mv-watch-main .mv-player-bar #mvAutoNextBtn,
  .mv-watch-main .mv-player-bar #mvSkipIntroBtn { padding-inline: 3px; }
  .mv-watch-main .mv-player-bar .mv-pill-state { padding-inline: 3px; font-size: clamp(8px, 2.25vw, 9px); }
  .mv-watch-main .mv-player-bar .mv-sv-lag-hint { font-size: 10.5px; gap: 3px; }
  .mv-watch-main .mv-player-bar .mv-sv-lag-hint svg { width: 11px; height: 11px; }
  .mv-watch-main .mv-player-bar .mv-lag-sv-wrap,
  .mv-watch-main .mv-player-bar .mv-lag-sv-pills { gap: 4px; }
  .mv-watch-main .mv-player-bar .mv-lag-sv-btn { min-width: 31px; padding-inline: 5px; font-size: 11px; }
  .mv-watch-main .mv-player-bar > .mv-player-bar-right > .mv-bar-btn { padding-inline: 3px; }
  .mv-watch-main .mv-player-bar > .mv-player-bar-right .mv-bar-ico { width: 13px; height: 13px; }
}

@media (max-width: 360px) {
  .mv-watch-main .mv-player-bar { column-gap: 2px; padding-inline: 5px; }
  .mv-watch-main .mv-player-bar .mv-bar-btn { gap: 2px; }
  .mv-watch-main .mv-player-bar #mvAutoNextBtn,
  .mv-watch-main .mv-player-bar #mvSkipIntroBtn,
  .mv-watch-main .mv-player-bar > .mv-player-bar-right > .mv-bar-btn { padding-inline: 2px; }
  .mv-watch-main .mv-player-bar .mv-pill-state { padding-inline: 2px; }
  .mv-watch-main .mv-player-bar > .mv-player-bar-right .mv-bar-ico { width: 11px; height: 11px; }
}

/* Hata v51: Trang Đăng nhập / Đăng ký / Tài khoản */
.mv-auth-main {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 102px 0 64px;
  background: radial-gradient(ellipse 68% 46% at 50% 0%, rgba(255, 209, 102, 0.08) 0%, rgba(24, 119, 242, 0.06) 36%, transparent 72%);
}
.mv-auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 28px 28px;
  border-radius: 18px;
  background: #151824;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.56);
}
.mv-account-card {
  max-width: 640px;
}
.mv-auth-brand {
  text-align: center;
  margin-bottom: 22px;
}
.mv-auth-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}
.mv-auth-logo-img {
  max-height: 38px;
  max-width: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.mv-auth-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}
.mv-auth-sub {
  margin: 0;
  font-size: 13.5px;
  color: #9aa2b8;
  line-height: 1.5;
}
.mv-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: #0f121b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 22px;
}
.mv-auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #9aa2b8;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.mv-auth-tab:hover { color: #ffffff; }
.mv-auth-tab.is-active {
  background: #1d2233;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.mv-auth-form[hidden] { display: none !important; }
.mv-auth-alert {
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 16px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}
.mv-auth-alert.is-success {
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
}
.mv-auth-alert[hidden] { display: none !important; }
.mv-auth-field { margin-bottom: 15px; }
.mv-auth-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #d6dbe8;
}
.mv-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.mv-auth-ico {
  position: absolute;
  left: 13px;
  color: #7c859e;
  pointer-events: none;
}
.mv-auth-input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 40px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f121b;
  color: #ffffff;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.mv-auth-input-wrap input::placeholder { color: #677089; }
.mv-auth-input-wrap input:focus {
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.14);
  background: #111521;
}
.mv-auth-input-wrap.is-readonly input {
  opacity: 0.65;
  cursor: not-allowed;
}
.mv-auth-eye {
  position: absolute;
  right: 4px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7c859e;
  cursor: pointer;
}
.mv-auth-eye:hover,
.mv-auth-eye.is-visible { color: #ffd166; }
.mv-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 13px;
}
.mv-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b7bfcf;
  cursor: pointer;
  user-select: none;
}
.mv-auth-check input {
  width: 16px;
  height: 16px;
  accent-color: #ffd166;
  cursor: pointer;
}
.mv-auth-link {
  color: #ffd166;
  font-weight: 600;
}
.mv-auth-link:hover { text-decoration: underline; }
.mv-auth-submit {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(110deg, #ffd166 0%, #ffe29a 52%, #fff0c0 100%);
  color: #18140c;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255, 198, 71, 0.30);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}
.mv-auth-submit:hover { transform: translateY(-1px); filter: brightness(1.04); }
.mv-auth-submit:disabled { opacity: 0.65; cursor: wait; transform: none; }
.mv-auth-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: #9aa2b8;
}
.mv-auth-switch-btn {
  background: none;
  border: 0;
  padding: 2px 4px;
  color: #ffd166;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.mv-auth-switch-btn:hover { text-decoration: underline; }
.mv-account-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mv-account-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd166 0%, #f59e0b 100%);
  color: #18140c;
  font-size: 24px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.mv-account-meta { flex: 1; min-width: 160px; }
.mv-account-name { margin: 0 0 3px; font-size: 20px; font-weight: 800; color: #ffffff; }
.mv-account-email { margin: 0 0 6px; font-size: 13px; color: #9aa2b8; word-break: break-word; }
.mv-account-role {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 209, 102, 0.14);
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.3);
}
.mv-account-head-actions { display: flex; align-items: center; gap: 8px; }
.mv-auth-ghost-btn,
.mv-auth-danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.16s ease;
}
.mv-auth-ghost-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.mv-auth-ghost-btn:hover { background: rgba(255, 255, 255, 0.15); }
.mv-auth-danger-btn {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.34);
  color: #fecaca;
}
.mv-auth-danger-btn:hover { background: rgba(239, 68, 68, 0.24); }
.mv-account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.mv-acc-stat {
  padding: 14px 10px;
  border-radius: 12px;
  background: #0f121b;
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}
.mv-acc-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #ffd166;
  margin-bottom: 3px;
}
.mv-acc-stat span { font-size: 12px; color: #9aa2b8; }
.mv-account-sec-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}
.mv-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: #8c95ab;
  font-size: 12px;
  font-weight: 600;
}
.mv-auth-divider::before,
.mv-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.mv-auth-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .mv-auth-main {
    align-items: flex-start;
    padding: calc(var(--mv-mobile-header, 58px) + 22px) 0 42px;
    min-height: auto;
  }
  .mv-auth-card { padding: 24px 18px 22px; border-radius: 16px; }
  .mv-auth-input-wrap input { font-size: 16px; }
}
@media (max-width: 520px) {
  .mv-auth-row-2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mv-account-head-actions { width: 100%; }
  .mv-account-head-actions > a { flex: 1 1 0; }
}

/* Hata – Danh mục ngang: scope to the new widget and Explore page only. */
.mv-explore-main { padding-top: 96px; }
.mv-explore-widget { margin-bottom: 34px; }
.mv-horizontal-catalog { min-width: 0; }
.mv-horizontal-catalog-tabs {
  display: flex; align-items: stretch; gap: clamp(14px, 3vw, 42px);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
  border-bottom: 1px solid var(--border); margin-bottom: 20px;
}
.mv-horizontal-catalog-tab {
  flex: 0 0 auto; white-space: nowrap; padding: 14px 4px 12px;
  font-size: 16px; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid transparent;
}
.mv-horizontal-catalog-tab:hover, .mv-horizontal-catalog-tab.is-active { color: #1877f2; }
.mv-horizontal-catalog-tab.is-active { border-bottom-color: #1877f2; }
.mv-horizontal-catalog-tab:focus-visible { outline: 2px solid #1877f2; outline-offset: -2px; }
.mv-horizontal-catalog-grid { display: grid; grid-template-columns: repeat(var(--hata-catalog-cols, 6), minmax(0, 1fr)); gap: 14px; }
.mv-horizontal-catalog-results[aria-busy="true"] { opacity: .6; }
.mv-horizontal-catalog-message { color: var(--muted); }
@media (max-width: 1100px) { .mv-horizontal-catalog-grid { grid-template-columns: repeat(min(var(--hata-catalog-cols, 6), 5), minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .mv-explore-main { padding-top: calc(var(--mv-mobile-header, 58px) + 16px); }
  .mv-horizontal-catalog-tab { font-size: 14px; padding: 12px 2px 10px; }
  .mv-horizontal-catalog-tabs { gap: 20px; margin-bottom: 14px; }
  .mv-horizontal-catalog-grid { grid-template-columns: repeat(min(var(--hata-catalog-cols, 6), 3), minmax(0, 1fr)); gap: 14px 10px; }
}
@media (max-width: 480px) { .mv-horizontal-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Use the same cinema filter styles as the archive, only adjust placement. */
.mv-horizontal-catalog .mv-catalog-filter { margin: -8px 0 20px; }
.mv-horizontal-catalog .mv-catalog-filter [hidden] { display: none !important; }
.mv-horizontal-catalog .mv-catalog-filter [data-catalog-type-check] { display: inline-flex; }
@media (max-width: 900px) {
  .mv-horizontal-catalog .mv-catalog-filter { margin: -4px 0 16px; }
}

/* Compact cinema-filter toggle on mobile; shared by archive and horizontal catalog. */
@media (max-width: 900px) {
  .mv-flt-toggle-btn {
    min-height: 36px;
    padding: 6px 10px;
    gap: 6px;
    border-radius: 8px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .mv-flt-toggle-ico { width: 13px; height: 13px; }
  .mv-flt-toggle-arrow { width: 11px; height: 11px; }
  .mv-flt-toggle-count { min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; }
}

/* Compact expanded cinema filter on mobile (archive + horizontal catalog). */
@media (max-width: 900px) {
  .mv-filter-card { padding: 16px; margin-top: 10px; border-radius: 16px; }
  .mv-flt-head { flex-wrap: nowrap; align-items: center; gap: 6px; padding-bottom: 12px; margin-bottom: 14px; }
  .mv-flt-head-left { flex: 1 1 0; gap: 8px; align-items: center; }
  .mv-flt-head-left > div { flex: 1 1 0; min-width: 0; overflow-wrap: normal; }
  .mv-flt-ico-circle { width: 23px; height: 30px; }
  .mv-flt-ico-circle svg { width: 15px; height: 15px; }
  .mv-flt-title-row { gap: 3px 6px; }
  .mv-flt-title { font-size: 13.5px; line-height: 1.25; }
  .mv-flt-status-badge { padding: 2px 7px; font-size: 10px; line-height: 1.3; white-space: nowrap; }
  .mv-flt-subtitle { font-size: 11.5px; line-height: 1.4; margin-top: 2px; }
  .mv-flt-reset-btn { flex: 0 0 auto; min-height: 38px; width: 86px; padding: 5px 8px; gap: 6px; font-size: 11.5px; line-height: 1.25; text-align: center; justify-content: center; }
  .mv-flt-reset-btn svg { flex-shrink: 0; width: 11px; height: 11px; }
  .mv-flt-section { margin-bottom: 16px; }
  .mv-flt-label-caps { margin-bottom: 7px; font-size: 11px; }
  .mv-flt-pills { gap: 6px 8px; }
  .mv-flt-pill { min-height: 28px; padding: 4px 11px; gap: 6px; font-size: 12px; line-height: 1.25; }
  .mv-flt-pill-ico svg, .mv-flt-check { width: 13px; height: 13px; flex-shrink: 0; }
  .mv-flt-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .mv-flt-field label { font-size: 12px; margin-bottom: 6px; line-height: 1.3; }
  .mv-flt-select-wrap select { height: 30px; padding: 0 19px 0 7px; font-size: 16px; line-height: normal; text-overflow: ellipsis; }
  .mv-flt-select-wrap::after { right: 8px; width: 5px; height: 5px; border-width: 0 1.5px 1.5px 0; }
  .mv-flt-applied { margin-top: 14px; padding-top: 9px; gap: 7px; }
  .mv-flt-applied-label { font-size: 11px; }
  .mv-flt-chips { gap: 5px; }
  .mv-flt-chip { min-height: 24px; padding: 3px 10px; gap: 4px; font-size: 11.5px; line-height: 1.3; }
}
@media (max-width: 560px) {
  .mv-flt-pills { display: grid; grid-template-columns: max-content minmax(0, 1fr); justify-items: start; align-items: center; }
  .mv-flt-pill { max-width: 100%; min-width: 0; overflow-wrap: anywhere; text-align: left; }
  .mv-flt-pill-ico { flex-shrink: 0; }
  .mv-flt-pill:nth-child(odd) { max-width: 138px; }
}
@media (max-width: 360px) {
  .mv-filter-card { padding: 12px; }
  .mv-flt-head-left { gap: 5px; }
  .mv-flt-title { font-size: 12.5px; }
  .mv-flt-reset-btn { width: 70px; padding: 5px; gap: 4px; font-size: 11px; }
  .mv-flt-pill { padding-inline: 8px; gap: 4px; }
  .mv-flt-pill:nth-child(odd) { max-width: 115px; }
  .mv-flt-selects { gap: 9px 8px; }
}

/* Detail-page desktop: keep the backdrop uncropped and blend its left edge. */
@media (min-width: 901px) {
  .mv-dt-page .mv-detail-hero-bg {
    left: auto;
    bottom: auto;
    width: auto;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.10) 12%, rgba(0,0,0,.58) 34%, #000 62%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.10) 12%, rgba(0,0,0,.58) 34%, #000 62%);
  }
}


/* Desktop Hero Slider: full-width artwork, top-aligned to protect faces. */
@media (min-width: 901px) {
  .mv-hero { --mv-hero-image-top: 0px; }
  .mv-home-main > .mv-home-widget:first-child .mv-hero { --mv-hero-image-top: 68px; }
  .mv-hero .mv-hero-bg {
    inset: var(--mv-hero-image-top) 0 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }
  .mv-hero .mv-hero-bg-img {
    object-fit: cover;
    object-position: center top;
  }
  .mv-hero .mv-hero-overlay {
    background: linear-gradient(90deg, rgba(17,19,26,.88) 0%, rgba(17,19,26,.68) 22%, rgba(17,19,26,.32) 43%, rgba(17,19,26,.08) 68%, rgba(17,19,26,.12) 100%),
                linear-gradient(0deg, #11131a 0%, rgba(17,19,26,.72) 12%, rgba(17,19,26,0) 46%);
  }
}

/* Optional per-taxonomy grid columns. Defaults and all widgets stay unchanged. */
@media (min-width: 901px) {
  :is(.mv-archive-grid, .mv-actor-grid, .mv-tl-year-grid)[data-hata-grid-desktop] {
    grid-template-columns: repeat(var(--hata-tax-cols-desktop), minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  :is(.mv-archive-grid, .mv-actor-grid, .mv-tl-year-grid)[data-hata-grid-mobile] {
    grid-template-columns: repeat(var(--hata-tax-cols-mobile), minmax(0, 1fr));
  }
}
