:root {
  --mv-bg: #0a0a0f;
  --mv-muted: #c6c6d0;
  --mv-faint: #aeaeb9;
  --mv-text: #e8e8ec;
  --mv-line: rgba(255,255,255,.08);
  --gold: #f5c518;
  --success: #22c55e;
  --glass-soft: rgba(255,255,255,.06);
  --glass-card: rgba(20,20,28,.62);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.5);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Container */
.mv-container { max-width: 1280px; margin: 0 auto; padding: 64px 32px 32px; }
.mv-page { color: #d4d4d8; }
.mv-layout, .mv-glass-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; }

/* Hero */
.mv-hero { position: relative; min-height: 0; overflow: hidden; }
.mv-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; opacity: .15; filter: blur(2px); }
.mv-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,15,.5) 0%, var(--mv-bg) 100%); }
.mv-hero-gradient { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--mv-bg) 100%); }
.mv-hero-inner { position: relative; z-index: 1; padding-top: 12px; }
.mv-hero:empty { display: none; }

/* Poster */
.mv-poster-wrap { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,.6); }
.mv-poster { width: 100%; display: block; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; transition: transform .3s; }
.mv-poster:hover { transform: scale(1.02); }
.mv-poster-fallback { aspect-ratio: 2/3; display: flex; align-items: center; justify-content: center; background: #141418; }

/* Title + Meta */
.mv-title { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem); font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.02em; }
.mv-year { font-size: 1rem; color: #71717a; font-weight: 400; }
.mv-tagline { font-style: italic; color: #a1a1aa; font-size: .9rem; }
.mv-credits { font-size: .85rem; color: #d4d4d8; }
.mv-credit-label { color: #71717a; font-weight: 600; }

/* Meta Pills */
.mv-pills, .mv-genres { display: flex; flex-wrap: wrap; gap: 7px; }
.mv-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 6px; font-size: .78rem; background: var(--glass-soft); border: 1px solid var(--mv-line); }
.mv-pill-rating { color: var(--gold); font-weight: 700; }
.mv-pill-cert { background: var(--glass-soft); border: 1px solid var(--mv-line); }
.mv-genre-badge { padding: 4px 12px; border-radius: 20px; font-size: .75rem; background: rgba(229,9,20,.12); color: #e50914; border: 1px solid rgba(229,9,20,.25); transition: all .2s; }
.mv-genre-badge:hover { background: rgba(229,9,20,.25); }

/* Buttons */
.mv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 20px; border-radius: 8px; font-weight: 700; border: none; cursor: pointer; transition: all .25s; text-decoration: none; font-size: .9rem; }
.mv-btn:hover { transform: translateY(-1px); }
.mv-btn-watch { background: #e50914; color: #fff; flex: 1; }
.mv-btn-watch:hover { background: #b20710; box-shadow: 0 4px 15px rgba(229,9,20,.4); }
.mv-btn-ghost { background: var(--glass-soft); color: #fff; border: 1px solid var(--mv-line); }
.mv-btn-ghost:hover { background: rgba(255,255,255,.12); }
.mv-btn-bookmark { background: rgba(245,197,24,.08); color: var(--gold); border: 1px solid rgba(245,197,24,.2); }
.mv-btn-bookmark:hover { background: rgba(245,197,24,.18); }
.mv-btn-bookmark.active { background: #e50914; color: #fff; border-color: #e50914; }

/* Actions Row */
.mv-actions-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* Share Strip */
.mv-share-strip, .mv-share-bar { display: flex; align-items: center; gap: 7px; border-top: 1px solid var(--mv-line); border-bottom: 1px solid var(--mv-line); padding: 10px 0; }
.mv-share-btn, .mv-share-sm { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: transform .2s; text-decoration: none; font-size: .8rem; color: #fff; }
.mv-share-btn:hover, .mv-share-sm:hover { transform: scale(1.15); }
.mv-share-btn.mv-share-whatsapp, .mv-share-sm.mv-share-whatsapp { background: #25d366; }
.mv-share-btn.mv-share-facebook, .mv-share-sm.mv-share-facebook { background: #1877f2; }
.mv-share-btn.mv-share-twitter, .mv-share-sm.mv-share-twitter { background: #1da1f2; }
.mv-share-btn.mv-share-reddit, .mv-share-sm.mv-share-reddit { background: #ff4500; }

/* Details Grid */
.mv-details-grid, .mv-details-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; }
.mv-detail { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; background: rgba(255,255,255,.04); border-radius: 8px; }
.mv-detail-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--mv-faint); }
.mv-detail-value { font-size: .83rem; color: var(--mv-text); }

/* Tabs */
.mv-tabs { display: flex; gap: 0; border-bottom: 2px solid rgba(255,255,255,.07); margin: 24px 0 12px; overflow-x: auto; scrollbar-width: none; }
.mv-tabs::-webkit-scrollbar { display: none; }
.mv-tab, .mv-tab-link { background: none; border: none; color: #71717a; padding: 12px 20px; font-size: .88rem; font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .25s; white-space: nowrap; }
.mv-tab:hover, .mv-tab-link:hover { color: #fff; }
.mv-tab.active, .mv-tab-link.active { color: #e50914; border-bottom-color: #e50914; }
.mv-tab-panel { display: none; }
.mv-tab-panel.active { display: block; animation: fadeIn .3s; }

/* Section Titles */
.mv-section { margin-top: 28px; }
.mv-section-title { font-size: 1.15rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; }
.mv-section-title::after { content: ''; flex: 1; height: 1px; background: var(--mv-line); }

/* Cast */
.mv-cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 14px; }
.mv-cast-photo { width: 84px; height: 84px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); object-fit: cover; transition: transform .2s; }
.mv-cast-card:hover .mv-cast-photo { transform: scale(1.05); }

/* Carousel + Mini Cards */
.mv-carousel-wrap { position: relative; }
.mv-cards-row, .mv-carousel-wrap, .mv-videos-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.mv-cards-row::-webkit-scrollbar, .mv-videos-row::-webkit-scrollbar { display: none; }
.mv-car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--glass-card); border: 1px solid var(--mv-line); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; transition: background .2s; }
.mv-car-btn:hover { background: rgba(255,255,255,.15); }
.mv-car-btn.prev { left: -8px; }
.mv-car-btn.next { right: -8px; }
.mv-mini-card { flex: 0 0 160px; border-radius: 8px; overflow: hidden; background: #17171e; border: 1px solid var(--mv-line); transition: transform .3s; scroll-snap-align: start; }
.mv-mini-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,.4); }
.mv-mini-rating { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.75); color: var(--gold); font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.mv-mini-title, .mv-mini-year { padding: 8px 10px 4px; }
.mv-mini-title { font-size: .8rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-mini-year { font-size: .72rem; color: var(--mv-faint); padding-top: 0; }

/* Videos Grid */
.mv-videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mv-video-card { border-radius: 10px; overflow: hidden; border: 1px solid var(--mv-line); transition: transform .2s; cursor: pointer; }
.mv-video-card:hover { transform: translateY(-4px); }
.mv-video-thumb { aspect-ratio: 16/9; width: 100%; object-fit: cover; display: block; }

/* Providers */
.mv-providers-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mv-provider-badge { display: flex; align-items: center; gap: 8px; background: var(--glass-soft); border: 1px solid var(--mv-line); border-radius: 8px; padding: 8px 14px; font-size: .82rem; color: #fff; }

/* Collection */
.mv-collection-banner { border-radius: 10px; overflow: hidden; }
.mv-collection-banner img { height: 220px; width: 100%; object-fit: cover; display: block; }

/* FAQ */
.mv-faq { border-top: 1px solid var(--mv-line); }
.mv-faq-item { border-bottom: 1px solid var(--mv-line); }
.mv-faq-q, .mv-faq-item summary { width: 100%; display: flex; align-items: center; justify-content: space-between; list-style: none; padding: 14px 0; color: #fff; font-weight: 600; cursor: pointer; background: none; border: none; font-size: .9rem; }
.mv-faq-q::-webkit-details-marker, .mv-faq-item summary::-webkit-details-marker { display: none; }

/* Rate + Report */
.mv-rate-stars button { font-size: 1.5rem; color: rgba(255,255,255,.18); background: none; border: none; cursor: pointer; transition: color .15s, transform .15s; padding: 2px; }
.mv-rate-stars button:hover { transform: scale(1.15); }
.mv-rate-stars button.on { color: var(--gold); }

/* Skeleton */
.mv-skeleton { background: #141418; border: 1px solid var(--mv-line); border-radius: 10px; overflow: hidden; }
.mv-skeleton-bar { height: 14px; border-radius: 6px; background: linear-gradient(90deg, #1a1a22 25%, #25252e 50%, #1a1a22 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.mv-skeleton-poster { aspect-ratio: 2/3; background: linear-gradient(90deg, #1a1a22 25%, #25252e 50%, #1a1a22 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Ad Slots */
.flix-ad-slot { min-height: 1px; margin: 16px 0; }

/* Sticky Mobile Bar */
.mv-sticky-bar, .mv-watchbar { display: none; }

/* Trailer Modal */
.player-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; }
.player-modal.show { display: flex; }
.player-modal-inner { max-width: 900px; width: 90%; aspect-ratio: 16/9; }
.player-modal-inner iframe { width: 100%; height: 100%; border: none; border-radius: 10px; }

/* Breadcrumb */
.mv-crumb-glass { display: inline-flex; align-items: center; background: var(--glass-soft); border: 1px solid var(--mv-line); border-radius: 20px; padding: 5px 12px; font-size: .78rem; color: var(--mv-muted); text-decoration: none; transition: background .2s; }
.mv-crumb-glass:hover { background: rgba(255,255,255,.1); }

/* Badges */
.mv-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.mv-badge { display: inline-flex; padding: 3px 8px; border-radius: 5px; font-size: .68rem; font-weight: 700; background: var(--glass-soft); border: 1px solid var(--mv-line); color: var(--mv-muted); }

/* Queue Message */
.mv-queue-msg { background: rgba(229,9,20,.08); border: 1px solid rgba(229,9,20,.2); border-radius: 8px; padding: 12px 16px; font-size: .85rem; color: #e8e8ec; }

/* Empty State */
.mv-empty { text-align: center; color: var(--mv-muted); padding: 40px 20px; }

/* Error */
.mv-error{text-align:center;padding:80px 28px 60px;background:var(--glass-card);border:1px solid var(--mv-line);border-radius:16px;backdrop-filter:blur(12px);box-shadow:0 12px 40px rgba(0,0,0,0.4);animation:mvErrorIn .5s ease;max-width:560px;margin:60px auto}
@keyframes mvErrorIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.mv-error .dm-error-icon{width:80px;height:80px;border-radius:50%;background:rgba(229,9,20,0.1);border:2px solid rgba(229,9,20,0.3);display:inline-flex;align-items:center;justify-content:center;margin-bottom:24px;animation:mvPulse 2s ease-in-out infinite}
.mv-error .dm-error-icon i{font-size:2rem;color:#e50914}
@keyframes mvPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(229,9,20,0.2)}50%{transform:scale(1.05);box-shadow:0 0 20px 4px rgba(229,9,20,0.15)}}

/* Focus A11Y */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Responsive 1024px */
@media (max-width: 1024px) {
  .mv-container { max-width: 1100px; }
  .mv-layout, .mv-glass-grid { grid-template-columns: 260px 1fr; }
}

/* Responsive 768px */
@media (max-width: 768px) {
  .mv-layout, .mv-glass-grid { grid-template-columns: 1fr; }
  .mv-poster-wrap { max-width: 220px; margin: 0 auto; }
  .mv-title, .mv-year, .mv-tagline, .mv-pills, .mv-genres { text-align: center; }
  .mv-details-grid, .mv-details-inline { grid-template-columns: 1fr 1fr; }
  .mv-actions-row { justify-content: center; max-width: 350px; margin-left: auto; margin-right: auto; }
  .mv-mini-card { flex: 0 0 130px; }
  .mv-car-btn { display: none; }
  .mv-sticky-bar, .mv-watchbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200; background: rgba(10,10,15,.95); border-top: 1px solid var(--mv-line); padding: 10px 16px; backdrop-filter: blur(12px); }
}

/* Responsive 480px */
@media (max-width: 480px) {
  .mv-container { padding: 64px 16px 32px; }
  .mv-details-grid, .mv-details-inline { grid-template-columns: 1fr; }
  .mv-mini-card { flex: 0 0 110px; }
  .mv-actions-row { padding: 10px 14px; }
  .mv-btn { padding: 10px 14px; font-size: .8rem; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  .mv-cards-row, .mv-carousel-wrap, .mv-videos-row { scroll-snap-type: none; }
}
