@import url("match-center.css");
@import url("episode-experience.css");
:root {
  --oscar-bg: #000000;
  --oscar-bg-soft: #050505;
  --oscar-surface: #0d0d0d;
  --oscar-surface-2: #141414;
  --oscar-surface-3: #1a1a1a;
  --oscar-glass: rgba(25, 25, 27, .88);
  --oscar-text: #fff;
  --oscar-text-2: #b6b6ba;
  --oscar-muted: #747478;
  --oscar-border: rgba(255,255,255,.075);
  --oscar-red: #9B4DFF;
  --oscar-red-2: #14D7FF;
  --oscar-yellow: #14D7FF;
  --oscar-cyan: #14D7FF;
  --oscar-orange: #F04AD8;
  --oscar-purple: #5d46ff;
  --accent: var(--oscar-red);
  --nova-native-safe-left: 0px;
  --nova-native-safe-top: 0px;
  --nova-native-safe-right: 0px;
  --nova-native-safe-bottom: 0px;
  --safe-left: max(var(--nova-native-safe-left), env(safe-area-inset-left, 0px));
  --safe-top: max(var(--nova-native-safe-top), env(safe-area-inset-top, 0px));
  --safe-right: max(var(--nova-native-safe-right), env(safe-area-inset-right, 0px));
  --safe-bottom: max(var(--nova-native-safe-bottom), env(safe-area-inset-bottom, 0px));
  --page-pad: clamp(14px, 3.2vw, 28px);
  --bottom-nav-h: 78px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body, #app, .app-root { min-height: 100%; margin: 0; }
html { background: #000; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--oscar-bg);
  color: var(--oscar-text);
  font-family: "Tajawal", "Noto Sans Arabic", "Segoe UI", Arial, sans-serif;
  direction: rtl;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { display: block; max-width: 100%; }
svg { display: block; }
#blazor-error-ui { display: none !important; }

.oscar-app {
  min-height: 100vh;
  background: #000000;
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
  --accent: var(--oscar-purple);
}
.oscar-app.anime-theme { --accent: var(--oscar-purple); background: #000000; }
.oscar-app.matches-theme { --accent: var(--oscar-purple); background: #000000; }
.oscar-main { min-height: 100vh; }

/* Splash */
.oscar-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  overflow: hidden; background: #050506; color: #fff;
}
.splash-glow { position: absolute; width: 310px; height: 310px; border-radius: 50%; background: radial-gradient(circle, rgba(242,7,22,.22), transparent 68%); filter: blur(10px); }
.oscar-splash img { position: relative; width: 126px; height: 126px; object-fit: contain; border-radius: 26px; filter: drop-shadow(0 16px 34px rgba(0,0,0,.7)); }
.oscar-splash strong { position: relative; margin-top: 2px; font-size: 1.42rem; font-weight: 900; letter-spacing: 1.3px; direction: ltr; }
.oscar-splash strong span { color: var(--oscar-red); }
.oscar-splash small { color: #838388; font-size: .78rem; }
.oscar-loader { position: relative; width: 150px; height: 3px; overflow: hidden; border-radius: 8px; background: #242426; }
.oscar-loader span { display: block; width: 44%; height: 100%; background: linear-gradient(90deg, transparent, var(--oscar-red), transparent); animation: oscar-loading 1.05s ease-in-out infinite; }
@keyframes oscar-loading { from { transform: translateX(170%); } to { transform: translateX(-240%); } }

/* Shared icons and controls */
.oscar-icon { flex: 0 0 auto; }
.icon-button { width: 43px; height: 43px; padding: 0; display: grid; place-items: center; border-radius: 50%; color: #fff; background: transparent; transition: background .18s ease, transform .12s ease; }
.icon-button:active { background: rgba(255,255,255,.09); transform: scale(.93); }
.icon-button.notification { position: relative; }
.icon-button.notification i { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border: 2px solid #080809; border-radius: 50%; background: var(--accent); }
.primary-action { min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 900; box-shadow: 0 10px 28px rgba(242,7,22,.22); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 24%, transparent); }
.outline-action { min-height: 45px; padding: 0 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: #171719; font-weight: 800; }
.circle-action { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(18,18,20,.82); }
.circle-action.saved { color: #fff; border-color: var(--accent); background: var(--accent); }

/* Toolbar */
.oscar-toolbar {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0;
  height: calc(74px + var(--safe-top)); padding: var(--safe-top) max(var(--page-pad), var(--safe-right)) 0 max(var(--page-pad), var(--safe-left));
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(5,5,6,.99), rgba(5,5,6,.95));
  border-bottom: 1px solid rgba(255,255,255,.025);
}
.oscar-toolbar.home-toolbar { background: linear-gradient(180deg, rgba(5,5,6,.99), rgba(5,5,6,.78), transparent); border: 0; }
.toolbar-title { display: flex; align-items: center; min-width: 0; }
.toolbar-title h1 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(1.55rem, 6.1vw, 2.45rem); line-height: 1; font-weight: 900; }
.toolbar-actions { display: flex; align-items: center; gap: 3px; }
.catalog-header-spacer { height: calc(74px + var(--safe-top)); }

/* Search */
.search-sheet {
  position: fixed; z-index: 180; top: 0; left: 0; right: 0;
  height: calc(76px + var(--safe-top)); padding: var(--safe-top) max(12px, var(--safe-right)) 0 max(12px, var(--safe-left));
  display: flex; align-items: center; gap: 8px;
  background: rgba(8,8,9,.985); box-shadow: 0 12px 32px rgba(0,0,0,.6);
}
.search-field { flex: 1; height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 9px; border: 1px solid #303033; border-radius: 15px; background: #18181a; color: #9a9a9f; }
.search-field:focus-within { border-color: var(--accent); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; text-align: right; font-size: .94rem; }
.search-field .icon-button { width: 30px; height: 30px; color: #8b8b90; }

/* Drawer */
.menu-backdrop { position: fixed; z-index: 190; inset: 0; background: rgba(0,0,0,.66); backdrop-filter: blur(3px); }
.side-menu { position: fixed; z-index: 200; top: 0; right: 0; bottom: 0; width: min(82vw, 330px); padding: calc(var(--safe-top) + 18px) 14px calc(var(--safe-bottom) + 18px); overflow-y: auto; background: linear-gradient(180deg,#151517,#09090a); border-left: 1px solid var(--oscar-border); box-shadow: -24px 0 50px rgba(0,0,0,.55); animation: drawer-in .2s ease-out; }
@keyframes drawer-in { from { transform: translateX(102%); } }
.side-menu-brand { margin-bottom: 18px; padding: 0 5px 16px; display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 11px; border-bottom: 1px solid var(--oscar-border); }
.side-menu-brand img { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; }
.side-menu-brand strong, .side-menu-brand small { display: block; }
.side-menu-brand strong { font-size: 1.05rem; }
.side-menu-brand small { margin-top: 2px; color: var(--oscar-muted); font-size: .72rem; }
.side-menu > button, .side-menu > a { width: 100%; min-height: 52px; padding: 0 14px; display: flex; align-items: center; gap: 15px; border-radius: 12px; background: transparent; color: #d9d9dc; text-align: right; font-weight: 700; }
.side-menu > button:active, .side-menu > a:active { background: #242426; color: var(--accent); }
.side-menu-separator { height: 1px; margin: 10px 8px; background: var(--oscar-border); }

/* Bottom nav */
.oscar-bottom-nav {
  position: fixed; z-index: 120; right: 0; bottom: 0; left: 0;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding: 7px 3px var(--safe-bottom);
  display: flex; align-items: stretch; direction: rtl; overflow-x: auto; overflow-y: hidden;
  background: rgba(5,5,6,.97); border-top: 1px solid rgba(255,255,255,.055);
  box-shadow: 0 -10px 28px rgba(0,0,0,.44); scrollbar-width: none;
}
.oscar-bottom-nav::-webkit-scrollbar { display: none; }
.oscar-bottom-nav button, .oscar-bottom-nav a { position: relative; flex: 1 0 74px; min-width: 74px; padding: 3px 3px 1px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: transparent; color: #77777b; }
.nav-icon { height: 31px; display: grid; place-items: center; transition: transform .15s ease; }
.oscar-bottom-nav b { font-size: .68rem; line-height: 1; font-weight: 600; white-space: nowrap; }
.oscar-bottom-nav button.active, .oscar-bottom-nav a.active { color: var(--accent); }
.oscar-bottom-nav button.active .nav-icon, .oscar-bottom-nav a.active .nav-icon { transform: translateY(-1px) scale(1.08); filter: drop-shadow(0 3px 8px rgba(242,7,22,.38)); filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--accent) 50%, transparent)); }
.oscar-bottom-nav button.active b, .oscar-bottom-nav a.active b { font-weight: 800; }

/* Home */
.home-intro { height: calc(74px + var(--safe-top)); padding: var(--safe-top) var(--page-pad) 0; }
.home-brand { height: 74px; display: flex; align-items: center; gap: 10px; visibility: hidden; }
.home-brand img { width: 40px; height: 40px; border-radius: 9px; }
.home-brand strong, .home-brand span { display: block; }
.home-brand span { color: var(--oscar-muted); font-size: .7rem; }
.home-spotlight { position: relative; min-height: clamp(350px, 103vw, 520px); margin-top: calc(-1 * (74px + var(--safe-top))); overflow: hidden; background-size: cover; background-position: center 18%; box-shadow: inset 0 -1px rgba(255,255,255,.03); cursor: pointer; }
.safe-background-image { position: absolute !important; inset: 0; z-index: 0; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; border-radius: 0 !important; object-fit: cover; object-position: center 18%; filter: none; }
.details-hero > .safe-background-image { object-position: center 15%; }
.spotlight-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.22) 0, rgba(0,0,0,.12) 38%, rgba(5,5,6,.96) 92%, #050506 100%), linear-gradient(90deg, rgba(0,0,0,.18), transparent 65%); }
.spotlight-content { position: absolute; z-index: 2; right: var(--page-pad); left: 22%; bottom: 42px; }
.spotlight-label { display: inline-flex; margin-bottom: 8px; padding: 5px 10px; border-radius: 5px; background: rgba(242,7,22,.92); font-size: .7rem; font-weight: 800; }
.spotlight-content h1 { margin: 0 0 9px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: clamp(1.65rem, 7vw, 3.2rem); line-height: 1.1; font-weight: 900; text-shadow: 0 4px 16px #000; }
.spotlight-meta { margin-bottom: 15px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #d2d2d4; font-size: .76rem; }
.spotlight-meta span { display: inline-flex; align-items: center; gap: 4px; }
.spotlight-meta span + span::before { content: "•"; margin-left: 4px; color: #777; }
.spotlight-meta span:first-child { color: var(--oscar-yellow); direction: ltr; }
.spotlight-content .primary-action { min-height: 40px; padding: 0 16px; border-radius: 8px; font-size: .82rem; }
.hero-dots { position: absolute; z-index: 3; left: var(--page-pad); bottom: 50px; display: flex; gap: 5px; direction: ltr; }
.hero-dots i { width: 5px; height: 5px; border-radius: 8px; background: rgba(255,255,255,.38); }
.hero-dots i.active { width: 22px; background: var(--accent); }

.oscar-section { padding: 4px var(--page-pad) 24px; }
.section-heading { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 0; display: flex; align-items: center; gap: 9px; font-size: clamp(1.25rem, 5.2vw, 2rem); line-height: 1.15; font-weight: 900; }
.section-heading h2 > i { width: 5px; height: 34px; flex: 0 0 5px; border-radius: 1px; background: var(--accent); }
.section-heading button { padding: 10px 0 10px 12px; display: inline-flex; align-items: center; gap: 5px; background: transparent; color: var(--accent); font-size: .84rem; white-space: nowrap; }
.poster-rail { display: flex; gap: 12px; overflow-x: auto; padding: 5px 0 8px; scroll-snap-type: x proximity; overscroll-behavior-inline: contain; scrollbar-width: none; }
.poster-rail::-webkit-scrollbar { display: none; }

.wrestling-promo { position: relative; width: calc(100% - 2 * var(--page-pad)); min-height: 150px; margin: 3px var(--page-pad) 27px; padding: 18px 19px; display: grid; grid-template-columns: 35% 1fr; align-items: center; overflow: hidden; border-radius: 20px; text-align: right; background: radial-gradient(circle at 23% 45%, rgba(109,79,255,.5), transparent 30%), linear-gradient(105deg,#0a0b20,#111053 52%,#21105b); box-shadow: 0 18px 34px rgba(0,0,0,.35); }
.wrestling-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.04), rgba(0,0,0,.28)); pointer-events: none; }
.wrestling-art { position: relative; z-index: 1; color: #ddd4ff; display: grid; place-items: center; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); }
.wrestling-copy { position: relative; z-index: 1; }
.wrestling-copy strong, .wrestling-copy span { display: block; }
.wrestling-copy strong { font-size: clamp(1.3rem, 5.3vw, 2.1rem); font-weight: 900; }
.wrestling-copy span { margin: 7px 0 14px; color: #c8c8ce; font-size: .78rem; line-height: 1.45; }
.wrestling-copy em { display: inline-flex; min-height: 42px; padding: 0 20px; align-items: center; border-radius: 10px; background: #654cff; font-style: normal; font-weight: 900; }

/* Poster cards */
.oscar-card { flex: 0 0 clamp(142px, 31vw, 212px); min-width: 0; padding: 0; background: transparent; text-align: right; scroll-snap-align: start; cursor: pointer; }
.poster-wrap { position: relative; display: block; width: 100%; aspect-ratio: .59; overflow: hidden; border-radius: 15px; background: #171719; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.poster-wrap > img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease, opacity .2s ease; }
.oscar-card:active .poster-wrap > img { transform: scale(1.035); }
.poster-gradient { position: absolute; inset: 42% 0 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.2) 35%, rgba(0,0,0,.95)); pointer-events: none; }
.poster-title { position: absolute; z-index: 3; right: 10px; bottom: 11px; left: 9px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .9rem; line-height: 1.35; font-weight: 900; text-shadow: 0 2px 5px #000; }
.card-title { display: block; margin: 9px 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: .83rem; font-weight: 800; text-align: center; }
.card-meta { display: block; margin: 4px 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #74747a; font-size: .7rem; text-align: center; }
.translation-badge, .quality-badge, .score-badge, .episode-badge { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 3px; font-style: normal; line-height: 1; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.translation-badge { top: 10px; right: 0; padding: 8px 9px; border-radius: 7px 0 0 7px; background: var(--oscar-cyan); font-size: .69rem; }
.quality-badge { top: 10px; left: 0; padding: 7px 8px; border-radius: 0 7px 7px 0; background: #db2032; font-size: .62rem; }
.score-badge { top: 10px; left: 8px; padding: 6px 7px; border-radius: 7px; background: rgba(25,25,27,.78); color: var(--oscar-yellow); font-size: .63rem; direction: ltr; backdrop-filter: blur(5px); }
.oscar-card.movie .score-badge { top: 40px; }
.episode-badge { top: 10px; left: 8px; padding: 6px 8px; border-radius: 7px; background: rgba(20,20,22,.76); font-size: .63rem; direction: ltr; backdrop-filter: blur(5px); }
.favorite-button { position: absolute; z-index: 5; right: 8px; bottom: 8px; width: 31px; height: 31px; display: none; place-items: center; border-radius: 50%; background: rgba(5,5,6,.7); color: #fff; backdrop-filter: blur(4px); }
.favorite-button.saved { display: grid; color: #fff; background: var(--accent); }
.oscar-card:hover .favorite-button, .oscar-card:focus-within .favorite-button { display: grid; }

/* Catalog */
.catalog-page { min-height: 100vh; padding: 0 var(--page-pad) 34px; }
.category-tabs { height: 86px; margin-inline: calc(-1 * var(--page-pad)); padding: 8px var(--page-pad); display: flex; align-items: center; gap: 5px; overflow-x: auto; border-top: 1px solid #19191b; border-bottom: 1px solid #19191b; background: #171719; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button { flex: 0 0 auto; min-width: 92px; height: 54px; padding: 0 18px; border-radius: 15px; background: transparent; color: #8f8f94; font-size: 1rem; font-weight: 500; white-space: nowrap; }
.category-tabs button.active { background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 9px 22px rgba(242,7,22,.18); box-shadow: 0 9px 22px color-mix(in srgb, var(--accent) 20%, transparent); }
.filter-panel { padding: 14px 0 17px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-panel::-webkit-scrollbar { display: none; }
.filter-chip { position: relative; flex: 0 0 auto; height: 48px; min-width: 116px; padding: 0 15px; display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border-radius: 12px; background: #1b1b1d; color: #f1f1f2; font-size: .88rem; white-space: nowrap; }
.filter-chip.wide { min-width: 154px; }
.filter-chip > i { width: 7px; height: 7px; border-radius: 50%; background: #737378; }
.filter-chip select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.oscar-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px 10px; }
.oscar-grid .oscar-card { width: 100%; }
.oscar-grid .poster-wrap { border-radius: 16px; }
.load-row { padding: 28px 0 10px; display: grid; place-items: center; }

/* Channel catalog */
.channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px 18px; padding-top: 10px; }
.channel-card { min-width: 0; background: transparent; text-align: center; cursor: pointer; }
.channel-logo { width: 100%; aspect-ratio: 1; padding: 13%; display: grid; place-items: center; overflow: hidden; border-radius: 19px; background: #232325; border: 1px solid rgba(255,255,255,.025); box-shadow: 0 9px 22px rgba(0,0,0,.16); }
.channel-logo img { width: 100%; height: 100%; object-fit: contain; }
.channel-card > strong { display: block; margin-top: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; font-weight: 500; }
.channel-card > small { display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6f6f74; font-size: .7rem; }
.channel-card.compact { flex: 0 0 128px; }
.channel-card.compact .channel-logo { border-radius: 16px; }
.channel-card.compact > strong { font-size: .78rem; }
.channel-card.compact > small { font-size: .66rem; }
.poster-rail.channel-rail { gap: 17px; }

/* Skeleton and empty */
.skeleton-grid { min-height: 60vh; }
.skeleton-card span, .skeleton-card i, .skeleton-card b, .skeleton-match { display: block; background: linear-gradient(90deg,#151517,#202023,#151517); background-size: 220% 100%; animation: shimmer 1.2s linear infinite; }
.skeleton-card span { width: 100%; aspect-ratio: .59; border-radius: 15px; }
.skeleton-card i { width: 84%; height: 11px; margin: 10px auto 0; border-radius: 8px; }
.skeleton-card b { width: 56%; height: 9px; margin: 7px auto 0; border-radius: 8px; }
.skeleton-card.channel span { aspect-ratio: 1; border-radius: 19px; }
@keyframes shimmer { to { background-position: -220% 0; } }
.oscar-empty { min-height: 56vh; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: var(--oscar-muted); text-align: center; }
.oscar-empty > span { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; background: #171719; color: #525257; }
.oscar-empty strong { margin-top: 6px; color: #eee; font-size: 1.05rem; }
.oscar-empty p { margin: 0; max-width: 300px; font-size: .8rem; line-height: 1.6; }

/* Wrestling/anime catalog accents */
.anime-theme .category-tabs button.active, .anime-theme .primary-action { background: var(--oscar-purple); }
.anime-theme .translation-badge { background: var(--oscar-cyan); }
.anime-theme .poster-wrap { box-shadow: 0 8px 22px rgba(28,20,90,.18); }

/* Match center */
.matches-page { min-height: 100vh; padding-bottom: 30px; }
.matches-hero { min-height: 530px; padding: calc(var(--safe-top) + 18px) var(--page-pad) 22px; display: flex; flex-direction: column; align-items: center; background: radial-gradient(circle at 50% 18%, rgba(40,148,93,.25), transparent 24%), linear-gradient(180deg,#0d3d2d 0,#0b271e 48%,#050506 100%); }
.match-top-actions { align-self: stretch; display: flex; align-items: center; justify-content: flex-start; gap: 8px; direction: ltr; }
.match-play { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #75c95b; color: #fff; box-shadow: 0 0 0 10px rgba(117,201,91,.1); }
.trophy-illustration { width: 132px; height: 132px; margin-top: 27px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#55e6a8,#6df0b2); color: #f4ae21; box-shadow: inset 0 -10px 22px rgba(0,0,0,.14), 0 18px 35px rgba(0,0,0,.24); }
.matches-hero h1 { margin: 19px 0 0; font-size: 2rem; font-weight: 900; }
.day-tabs { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.day-tabs button { min-width: 93px; height: 52px; padding: 0 16px; border-radius: 28px; background: rgba(255,255,255,.095); color: #aaaeb0; font-size: 1rem; }
.day-tabs button.active { background: #5d6361; color: #fff; font-weight: 900; }
.matches-hero p { margin: 14px 0 0; color: #81868a; font-size: .82rem; }
.league-strip { margin-top: -8px; padding: 0 var(--page-pad) 24px; display: flex; gap: 23px; overflow-x: auto; scrollbar-width: none; }
.league-strip::-webkit-scrollbar { display: none; }
.league-strip button { flex: 0 0 90px; padding: 0; background: transparent; color: #ddd; text-align: center; }
.league-strip span { width: 72px; height: 72px; margin: 0 auto 7px; display: grid; place-items: center; border-radius: 50%; background: #111513; color: #fff; }
.league-strip b { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #919599; font-size: .72rem; line-height: 1.4; font-weight: 500; }
.match-section { padding: 0 var(--page-pad) 24px; }
.match-heading button { color: #9c9ca0; }
.match-list { display: grid; gap: 10px; }
.match-card { position: relative; min-height: 150px; padding: 18px 18px 14px; display: grid; grid-template-columns: 1fr 104px 1fr; align-items: center; gap: 10px; overflow: hidden; border-radius: 18px; background: #1a1a1c; border: 1px solid rgba(255,255,255,.025); cursor: pointer; }
.match-card::after { content: ""; position: absolute; right: 50%; bottom: 13px; left: 4%; height: 1px; background: linear-gradient(90deg,transparent,#2e2e31); opacity: .7; }
.team { position: relative; z-index: 2; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.team strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; font-weight: 900; }
.flag-placeholder, .channel-mini, .play-round { width: 57px; height: 40px; display: grid; place-items: center; overflow: hidden; border-radius: 4px; background: linear-gradient(135deg,#f2f2f2,#c9c9ca); color: #202023; font-size: 1.15rem; font-weight: 900; }
.channel-mini { height: 57px; padding: 6px; border-radius: 12px; background: #29292c; }
.channel-mini img { width: 100%; height: 100%; object-fit: contain; }
.play-round { height: 57px; border-radius: 50%; background: var(--oscar-red); color: #fff; }
.match-score { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.match-score b { font-size: 1.45rem; line-height: 1; direction: ltr; }
.match-score span { padding: 5px 13px; border-radius: 15px; background: #2a2a2d; color: #86868b; font-size: .72rem; }
.match-score small { max-width: 150px; display: inline-flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8b8b90; font-size: .66rem; }
.match-watermark { position: absolute; left: -8px; bottom: -13px; color: rgba(255,255,255,.018); transform: rotate(-9deg); }
.live-source-card .match-score b { color: var(--oscar-red); font-size: .95rem; }
.skeleton-match { min-height: 150px; border-radius: 18px; }
.live-sources { padding-bottom: 10px; }

/* Category/account/settings/schedule */
.category-group { margin-bottom: 28px; }
.category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.category-grid button { min-height: 88px; padding: 13px; display: grid; grid-template-columns: 43px 1fr; align-items: center; column-gap: 10px; border-radius: 14px; background: #18181a; text-align: right; }
.category-grid button > span { grid-row: 1 / span 2; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; background: #252528; color: var(--accent); }
.category-grid strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.category-grid small { color: var(--oscar-muted); font-size: .66rem; }
.schedule-date { margin: 15px 0 18px; padding: 15px; display: flex; align-items: center; gap: 12px; border-radius: 15px; background: linear-gradient(120deg,#252527,#171719); color: var(--accent); }
.schedule-date strong, .schedule-date span { display: block; }
.schedule-date strong { color: #fff; }
.schedule-date span { margin-top: 3px; color: #929297; font-size: .76rem; direction: ltr; text-align: right; }
.schedule-row { width: 100%; min-height: 78px; margin-bottom: 9px; padding: 9px 11px; display: grid; grid-template-columns: 55px 52px 1fr auto; align-items: center; gap: 10px; border-radius: 14px; background: #171719; text-align: right; }
.schedule-row time { color: var(--oscar-yellow); font-size: .76rem; font-weight: 900; direction: ltr; }
.schedule-row img { width: 52px; height: 58px; border-radius: 9px; object-fit: contain; background: #242426; }
.schedule-row strong, .schedule-row span { display: block; }
.schedule-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.schedule-row span { margin-top: 4px; color: var(--oscar-muted); font-size: .66rem; }
.schedule-row em { padding: 5px 8px; border-radius: 12px; background: rgba(242,7,22,.14); color: var(--oscar-red); font-style: normal; font-size: .66rem; }
.account-card { margin: 20px 0; padding: 18px; display: grid; grid-template-columns: 64px 1fr 45px; align-items: center; gap: 13px; border-radius: 18px; background: linear-gradient(130deg,#2b1518,#18181a 58%); border: 1px solid rgba(242,7,22,.18); }
.account-card img { width: 64px; height: 64px; border-radius: 16px; }
.account-card h1, .account-card p { margin: 0; }
.account-card h1 { font-size: 1.25rem; }
.account-card p { margin-top: 5px; color: #8f8f94; font-size: .76rem; }
.account-card > span { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; background: #27272a; color: var(--accent); }
.settings-list { overflow: hidden; border-radius: 17px; background: #171719; border: 1px solid var(--oscar-border); }
.settings-list > div, .settings-list > label, .settings-list > button { min-height: 68px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--oscar-border); background: transparent; text-align: right; }
.settings-list > :last-child { border-bottom: 0; }
.settings-list span { color: #a0a0a5; font-size: .78rem; }
.settings-list strong { max-width: 65%; overflow: hidden; text-overflow: ellipsis; color: #f5f5f6; font-size: .78rem; text-align: left; }
.settings-list.toggles span { flex: 1; }
.settings-list.toggles b, .settings-list.toggles small { display: block; }
.settings-list.toggles b { color: #eee; font-size: .86rem; }
.settings-list.toggles small { margin-top: 4px; color: #77777c; font-size: .69rem; }
.settings-list input[type="checkbox"] { width: 46px; height: 25px; accent-color: var(--accent); }
.settings-list.toggles button { width: 100%; color: var(--accent); }
.settings-note { margin-top: 16px; padding: 14px; display: flex; align-items: flex-start; gap: 9px; border-radius: 14px; background: rgba(255,255,255,.035); color: #86868b; font-size: .72rem; line-height: 1.6; }

/* Details common */
.details-topbar { position: absolute; z-index: 30; top: 0; left: 0; right: 0; height: calc(76px + var(--safe-top)); padding: var(--safe-top) var(--page-pad) 0; display: grid; grid-template-columns: 110px 1fr 48px; align-items: center; background: linear-gradient(180deg,rgba(4,4,5,.94),rgba(4,4,5,.45),transparent); }
.details-topbar > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 1.12rem; font-weight: 500; }
.details-actions-left { display: flex; align-items: center; direction: ltr; }
.details-actions-left .icon-button { color: #fff; }

/* Channel details */
.channel-details { min-height: 100vh; padding-bottom: 38px; background: radial-gradient(circle at 52% 12%,rgba(73,36,104,.18),transparent 25%),#070708; }
.channel-details .details-topbar { position: fixed; background: rgba(7,7,8,.94); }
.channel-details-hero { position: relative; min-height: 500px; padding: calc(var(--safe-top) + 116px) var(--page-pad) 35px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; overflow: hidden; }
.channel-details-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .08; filter: blur(4px) saturate(.7); transform: scale(1.08); }
.channel-details-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(6,6,7,.25),#070708 90%); }
.channel-details-hero > *:not(.channel-details-bg) { position: relative; z-index: 2; }
.channel-details-hero > img:not(.channel-details-bg) { width: 145px; height: 112px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.65)); }
.channel-details-hero h1 { margin: 25px 0 17px; font-size: 1.75rem; font-weight: 900; direction: ltr; }
.details-chips { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.details-chips span { min-height: 36px; padding: 0 13px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid #4a4a4e; border-radius: 20px; background: #252527; color: #b7b7bb; font-size: .75rem; }
.frequency-card { margin: -10px var(--page-pad) 0; padding: 18px 22px; border: 1px dashed #68686c; border-radius: 20px; background: linear-gradient(135deg,rgba(47,47,49,.92),rgba(31,31,33,.92)); }
.frequency-card h2 { margin: 0 0 12px; font-size: 1.25rem; }
.frequency-card p { margin: 9px 0; display: flex; align-items: center; gap: 9px; color: #b1b1b5; font-size: .82rem; }
.frequency-card p svg { color: #d0d0d2; }
.server-notice { margin: 22px var(--page-pad) 8px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #aaaab0; font-size: .78rem; text-align: center; }
.details-section { padding: 8px var(--page-pad) 18px; }
.stream-server-card { width: 100%; min-height: 98px; padding: 13px 16px; display: grid; grid-template-columns: 49px 1fr auto; align-items: center; gap: 12px; border-radius: 17px; background: var(--oscar-red); color: #fff; text-align: right; box-shadow: 0 16px 28px rgba(242,7,22,.16); }
.server-play { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.stream-server-card strong, .stream-server-card small { display: block; }
.stream-server-card strong { font-size: 1.05rem; font-weight: 900; }
.stream-server-card small { margin-top: 5px; color: rgba(255,255,255,.7); font-size: .73rem; }
.stream-server-card em { min-width: 52px; min-height: 42px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; background: var(--oscar-yellow); color: #171719; font-style: normal; font-weight: 900; }
.related-section { padding-bottom: 28px; }

/* Movie/series details */
.media-details { min-height: 100vh; background: #070708; }
.details-hero { position: relative; min-height: clamp(630px, 160vw, 820px); padding-bottom: 28px; display: flex; align-items: flex-end; overflow: hidden; background-size: cover; background-position: center 15%; }
.details-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(0,0,0,.18) 0,rgba(0,0,0,.28) 35%,rgba(7,7,8,.88) 68%,#070708 100%), linear-gradient(90deg,rgba(0,0,0,.2),transparent); backdrop-filter: blur(1px); }
.details-hero-content { position: relative; z-index: 3; width: 100%; padding: calc(var(--safe-top) + 115px) var(--page-pad) 0; display: grid; grid-template-columns: minmax(118px,33%) 1fr; align-items: end; gap: 16px; }
.details-poster { width: 100%; aspect-ratio: .66; object-fit: cover; border-radius: 17px; box-shadow: 0 15px 32px rgba(0,0,0,.55); }
.details-copy { min-width: 0; padding-bottom: 2px; }
.details-type { display: inline-flex; padding: 5px 9px; border-radius: 7px; background: var(--accent); font-size: .68rem; font-weight: 800; }
.details-copy h1 { margin: 10px 0 9px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: clamp(1.45rem,6vw,2.6rem); line-height: 1.15; font-weight: 900; }
.details-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: #b3b3b7; font-size: .7rem; }
.details-meta span { padding: 4px 7px; border-radius: 6px; background: rgba(255,255,255,.07); }
.details-meta .rating { display: inline-flex; align-items: center; gap: 3px; color: var(--oscar-yellow); direction: ltr; }
.details-copy p { margin: 12px 0 14px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 4; -webkit-box-orient: vertical; color: #b4b4b8; font-size: .75rem; line-height: 1.65; }
.details-cta { display: flex; align-items: center; gap: 9px; }
.details-cta .primary-action { flex: 1; padding-inline: 11px; }
.details-content { padding-bottom: 25px; }
.genre-chips { padding: 3px var(--page-pad) 18px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.genre-chips span { flex: 0 0 auto; padding: 7px 12px; border-radius: 16px; background: #1c1c1e; color: #aaaab0; font-size: .7rem; }
.cast-rail { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 7px; scrollbar-width: none; }
.cast-rail div { flex: 0 0 74px; text-align: center; }
.cast-rail span { width: 65px; height: 65px; margin: 0 auto 7px; display: grid; place-items: center; border: 2px solid var(--accent); border-radius: 50%; background: linear-gradient(145deg,#313135,#161618); color: #fff; font-size: 1.25rem; font-weight: 900; }
.cast-rail span img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cast-rail strong { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .68rem; line-height: 1.3; }
.director-row { margin: 0 var(--page-pad) 20px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; border-radius: 13px; background: #171719; }
.director-row span { color: #85858a; font-size: .75rem; }
.director-row strong { max-width: 72%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .77rem; }
.episode-loading { min-height: 100px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 14px; background: #151517; color: #85858a; font-size: .78rem; }
.inline-loader { width: 20px; height: 20px; border: 2px solid #39393c; border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.episode-list { display: grid; gap: 8px; }
.episode-item { width: 100%; min-height: 76px; padding: 9px 12px; display: grid; grid-template-columns: 46px 1fr 42px; align-items: center; gap: 10px; border-radius: 14px; background: #171719; text-align: right; }
.episode-item > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 11px; background: #29292c; color: var(--accent); font-weight: 900; }
.episode-item strong, .episode-item small { display: block; }
.episode-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.episode-item small { margin-top: 5px; color: #77777c; font-size: .65rem; }
.episode-item em { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-style: normal; }

/* Responsive */
@media (max-width: 360px) {
  :root { --page-pad: 11px; }
  .oscar-bottom-nav button, .oscar-bottom-nav a { flex-basis: 68px; min-width: 68px; }
  .oscar-grid { gap: 14px 7px; }
  .poster-wrap { border-radius: 12px; }
  .translation-badge { padding: 7px 7px; font-size: .62rem; }
  .category-tabs button { min-width: 82px; padding-inline: 14px; }
  .match-card { padding-inline: 10px; grid-template-columns: 1fr 80px 1fr; }
  .details-copy p { -webkit-line-clamp: 3; }
}

@media (min-width: 600px) {
  :root { --page-pad: 26px; --bottom-nav-h: 82px; }
  .oscar-app { max-width: 1180px; margin: 0 auto; box-shadow: 0 0 0 1px rgba(255,255,255,.02); }
  .oscar-toolbar, .oscar-bottom-nav, .search-sheet { max-width: 1180px; margin-inline: auto; }
  .side-menu { right: max(0px, calc((100vw - 1180px)/2)); }
  .home-spotlight { min-height: 590px; border-radius: 0 0 26px 26px; }
  .spotlight-content { left: 42%; }
  .oscar-card { flex-basis: 185px; }
  .oscar-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px 15px; }
  .channel-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .matches-hero { min-height: 500px; }
  .match-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .details-hero-content { grid-template-columns: 220px 1fr; gap: 28px; }
}

@media (min-width: 960px) {
  .oscar-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .channel-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .home-spotlight { min-height: 650px; }
  .spotlight-content { left: 52%; }
  .details-hero { min-height: 720px; }
  .details-hero-content { max-width: 920px; margin-inline: auto; }
  .details-content { max-width: 1020px; margin-inline: auto; }
}

@media (orientation: landscape) and (max-height: 600px) {
  .home-spotlight { min-height: 420px; }
  .matches-hero { min-height: 420px; }
  .details-hero { min-height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.filter-chip.disabled { opacity: .52; }
.filter-chip.disabled select { cursor: not-allowed; }

/* Anime landing */
.anime-page { min-height: 100vh; padding-bottom: 24px; background: radial-gradient(circle at 50% 2%, rgba(51,43,151,.26), transparent 25%), #050506; }
.anime-identity { min-height: 430px; padding: calc(var(--safe-top) + 18px) var(--page-pad) 30px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; background: radial-gradient(circle at 50% 42%, rgba(75,62,215,.20), transparent 26%), linear-gradient(180deg,#101532 0,#080a17 56%,#050506 100%); }
.anime-top-actions { width: 100%; margin-bottom: auto; display: flex; align-items: center; justify-content: flex-start; gap: 8px; direction: ltr; }
.anime-mascot { width: 146px; height: 146px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#19153e,#30257b); color: #b8adff; border: 1px solid rgba(142,126,255,.26); box-shadow: 0 24px 44px rgba(0,0,0,.36), inset 0 0 35px rgba(109,79,255,.16); }
.anime-identity h1 { margin: 18px 0 0; font-size: 2rem; font-weight: 900; }
.anime-identity p { max-width: 330px; margin: 8px 0 0; color: #8c8c99; font-size: .78rem; text-align: center; }
.anime-studios { padding: 4px var(--page-pad) 12px; }
.studio-strip { display: flex; gap: 16px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.studio-strip::-webkit-scrollbar { display: none; }
.studio-strip button { flex: 0 0 88px; padding: 0; background: transparent; color: #8f8f99; text-align: center; }
.studio-strip button span { width: 68px; height: 68px; margin: 0 auto 7px; display: grid; place-items: center; border-radius: 18px; background: #15151a; border: 1px solid rgba(255,255,255,.05); color: #8980e9; transition: .16s ease; }
.studio-strip button strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; font-weight: 500; }
.studio-strip button.active span { background: var(--oscar-purple); color: #fff; box-shadow: 0 10px 24px rgba(93,70,255,.25); }
.studio-strip button.active strong { color: #fff; }
.anime-catalog-block { padding: 0 var(--page-pad) 25px; }
.anime-catalog-block .category-tabs { margin-inline: calc(-1 * var(--page-pad)); }
.anime-page .translation-badge { background: var(--oscar-cyan); }
.anime-page .quality-badge { background: var(--oscar-purple); }
.anime-page .section-heading button { color: var(--oscar-purple); }

@media (min-width: 600px) {
  .anime-identity { min-height: 500px; }
  .anime-mascot { width: 172px; height: 172px; }
}

.download-unavailable{min-height:82px;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:13px;padding:14px 16px;border:1px dashed rgba(255,255,255,.14);border-radius:16px;background:linear-gradient(135deg,rgba(29,29,31,.9),rgba(14,14,15,.88));color:var(--oscar-text);opacity:.82}.download-unavailable>span{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);color:var(--oscar-muted)}.download-unavailable div{display:grid;gap:4px;min-width:0}.download-unavailable strong{font-size:14px}.download-unavailable small{font-size:11px;line-height:1.55;color:var(--oscar-muted)}.download-unavailable em{font-style:normal;font-weight:800;font-size:11px;color:#171717;background:var(--oscar-yellow);padding:7px 10px;border-radius:9px}
.age-badge{position:absolute;z-index:4;top:47px;right:0;padding:7px 9px;border-radius:7px 0 0 7px;background:#ff6f0f;color:#fff;font-style:normal;font-size:.64rem;font-weight:900;box-shadow:0 2px 8px rgba(0,0,0,.3)}.anime-theme .age-badge,.anime-page .age-badge{background:#ff8a13}.oscar-card.movie .age-badge{top:47px}

/* Final phone precision pass — calibrated against the supplied Oscar TV screenshots. */
@media (max-width: 600px) {
  :root { --page-pad: 15px; --bottom-nav-h: 54px; }
  .oscar-app { padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 4px); }
  .icon-button { width: 34px; height: 34px; }
  .primary-action { min-height: 34px; padding-inline: 13px; border-radius: 7px; font-size: .68rem; }
  .outline-action { min-height: 34px; padding-inline: 14px; border-radius: 8px; font-size: .68rem; }
  .circle-action { width: 35px; height: 35px; }

  .oscar-toolbar { height: calc(52px + var(--safe-top)); padding-inline: 14px; }
  .toolbar-title h1 { font-size: 1.35rem; }
  .catalog-header-spacer,.home-intro { height: calc(52px + var(--safe-top)); }
  .search-sheet { height: calc(54px + var(--safe-top)); padding-inline: 8px; }
  .search-field { height: 38px; padding-inline: 10px; border-radius: 10px; }
  .search-field input { font-size: .72rem; }

  .oscar-bottom-nav { padding: 4px 2px var(--safe-bottom); box-shadow: 0 -5px 15px rgba(0,0,0,.42); }
  .oscar-bottom-nav button, .oscar-bottom-nav a { flex-basis: 58px; min-width: 58px; gap: 2px; }
  .nav-icon { height: 22px; }
  .oscar-bottom-nav b { font-size: .52rem; }

  .home-spotlight { min-height: 310px; margin-top: calc(-1 * (52px + var(--safe-top))); }
  .spotlight-content { right: 15px; left: 19%; bottom: 22px; }
  .spotlight-content h1 { font-size: 1.32rem; }
  .spotlight-content p { margin: 6px 0 9px; font-size: .65rem; line-height: 1.55; }
  .home-section { padding-inline: 15px; }
  .section-heading { min-height: 41px; gap: 7px; }
  .section-heading h2 { gap: 6px; font-size: 1rem; }
  .section-heading h2 > i { width: 3px; height: 23px; flex-basis: 3px; }
  .section-heading button { padding: 6px 0 6px 8px; font-size: .65rem; }
  .poster-rail { gap: 9px; }
  .oscar-card { flex-basis: 112px; }
  .poster-wrap { border-radius: 10px; }
  .poster-title { right: 7px; bottom: 7px; left: 6px; font-size: .69rem; line-height: 1.32; }
  .card-title { margin-top: 5px; font-size: .66rem; }
  .card-meta { margin-top: 2px; font-size: .55rem; }
  .translation-badge { top: 7px; padding: 5px 6px; border-radius: 5px 0 0 5px; font-size: .55rem; }
  .quality-badge { top: 7px; padding: 5px 6px; border-radius: 0 5px 5px 0; font-size: .5rem; }
  .score-badge,.episode-badge { top: 7px; left: 5px; padding: 4px 5px; border-radius: 5px; font-size: .5rem; }
  .oscar-card.movie .score-badge { top: 29px; }
  .age-badge,.oscar-card.movie .age-badge { top: 31px; padding: 5px 6px; border-radius: 5px 0 0 5px; font-size: .51rem; }

  .catalog-page { padding-inline: 15px; padding-bottom: 18px; }
  .category-tabs { height: 47px; padding: 4px 15px; gap: 3px; }
  .category-tabs button { min-width: 66px; height: 38px; padding-inline: 11px; border-radius: 10px; font-size: .72rem; }
  .filter-panel { padding: 7px 0 9px; gap: 5px; }
  .filter-chip { height: 35px; min-width: 83px; padding-inline: 10px; gap: 5px; border-radius: 8px; font-size: .65rem; }
  .filter-chip.wide { min-width: 112px; }
  .filter-chip > i { width: 5px; height: 5px; }
  .oscar-grid { gap: 9px 7px; }
  .oscar-grid .poster-wrap { border-radius: 10px; }
  .channel-grid { gap: 16px 11px; padding-top: 5px; }
  .channel-logo { border-radius: 11px; }
  .channel-card > strong { margin-top: 6px; font-size: .67rem; }
  .channel-card > small { margin-top: 3px; font-size: .54rem; }
  .channel-card.compact { flex-basis: 91px; }

  .details-topbar { height: calc(52px + var(--safe-top)); padding-inline: 13px; grid-template-columns: 92px 1fr 36px; }
  .details-topbar > strong { font-size: .82rem; }
  .channel-details { padding-bottom: 20px; }
  .channel-details-hero { min-height: 310px; padding: calc(var(--safe-top) + 71px) 15px 18px; }
  .channel-details-hero > img:not(.channel-details-bg) { width: 91px; height: 70px; }
  .channel-details-hero h1 { margin: 13px 0 9px; font-size: 1.18rem; }
  .details-chips { gap: 5px; }
  .details-chips span { min-height: 25px; padding-inline: 8px; gap: 4px; border-radius: 12px; font-size: .58rem; }
  .frequency-card { margin: -5px 15px 0; padding: 11px 14px; border-radius: 12px; }
  .frequency-card h2 { margin-bottom: 7px; font-size: .9rem; }
  .frequency-card p { margin: 5px 0; gap: 5px; font-size: .65rem; }
  .server-notice { margin: 12px 15px 4px; gap: 4px; font-size: .6rem; }
  .details-section { padding: 5px 15px 10px; }
  .stream-server-card { min-height: 62px; padding: 8px 10px; grid-template-columns: 32px 1fr auto; gap: 8px; border-radius: 9px; }
  .server-play { width: 31px; height: 31px; }
  .stream-server-card strong { font-size: .75rem; }
  .stream-server-card small { margin-top: 3px; font-size: .55rem; }
  .stream-server-card em { min-width: 39px; min-height: 29px; padding-inline: 6px; border-radius: 6px; font-size: .62rem; }

  .details-hero { min-height: 410px; padding-bottom: 14px; }
  .details-hero-content { padding: calc(var(--safe-top) + 70px) 15px 0; grid-template-columns: minmax(91px,31%) 1fr; gap: 10px; }
  .details-poster { border-radius: 10px; }
  .details-type { padding: 4px 6px; border-radius: 5px; font-size: .52rem; }
  .details-copy h1 { margin: 6px 0 5px; font-size: 1.12rem; }
  .details-meta { gap: 4px; font-size: .55rem; }
  .details-meta span { padding: 3px 5px; border-radius: 4px; }
  .details-copy p { margin: 7px 0 8px; font-size: .61rem; line-height: 1.55; -webkit-line-clamp: 3; }
  .details-cta { gap: 6px; }
  .details-content { padding-bottom: 14px; }
  .genre-chips { padding: 2px 15px 10px; gap: 4px; }
  .genre-chips span { padding: 5px 8px; border-radius: 10px; font-size: .54rem; }
  .cast-rail { gap: 8px; padding-bottom: 4px; }
  .cast-rail div { flex-basis: 55px; }
  .cast-rail span { width: 47px; height: 47px; margin-bottom: 4px; border-width: 1px; font-size: .9rem; }
  .cast-rail strong { font-size: .52rem; }
  .director-row { margin: 0 15px 10px; padding: 8px 10px; border-radius: 8px; }
  .director-row span,.director-row strong { font-size: .59rem; }
  .episode-loading { min-height: 65px; border-radius: 8px; font-size: .62rem; }
  .inline-loader { width: 15px; height: 15px; }

  .anime-identity { min-height: 285px; padding: calc(var(--safe-top) + 9px) 15px 17px; }
  .anime-mascot { width: 91px; height: 91px; }
  .anime-identity h1 { margin-top: 10px; font-size: 1.2rem; }
  .anime-identity p { margin-top: 4px; font-size: .6rem; }
  .anime-studios { padding-inline: 15px; }
  .studio-strip { gap: 9px; padding-bottom: 7px; }
  .studio-strip button { flex-basis: 62px; }
  .studio-strip button span { width: 48px; height: 48px; margin-bottom: 4px; border-radius: 10px; }
  .studio-strip button strong { font-size: .52rem; }
  .anime-catalog-block { padding: 0 15px 14px; }
}
.details-title-spacer{display:block}.details-engagement .detail-views{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid rgba(255,255,255,.19);border-radius:18px;background:rgba(15,15,16,.5);color:#ddd;font-size:.72rem;direction:ltr}
@media(max-width:600px){.details-topbar.titleless{grid-template-columns:92px 1fr 36px}.details-engagement .detail-views{gap:4px;padding:5px 8px;border-radius:11px;font-size:.56rem}.details-copy>p{display:none}}
.anime-mascot img{width:100%;height:100%;object-fit:cover;border-radius:50%;mix-blend-mode:screen}

/* Final icon calibration: override SVG attributes at phone size for the Oscar reference proportions. */
@media (max-width:600px){
  .oscar-bottom-nav .oscar-icon{width:20px;height:20px}
  .oscar-toolbar .oscar-icon,.details-topbar .oscar-icon{width:22px;height:22px}
  .section-heading .oscar-icon{width:16px;height:16px}
  .icon-button .oscar-icon{width:22px;height:22px}
}

/* Real sports data provider settings - follows the existing Oscar TV settings visual system. */
.sports-provider-setting{margin-top:14px;padding:15px;border:1px solid var(--oscar-border);border-radius:16px;background:linear-gradient(145deg,rgba(22,22,24,.98),rgba(10,10,11,.98));box-shadow:0 12px 30px rgba(0,0,0,.18)}
.sports-provider-heading{display:flex;align-items:center;gap:10px}.sports-provider-heading>span{width:39px;height:39px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:rgba(242,7,22,.12);color:var(--accent)}
.sports-provider-heading b,.sports-provider-heading small{display:block}.sports-provider-heading b{color:#f5f5f6;font-size:.84rem}.sports-provider-heading small{margin-top:3px;color:#77777c;font-size:.65rem;line-height:1.45}
.sports-provider-grid{margin-top:13px;display:grid;gap:9px}.sports-provider-grid label{display:grid;gap:6px}.sports-provider-grid label>span{color:#a7a7ab;font-size:.66rem;font-weight:700;line-height:1.45}.sports-provider-grid input{width:100%;min-width:0;height:43px;padding:0 13px;border:1px solid rgba(255,255,255,.09);border-radius:11px;background:#09090a;color:#fff;font:600 .78rem/1 Tajawal,Cairo,sans-serif;outline:none;direction:ltr;text-align:left}.sports-provider-grid input:focus{border-color:rgba(242,7,22,.7);box-shadow:0 0 0 3px rgba(242,7,22,.09)}.sports-provider-actions{margin-top:11px;display:flex;justify-content:flex-start}.sports-provider-actions button{height:43px;padding:0 18px;border-radius:11px;background:var(--accent);color:#fff;font-size:.72rem;font-weight:800;white-space:nowrap}
.sports-provider-controls{margin-top:13px;display:grid;grid-template-columns:1fr auto;gap:8px;direction:ltr}.sports-provider-controls input{min-width:0;height:43px;padding:0 13px;border:1px solid rgba(255,255,255,.09);border-radius:11px;background:#09090a;color:#fff;font:600 .78rem/1 Tajawal,Cairo,sans-serif;outline:none}.sports-provider-controls input:focus{border-color:rgba(242,7,22,.7);box-shadow:0 0 0 3px rgba(242,7,22,.09)}
.sports-provider-controls button{height:43px;padding:0 15px;border-radius:11px;background:var(--accent);color:#fff;font-size:.72rem;font-weight:800;white-space:nowrap}.sports-provider-setting p{margin:10px 1px 0;color:#77777c;font-size:.64rem;line-height:1.65}
@media(max-width:600px){.sports-provider-setting{padding:13px;border-radius:14px}.sports-provider-heading b{font-size:.78rem}.sports-provider-heading small{font-size:.6rem}.sports-provider-grid input,.sports-provider-actions button,.sports-provider-controls input,.sports-provider-controls button{height:40px}.sports-provider-actions button,.sports-provider-controls button{padding:0 11px;font-size:.66rem}}

/* Additional professional home sections, pills and stats for richer homepage categorization. */
.home-shortcuts-section{padding:0 18px 14px}
.compact-heading{margin-bottom:12px}
.home-shortcuts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.home-shortcut-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:92px;padding:12px 10px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(20,21,26,.94),rgba(11,12,16,.94));box-shadow:0 10px 20px rgba(0,0,0,.16);color:#fff}
.home-shortcut-tile span{width:45px;height:45px;border-radius:14px;display:grid;place-items:center;background:rgba(242,7,22,.12);color:var(--accent)}
.home-shortcut-tile strong{font-size:.72rem;line-height:1.2}
.home-category-pills{display:flex;gap:8px;overflow:auto;padding-top:12px;padding-bottom:2px;scrollbar-width:none}.home-category-pills::-webkit-scrollbar{display:none}
.home-category-pills button{flex:0 0 auto;height:38px;padding:0 14px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#ececef;font-size:.68rem;font-weight:700;white-space:nowrap}
.home-mini-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:0 18px 16px}
.home-mini-stats article{min-height:78px;border-radius:16px;padding:12px 10px;background:linear-gradient(180deg,rgba(18,19,24,.94),rgba(8,9,13,.96));border:1px solid rgba(255,255,255,.07);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.home-mini-stats strong{font-size:1rem;font-weight:900;color:#fff;direction:ltr}
.home-mini-stats span{margin-top:4px;font-size:.63rem;color:#a7a8af;line-height:1.4}
@media (max-width:600px){
  .home-shortcuts-section{padding:0 15px 12px}
  .home-shortcuts-grid{gap:8px}
  .home-shortcut-tile{min-height:84px;padding:10px 8px;border-radius:16px}
  .home-shortcut-tile span{width:40px;height:40px;border-radius:12px}
  .home-shortcut-tile strong{font-size:.65rem}
  .home-category-pills button{height:34px;padding:0 11px;font-size:.62rem}
  .home-mini-stats{padding:0 15px 15px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-mini-stats article{min-height:72px;border-radius:14px;padding:10px 8px}
  .home-mini-stats strong{font-size:.92rem}
  .home-mini-stats span{font-size:.58rem}
}

/* Desktop/Windows full-viewport pass.
   The application must use the complete MAUI WebView client area rather than
   emulating a narrow mobile frame in the middle of a desktop window. */
html, body, #app, .app-root, .oscar-app, .oscar-main {
  width: 100%;
  max-width: none;
}

@media (min-width: 600px) {
  :root {
    --page-pad: clamp(22px, 2.25vw, 46px);
  }

  .oscar-app {
    width: 100%;
    max-width: none;
    margin: 0;
    box-shadow: none;
  }

  .oscar-toolbar,
  .oscar-bottom-nav,
  .search-sheet {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .side-menu {
    right: 0;
  }

  .home-spotlight {
    width: 100%;
    min-height: clamp(560px, 70vh, 820px);
    border-radius: 0 0 28px 28px;
  }

  .home-section,
  .catalog-page,
  .matches-page,
  .anime-page,
  .channel-details,
  .details-page {
    width: 100%;
    max-width: none;
  }

  .details-hero-content,
  .details-content {
    width: 100%;
    max-width: min(1480px, calc(100vw - (2 * var(--page-pad))));
  }
}

@media (min-width: 1280px) {
  .oscar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .channel-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .poster-rail {
    gap: 18px;
  }
}

@media (min-width: 1700px) {
  .oscar-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .channel-grid {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}



/* Chromium/WebView can skip layout and paint work for distant home sections. */
@supports (content-visibility: auto) {
  .target-episode-section,
  .target-promo-shell,
  .target-program-section,
  .oscar-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 520px;
  }
}


/* Scrollbars are visual-only. Keep document scrolling fully enabled on Android WebView and Windows WebView2. */
html,
body,
#app,
.app-root {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  touch-action: pan-y !important;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.oscar-app,
.oscar-main,
.native-view {
  height: auto !important;
  min-height: 100vh;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  touch-action: pan-y;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
#app::-webkit-scrollbar,
.app-root::-webkit-scrollbar,
.oscar-app::-webkit-scrollbar,
.oscar-main::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Space Gate Nova+ refactor baseline: true-black application canvas. */
html,
body,
#app,
.app-root,
.oscar-app,
.oscar-main {
  background-color: #000000;
}

.oscar-bottom-nav a,
.side-menu a {
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
}

/* NOVA+ 2.51 — browser-first WebP artwork.
   No JS probe queue, native re-download, Base64 conversion or duplicate image cache. */
img.nova-fast-image {
  display: block;
  image-rendering: auto;
  color: transparent;
  background: linear-gradient(145deg, #171a22, #08090d);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

