@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-deep: #060813;
  --card-glass: rgba(20, 27, 49, 0.72);
  --card-glass-border: rgba(255, 255, 255, 0.12);
  --accent-primary: #00f2fe;
  --accent-secondary: #4facfe;
  --accent-purple: #7c3aed;
  --accent-gold: #fbbf24;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --text-pure: #ffffff;
  --text-soft: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(0, 242, 254, 0.16) 0%, transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(124, 58, 237, 0.22) 0%, transparent 48%),
    radial-gradient(circle at 50% 90%, rgba(79, 172, 254, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #060813 0%, #0b1022 100%);
  color: var(--text-pure);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ============================================================================
   NOTIFICATION BANNER
   ============================================================================ */
.nova-dl-banner {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  width: 390px;
  background: rgba(10, 22, 44, 0.96);
  border: 1.5px solid #00f2fe;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
}

.nova-dl-banner.visible {
  display: block !important;
}

.nova-dl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.nova-dl-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.nova-dl-pct {
  font-size: 13px;
  font-weight: 800;
  color: #00f2fe;
}

.nova-dl-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.nova-dl-bar {
  width: 85%;
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #10b981);
  transition: width 0.2s ease;
}

.nova-dl-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
}

/* ============================================================================
   SCREENS
   ============================================================================ */
.nova-screen {
  display: none;
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.nova-screen.active {
  display: flex;
  animation: fadeInScreen 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScreen {
  from { opacity: 0; transform: scale(0.99); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================================
   1. LUXURY HOME DASHBOARD (4-Column Bento Grid)
   ============================================================================ */
#screenHome {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 54px;
}

.home-top-bar {
  width: 100%;
  max-width: 1080px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-emblem {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-emblem img, .brand-logo-img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.brand-name-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #ffffff 0%, #bae6fd 60%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff;
}

.brand-tagline {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-status-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nova-shield-pill {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(18, 50, 98, 0.88), rgba(10, 22, 44, 0.95));
  border: 1.5px solid rgba(0, 242, 254, 0.45);
  box-shadow: 0 10px 28px rgba(0, 242, 254, 0.18);
  transition: all 0.2s;
}

.nova-shield-pill:hover, .nova-shield-pill.focused {
  border-color: #00f2fe;
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
}

.nova-shield-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
  flex-shrink: 0;
}

.nova-shield-dot.off {
  background: #fb7185;
  box-shadow: 0 0 10px #fb7185;
}

.nova-shield-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-weight: 700;
}

.nova-shield-value {
  font-size: 14px;
  font-weight: 800;
  color: #00f2fe;
}

.nova-shield-value.off {
  color: #fb7185;
}

.nova-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(10, 22, 44, 0.92));
  color: #34d399;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.18);
}

.nova-refresh-btn:hover, .nova-refresh-btn.focused {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #030712;
  border-color: #34d399;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

.home-clock-box {
  text-align: right;
}

.home-clock {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.home-date {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
}

.nova-bento-grid {
  display: grid;
  grid-template-columns: 300px 230px 230px 260px;
  grid-template-rows: 195px 195px;
  gap: 20px;
  align-items: stretch;
}

.nova-card {
  background: var(--card-glass);
  border: 1.5px solid var(--card-glass-border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nova-card:hover, .nova-card:focus, .nova-card.focused {
  transform: translateY(-5px) scale(1.025);
  border-color: var(--accent-primary);
  box-shadow: 0 24px 50px rgba(0, 242, 254, 0.25), 0 0 0 2px rgba(0, 242, 254, 0.4);
  outline: none;
  z-index: 5;
}

.card-live-glow {
  grid-column: 1;
  grid-row: 1 / span 2;
  background: linear-gradient(155deg, rgba(18, 50, 98, 0.92) 0%, rgba(10, 22, 44, 0.95) 65%, rgba(6, 8, 19, 0.98) 100%);
  border-color: rgba(0, 242, 254, 0.45);
}

.card-movies-glow {
  background: linear-gradient(145deg, rgba(18, 50, 98, 0.88) 0%, rgba(10, 22, 44, 0.92) 100%);
  border-color: rgba(56, 189, 248, 0.32);
}

.card-series-glow {
  background: linear-gradient(145deg, rgba(18, 50, 98, 0.88) 0%, rgba(10, 22, 44, 0.92) 100%);
  border-color: rgba(251, 191, 36, 0.32);
}

.card-account-glow {
  background: linear-gradient(145deg, rgba(18, 50, 98, 0.85) 0%, rgba(10, 22, 44, 0.92) 100%);
  border-color: rgba(16, 185, 129, 0.32);
}

.card-playlist-glow {
  background: linear-gradient(145deg, rgba(18, 50, 98, 0.85) 0%, rgba(10, 22, 44, 0.92) 100%);
  border-color: rgba(251, 191, 36, 0.32);
}

.card-icon-orb {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card-live-glow .card-icon-orb {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(79, 172, 254, 0.15));
  border-color: rgba(0, 242, 254, 0.45);
}

.nova-card span.card-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-live-glow span.card-title {
  font-size: 28px;
  font-weight: 800;
}

.card-sub-badge {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nova-badge-sky {
  color: #7dd3fc;
}

.nova-badge-gold {
  color: #fde68a;
}

.nova-right-stack {
  grid-column: 4;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.nova-pill-card {
  flex: 1;
  background: var(--card-glass);
  border: 1.5px solid var(--card-glass-border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  cursor: pointer;
  backdrop-filter: blur(20px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.nova-pill-card:hover, .nova-pill-card:focus, .nova-pill-card.focused {
  transform: translateX(4px) scale(1.02);
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.12));
  box-shadow: 0 14px 32px rgba(0, 242, 254, 0.22);
  outline: none;
}

.pill-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nova-pill-card span {
  font-size: 17px;
  font-weight: 700;
}

.home-bottom-strip {
  width: 100%;
  max-width: 1080px;
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-soft);
  font-size: 13px;
}

.nova-bottom-shield-lbl {
  color: #34d399;
  font-weight: 700;
}

.nova-bottom-shield-val {
  color: #00f2fe;
  font-weight: 800;
}

.nova-sep {
  margin: 0 10px;
  color: var(--text-soft);
}

.nova-gold-text {
  color: #fbbf24 !important;
}

.nova-sky-text {
  color: #38bdf8 !important;
}

.nova-emerald-text {
  color: #34d399 !important;
}

/* ============================================================================
   2. LIVE TV SCREEN (3-Column Layout + Real EPG)
   ============================================================================ */
#screenLive {
  flex-direction: column;
  padding: 18px 28px;
  gap: 16px;
}

.nova-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nova-top-left, .nova-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nova-nav-brand {
  font-size: 22px;
}

.nova-nav-sub {
  font-size: 18px;
  color: #fff;
}

.nova-nav-clock {
  font-weight: 800;
  color: #fff;
}

.nova-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--card-glass);
  border: 1.5px solid var(--card-glass-border);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.nova-back-btn:hover, .nova-back-btn.focused {
  border-color: var(--accent-primary);
  background: rgba(0, 242, 254, 0.18);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.3);
}

.nova-search-input {
  padding: 9px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--card-glass-border);
  background: var(--card-glass);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  width: 220px;
}

.nova-select-input {
  padding: 9px 14px;
  border-radius: 12px;
  background: #0a162c;
  color: #fff;
  border: 1.5px solid var(--accent-primary);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
}

.nova-text-input {
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(10, 22, 44, 0.92);
  color: #fff;
  border: 1px solid var(--card-glass-border);
  font-family: inherit;
  font-size: 13px;
}

.nova-live-body {
  display: grid;
  grid-template-columns: 260px 350px 1fr;
  gap: 18px;
  flex: 1;
  overflow: hidden;
}

.nova-panel-box {
  background: var(--card-glass);
  border: 1.5px solid var(--card-glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.nova-panel-header {
  padding: 14px 18px;
  background: rgba(6, 8, 19, 0.55);
  border-bottom: 1px solid var(--card-glass-border);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nova-list-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nova-cat-row, .nova-ch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.16s;
}

.nova-cat-row:hover, .nova-cat-row.active, .nova-cat-row.focused,
.nova-ch-row:hover, .nova-ch-row.active, .nova-ch-row.focused {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.22), rgba(79, 172, 254, 0.14));
  border-color: var(--accent-primary);
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.16);
}

.nova-cat-count {
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 800;
}

.nova-ch-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.nova-ch-num {
  color: var(--accent-primary);
  font-weight: 800;
  min-width: 28px;
}

.ch-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0284c7, #1e293b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.ch-badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nova-ch-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nova-ch-star {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.nova-live-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.nova-video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 53vh;
  background: #000;
  border: 1.5px solid rgba(0, 242, 254, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.nova-video-box video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.nova-epg-box {
  flex: 1;
  background: var(--card-glass);
  border: 1.5px solid var(--card-glass-border);
  border-radius: 20px;
  padding: 16px 20px;
  overflow-y: auto;
  backdrop-filter: blur(20px);
}

.nova-epg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.nova-epg-ch-title {
  font-size: 17px;
  color: #fff;
}

.nova-epg-shield-tag {
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 242, 254, 0.16);
  color: #00f2fe;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 242, 254, 0.35);
}

.nova-epg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nova-epg-item {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.nova-epg-time {
  color: var(--accent-primary);
  margin-right: 8px;
}

.nova-epg-status-active {
  color: #34d399;
  font-weight: 800;
  font-size: 11px;
}

.nova-epg-status-info {
  color: #94a3b8;
  font-weight: 700;
  font-size: 11px;
}

/* ============================================================================
   3. MOVIES & SERIES CATALOG SCREEN (Real HD Poster Cards)
   ============================================================================ */
.nova-vod-screen {
  flex-direction: column;
  padding: 18px 28px;
  gap: 16px;
}

.nova-vod-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  flex: 1;
  overflow: hidden;
}

.nova-vod-grid-panel {
  overflow-y: auto;
}

.nova-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  grid-auto-rows: 320px;
  align-content: start;
  gap: 18px;
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}

.nova-poster-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid var(--card-glass-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 320px;
  min-height: 320px;
}

.nova-poster-card:hover, .nova-poster-card.focused {
  border-color: var(--accent-primary);
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 16px 34px rgba(0, 242, 254, 0.28);
  z-index: 4;
}

.nova-poster-art {
  width: 100%;
  height: 255px;
  min-height: 255px;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(155deg, #123262 0%, #0a162c 65%, #060813 100%);
  overflow: hidden;
}

.nova-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nova-poster-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(6, 8, 19, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: var(--accent-gold);
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  z-index: 2;
}

.nova-poster-quality {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #030712;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  z-index: 2;
}

.nova-poster-footer {
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(8, 13, 28, 0.96);
}

.nova-poster-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nova-poster-subrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nova-poster-cat {
  font-size: 11px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 115px;
}

.nova-poster-play {
  font-size: 11px;
  color: var(--accent-primary);
  font-weight: 800;
}

/* ============================================================================
   4. MOVIE & SERIES DETAIL / SUMMARY SCREEN (Full Synopsis, Cast, Seasons)
   ============================================================================ */
.nova-detail-screen {
  flex-direction: column;
  padding: 20px 34px;
  gap: 18px;
}

.nova-detail-body {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 30px;
  flex: 1;
  background: var(--card-glass);
  border: 1.5px solid var(--card-glass-border);
  border-radius: 24px;
  padding: 28px;
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.nova-detail-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.nova-detail-poster-wrap {
  width: 260px;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  background: #0a162c;
}

.nova-detail-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nova-detail-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nova-watch-btn {
  width: 100%;
  padding: 15px 20px !important;
  font-size: 16px !important;
  border-radius: 14px !important;
}

.nova-detail-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding-right: 10px;
}

.nova-detail-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.nova-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.nova-badge-rating {
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid #fbbf24;
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.nova-badge-meta {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.nova-badge-genre {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #00f2fe;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.nova-detail-plot {
  font-size: 15px;
  line-height: 1.6;
  color: #cbd5e1;
  background: rgba(6, 8, 19, 0.45);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.nova-detail-credits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: #94a3b8;
}

.nova-detail-credits strong {
  color: #00f2fe;
}

.nova-series-block {
  display: none;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 220px;
}

.nova-series-block.visible {
  display: flex;
}

.nova-season-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nova-season-tab {
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.nova-season-tab.active, .nova-season-tab:hover, .nova-season-tab.focused {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  color: #030712;
  border-color: transparent;
}

.nova-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: 270px;
  padding-right: 6px;
}

.nova-ep-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.16s;
}

.nova-ep-row:hover, .nova-ep-row.focused {
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.16);
}

.nova-ep-title {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}

.nova-ep-play {
  color: #00f2fe;
  font-weight: 800;
  font-size: 12.5px;
}

/* ============================================================================
   5. DEDICATED FULLSCREEN VOD PLAYER SCREEN
   ============================================================================ */
.nova-vod-player-screen {
  flex-direction: column;
  background: #000;
}

.nova-vod-player-topbar {
  padding: 14px 24px;
  background: rgba(6, 8, 19, 0.9);
  border-bottom: 1px solid rgba(0, 242, 254, 0.25);
}

.nova-vod-video-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.nova-vod-video-wrap video {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 68px);
  background: #000;
  object-fit: contain;
}

/* ============================================================================
   6. CHANGE PLAYLIST SCREEN
   ============================================================================ */
#screenPlaylists {
  display: none;
  grid-template-columns: 7fr 3fr;
  width: 100%;
  height: 100%;
}

#screenPlaylists.active {
  display: grid;
}

.nova-pl-left {
  padding: 32px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--card-glass-border);
}

.nova-pl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nova-pl-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  margin: 24px 0;
  flex: 1;
  align-content: start;
}

.nova-pl-card {
  background: var(--card-glass);
  border: 1.5px solid var(--card-glass-border);
  border-radius: 20px;
  padding: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  transition: all 0.2s;
  backdrop-filter: blur(20px);
}

.nova-pl-card:hover, .nova-pl-card.active, .nova-pl-card.focused {
  background: linear-gradient(145deg, rgba(0, 242, 254, 0.16), rgba(20, 27, 49, 0.9));
  border-color: var(--accent-primary);
  box-shadow: 0 16px 36px rgba(0, 242, 254, 0.2);
}

.nova-pl-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.nova-pl-card-title {
  font-size: 17px;
}

.nova-pl-card-badge {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
}

.nova-pl-card-url {
  font-size: 12px;
  color: var(--text-soft);
  word-break: break-all;
}

.nova-pl-card-shield {
  font-size: 12px;
  color: var(--accent-primary);
  font-weight: 700;
  margin-top: 12px;
}

.nova-pl-card-add {
  align-items: center;
  justify-content: center;
  border-style: dashed;
}

.nova-pl-add-plus {
  font-size: 34px;
  color: var(--accent-primary);
}

.nova-pl-add-label {
  font-size: 16px;
  font-weight: 700;
  margin-top: 6px;
}

.nova-pl-footer-note {
  text-align: center;
  color: #fbbf24;
  font-weight: 700;
  font-size: 13px;
}

.nova-pl-right {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  background: rgba(6, 8, 19, 0.65);
  backdrop-filter: blur(24px);
}

.nova-pl-right-title {
  font-size: 14px;
  font-weight: 700;
}

.nova-pl-portal-url {
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 800;
  margin: 4px 0;
}

.nova-pl-id-box {
  margin-top: 12px;
}

.nova-pl-id-lbl {
  font-size: 12px;
  color: var(--text-soft);
}

.nova-pl-id-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-gold);
}

/* ============================================================================
   7. MODALS
   ============================================================================ */
.nova-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.84);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.nova-modal-backdrop.open {
  display: flex;
}

.nova-modal {
  width: 100%;
  max-width: 580px;
  background: rgba(15, 22, 42, 0.96);
  border: 1.5px solid rgba(0, 242, 254, 0.45);
  border-radius: 24px;
  padding: 30px 34px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 242, 254, 0.15);
}

.nova-modal h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

.nova-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nova-form-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 700;
}

.nova-verify-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 13px;
  font-weight: 700;
}

.nova-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.nova-kv-row strong {
  color: var(--accent-primary);
}

.nova-btn-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.nova-action-btn {
  padding: 10px 26px;
  border-radius: 12px;
  border: 1.5px solid var(--card-glass-border);
  background: rgba(30, 41, 59, 0.85);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.nova-action-btn.primary, .nova-action-btn:hover, .nova-action-btn.focused {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #030712;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(0, 242, 254, 0.35);
}

.nova-exit-text {
  text-align: center;
  color: var(--text-soft);
  font-size: 15px;
}

/* ============================================================================
   8. ADVANCED IBO-PARITY PLAYER CONTROLS, RESUME, SUBTITLES, AUDIO & COPYRIGHT
   ============================================================================ */
.nova-hidden {
  display: none !important;
}

.home-copyright-strip {
  text-align: center;
  font-size: 11.5px;
  color: rgba(148, 163, 184, 0.85);
  padding: 6px 16px 2px 16px;
  letter-spacing: 0.2px;
}

.nova-modal-copyright {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(6, 8, 19, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
}

.nova-live-osd-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(6, 8, 19, 0.82);
  border: 1px solid rgba(0, 242, 254, 0.45);
  color: #00f2fe;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 99px;
  pointer-events: none;
  z-index: 5;
}

#liveVideoContainer.live-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 900 !important;
  background: #000 !important;
}

.nova-resume-btn {
  width: 100%;
  padding: 14px 18px !important;
  font-size: 15px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #34d399 !important;
  color: #030712 !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.nova-poster-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(6, 8, 19, 0.85);
  z-index: 3;
}

.nova-poster-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #10b981);
  border-radius: 0 3px 3px 0;
}

.nova-vod-video-wrap {
  position: relative;
}

.nova-vod-video-wrap video {
  max-height: calc(100vh - 178px);
}

.nova-vod-bottom-osd {
  padding: 14px 28px 18px 28px;
  background: linear-gradient(180deg, rgba(6, 8, 19, 0.88) 0%, rgba(4, 6, 14, 0.98) 100%);
  border-top: 1px solid rgba(0, 242, 254, 0.28);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}

.nova-vod-seek-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nova-vod-time-lbl {
  font-size: 13px;
  font-weight: 800;
  color: #e2e8f0;
  min-width: 68px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.nova-vod-seek-slider {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}

.nova-vod-seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00f2fe;
  border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.8);
  cursor: pointer;
}

.nova-vod-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nova-vod-controls-left,
.nova-vod-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nova-osd-play-btn {
  padding: 10px 22px !important;
  font-size: 14px !important;
}

.nova-subtitle-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 82%;
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  display: none;
  z-index: 15;
}

.nova-subtitle-overlay.visible {
  display: block;
}

.nova-tracks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.nova-track-row,
.nova-track-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  transition: all 0.16s;
}

.nova-track-row:hover,
.nova-track-row.active,
.nova-track-row.focused,
.nova-track-item:hover,
.nova-track-item.active,
.nova-track-item.focused {
  background: rgba(0, 242, 254, 0.18);
  border-color: #00f2fe;
  color: #fff;
}

.nova-track-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

/* ============================================================================
   9. APPLE iOS (iPHONE / iPAD) SAFE-AREA & RESPONSIVE TOUCH LAYOUT
   ============================================================================ */
@supports (padding: max(0px)) {
  .nova-screen {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* iPhone Landscape (e.g. 844x390 / 932x430) & Compact Touch Screens */
@media (max-height: 520px) {
  #screenHome {
    padding: 10px 18px !important;
  }
  .home-top-bar {
    margin-bottom: 8px !important;
  }
  .brand-name-title {
    font-size: 19px !important;
  }
  .brand-tagline {
    font-size: 10.5px !important;
  }
  .nova-bento-grid {
    gap: 10px !important;
  }
  .nova-card {
    padding: 12px !important;
    border-radius: 16px !important;
  }
  .card-icon-orb {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 6px !important;
  }
  .card-title {
    font-size: 16px !important;
  }
  .nova-pill-card {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
  .home-bottom-strip {
    padding: 6px 12px !important;
    font-size: 11px !important;
    margin-top: 6px !important;
  }
  .home-copyright-strip {
    font-size: 10px !important;
    padding: 2px 8px !important;
  }
  .nova-top-nav {
    padding: 8px 14px !important;
  }
  .nova-modal {
    max-height: 92vh !important;
    overflow-y: auto !important;
    padding: 16px 20px !important;
  }
}

/* iPhone Portrait (e.g. 390x844 / 430x932) */
@media (max-width: 760px) and (orientation: portrait) {
  .nova-screen {
    overflow-y: auto !important;
  }
  .home-top-bar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
  .home-status-cluster {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .nova-bento-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    height: auto !important;
    flex: none !important;
  }
  .card-live-glow {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-height: 150px;
  }
  .nova-right-stack {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    flex-direction: row !important;
  }
  .nova-live-body {
    grid-template-columns: 1fr !important;
    overflow-y: auto !important;
  }
  .nova-vod-body {
    grid-template-columns: 1fr !important;
    overflow-y: auto !important;
  }
  #screenPlaylists.active {
    grid-template-columns: 1fr !important;
    overflow-y: auto !important;
  }
}

