/*
Theme Name: Newsmag Child (ChillPhimHay VieON Edition)
Theme URI: https://chillphimhay.com/
Description: Giao diện xem phim trực tuyến phong cách VieON Dark Cinema hiện đại cho ChillPhimHay.com
Author: DeepMind Antigravity
Author URI: https://chillphimhay.com/
Template: Newsmag
Version: 2.0.0
*/

:root {
  --vieon-bg: #0A0B0B;
  --vieon-surface: #1C1F1F;
  --vieon-surface-sub: #111313;
  --vieon-surface-card: #151818;
  --vieon-text: #F2F4F3;
  --vieon-text-muted: #C3C9C6;
  --vieon-text-sub: #9AA29F;
  --vieon-text-dim: #7E8683;
  --vieon-green: #34C77B;
  --vieon-green-hover: #4DD68D;
  --vieon-green-active: #2DB36E;
  --vieon-green-text: #06140C;
  --vieon-vip: #E3A92B;
  --vieon-vip-hover: #F0BA45;
  --vieon-vip-text: #1A1204;
  --vieon-thsh: #B9A6FF;
  --vieon-thsh-text: #150E2E;
  --vieon-live: #E5484D;
  --vieon-rent: #6FB4FF;
  --vieon-border: rgba(255, 255, 255, 0.08);
  --vieon-border-hover: rgba(255, 255, 255, 0.18);
  --vieon-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-card: 6px;
  --radius-ep: 8px;
  --radius-btn: 10px;
  --radius-pill: 999px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--vieon-bg);
  color: var(--vieon-text);
  font-family: var(--vieon-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header Styles */
.vieon-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(10, 11, 11, 0.88) 0%, rgba(10, 11, 11, 0) 100%);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.vieon-header.is-scrolled {
  background: rgba(10, 11, 11, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--vieon-border);
}

.vieon-header-main {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  height: 64px;
  padding: 0 clamp(16px, 4vw, 56px);
}

.vieon-brand {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--vieon-text);
}

.vieon-brand-accent {
  color: var(--vieon-green);
}

.vieon-brand-tag {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--vieon-vip);
  color: var(--vieon-vip-text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.vieon-desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vieon-nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--vieon-text-muted);
  transition: color 0.2s ease;
}

.vieon-nav-link:hover {
  color: var(--vieon-text);
}

.vieon-nav-link.is-active {
  font-weight: 600;
  color: var(--vieon-text);
}

.vieon-nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--vieon-green);
}

/* Dropdown Menu */
.vieon-nav-dropdown {
  position: relative;
}

.vieon-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--vieon-text-muted);
  cursor: pointer;
}

.vieon-dropdown-toggle:hover {
  color: var(--vieon-text);
}

.vieon-dropdown-pane {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 12px;
  background: rgba(20, 23, 23, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--vieon-border-hover);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}

.vieon-nav-dropdown:hover .vieon-dropdown-pane,
.vieon-nav-dropdown:focus-within .vieon-dropdown-pane {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.vieon-dropdown-item {
  padding: 6px 10px;
  font-size: 13px;
  color: var(--vieon-text-muted);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.vieon-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--vieon-green);
}

.vieon-header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 14px);
}

.vieon-btn-vip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--vieon-vip);
  color: var(--vieon-vip-text);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.vieon-btn-vip:hover {
  background: var(--vieon-vip-hover);
}

.vieon-icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  color: var(--vieon-text);
  transition: background 0.2s ease;
}

.vieon-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Category Chips Bar */
.vieon-chips-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px clamp(16px, 4vw, 56px) 12px;
}

.vieon-chips-bar::-webkit-scrollbar {
  display: none;
}

.vieon-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: #E3E7E5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.vieon-chip:hover,
.vieon-chip.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--vieon-text);
}

/* Hero Carousel */
.vieon-hero {
  position: relative;
  height: min(88vh, 920px);
  min-height: 560px;
  overflow: hidden;
  background: var(--vieon-surface-sub);
}

.vieon-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.vieon-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.vieon-hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.vieon-hero-shade-left {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 11, 11, 0.94) 0%, rgba(10, 11, 11, 0.6) 42%, rgba(10, 11, 11, 0) 75%);
}

.vieon-hero-shade-bottom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #0A0B0B 0%, rgba(10, 11, 11, 0.7) 22%, rgba(10, 11, 11, 0) 50%);
}

.vieon-hero-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 clamp(16px, 4vw, 56px) clamp(48px, 10vh, 120px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  pointer-events: none;
}

.vieon-hero-info {
  max-width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: auto;
}

.vieon-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vieon-green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vieon-hero-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--vieon-green);
}

.vieon-hero-title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vieon-hero-title {
  margin: 0;
  font-size: clamp(36px, 6.2vw, 84px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--vieon-text);
}

.vieon-hero-en-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vieon-text-muted);
}

.vieon-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #E3E7E5;
}

.vieon-age-badge {
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.vieon-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.vieon-btn-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-btn);
  background: var(--vieon-green);
  color: var(--vieon-green-text);
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.vieon-btn-play:hover {
  background: var(--vieon-green-hover);
}

.vieon-btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--vieon-text);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.vieon-btn-detail:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Hero Desktop Thumbnails */
.vieon-hero-dock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  pointer-events: auto;
}

.vieon-hero-thumbs {
  display: flex;
  gap: 10px;
}

.vieon-hero-thumb {
  position: relative;
  width: 132px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--vieon-surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0.55;
  transition: opacity 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.vieon-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vieon-hero-thumb.is-active,
.vieon-hero-thumb:hover {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--vieon-green);
}

.vieon-hero-thumb-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 8px 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero Mobile Dots */
.vieon-hero-dots {
  display: none;
  gap: 6px;
  margin-top: 8px;
}

.vieon-hero-dot-btn {
  height: 6px;
  width: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.3s ease;
  cursor: pointer;
}

.vieon-hero-dot-btn.is-active {
  width: 24px;
  background: var(--vieon-green);
}

/* Rows Container */
.vieon-rows-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 44px);
  padding: 0 0 clamp(40px, 5vw, 72px);
  margin-top: calc(-1 * clamp(20px, 4vw, 64px));
  position: relative;
  z-index: 2;
}

/* Single Row Section */
.vieon-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vieon-row-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 56px);
}

.vieon-row-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vieon-row-title {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--vieon-text);
  text-wrap: balance;
}

.vieon-row-sub {
  font-size: 14px;
  color: var(--vieon-text-sub);
}

.vieon-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.vieon-btn-view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--vieon-green);
  padding: 6px 4px;
  transition: color 0.2s ease;
}

.vieon-btn-view-all:hover {
  color: var(--vieon-green-hover);
}

.vieon-row-arrows {
  display: flex;
  gap: 8px;
}

.vieon-arrow-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--vieon-border-hover);
  color: var(--vieon-text);
  transition: background 0.2s ease;
}

.vieon-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Horizontal Slider Track */
.vieon-track {
  display: flex;
  gap: clamp(6px, 0.6vw, 8px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: clamp(16px, 4vw, 56px);
  padding: 4px clamp(16px, 4vw, 56px) 12px;
}

.vieon-track::-webkit-scrollbar {
  display: none;
}

/* Landscape Cards (16:9) */
.vieon-card-land {
  flex: 0 0 clamp(150px, 20vw, 290px);
  width: clamp(150px, 20vw, 290px);
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vieon-card-media {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--vieon-surface-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vieon-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.vieon-card-media:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  z-index: 5;
}

.vieon-card-media:hover img {
  transform: scale(1.03);
}

/* Card Badges */
.vieon-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 2;
}

.badge-vip {
  background: var(--vieon-vip);
  color: var(--vieon-vip-text);
}

.badge-new,
.badge-original {
  background: var(--vieon-green);
  color: var(--vieon-green-text);
}

.badge-thsh {
  background: var(--vieon-thsh);
  color: var(--vieon-thsh-text);
}

.badge-pro {
  background: #F2F4F3;
  color: #0A0B0B;
}

.badge-live {
  background: var(--vieon-live);
  color: #FFFFFF;
}

.badge-rent {
  background: var(--vieon-rent);
  color: #04121F;
}

.vieon-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}

.vieon-card-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--vieon-text);
}

.vieon-card-sub {
  font-size: 12px;
  color: var(--vieon-text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Top 10 Ranked Row */
.vieon-trend-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-snap-align: start;
}

.vieon-trend-box {
  display: flex;
  align-items: flex-end;
}

.vieon-rank-num {
  font-size: clamp(72px, 8vw, 124px);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.32);
  margin-right: -8px;
  min-width: 0.62em;
  text-align: right;
  user-select: none;
  flex-shrink: 0;
}

.vieon-trend-card {
  position: relative;
  z-index: 1;
  width: clamp(170px, 21vw, 300px);
  aspect-ratio: 16/9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--vieon-surface-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vieon-trend-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vieon-trend-card:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
}

.vieon-trend-info {
  align-self: flex-end;
  width: clamp(170px, 21vw, 300px);
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
}

/* Portrait 2:3 Cards (ChillPhim Original) */
.vieon-card-port {
  flex: 0 0 clamp(118px, 13vw, 196px);
  width: clamp(118px, 13vw, 196px);
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vieon-card-port .vieon-card-media {
  aspect-ratio: 2/3;
}

/* Feature Promo Banner */
.vieon-promo-section {
  padding: 0 clamp(16px, 4vw, 56px);
}

.vieon-promo-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(115deg, #17133A 0%, #261E5E 60%, #141030 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  border: 1px solid rgba(185, 166, 255, 0.18);
}

.vieon-promo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(24px, 4vw, 56px);
}

.vieon-promo-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vieon-thsh);
}

.vieon-promo-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #FFFFFF;
}

.vieon-promo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 500;
  color: #E7E2FF;
}

.vieon-promo-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vieon-promo-btn {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-btn);
  background: var(--vieon-thsh);
  color: var(--vieon-thsh-text);
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s ease;
  width: fit-content;
}

.vieon-promo-btn:hover {
  background: #CCBDFF;
}

.vieon-promo-visual {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 60% 50%, rgba(185, 166, 255, 0.25) 0%, transparent 60%);
}

.vieon-promo-badge-4k {
  padding: 16px 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(185, 166, 255, 0.3);
  backdrop-filter: blur(12px);
  font-size: 28px;
  font-weight: 800;
  color: var(--vieon-thsh);
  letter-spacing: 0.1em;
}

/* Movie Detail Page */
.vieon-detail-hero {
  position: relative;
  min-height: min(82vh, 880px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--vieon-surface-sub);
}

.vieon-detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.vieon-detail-content {
  position: relative;
  max-width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 120px clamp(16px, 4vw, 56px) clamp(40px, 6vh, 72px);
  z-index: 2;
}

.vieon-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--vieon-text-sub);
}

.vieon-breadcrumbs a:hover {
  color: var(--vieon-text);
}

.vieon-genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vieon-genre-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--vieon-text);
}

.vieon-synopsis {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #C9CFCC;
  text-wrap: pretty;
}

.vieon-action-btn-circle {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--vieon-text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.vieon-action-btn-circle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.vieon-action-btn-circle.is-saved {
  color: var(--vieon-green);
  border-color: var(--vieon-green);
}

/* Video Player Section */
.vieon-player-section {
  padding: 24px clamp(16px, 4vw, 56px);
  max-width: 1440px;
  margin: 0 auto;
}

.vieon-player-box {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.vieon-player-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.vieon-server-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.vieon-server-label {
  font-size: 14px;
  color: var(--vieon-text-sub);
}

.vieon-server-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--vieon-border-hover);
  font-size: 13px;
  font-weight: 600;
  color: var(--vieon-text);
  cursor: pointer;
}

.vieon-server-pill.is-active {
  background: var(--vieon-green);
  color: var(--vieon-green-text);
  border-color: var(--vieon-green);
}

/* Detail Tabs */
.vieon-tabs-nav {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 clamp(16px, 4vw, 56px);
  margin-top: 24px;
}

.vieon-tab-btn {
  position: relative;
  padding: 12px 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--vieon-text-sub);
  transition: color 0.2s ease;
  cursor: pointer;
}

.vieon-tab-btn:hover {
  color: var(--vieon-text);
}

.vieon-tab-btn.is-active {
  color: var(--vieon-text);
}

.vieon-tab-btn.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--vieon-green);
}

.vieon-tab-pane {
  display: none;
  padding: clamp(20px, 3vw, 36px) clamp(16px, 4vw, 56px);
}

.vieon-tab-pane.is-active {
  display: block;
}

/* Episode Ranges */
.vieon-range-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 20px;
}

.vieon-range-bar::-webkit-scrollbar {
  display: none;
}

.vieon-range-pill {
  flex: 0 0 auto;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: #E3E7E5;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: all 0.2s;
}

.vieon-range-pill.is-active {
  background: #F2F4F3;
  color: #0A0B0B;
  border-color: #F2F4F3;
}

/* Episode Grid */
.vieon-episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(12px, 1.4vw, 20px) clamp(10px, 1.2vw, 16px);
}

.vieon-ep-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}

.vieon-ep-media {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-ep);
  overflow: hidden;
  background: var(--vieon-surface-card);
  transition: transform 0.2s;
}

.vieon-ep-card:hover .vieon-ep-media {
  transform: scale(1.03);
}

.vieon-ep-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vieon-ep-dur {
  position: absolute;
  right: 6px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
}

.vieon-ep-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vieon-ep-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--vieon-text);
}

.vieon-ep-watching {
  font-size: 12px;
  font-weight: 600;
  color: var(--vieon-green);
}

/* Facts Table */
.vieon-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.vieon-facts-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 24px;
  font-size: 15px;
}

.vieon-facts-dt {
  color: var(--vieon-text-sub);
}

.vieon-facts-dd {
  margin: 0;
  color: var(--vieon-text);
}

/* Footer */
.vieon-footer {
  border-top: 1px solid var(--vieon-border);
  padding: 32px clamp(16px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  background: var(--vieon-bg);
}

.vieon-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--vieon-text-sub);
}

.vieon-footer-nav a:hover {
  color: var(--vieon-text);
}

.vieon-footer-copy {
  font-size: 13px;
  color: var(--vieon-text-dim);
}

/* Mobile Fixed Bottom Nav */
.vieon-mobile-bar {
  display: none;
}

/* Search Modal Drawer */
.vieon-search-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 11, 11, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px clamp(16px, 4vw, 56px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  overflow-y: auto;
}

.vieon-search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.vieon-search-inner {
  max-width: 720px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vieon-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vieon-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.vieon-search-input {
  width: 100%;
  height: 56px;
  padding: 0 54px 0 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--vieon-text);
  font-size: 18px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.vieon-search-input:focus {
  border-color: var(--vieon-green);
  background: rgba(255, 255, 255, 0.12);
}

.vieon-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

/* Responsive Media Queries */
@media (max-width: 1023px) {
  .vieon-hero-dock {
    display: none;
  }
  .vieon-hero-dots {
    display: flex;
  }
  .vieon-row-arrows {
    display: none;
  }
}

@media (max-width: 639px) {
  .vieon-desktop-nav,
  .vieon-nav-dropdown {
    display: none;
  }
  .vieon-btn-vip span {
    display: none;
  }
  .vieon-btn-vip {
    padding: 0 10px;
  }
  .vieon-hero-actions {
    width: 100%;
  }
  .vieon-btn-play,
  .vieon-btn-detail {
    flex: 1 1 0;
    font-size: 14px;
    height: 44px;
    padding: 0 12px;
  }
  .vieon-episodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vieon-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 8px calc(8px + var(--safe-bottom));
    background: rgba(10, 11, 11, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--vieon-border);
  }
  .vieon-mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 52px;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--vieon-text-sub);
    transition: color 0.2s;
  }
  .vieon-mobile-tab.is-active {
    color: var(--vieon-green);
    font-weight: 600;
  }
  .vieon-footer {
    padding-bottom: calc(76px + var(--safe-bottom));
  }
}

/* Responsive Single Movie Details on Mobile */
@media (max-width: 1023px) {
  .vieon-detail-page {
    display: flex;
    flex-direction: column;
    padding-top: 64px;
  }
  .vieon-player-section {
    order: 1;
    padding: 0;
    margin: 0;
    max-width: 100%;
  }
  .vieon-player-box {
    border-radius: 0;
    box-shadow: none;
  }
  .vieon-server-bar {
    padding: 8px 16px 0;
  }
  .vieon-detail-hero {
    order: 2;
    min-height: auto;
    background: none;
    padding: 0;
  }
  .vieon-detail-backdrop,
  .vieon-detail-hero .vieon-hero-shade-left,
  .vieon-detail-hero .vieon-hero-shade-bottom {
    display: none !important;
  }
  .vieon-detail-content {
    padding: 16px 16px 8px;
    max-width: 100%;
    gap: 12px;
  }
  .vieon-detail-content .vieon-breadcrumbs {
    display: none;
  }
  .vieon-detail-content .vieon-hero-title {
    font-size: 24px;
    line-height: 1.15;
  }
  .vieon-detail-content .vieon-hero-en-title {
    font-size: 11px;
  }
  .vieon-detail-content .vieon-hero-meta {
    font-size: 13px;
    gap: 8px;
  }
  .vieon-detail-content .vieon-btn-play {
    display: none; /* On mobile player is directly at top */
  }
  .vieon-tabs-section {
    order: 3;
    padding: 0;
  }
  .vieon-detail-page > .vieon-row {
    order: 4;
  }
  .vieon-tabs-nav {
    padding: 0 16px;
    margin-top: 12px;
  }
  .vieon-tab-pane {
    padding: 16px;
  }
  .vieon-episodes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
  }
}
