:root {
  color-scheme: dark;
  --bg: #070713;
  --bg-soft: #101027;
  --panel: rgba(21, 21, 43, .86);
  --panel-strong: rgba(23, 23, 47, .96);
  --accent: #7c5cff;
  --accent-bright: #9b79ff;
  --accent-rgb: 124, 92, 255;
  --pink: #e45cff;
  --cyan: #5ad7ff;
  --text: #f7f5ff;
  --text-secondary: #b7b3c9;
  --text-muted: #77738f;
  --success: #55d68b;
  --error: #ff667a;
  --border: rgba(var(--accent-rgb), .24);
  --radius: 22px;
  --density: 1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: calc(16px * var(--density));
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
html { overflow-x: hidden; }
body { overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
.image-fallback { width: 100%; aspect-ratio: 2/3; display: grid; place-items: center; color: rgba(255,255,255,.9); background: radial-gradient(circle at 35% 25%,rgba(var(--accent-rgb),.52),rgba(15,16,39,.96) 68%); font-size: clamp(2rem,4vw,4.3rem); font-weight: 950; }

button:focus-visible, input:focus-visible, select:focus-visible, [data-focusable]:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px rgba(var(--accent-rgb), .2);
}

.splash {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; gap: 28px;
  background: radial-gradient(circle at 25% 25%, rgba(124,92,255,.26), transparent 42%), #070713;
}
.splash img { width: min(360px, 55vw); margin: auto; }
.spinner { width: 44px; height: 44px; margin: auto; border: 4px solid rgba(255,255,255,.12); border-top-color: var(--accent-bright); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-view {
  min-height: 100vh; display: grid; grid-template-columns: 1.15fr .85fr; position: relative; overflow: hidden;
  background-color: #03030a;
  background-image: var(--provider-login-background, url('../img/login-space-astronaut.png'));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.login-view::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(5,5,16,.38) 48%, rgba(3,3,10,.88)); pointer-events: none; }
.login-brand, .login-panel { position: relative; z-index: 1; }
.login-brand { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(42px, 6vw, 96px); text-shadow: 0 2px 30px #000; }
.login-logo { width: clamp(180px, 22vw, 340px); margin-bottom: 24px; filter: drop-shadow(0 18px 38px rgba(0,0,0,.46)); }
.login-kicker { margin: 0 0 12px; letter-spacing: .32em; font-weight: 900; font-size: .92rem; }
.login-kicker strong { color: var(--accent-bright); }
.login-brand h1 { margin: 0; max-width: 780px; font-size: clamp(2.4rem, 4.7vw, 5rem); line-height: .98; letter-spacing: -.055em; }
.login-features { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.login-features span { padding: 11px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(6,6,18,.46); backdrop-filter: blur(12px); font-weight: 700; }
.login-panel { display: grid; place-items: center; padding: 38px clamp(28px, 5vw, 84px); background: linear-gradient(90deg, transparent, rgba(7,7,19,.38)); }
.login-card { width: min(560px, 100%); padding: clamp(30px, 4vw, 56px); border: 1px solid rgba(255,255,255,.12); border-radius: 30px; background: rgba(13,13,31,.76); backdrop-filter: blur(28px); box-shadow: 0 40px 100px rgba(0,0,0,.42); }
.eyebrow { margin: 0 0 7px; color: var(--accent-bright); font-size: .76rem; letter-spacing: .2em; font-weight: 900; }
.login-card h2 { margin: 0 0 10px; font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -.045em; }
.muted { color: var(--text-secondary); }
.login-card form { display: grid; gap: 11px; margin-top: 30px; }
.login-card label { margin-top: 9px; color: var(--text-secondary); font-weight: 750; }
.login-card input, .settings-field select, .settings-field input {
  width: 100%; min-height: 56px; padding: 0 17px; color: var(--text); background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
}
.login-card input:focus { border-color: var(--accent-bright); background: rgba(var(--accent-rgb), .1); }
.password-field { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.icon-button { min-width: 48px; min-height: 48px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.06); cursor: pointer; }
.form-error { min-height: 22px; margin: 3px 0 0; color: var(--error); font-weight: 700; }
.primary-button, .secondary-button {
  border: 0; border-radius: 14px; min-height: 50px; padding: 0 19px; font-weight: 850; cursor: pointer; transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}
.primary-button { color: white; background: linear-gradient(135deg, var(--accent), var(--accent-bright) 55%, #296dff); box-shadow: 0 16px 35px rgba(var(--accent-rgb), .3); }
.secondary-button { border: 1px solid var(--border); background: rgba(255,255,255,.06); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); filter: brightness(1.1); }
.login-submit { margin-top: 9px; display: flex; justify-content: space-between; align-items: center; padding-inline: 22px; }
.legal-note { margin: 27px 0 0; color: var(--text-muted); font-size: .78rem; line-height: 1.6; }

.app-shell {
  height: 100vh; display: grid; grid-template-columns: 210px minmax(0, 1fr); overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(var(--accent-rgb), .23), transparent 34%),
    radial-gradient(circle at 90% 80%, rgba(228,92,255,.11), transparent 30%),
    linear-gradient(135deg, #060612, #101027 52%, #080816);
}
.app-shell::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .19; background: url('../img/background-fullbox.jpg') center/cover; mix-blend-mode: screen; }
.side-nav { position: relative; z-index: 20; min-height: 100vh; display: grid; grid-template-rows: 92px minmax(0,1fr) auto; gap: 8px; padding: 16px 13px 20px; background: linear-gradient(180deg, rgba(2,11,24,.99), rgba(3,8,21,.99)); box-shadow: 20px 0 60px rgba(0,0,0,.24); }
.brand-button { width: 100%; height: 76px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.brand-button img { width: 150px; max-height: 66px; object-fit: contain; }
#main-nav { min-height: 0; display: grid; grid-template-rows: repeat(9, minmax(48px,1fr)); gap: 5px; }
.nav-item { min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 15px; padding: 7px 18px; border: 1px solid transparent; border-radius: 16px; background: transparent; color: #e8e7f2; cursor: pointer; text-align: left; }
.nav-item svg { width: 24px; height: 24px; }
.nav-item span { min-width: 0; max-width: 100%; font-size: .9rem; font-weight: 760; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { background: rgba(var(--accent-rgb), .13); }
.nav-item.active { background: linear-gradient(135deg, rgba(var(--accent-rgb), .88), rgba(var(--accent-rgb), .52)); border-color: rgba(255,255,255,.18); box-shadow: 0 10px 28px rgba(var(--accent-rgb), .22); }
.side-account-card { min-width: 0; display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: 11px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; color: white; background: rgba(255,255,255,.035); cursor: pointer; text-align: left; }
.side-account-card > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg,#7860ff,#3c1e91); font-weight: 950; }
.side-account-card div { min-width: 0; }
.side-account-card strong, .side-account-card small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side-account-card strong { font-size: .84rem; }
.side-account-card small { margin-top: 4px; color: #ffc146; font-size: .72rem; }

.app-stage { position: relative; z-index: 2; min-width: 0; height: 100vh; display: grid; grid-template-rows: 104px minmax(0, 1fr); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px clamp(18px, 2.1vw, 38px); border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(7,7,19,.34); backdrop-filter: blur(18px); }
.topbar h1 { margin: 0; font-size: clamp(1.55rem, 2.3vw, 2.35rem); line-height: 1; letter-spacing: -.035em; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.home-header-clock { display: none; align-items: center; grid-template-columns: 52px auto auto; gap: 16px; }
.home-header-clock > span { width: 52px; height: 52px; display: grid; place-items: center; color: #c7c3dc; }
.home-header-clock > span svg,
.home-header-clock > span .app-icon { width: 2.15rem; height: 2.15rem; flex: 0 0 2.15rem; }
.home-header-clock strong { font-size: clamp(2.25rem,3vw,3.35rem); line-height: 1; letter-spacing: -.045em; }
.home-header-clock small { max-width: 145px; padding-left: 4px; color: var(--text-secondary); font-size: .9rem; line-height: 1.35; text-transform: capitalize; }
.home-only { display: none; }
.topbar.home-mode .standard-page-title { display: none; }
.topbar.home-mode .home-header-clock { display: grid; }
.topbar.home-mode .home-only { display: grid; }
.topbar.home-mode .clock { display: none; }
.global-search { width: min(330px, 28vw); min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.055); }
.global-search input { min-width: 0; flex: 1; color: var(--text); border: 0; outline: 0; background: transparent; }
.global-search input::placeholder { color: var(--text-muted); }
.clock { min-width: 108px; display: grid; justify-items: end; }
.clock strong { font-size: 1.12rem; }
.clock span { color: var(--text-secondary); font-size: .72rem; }
.profile-chip { min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 5px 13px 5px 6px; border: 1px solid var(--border); border-radius: 15px; background: rgba(var(--accent-rgb), .1); cursor: pointer; }
.profile-chip span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--accent), #2d72ff); font-weight: 900; }
.profile-chip b { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.home-header-action { width: 52px; height: 52px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; color: #dad8e7; background: radial-gradient(circle at 35% 28%,rgba(255,255,255,.13),rgba(255,255,255,.035)); cursor: pointer; }
.home-header-action svg { width: 23px; height: 23px; }
.topbar.home-mode .global-search { width: min(390px,32vw); min-height: 52px; justify-content: flex-start; padding: 0 16px; border-radius: 16px; background: rgba(255,255,255,.055); }
.topbar.home-mode .global-search input { width: auto; min-width: 0; flex: 1; opacity: 1; font-size: .95rem; }
.topbar.home-mode .global-search:focus-within { width: min(390px,32vw); justify-content: flex-start; padding: 0 16px; border-color: rgba(var(--accent-rgb),.72); border-radius: 16px; }
.topbar.home-mode .global-search:focus-within input { width: auto; flex: 1; opacity: 1; }
.topbar.home-mode .profile-chip { width: 52px; min-height: 52px; justify-content: center; padding: 4px; border-radius: 50%; }
.topbar.home-mode .profile-chip span { width: 42px; height: 42px; border-radius: 50%; }
.topbar.home-mode .profile-chip b { display: none; }
.page-content { min-height: 0; overflow: auto; padding: clamp(15px, 1.8vw, 30px); scroll-behavior: smooth; }

.screen-enter { animation: screenIn .28s ease both; }
@keyframes screenIn { from { opacity: 0; transform: translateX(16px); } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 0 15px; }
.section-head h2 { margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.75rem); letter-spacing: -.025em; }
.section-head p { margin: 4px 0 0; color: var(--text-secondary); }
.text-button { border: 0; background: transparent; color: var(--accent-bright); font-weight: 850; cursor: pointer; }
.glass-panel { border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: linear-gradient(145deg, rgba(25,25,52,.88), rgba(13,13,31,.76)); box-shadow: 0 20px 60px rgba(0,0,0,.18); backdrop-filter: blur(16px); }
.skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,.055); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent); animation: shimmer 1.35s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.home-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 17px; min-height: 245px; margin-bottom: 18px; }
.hero-card { position: relative; overflow: hidden; padding: clamp(25px, 3vw, 46px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(var(--accent-rgb), .28), transparent 58%), radial-gradient(circle at 85% 20%, rgba(90,215,255,.14), transparent 35%); }
.hero-card > * { position: relative; }
.hero-card h2 { max-width: 760px; margin: 7px 0 12px; font-size: clamp(2rem, 3.4vw, 4rem); line-height: .98; letter-spacing: -.055em; }
.hero-card p { max-width: 680px; margin: 0; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.55; }
.hero-actions { display: flex; gap: 11px; margin-top: 23px; }
.account-summary { padding: 24px; display: grid; align-content: center; gap: 15px; }
.account-summary .status-line { display: flex; justify-content: space-between; gap: 12px; }
.account-summary .status-line span { color: var(--text-secondary); }
.status-badge { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 7px 11px; border-radius: 999px; color: var(--success); background: rgba(85,214,139,.11); font-weight: 800; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 24px; }
.feature-card { min-height: 148px; position: relative; overflow: hidden; padding: 19px; text-align: left; border: 1px solid rgba(255,255,255,.1); border-radius: 19px; color: var(--text); background: var(--panel); cursor: pointer; transition: .2s ease; }
.feature-card:hover, .feature-card:focus-visible { transform: translateY(-4px); border-color: var(--accent-bright); }
.feature-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -36px; bottom: -52px; border-radius: 50%; background: var(--card-accent, var(--accent)); opacity: .22; filter: blur(8px); }
.feature-card .feature-icon { font-size: 1.7rem; }
.feature-card strong { display: block; margin-top: 20px; font-size: 1.12rem; }
.feature-card small { color: var(--text-secondary); }

/* Accueil Web TV V10.18 — composition fidèle à la maquette, alimentée par les vraies données. */
.webtv-home { min-width: 0; display: grid; gap: 15px; padding-bottom: 5px; }
.home-dashboard-grid { min-height: 318px; display: grid; grid-template-columns: minmax(440px,1.08fr) minmax(510px,1.22fr); gap: 18px; }
.home-live-card { min-width: 0; position: relative; isolation: isolate; overflow: hidden; padding: 30px; border-color: rgba(141,71,255,.86); color: white; background: #0b102b url('../img/home-live-football-v1.webp') center/cover no-repeat; text-align: left; cursor: pointer; box-shadow: 0 0 0 1px rgba(124,69,255,.24),0 24px 70px rgba(0,0,0,.3); }
.home-live-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(10,7,34,.96),rgba(15,12,48,.78) 42%,rgba(4,11,29,.04) 78%); }
.home-live-card::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 40%; background: linear-gradient(transparent,rgba(6,7,22,.54)); }
.home-live-copy { height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; z-index: 2; }
.home-live-copy > b { padding: 5px 11px; border-radius: 999px; color: white; background: #d62d37; box-shadow: 0 6px 16px rgba(214,45,55,.25); font-size: .72rem; }
.home-live-copy > strong { display: block; margin-top: 16px; font-size: clamp(2.55rem,3.7vw,4.45rem); line-height: .9; letter-spacing: -.055em; }
.home-live-copy > small { max-width: 270px; margin-top: 15px; color: #e5e2ef; font-size: 1rem; line-height: 1.45; }
.home-live-copy > i { min-height: 52px; display: inline-flex; align-items: center; gap: 10px; margin-top: 23px; padding: 0 21px; border-radius: 999px; background: linear-gradient(120deg,#8f42ed,#7251f5); box-shadow: 0 13px 30px rgba(97,53,224,.38); font-style: normal; font-weight: 900; }
.home-live-tv-mark { position: absolute; right: 25px; top: 27px; color: #d051ff; opacity: .9; }
.home-live-tv-mark .app-icon { width: 2.8rem; height: 2.8rem; stroke-width: 1.35; }
.home-mini-grid { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.home-service-card { min-width: 0; display: grid; grid-template-columns: 62px minmax(0,1fr) 38px; align-items: center; gap: 13px; padding: 19px; color: white; text-align: left; cursor: pointer; transition: transform .18s ease,border-color .18s ease,filter .18s ease; }
.home-service-card:hover, .home-service-card:focus-visible { transform: translateY(-3px); filter: brightness(1.1); }
.home-service-card > span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 15px; }
.home-service-card > span .app-icon { width: 2.3rem; height: 2.3rem; }
.home-service-card strong { display: block; font-size: 1.28rem; }
.home-service-card small { display: block; margin-top: 5px; color: #ddd8e8; }
.home-service-card > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.09); }
.home-service-card.violet { border-color: rgba(162,59,255,.38); background: linear-gradient(135deg,rgba(52,17,81,.95),rgba(25,15,60,.9)); }
.home-service-card.violet > span { color: #ed75ff; background: rgba(199,62,232,.16); }
.home-service-card.orange { border-color: rgba(255,123,28,.5); background: linear-gradient(135deg,rgba(78,30,12,.96),rgba(54,18,22,.9)); }
.home-service-card.orange > span { color: #ff9d25; background: rgba(255,126,24,.14); }
.home-service-card.cyan { border-color: rgba(33,189,231,.46); background: linear-gradient(135deg,rgba(7,48,67,.95),rgba(13,29,58,.9)); }
.home-service-card.cyan > span { color: #33d4f0; background: rgba(27,193,223,.13); }
.home-service-card.pink { border-color: rgba(238,56,143,.48); background: linear-gradient(135deg,rgba(73,14,53,.95),rgba(51,13,45,.9)); }
.home-service-card.pink > span { color: #f15aa8; background: rgba(238,50,147,.13); }
.home-carousel-dots { display: flex; justify-content: center; gap: 10px; margin: -4px 0 1px; }
.home-carousel-dots i { width: 28px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.12); }
.home-carousel-dots i.active { width: 40px; background: linear-gradient(90deg,#743dff,#b654ff); }
.home-quick-panel { min-height: 126px; display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: stretch; padding: 14px 17px; }
.home-quick-panel > h2 { align-self: center; margin: 0; padding-left: 10px; font-size: 1.35rem; line-height: 1.05; }
.home-quick-panel > div { min-width: 0; display: grid; grid-template-columns: repeat(7,minmax(82px,1fr)); }
.home-quick-panel button { min-width: 0; display: grid; place-items: center; align-content: center; gap: 8px; padding: 7px 4px; border: 0; border-left: 1px solid rgba(255,255,255,.065); color: white; background: transparent; cursor: pointer; }
.home-quick-panel button > span { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: #d7d4e7; background: radial-gradient(circle at 35% 30%,rgba(255,255,255,.14),rgba(255,255,255,.035)); }
.home-quick-panel button > span .app-icon { width: 1.55rem; height: 1.55rem; }
.home-quick-panel button:nth-child(3) > span { color: #ff3857; }
.home-quick-panel button:nth-child(4) > span { color: #45d9f5; }
.home-quick-panel button:nth-child(6) > span { color: #ffae35; }
.home-quick-panel button:hover > span, .home-quick-panel button:focus-visible > span { color: white; border-color: var(--accent-bright); background: rgba(var(--accent-rgb),.28); }
.home-quick-panel button strong { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .74rem; }
.home-recent { min-width: 0; }
.home-recent .section-head { margin-bottom: 9px; padding-inline: 3px; }
.home-recent .section-head p { font-size: .8rem; }
.home-row-shell { position: relative; min-width: 0; }
.home-shelf-edge { position: absolute; z-index: 8; top: 3px; bottom: 10px; width: clamp(48px,4vw,68px); display: grid; place-items: center; padding: 0; border: 0; border-radius: 0; color: white; opacity: 0; cursor: pointer; transition: opacity .18s ease,background .18s ease; }
.home-shelf-edge.previous { left: 0; background: linear-gradient(90deg,rgba(5,5,16,.96),rgba(5,5,16,.72) 65%,transparent); }
.home-shelf-edge.next { right: 0; background: linear-gradient(270deg,rgba(5,5,16,.96),rgba(5,5,16,.72) 65%,transparent); }
.home-shelf-edge .app-icon { width: 32px; height: 32px; filter: drop-shadow(0 3px 8px #000); transition: transform .16s ease; }
.home-shelf-edge.previous .app-icon { transform: rotate(180deg); }
.home-recent:hover .home-shelf-edge:not(:disabled),.home-shelf-edge:focus-visible { opacity: 1; }
.home-shelf-edge:hover .app-icon,.home-shelf-edge:focus-visible .app-icon { transform: scale(1.24); }
.home-shelf-edge.previous:hover .app-icon,.home-shelf-edge.previous:focus-visible .app-icon { transform: rotate(180deg) scale(1.24); }
.home-shelf-edge:disabled { opacity: 0; pointer-events: none; }
.home-recent-row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(145px,11.5vw,184px); gap: 13px; overflow-x: auto; padding: 3px 3px 10px; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-inline: contain; cursor: grab; user-select: none; }
.home-recent-row::-webkit-scrollbar { display: none; }
.home-recent-row.is-pointer-down,.home-recent-row.is-dragging { cursor: grabbing; }
.home-recent-row.is-dragging { scroll-snap-type: none; }
.home-recent-row img { -webkit-user-drag: none; user-select: none; }
.home-recent-row .media-card { min-height: 0; scroll-snap-align: start; }
.home-recent-row .media-card img { aspect-ratio: 3/4; }
@media (hover:none) {
  .home-shelf-edge:not(:disabled) { opacity: .58; }
}
.home-status-bar { min-height: 66px; display: flex; align-items: center; gap: 0; padding: 10px 16px; }
.home-status-bar > span:not(.home-legal) { min-width: 0; flex: 1 1 0; display: grid; grid-template-columns: 25px auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 0 30px; border-right: 1px solid rgba(255,255,255,.07); }
.home-status-bar > span > .app-icon, .home-status-bar > span > i { grid-row: 1 / 3; width: 1.3rem; height: 1.3rem; color: var(--accent-bright); }
.home-status-bar small { color: var(--text-secondary); font-size: .68rem; }
.home-status-bar strong { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .84rem; }
.home-online { color: #50df83; }
.home-legal { margin-left: auto; padding: 0 16px; color: var(--text-muted); font-size: .68rem; }
.shelf { margin-bottom: 24px; }
.media-row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(145px, 13vw, 205px); gap: 12px; overflow-x: auto; padding: 3px 3px 12px; scroll-snap-type: x proximity; }
.media-card { position: relative; min-height: 236px; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: var(--panel); color: white; text-align: left; cursor: pointer; scroll-snap-align: start; transition: .18s ease; }
.media-card:hover, .media-card:focus-visible { transform: scale(1.025); border-color: var(--accent-bright); box-shadow: 0 16px 34px rgba(0,0,0,.3); }
.media-card img, .media-card > .image-fallback { width: 100%; aspect-ratio: 2/3; object-fit: cover; background-color: #15152b; }
.media-card .media-copy { padding: 11px 12px 13px; }
.media-card strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-card small { display: block; margin-top: 4px; color: var(--text-secondary); }
.heart-button { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: white; background: rgba(5,5,14,.72); cursor: pointer; }
.heart-button.active { color: #ff6aa2; background: rgba(90,10,45,.8); }

.catalog-layout, .radio-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 15px; min-height: calc(100vh - 154px); }
.category-panel { min-height: 0; padding: 13px; overflow: auto; }
.catalog-layout > .category-panel,
.radio-layout > .category-panel {
  position: sticky;
  top: 0;
  align-self: start;
  width: 100%;
  height: calc(100vh - 154px);
  max-height: calc(100vh - 154px);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.category-panel h3 { margin: 6px 8px 12px; font-size: .84rem; color: var(--text-secondary); letter-spacing: .1em; }
.category-list { display: grid; gap: 6px; }
.category-button { min-height: 46px; padding: 0 13px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--text-secondary); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-button:hover { background: rgba(255,255,255,.05); color: white; }
.category-button.active { color: white; background: rgba(var(--accent-rgb), .25); border-color: var(--border); font-weight: 800; }
.catalog-main { min-width: 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 13px; }
.media-grid .media-card { min-height: 0; }
.catalog-load-more { display: flex; justify-content: center; padding: 30px 12px 10px; }
.catalog-load-more .secondary-button { min-width: 290px; justify-content: center; }
.catalog-load-more .secondary-button:disabled { cursor: default; color: var(--text-secondary); opacity: .72; }
.catalog-card-enter { animation: catalog-card-enter .28s ease both; }
@keyframes catalog-card-enter {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.empty-state { min-height: 300px; display: grid; place-content: center; justify-items: center; padding: 35px; color: var(--text-secondary); text-align: center; }
.empty-state b { color: white; font-size: 1.35rem; }

.live-layout { height: calc(100vh - 153px); display: grid; grid-template-columns: 205px 310px minmax(0, 1fr); gap: 12px; min-width: 0; }
.live-categories, .channel-panel, .live-main { min-height: 0; overflow: hidden; }
.live-categories { padding: 12px; overflow-y: auto; }
.channel-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.panel-title { padding: 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
.panel-title strong { display: block; font-size: 1.05rem; }
.panel-title small { color: var(--text-secondary); }
.channel-list { overflow-y: auto; padding: 7px; }
.channel-button { width: 100%; min-height: 54px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid transparent; border-radius: 12px; color: white; background: transparent; text-align: left; cursor: pointer; }
.channel-button:hover { background: rgba(255,255,255,.05); }
.channel-button.active { background: rgba(var(--accent-rgb), .22); border-color: var(--accent-bright); }
.channel-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 9px; background: rgba(255,255,255,.055); }
.channel-button strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-button small { color: var(--text-secondary); }
.live-main { display: grid; grid-template-rows: minmax(250px, 45%) minmax(0, 1fr); gap: 12px; }
.mini-player { position: relative; overflow: hidden; background: #010105; }
.mini-player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 11px; color: var(--text-secondary); pointer-events: none; background: radial-gradient(circle, rgba(var(--accent-rgb), .14), transparent 50%); }
.video-placeholder span { font-size: 2.5rem; color: var(--accent-bright); }
.mini-overlay { position: absolute; left: 13px; right: 13px; bottom: 12px; display: flex; justify-content: space-between; align-items: end; gap: 15px; pointer-events: none; text-shadow: 0 2px 8px #000; }
.mini-overlay strong { display: block; font-size: 1.05rem; }
.mini-overlay small { color: #eee; }
.epg-panel { padding: 17px; overflow: auto; }
.now-card { display: grid; grid-template-columns: 94px 1fr; gap: 15px; padding: 14px; border-radius: 15px; background: rgba(var(--accent-rgb), .11); border: 1px solid var(--border); }
.now-time { color: var(--accent-bright); font-weight: 900; }
.now-card h3 { margin: 0 0 6px; }
.now-card p { margin: 0; color: var(--text-secondary); line-height: 1.45; }
.epg-list { display: grid; gap: 7px; margin-top: 12px; }
.epg-row { display: grid; grid-template-columns: 94px 1fr; gap: 15px; padding: 11px 13px; border-radius: 12px; background: rgba(255,255,255,.035); }
.epg-row time { color: var(--text-secondary); font-weight: 750; }
.epg-row.current { border-left: 3px solid var(--accent-bright); background: rgba(var(--accent-rgb), .09); }

/* Live TV V10.13 — interface inspirée du modèle premium validé. */
.live-tv-layout {
  grid-template-columns: minmax(210px, 245px) minmax(335px, 405px) minmax(520px, 1fr);
  gap: 14px;
}
.live-tv-layout .live-categories { display: grid; grid-template-rows: auto minmax(0, 1fr); padding: 0; overflow: hidden; }
.live-section-head { min-height: 63px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.live-section-head strong { font-size: 1.18rem; }
.live-tv-layout .live-categories .category-list { display: grid; align-content: start; gap: 5px; padding: 10px; overflow-y: auto; }
.live-tv-layout .category-button { min-height: 58px; display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 0 12px; border-radius: 14px; }
.live-tv-layout .category-button > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.live-tv-layout .category-button b { min-width: 30px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: var(--text-secondary); text-align: center; font-size: .72rem; }
.live-tv-layout .category-button.active { background: linear-gradient(120deg, #3658ff, #7449e8 58%, #0ab9c7); border-color: rgba(90,215,255,.65); box-shadow: 0 12px 26px rgba(37,73,255,.2); }
.live-tv-layout .category-button.active b { color: white; background: rgba(3,12,32,.24); }
.category-icon { display: grid; place-items: center; font-size: 1.08rem; }
.category-icon .app-icon { width: 1.25rem; height: 1.25rem; }

.live-tv-layout .channel-panel { background: linear-gradient(180deg, rgba(10,21,45,.94), rgba(11,18,39,.91)); }
.live-tv-layout .panel-title { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 17px; }
.live-tv-layout .panel-title > div { min-width: 0; }
.live-tv-layout .panel-title strong { font-size: 1.18rem; }
.live-tv-layout .panel-title small { display: block; max-width: 230px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-tool { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #dfeaff; background: rgba(255,255,255,.04); }
.live-tv-layout .channel-list { padding: 7px 8px 14px; }
.channel-row { position: relative; min-width: 0; margin-bottom: 5px; border: 1px solid transparent; border-radius: 14px; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.channel-row:hover { background: rgba(255,255,255,.045); }
.channel-row.active { background: linear-gradient(100deg, rgba(102,63,235,.7), rgba(29,123,199,.53)); border-color: #497dff; box-shadow: 0 12px 30px rgba(26,78,197,.22); }
.live-tv-layout .channel-button { min-height: 83px; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 9px 48px 9px 10px; border: 0; border-radius: 13px; background: transparent; }
.live-tv-layout .channel-button:hover, .live-tv-layout .channel-button.active { background: transparent; border-color: transparent; }
.channel-logo, .image-fallback.channel-logo { width: 52px; height: 52px; display: grid; place-items: center; object-fit: contain; border-radius: 12px; color: white; background: linear-gradient(145deg, rgba(var(--accent-rgb),.78), rgba(17,102,191,.88)); font-size: 1.45rem; font-weight: 900; }
.channel-copy { min-width: 0; display: grid; gap: 3px; }
.channel-copy strong { display: block; font-size: 1rem; }
.channel-copy small { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .74rem; }
.channel-progress { width: 100%; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.09); }
.channel-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #05d8ba, #28bfe6); transition: width .35s ease; }
.channel-times { display: flex; justify-content: space-between; gap: 8px; color: var(--text-secondary); font-size: .66rem; }
.channel-favorite { position: absolute; top: 50%; right: 8px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 10px; color: #abb4ce; background: transparent; cursor: pointer; }
.channel-favorite:hover, .channel-favorite.active { color: #28dbc2; background: rgba(28,218,190,.1); }
.channel-favorite .app-icon { width: 1.22rem; height: 1.22rem; }

.live-tv-layout .live-main { grid-template-rows: minmax(330px, 56%) minmax(270px, 1fr); gap: 14px; }
.live-tv-layout .mini-player { isolation: isolate; border-color: #326dff; border-radius: 24px; background: #020817 url('../img/live-player-wave-v2.png') center/cover no-repeat; box-shadow: 0 0 0 1px rgba(173,58,255,.55), 0 22px 70px rgba(0,0,0,.35); }
.live-tv-layout .mini-player::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(0,5,18,.05), rgba(0,4,15,.18)); pointer-events: none; }
.live-tv-layout .mini-player video { position: relative; z-index: 1; background: transparent; }
.live-tv-layout .video-placeholder { z-index: 2; gap: 9px; color: #d1d6e7; background: linear-gradient(180deg, rgba(2,8,25,.08), rgba(3,8,24,.26)); }
.live-tv-layout .video-placeholder span { width: 108px; height: 108px; display: grid; place-items: center; border: 3px solid rgba(90,215,255,.68); border-radius: 50%; color: white; background: rgba(7,17,43,.55); box-shadow: 0 0 45px rgba(83,65,255,.35); font-size: 3rem; }
.live-tv-layout .video-placeholder small { color: var(--text-secondary); }
.player-favorite { position: absolute; z-index: 4; top: 17px; right: 17px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; color: white; background: rgba(4,12,34,.52); backdrop-filter: blur(12px); cursor: pointer; }
.player-favorite.active { color: #4ee4c1; border-color: rgba(78,228,193,.45); }
.live-tv-layout .mini-overlay { z-index: 3; left: 23px; right: 74px; bottom: 58px; justify-content: flex-start; align-items: center; gap: 13px; }
.player-channel-logo, .image-fallback.player-channel-logo { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; object-fit: contain; border-radius: 13px; color: white; background: linear-gradient(145deg, var(--accent), #0f9fc6); font-size: 1.5rem; font-weight: 900; }
.live-tv-layout .mini-overlay strong { font-size: 1.15rem; }
.live-label { display: block; margin-bottom: 2px; color: #22ddb5; font-size: .7rem; font-weight: 900; text-transform: uppercase; }

.live-tv-layout .epg-panel { padding: 0; overflow: auto; background: linear-gradient(145deg, rgba(11,20,45,.94), rgba(15,15,42,.9)); }
.epg-summary-head { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 17px; border-bottom: 1px solid rgba(255,255,255,.07); }
.epg-summary-head h2 { margin: 0; font-size: 1.17rem; }
.epg-summary-head span { display: flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: .8rem; text-transform: capitalize; }
.programme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; }
.programme-card { min-width: 0; min-height: 150px; position: relative; padding: 16px 16px 31px; border: 1px solid rgba(255,255,255,.09); border-radius: 17px; background: linear-gradient(140deg, rgba(13,30,61,.9), rgba(15,21,46,.8)); }
.programme-badge { display: inline-flex; min-width: 118px; justify-content: center; padding: 4px 12px; border-radius: 999px; color: white; background: linear-gradient(90deg, #099ed4, #09c8a1); font-size: .68rem; font-weight: 950; }
.programme-card.next .programme-badge { background: linear-gradient(90deg, #8e32d9, #715cff); }
.programme-card-body { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; margin-top: 12px; }
.programme-time { display: grid; align-content: start; gap: 5px; padding-right: 12px; border-right: 1px solid rgba(255,255,255,.16); }
.programme-time strong { font-size: 1.25rem; }
.programme-time span { color: var(--text-secondary); }
.programme-card h3 { margin: 0 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.05rem; }
.programme-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--text-secondary); font-size: .74rem; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.programme-card > small { position: absolute; right: 15px; bottom: 10px; color: var(--text-secondary); font-size: .68rem; }
.programme-progress { position: absolute; left: 16px; right: 116px; bottom: 14px; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.programme-progress i { display: block; height: 100%; border-radius: inherit; background: #19d5b0; }
.epg-timeline { min-height: 48px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 9px; margin: 0 12px 12px; padding: 0 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(4,12,31,.55); }
.epg-timeline > button { width: 30px; height: 30px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.08); cursor: pointer; }
.timeline-hours { min-width: 0; position: relative; display: flex; justify-content: space-between; padding: 20px 0 4px; color: var(--text-secondary); font-size: .68rem; }
.timeline-marker { position: absolute; top: 3px; bottom: 0; width: 1px; background: #dfe6ff; transform: translateX(-50%); }
.timeline-marker b { position: absolute; top: -1px; left: 50%; transform: translate(-50%,-50%); padding: 3px 7px; border-radius: 8px; color: #11172d; background: #e7edff; font-size: .64rem; }
.timeline-marker i { position: absolute; bottom: -2px; left: 50%; width: 7px; height: 7px; transform: translateX(-50%); border-radius: 50%; background: #dfe6ff; }

.sports-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 11px; margin-bottom: 13px; }
.date-tabs { display: flex; gap: 7px; }
.date-tab { min-height: 43px; padding: 0 14px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--text-secondary); cursor: pointer; }
.date-tab.active { color: white; background: rgba(var(--accent-rgb), .22); border-color: var(--border); }

/* À la TV V10.20 — sélection par pays et affiches TMDB uniquement. */
.on-tv-toolbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 10px 13px; border-color: rgba(133,114,255,.24); background: linear-gradient(105deg,rgba(9,23,45,.96),rgba(16,14,46,.94)); }
.on-tv-type-tabs { min-width: 0; display: flex; align-items: center; gap: 7px; }
.on-tv-type-tabs .date-tab { min-width: 108px; min-height: 50px; font-size: .9rem; font-weight: 800; }
.on-tv-country { min-width: 310px; display: grid; grid-template-columns: auto minmax(165px,1fr); align-items: center; gap: 13px; color: var(--text-secondary); font-size: .76rem; font-weight: 800; }
.on-tv-country select { width: 100%; min-height: 50px; padding: 0 42px 0 15px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; outline: 0; color: white; background: #13142f; font: inherit; font-size: .9rem; cursor: pointer; }
.on-tv-country select:hover, .on-tv-country select:focus-visible { border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.18); }
.on-tv-country option { color: white; background: #111329; }
.on-tv-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 3px 14px; }
.on-tv-heading p { margin: 0 0 4px; color: #aa8cff; font-size: .66rem; font-weight: 950; letter-spacing: .15em; }
.on-tv-heading h2 { margin: 0; font-size: clamp(1.55rem,2.15vw,2.35rem); letter-spacing: -.035em; }
.on-tv-heading > span { padding: 7px 11px; border: 1px solid rgba(var(--accent-rgb),.3); border-radius: 10px; color: #c9c0ff; background: rgba(var(--accent-rgb),.09); font-size: .76rem; }
.on-tv-grid { grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 15px; padding: 3px 3px 24px; }
.on-tv-card { isolation: isolate; border-radius: 19px; background: #11132c; box-shadow: 0 15px 38px rgba(0,0,0,.22); }
.on-tv-card::after { content: ""; position: absolute; z-index: 1; inset: 38% 0 0; pointer-events: none; background: linear-gradient(transparent,rgba(5,7,22,.86) 48%,rgba(5,7,22,.98)); }
.on-tv-card .on-tv-poster { aspect-ratio: 2/3; }
.on-tv-card .media-copy { position: relative; z-index: 2; min-height: 100px; margin-top: -74px; padding: 20px 13px 13px; }
.on-tv-card .media-copy strong { font-size: 1rem; }
.on-tv-card .media-copy > small { font-size: .71rem; }
.on-tv-kind, .on-tv-time { position: absolute; z-index: 3; top: 11px; padding: 6px 9px; border-radius: 8px; color: white; font-size: .68rem; font-weight: 950; box-shadow: 0 7px 18px rgba(0,0,0,.25); }
.on-tv-kind { left: 11px; background: linear-gradient(120deg,#6c43d7,#925cff); }
.on-tv-kind.series { background: linear-gradient(120deg,#087f8e,#16b6ae); }
.on-tv-kind.tv { background: linear-gradient(120deg,#087f8e,#16b6ae); }
.on-tv-kind.animation { background: linear-gradient(120deg,#d45a15,#ff9d2f); }
.on-tv-kind.documentary { background: linear-gradient(120deg,#14755d,#22b98a); }
.on-tv-time { right: 11px; background: rgba(6,9,24,.82); backdrop-filter: blur(8px); }
.on-tv-live { color: #ff6679; }
.on-tv-channel { display: flex !important; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e3e5f0 !important; }
.on-tv-channel .app-icon { width: 14px; height: 14px; flex: 0 0 14px; }
.sports-main-toolbar { min-height: 72px; padding: 9px 13px; border-color: rgba(133,114,255,.24); background: linear-gradient(105deg, rgba(9,23,45,.96), rgba(16,14,46,.94)); }
.sport-selector-panel { min-height: 72px; display: grid; align-items: center; padding: 9px 13px; border-color: rgba(133,114,255,.24); background: linear-gradient(105deg, rgba(9,23,45,.96), rgba(16,14,46,.94)); }
.sport-selector { min-width: 220px; min-height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 17px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; color: white; background: linear-gradient(105deg, rgba(var(--accent-rgb),.9), rgba(54,166,232,.75)); box-shadow: 0 12px 32px rgba(var(--accent-rgb),.16); }
.sport-selector .app-icon { width: 24px; height: 24px; }
.sport-selector strong { font-size: 1rem; }
.sport-selector span { margin-left: auto; font-size: 1.2rem; }
.sports-refresh { width: 48px; height: 48px; display: grid; flex: 0 0 48px; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; color: white; background: rgba(255,255,255,.04); cursor: pointer; }
.sports-refresh:hover { border-color: rgba(var(--accent-rgb),.7); background: rgba(var(--accent-rgb),.16); }
.sports-refresh .app-icon { width: 20px; height: 20px; }
.sport-page-loading, .sport-page { min-height: calc(100dvh - 154px); display: grid; grid-template-columns: minmax(270px,330px) minmax(0,1fr); gap: 13px; }
.sport-left-column { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); align-content: stretch; gap: 13px; }
.sport-page-loading .sport-left-column > :last-child, .sport-page-loading > main { min-height: 430px; }
.sports-competition-panel, .sports-match-panel { min-width: 0; overflow: hidden; background: linear-gradient(150deg, rgba(8,23,43,.96), rgba(12,14,38,.94)); }
.sport-panel-title, .sport-match-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sport-panel-title span, .sport-match-heading { display: grid; gap: 3px; }
.sport-panel-title small, .sport-match-head small { color: #54dfbf; font-size: .65rem; font-weight: 950; letter-spacing: .13em; }
.sport-panel-title strong { font-size: 1.18rem; }
.sport-panel-title i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--text-secondary); background: rgba(255,255,255,.045); }
.sport-competition-list { max-height: calc(100dvh - 350px); display: grid; align-content: start; gap: 8px; padding: 11px; overflow: auto; }
.sport-competition-button { width: 100%; min-height: 74px; display: grid; grid-template-columns: 47px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; color: white; background: rgba(255,255,255,.025); text-align: left; cursor: pointer; transition: transform .18s ease,border-color .18s ease,background .18s ease; }
.sport-competition-button:hover { transform: translateX(2px); border-color: rgba(var(--accent-rgb),.42); background: rgba(var(--accent-rgb),.09); }
.sport-competition-button.active { border-color: rgba(94,219,242,.5); background: linear-gradient(105deg, rgba(var(--accent-rgb),.75), rgba(10,170,191,.65)); box-shadow: 0 10px 28px rgba(var(--accent-rgb),.14); }
.sport-competition-button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.sport-competition-button strong, .sport-competition-button small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sport-competition-button strong { font-size: .88rem; }
.sport-competition-button small { color: var(--text-secondary); font-size: .67rem; }
.sport-competition-button.active small { color: rgba(255,255,255,.76); }
.sport-competition-button > b { min-width: 29px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; color: var(--text-secondary); background: rgba(3,11,29,.3); text-align: center; font-size: .66rem; }
.sport-competition-button.active > b { color: white; }
.sport-competition-logo { width: 47px; height: 47px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: rgba(255,255,255,.06); }
.sport-competition-logo img, .sport-competition-logo .image-fallback { width: 39px; height: 39px; object-fit: contain; }
.sport-competition-logo.trophy { color: white; background: rgba(255,255,255,.12); }
.sport-competition-logo.trophy .app-icon { width: 26px; height: 26px; }
.sport-policy-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 11px 12px; padding: 12px; border-radius: 12px; color: var(--text-secondary); background: rgba(255,255,255,.035); font-size: .66rem; line-height: 1.45; }
.sport-policy-note .app-icon { width: 17px; height: 17px; flex: 0 0 17px; color: #54dfbf; }
.sport-match-head h2 { margin: 0; font-size: 1.16rem; }
.sport-match-head-controls { min-height: 84px; display: grid; grid-template-columns: minmax(170px,1fr) auto auto; align-items: center; gap: clamp(12px,2vw,30px); padding-block: 10px; }
.sport-date-tabs { justify-self: center; }
.sport-match-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.sport-match-count { padding: 7px 11px; border: 1px solid rgba(var(--accent-rgb),.3); border-radius: 10px; color: #c9c0ff; background: rgba(var(--accent-rgb),.09); font-size: .78rem; white-space: nowrap; }
.sport-match-actions .sports-refresh { width: 42px; height: 42px; flex-basis: 42px; }
.sport-match-list { max-height: calc(100dvh - 238px); display: grid; align-content: start; gap: 9px; padding: 11px; overflow: auto; }
.sport-match-row { min-height: 92px; display: grid; grid-template-columns: 50px 92px minmax(125px,1fr) 66px minmax(125px,1fr) minmax(105px,145px); align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.085); border-radius: 15px; background: linear-gradient(105deg, rgba(14,28,49,.86), rgba(15,17,42,.86)); }
.sport-match-row.is-live { border-color: rgba(235,61,91,.55); box-shadow: inset 3px 0 0 rgba(235,61,91,.9); }
.sport-league-logo { width: 45px; height: 45px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.05); }
.sport-league-logo img, .sport-league-logo .image-fallback { width: 38px; height: 38px; object-fit: contain; }
.sport-match-row .match-time { min-width: 0; }
.sport-match-row .match-time > strong { color: #b29bff; font-size: 1.05rem; }
.sport-match-row .match-time small { margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .62rem; }
.sport-live-badge { display: inline-flex; padding: 5px 8px; border-radius: 8px; color: white; background: #e83b59; font-size: .69rem; font-weight: 950; }
.sport-match-row .team { min-width: 0; }
.sport-match-row .team img, .sport-match-row .team .image-fallback { width: 42px; height: 42px; flex: 0 0 42px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.035); }
.sport-match-row .team span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1rem; line-height: 1.25; font-weight: 900; }
.sport-match-row .score { color: #9d7cff; font-size: 1.18rem; }
.sport-channel { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: var(--text-secondary); background: rgba(0,0,0,.16); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .62rem; }
.sport-channel .app-icon { width: 15px; height: 15px; flex: 0 0 15px; }
.match-list { display: grid; gap: 9px; }
.match-row { min-height: 78px; display: grid; grid-template-columns: 58px 82px minmax(140px,1fr) 75px minmax(140px,1fr) 52px; align-items: center; gap: 13px; padding: 9px 16px; }
.match-row img { width: 42px; height: 42px; object-fit: contain; }
.match-time { font-weight: 900; }
.match-time small { display: block; color: var(--text-secondary); font-weight: 500; }
.team { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.team.away { justify-content: flex-end; text-align: right; }
.score { text-align: center; font-size: 1.3rem; font-weight: 950; }

/* Radios V10.22 — lecteur audio dédié, sans EPG. */
.radio-pro-loading { height: calc(100dvh - 164px); display: grid; grid-template-columns: 235px 355px minmax(0,1fr); gap: 14px; }
.topbar.radio-mode .home-only { display: grid; }
.topbar.radio-mode .global-search { width: min(560px,42vw); min-height: 52px; border-radius: 15px; background: rgba(255,255,255,.045); }
.topbar.radio-mode .profile-chip { width: 52px; min-width: 52px; min-height: 52px; justify-content: center; padding: 4px; border-radius: 50%; }
.topbar.radio-mode .profile-chip span { width: 42px; height: 42px; border-radius: 50%; }
.topbar.radio-mode .profile-chip b { display: none; }
.radio-pro-page { height: calc(100dvh - 164px); min-width: 0; display: grid; grid-template-rows: minmax(0,1fr) 145px; gap: 13px; }
.radio-pro-workspace { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(220px,245px) minmax(330px,370px) minmax(470px,1fr); gap: 13px; }
.radio-pro-categories,.radio-stations-panel,.radio-main-column { min-width: 0; min-height: 0; }
.radio-pro-categories,.radio-stations-panel { display: grid; grid-template-rows: auto minmax(0,1fr); overflow: hidden; background: linear-gradient(155deg,rgba(9,23,47,.97),rgba(11,14,37,.96)); }
.radio-panel-heading { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 17px; border-bottom: 1px solid rgba(255,255,255,.075); }
.radio-panel-heading h2,.radio-recent-head h2 { margin: 0; font-size: 1.17rem; }
.radio-panel-heading small,.radio-recent-head small { color: var(--text-secondary); font-size: .7rem; }
.radio-pro-category-list,.radio-station-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.radio-pro-category-list { display: grid; align-content: start; gap: 7px; padding: 11px; }
.radio-pro-category { width: 100%; min-height: 57px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid transparent; border-radius: 13px; color: var(--text-secondary); background: transparent; text-align: left; cursor: pointer; transition: transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease; }
.radio-pro-category > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.045); }
.radio-pro-category .app-icon { width: 20px; height: 20px; }
.radio-pro-category strong { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .79rem; }
.radio-pro-category > b { min-width: 28px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; color: #9ea7bd; background: rgba(0,0,0,.18); text-align: center; font-size: .62rem; }
.radio-pro-category:hover { color: white; border-color: rgba(var(--accent-rgb),.32); background: rgba(var(--accent-rgb),.08); transform: translateX(2px); }
.radio-pro-category.active { color: white; border-color: rgba(70,218,242,.54); background: linear-gradient(105deg,rgba(112,65,231,.88),rgba(7,171,203,.78)); box-shadow: 0 13px 30px rgba(40,61,211,.18); }
.radio-pro-category.active > span { background: rgba(255,255,255,.13); }
.radio-pro-category.active > b { color: white; background: rgba(2,17,40,.27); }

.radio-station-list { padding: 7px; }
.radio-station-row { min-height: 78px; position: relative; display: grid; grid-template-columns: minmax(0,1fr) 42px; align-items: center; gap: 4px; margin-bottom: 5px; border: 1px solid transparent; border-radius: 14px; background: rgba(255,255,255,.018); transition: border-color .18s ease,background .18s ease,transform .18s ease; }
.radio-station-row:hover { border-color: rgba(var(--accent-rgb),.32); background: rgba(var(--accent-rgb),.07); transform: translateX(2px); }
.radio-station-row.active { border-color: rgba(74,211,246,.64); background: linear-gradient(105deg,rgba(112,62,224,.84),rgba(10,175,207,.68)); box-shadow: 0 12px 28px rgba(39,53,184,.22); }
.radio-station-main { min-width: 0; min-height: 76px; display: grid; grid-template-columns: 57px minmax(0,1fr); align-items: center; gap: 12px; padding: 8px 4px 8px 9px; border: 0; color: white; background: transparent; text-align: left; cursor: pointer; }
.radio-station-logo,.image-fallback.radio-station-logo { width: 57px; height: 57px; aspect-ratio: 1; object-fit: contain; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.055); font-size: 1.25rem; }
.radio-station-main > span { min-width: 0; display: grid; gap: 2px; }
.radio-station-main strong,.radio-station-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-station-main strong { font-size: .94rem; }
.radio-station-main small { color: var(--text-secondary); font-size: .68rem; }
.radio-station-main b,.radio-compact-card b { display: inline-flex; align-items: center; gap: 5px; width: max-content; color: #31dfcc; font-size: .59rem; letter-spacing: .02em; }
.radio-station-main b i,.radio-compact-card b i,.radio-player-identity span i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.radio-station-row.active .radio-station-main small,.radio-station-row.active .radio-station-main b { color: rgba(255,255,255,.88); }
.radio-station-favorite { width: 38px; height: 38px; display: grid; place-items: center; margin-right: 5px; border: 0; border-radius: 11px; color: #ccd1e2; background: transparent; cursor: pointer; }
.radio-station-favorite .app-icon { width: 21px; height: 21px; }
.radio-station-favorite.active { color: #ff6296; background: rgba(75,10,42,.28); }
.radio-list-empty { min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--text-secondary); text-align: center; }

.radio-main-column { display: grid; grid-template-rows: minmax(300px,1fr) 215px; gap: 13px; }
.radio-player-card { min-width: 0; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(270px,1fr) auto; grid-template-rows: auto minmax(72px,1fr) auto; gap: 10px 20px; padding: 23px 28px 18px; border-color: rgba(80,104,255,.56); background: radial-gradient(circle at 14% 33%,rgba(99,44,217,.32),transparent 34%),radial-gradient(circle at 88% 38%,rgba(4,178,224,.2),transparent 34%),linear-gradient(145deg,rgba(7,17,43,.98),rgba(10,13,39,.96)); box-shadow: 0 0 0 1px rgba(130,62,255,.16),0 25px 70px rgba(0,0,0,.24); }
.radio-player-card::before { content: ""; position: absolute; z-index: -1; inset: 18% -10% auto 32%; height: 170px; opacity: .6; background: repeating-radial-gradient(ellipse at center,transparent 0 8px,rgba(41,201,242,.08) 9px 10px); transform: rotate(-7deg); }
.radio-player-identity { min-width: 0; display: flex; align-items: center; gap: 22px; }
.radio-logo-orbit { width: 122px; height: 122px; flex: 0 0 122px; display: grid; place-items: center; padding: 7px; border: 3px solid transparent; border-radius: 50%; background: linear-gradient(#071126,#071126) padding-box,linear-gradient(135deg,#bb42ff,#3f65ff,#20dce0) border-box; box-shadow: 0 0 40px rgba(88,62,255,.28); }
.radio-player-logo,.image-fallback.radio-player-logo { width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 50%; background: rgba(0,0,0,.36); font-size: 2rem; }
.radio-player-identity > div:last-child { min-width: 0; }
.radio-player-identity h2 { max-width: 420px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(1.65rem,2.25vw,2.65rem); letter-spacing: -.04em; }
.radio-player-identity p { margin: 6px 0 9px; color: #25e0df; font-size: 1rem; }
.radio-player-identity span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid rgba(45,224,210,.25); border-radius: 999px; color: #36e2d2; background: rgba(21,201,182,.07); font-size: .65rem; font-weight: 900; }
.radio-player-controls { display: flex; align-items: center; justify-content: flex-end; gap: 11px; }
.radio-player-controls > button { width: 48px; height: 48px; display: grid; flex: 0 0 48px; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; color: white; background: rgba(255,255,255,.045); cursor: pointer; }
.radio-player-controls > button .app-icon { width: 21px; height: 21px; }
.radio-player-controls .radio-main-play { width: 70px; height: 70px; flex-basis: 70px; border-color: rgba(82,214,255,.75); background: linear-gradient(135deg,#8b47ff,#5069ff 58%,#13b9ed); box-shadow: 0 0 36px rgba(77,92,255,.38); }
.radio-player-controls .radio-main-play .app-icon { width: 29px; height: 29px; }
.radio-main-favorite.active { color: #ff639a; background: rgba(129,22,72,.24); }
.radio-volume { min-width: 145px; display: flex; align-items: center; gap: 9px; margin-left: 5px; }
.radio-volume .app-icon { width: 20px; height: 20px; color: #e4e6f1; }
.radio-volume input { width: 115px; accent-color: #38d6f4; cursor: pointer; }
.radio-waveform { grid-column: 1 / -1; min-height: 78px; display: flex; align-items: center; gap: 3px; padding: 8px 3px; overflow: hidden; }
.radio-waveform > i { width: 4px; height: var(--radio-bar); flex: 1 1 auto; max-width: 8px; border-radius: 99px; background: linear-gradient(180deg,#c42eff,#7a4eff 52%,#18d9ee); opacity: .58; transform: scaleY(.56); transform-origin: center; }
.is-radio-playing .radio-waveform > i { opacity: 1; animation: radio-wave .78s ease-in-out infinite alternate; animation-delay: var(--radio-delay); }
@keyframes radio-wave { from { transform: scaleY(.34); } to { transform: scaleY(1); } }
.radio-stream-line { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.075); }
.radio-stream-line > span,.radio-stream-line > b { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; }
.radio-stream-line > span { color: var(--text-secondary); }
.radio-stream-line > b { color: #e9b552; }
.radio-stream-line > b.good { color: #35df9e; }
.radio-stream-line > b.bad { color: var(--error); }
.radio-stream-line > b.paused { color: #a8afc4; }
.radio-stream-line .app-icon { width: 17px; height: 17px; }

.radio-detail-grid { min-width: 0; min-height: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.radio-info-panel,.radio-favorites-panel { min-width: 0; overflow: hidden; padding: 14px 16px; background: linear-gradient(145deg,rgba(9,24,48,.96),rgba(12,15,39,.94)); }
.radio-info-panel h3,.radio-favorites-panel h3 { margin: 0 0 10px; font-size: 1rem; }
.radio-info-panel dl { display: grid; gap: 6px; margin: 0; }
.radio-info-panel dl > div { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.065); border-radius: 9px; background: rgba(255,255,255,.024); }
.radio-info-panel dt { display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: .7rem; }
.radio-info-panel dt .app-icon { width: 15px; height: 15px; color: #3fdded; }
.radio-info-panel dd { min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .73rem; font-weight: 800; }
.radio-favorites-panel > div { display: grid; gap: 6px; }
.radio-compact-card { min-width: 0; min-height: 52px; display: grid; grid-template-columns: 39px minmax(0,1fr) 34px; align-items: center; gap: 9px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; color: white; background: rgba(255,255,255,.022); text-align: left; cursor: pointer; }
.radio-compact-card:hover { border-color: rgba(var(--accent-rgb),.52); background: rgba(var(--accent-rgb),.08); }
.radio-compact-logo,.image-fallback.radio-compact-logo { width: 39px; height: 39px; aspect-ratio: 1; object-fit: contain; border-radius: 9px; background: rgba(255,255,255,.05); font-size: .88rem; }
.radio-compact-card > span { min-width: 0; display: grid; gap: 1px; }
.radio-compact-card strong,.radio-compact-card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-compact-card strong { font-size: .76rem; }
.radio-compact-card small { color: var(--text-secondary); font-size: .59rem; }
.radio-compact-card b { font-size: .52rem; }
.radio-compact-card em { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: rgba(255,255,255,.04); }
.radio-compact-card em .app-icon { width: 14px; height: 14px; }
.radio-panel-empty { margin: 12px 4px; color: var(--text-secondary); font-size: .72rem; line-height: 1.5; }

.radio-recent-panel { min-width: 0; display: grid; grid-template-rows: 39px minmax(0,1fr); overflow: hidden; padding: 8px 11px 10px; background: linear-gradient(145deg,rgba(8,22,45,.96),rgba(12,15,38,.94)); }
.radio-recent-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 5px; }
.radio-recent-list { min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px,1fr); gap: 8px; overflow-x: auto; }
.radio-recent-list .radio-compact-card { min-height: 82px; grid-template-columns: 51px minmax(0,1fr) 34px; }
.radio-recent-list .radio-compact-logo,.radio-recent-list .image-fallback.radio-compact-logo { width: 51px; height: 51px; }
.radio-recent-list .radio-compact-card strong { font-size: .82rem; }
.radio-recent-list .radio-panel-empty { align-self: center; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 1120px; }
.settings-card { padding: 22px; }
.settings-card h2 { margin: 0 0 6px; }
.settings-card > p { color: var(--text-secondary); }
.settings-field { display: grid; gap: 8px; margin-top: 17px; }
.settings-field label { font-weight: 800; }
.xtroplay-copyright { grid-column: 1 / -1; min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 22px; color: var(--text-secondary); text-align: center; }
.xtroplay-copyright img { width: 154px; height: auto; flex: 0 0 auto; }
.xtroplay-copyright span { font-size: .78rem; font-weight: 700; }
.color-options { display: flex; flex-wrap: wrap; gap: 10px; }
.color-option { width: 48px; height: 48px; border: 3px solid transparent; border-radius: 14px; background: var(--color); cursor: pointer; }
.color-option.active { border-color: white; transform: scale(1.08); }
.switch-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.switch { width: 52px; height: 29px; position: relative; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); cursor: pointer; }
.switch::after { content: ""; position: absolute; width: 21px; height: 21px; left: 4px; top: 4px; border-radius: 50%; background: white; transition: .18s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(23px); }
.profile-page { max-width: 970px; }
.profile-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 25px; }
.profile-avatar { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 22px; font-size: 2rem; font-weight: 950; background: linear-gradient(135deg, var(--accent), #2672ff); }
.profile-banner h2 { margin: 0 0 5px; font-size: 1.8rem; }
.profile-banner p { margin: 0; color: var(--text-secondary); }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.stat-card { padding: 20px; }
.stat-card span { display: block; color: var(--text-secondary); }
.stat-card strong { display: block; margin-top: 9px; font-size: 1.35rem; }

.modal, .player-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 25px; }
.modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(1,1,7,.76); backdrop-filter: blur(14px); }
.modal-card { position: relative; width: min(980px, 94vw); max-height: 90vh; overflow: auto; overflow-x: hidden; overscroll-behavior: contain; border: 1px solid rgba(255,255,255,.12); border-radius: 26px; background: #111126; box-shadow: 0 40px 120px #000; }
.modal-close { position: absolute; z-index: 4; top: 14px; right: 14px; font-size: 1.5rem; background: rgba(4,4,12,.76); }
.detail-hero { min-height: 500px; display: flex; align-items: end; padding: clamp(30px, 5vw, 70px); background-size: cover; background-position: center; position: relative; }
.detail-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #111126 5%, rgba(17,17,38,.82) 40%, rgba(0,0,0,.16)), linear-gradient(90deg, rgba(17,17,38,.85), transparent); }
.detail-content { position: relative; max-width: 720px; }
.detail-content h2 { margin: 5px 0 12px; font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.detail-content p { color: #ddd9eb; line-height: 1.6; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 13px 0; }
.detail-meta span { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.1); }
.season-tabs { display: flex; gap: 8px; padding: 18px 22px 0; overflow-x: auto; }
.episode-list { display: grid; gap: 9px; padding: 16px 22px 25px; }
.episode-button { min-height: 66px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 13px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: rgba(255,255,255,.04); color: white; text-align: left; cursor: pointer; }
.episode-button b { color: var(--accent-bright); font-size: 1.15rem; }
.episode-button small { color: var(--text-secondary); }

/* Série V10.14 — fiche premium avec saisons et épisodes. */
.series-detail-modal, .movie-detail-modal { left: 210px; padding: 0; place-items: stretch; }
.series-detail-modal .modal-backdrop, .movie-detail-modal .modal-backdrop { background: #02060b; backdrop-filter: none; }
.series-detail-modal .modal-card, .movie-detail-modal .modal-card { width: 100%; height: 100vh; max-height: none; overflow: auto; border: 0; border-radius: 0; background: #02070d; box-shadow: none; }
.series-detail-modal .modal-close, .movie-detail-modal .modal-close { position: fixed; top: 18px; right: 20px; z-index: 210; color: white; background: rgba(3,10,18,.7); backdrop-filter: blur(12px); }
.series-detail-shell { min-height: 100%; position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg,#03090f,#02070d); }
.series-detail-backdrop { position: absolute; z-index: -2; inset: 0 0 auto; height: min(640px,70vh); background-position: center 20%; background-size: cover; opacity: .72; filter: saturate(.82) contrast(1.05); }
.series-detail-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(2,7,13,.95) 0%,rgba(2,7,13,.42) 43%,rgba(2,7,13,.38) 72%,rgba(2,7,13,.86) 100%),linear-gradient(0deg,#02070d 0%,rgba(2,7,13,.75) 28%,rgba(2,7,13,.05) 75%); }
.series-detail-clock { position: absolute; top: 26px; right: 86px; z-index: 4; display: flex; align-items: center; gap: 18px; color: #e9eaf0; }
.series-detail-clock span { color: var(--text-secondary); }
.series-detail-clock strong { font-size: 1.24rem; }
.series-detail-grid { width: 100%; max-width: 1700px; min-height: 100vh; position: relative; display: grid; grid-template-columns: minmax(245px,320px) minmax(0,1fr); gap: clamp(28px,3vw,52px); margin-inline: auto; padding: 64px clamp(26px,3vw,58px) 44px; overflow-x: hidden; }
.series-poster-column { align-self: start; position: sticky; top: 34px; padding-top: 4px; }
.series-poster, .image-fallback.series-poster { width: 100%; aspect-ratio: 2/3; display: grid; place-items: center; object-fit: cover; border: 1px solid rgba(129,215,255,.45); border-radius: 18px; color: white; background: linear-gradient(145deg,#17294a,#713cdf); box-shadow: 0 28px 75px rgba(0,0,0,.52); font-size: 4rem; font-weight: 950; }
.series-facts { display: grid; gap: 15px; margin: 34px 0 0; }
.series-facts > div { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 12px; }
.series-facts dt { color: #f1f2f6; font-weight: 850; }
.series-facts dd { margin: 0; color: var(--text-secondary); line-height: 1.55; }
.series-detail-content { min-width: 0; padding-top: 16px; }
.series-detail-content > .eyebrow { color: #a96cff; }
.series-detail-content > h2 { max-width: 1000px; margin: 4px 0 10px; font-size: clamp(3.1rem,5.8vw,6.7rem); line-height: .92; letter-spacing: -.065em; text-shadow: 0 8px 45px rgba(0,0,0,.58); }
.series-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: #e7e7ec; font-size: 1rem; }
.series-meta span:first-child { color: #ffd338; font-weight: 900; }
.series-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.series-badges span { padding: 6px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 9px; color: #f1f2f7; background: rgba(3,8,15,.45); backdrop-filter: blur(10px); font-size: .78rem; font-weight: 750; }
.series-summary { max-width: 1040px; margin: 16px 0 0; color: #d3d3dc; font-size: 1.05rem; line-height: 1.62; text-shadow: 0 2px 18px #000; }
.series-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.series-actions .primary-button, .series-actions .secondary-button { min-width: 190px; min-height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.series-play-main { background: linear-gradient(120deg,#7040e9,#4963f1); }
.series-list-button.active { color: #ff79ac; border-color: rgba(255,103,165,.55); background: rgba(116,25,69,.36); }
.series-cast { margin-top: 26px; }
.series-cast h3 { margin: 0 0 12px; font-size: 1.15rem; }
.cast-list { display: grid; grid-template-columns: repeat(5,minmax(145px,1fr)); gap: 9px; }
.cast-chip { min-width: 0; min-height: 72px; display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: center; gap: 11px; padding: 8px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(8,17,27,.74); }
.cast-avatar { width: 54px; height: 54px; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; color: white; background: linear-gradient(145deg,#4961ec,#8e47d7); font-weight: 950; box-shadow: 0 7px 18px rgba(0,0,0,.26); }
.cast-avatar b { position: relative; z-index: 1; }
.cast-photo { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease; }
.cast-avatar.has-photo .cast-photo { opacity: 1; }
.cast-chip strong { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.series-seasons { margin-top: 27px; }
.series-detail-modal .season-tabs { display: flex; gap: 22px; padding: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.season-tab { min-height: 51px; position: relative; padding: 0 4px; border: 0; color: var(--text-secondary); background: transparent; cursor: pointer; font-weight: 850; }
.season-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 4px 4px 0 0; background: transparent; }
.season-tab.active { color: #ad75ff; }
.season-tab.active::after { background: #8f5aff; }
.series-detail-modal .episode-list { display: grid; gap: 7px; padding: 10px 0 32px; }
.series-episode { width: 100%; min-height: 100px; display: grid; grid-template-columns: 150px minmax(0,1fr) 82px 48px; align-items: center; gap: 17px; padding: 9px 16px 9px 10px; border: 1px solid transparent; border-radius: 14px; color: white; background: rgba(9,18,28,.83); text-align: left; cursor: pointer; transition: border-color .18s ease,background .18s ease,transform .18s ease; }
.series-episode:hover, .series-episode:focus-visible { transform: translateX(3px); border-color: #8958ff; background: linear-gradient(90deg,rgba(30,25,65,.92),rgba(10,20,31,.9)); }
.episode-visual { height: 82px; position: relative; overflow: hidden; border-radius: 10px; background: #0c1523; }
.series-episode-image, .image-fallback.series-episode-image { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; color: white; background: linear-gradient(145deg,#16284a,#5532a3); font-weight: 950; }
.episode-visual > i { position: absolute; inset: 50% auto auto 50%; width: 36px; height: 36px; display: grid; place-items: center; transform: translate(-50%,-50%); border: 2px solid white; border-radius: 50%; color: white; background: rgba(0,0,0,.42); }
.episode-copy { min-width: 0; }
.episode-copy strong { display: block; max-width: 100%; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.episode-copy small { display: -webkit-box; overflow: hidden; color: var(--text-secondary); line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.series-episode time { justify-self: end; color: var(--text-secondary); font-size: .8rem; }
.episode-play { width: 42px; height: 42px; display: grid; place-items: center; justify-self: end; border-radius: 50%; color: white; background: linear-gradient(145deg,#8852ef,#6149e7); }

/* Film V10.15 — fiche premium alignée sur la page Séries. */
.movie-detail-shell .series-detail-backdrop { height: min(720px,78vh); }
.movie-detail-grid { align-items: start; }
.movie-detail-content { padding-top: clamp(34px,5vh,80px); }
.movie-detail-content > h2 { max-width: 1180px; font-size: clamp(3.2rem,6.4vw,7.2rem); }
.movie-poster { aspect-ratio: 2/3; }
.movie-cast { margin-top: 34px; }
.movie-info-panels { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(260px,.6fr); gap: 13px; margin-top: 26px; padding-bottom: 38px; }
.movie-info-card { min-height: 180px; padding: 22px; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: linear-gradient(145deg,rgba(12,23,37,.9),rgba(8,16,27,.82)); }
.movie-info-card h3 { margin: 5px 0 10px; font-size: 1.35rem; }
.movie-info-card > p:last-child { margin: 0; color: var(--text-secondary); line-height: 1.65; }
.movie-info-card dl { display: grid; gap: 11px; margin: 12px 0 0; }
.movie-info-card dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.06); }
.movie-info-card dt { color: var(--text-secondary); }
.movie-info-card dd { margin: 0; text-align: right; font-weight: 850; }

.player-modal { background: rgba(0,0,0,.94); }
.player-shell { width: min(1500px, 96vw); height: min(880px, 92vh); display: grid; grid-template-rows: minmax(0, 1fr) 72px; position: relative; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 40px 140px #000; }
.player-shell video { width: 100%; height: 100%; background: #000; object-fit: contain; }
.player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 17px; background: #10101f; }
.player-toolbar div { min-width: 0; }
.player-toolbar strong, .player-toolbar small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-toolbar small { margin-top: 3px; color: var(--text-secondary); }
.live-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--error); box-shadow: 0 0 13px var(--error); }
.player-message { position: absolute; inset: 0 0 72px; display: grid; place-content: center; padding: 30px; text-align: center; background: rgba(0,0,0,.82); font-weight: 800; }
.toast { position: fixed; z-index: 500; left: 50%; bottom: 28px; transform: translateX(-50%); max-width: min(560px, 90vw); padding: 13px 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: #1a1931; box-shadow: 0 18px 50px rgba(0,0,0,.38); font-weight: 750; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 92px minmax(0, 1fr); }
  .side-nav { display: block; padding: 10px 7px; border-radius: 0 18px 18px 0; }
  .brand-button { height: 64px; }
  .brand-button img { width: 82px; max-height: 50px; }
  #main-nav { height: calc(100vh - 80px); display: grid; grid-template-rows: repeat(9,1fr); gap: 4px; }
  .nav-item { flex-direction: column; justify-content: center; gap: 4px; padding: 5px 2px; border-radius: 12px; text-align: center; }
  .nav-item svg { width: 22px; height: 22px; }
  .nav-item span { font-size: .58rem; }
  .side-account-card { display: none; }
  .app-stage { grid-template-rows: 92px minmax(0,1fr); }
  .live-layout { grid-template-columns: 174px 260px minmax(0, 1fr); }
  .live-tv-layout { grid-template-columns: 188px 300px minmax(420px, 1fr); }
  .live-tv-layout .channel-button { min-height: 76px; grid-template-columns: 46px minmax(0,1fr); }
  .live-tv-layout .channel-logo, .live-tv-layout .image-fallback.channel-logo { width: 44px; height: 44px; }
  .programme-card p { -webkit-line-clamp: 1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .home-hero { grid-template-columns: 1fr; }
  .account-summary { display: none; }
  .series-detail-modal, .movie-detail-modal { left: 92px; }
  .series-detail-grid { grid-template-columns: minmax(220px,270px) minmax(0,1fr); padding-inline: 28px; }
  .cast-list { grid-template-columns: repeat(3,minmax(130px,1fr)); }
  .series-episode { grid-template-columns: 125px minmax(0,1fr) 65px 44px; }
  .home-dashboard-grid { grid-template-columns: minmax(390px,1fr) minmax(430px,1fr); }
  .topbar.home-mode .global-search,.topbar.home-mode .global-search:focus-within { width: min(250px,25vw); }
  .home-service-card { grid-template-columns: 52px minmax(0,1fr) 32px; padding: 14px; }
  .home-service-card > span { width: 48px; height: 48px; }
  .home-quick-panel { grid-template-columns: 115px minmax(0,1fr); }
  .home-quick-panel > div { grid-template-columns: repeat(7,minmax(72px,1fr)); }
  .home-quick-panel button > span { width: 48px; height: 48px; }
  .sport-page { grid-template-columns: minmax(220px,260px) minmax(0,1fr); }
  .sport-match-head-controls { grid-template-columns: minmax(140px,1fr) auto; }
  .sport-date-tabs { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: center; }
  .sport-match-head-controls { min-height: 126px; }
  .sport-match-list { max-height: calc(100dvh - 280px); }
  .sport-match-row { grid-template-columns: 76px minmax(100px,1fr) 58px minmax(100px,1fr); }
  .sport-match-row .sport-league-logo, .sport-match-row .sport-channel { display: none; }
}

@media (max-width: 820px), (orientation: portrait) {
  body { overflow: auto; }
  .login-view { grid-template-columns: 1fr; min-height: 100dvh; }
  .login-brand { min-height: 42dvh; justify-content: end; padding: 28px; }
  .login-brand h1 { font-size: clamp(2.2rem, 10vw, 4rem); }
  .login-logo { width: 210px; }
  .login-panel { padding: 20px; }
  .app-shell { min-height: 100dvh; height: auto; grid-template-columns: 1fr; grid-template-rows: 76px minmax(0, 1fr); }
  .side-nav { min-height: 0; width: 100%; height: 76px; display: flex; align-items: center; padding: 6px 10px; border-radius: 0 0 16px 16px; overflow-x: auto; }
  .brand-button { position: sticky; left: 0; z-index: 3; width: 84px; min-width: 84px; height: 60px; background: #06101e; }
  #main-nav { height: 60px; display: flex; gap: 4px; }
  .nav-item { width: 72px; min-width: 72px; height: 60px; }
  .app-stage { height: auto; min-height: calc(100dvh - 76px); grid-template-rows: auto minmax(0, 1fr); }
  .topbar { position: sticky; top: 0; z-index: 15; padding: 12px 15px; }
  .home-header-clock { grid-template-columns: 34px auto; gap: 9px; }
  .home-header-clock > span { width: 34px; height: 34px; }
  .home-header-clock > span svg,
  .home-header-clock > span .app-icon { width: 1.9rem; height: 1.9rem; flex-basis: 1.9rem; }
  .home-header-clock strong { font-size: 1.65rem; }
  .home-header-clock small { display: none; }
  .topbar.home-mode .global-search,.topbar.home-mode .global-search:focus-within { width: min(240px,34vw); min-height: 48px; }
  .global-search { width: min(280px, 44vw); }
  .clock { display: none; }
  .profile-chip b { display: none; }
  .page-content { overflow: visible; }
  .on-tv-toolbar { flex-wrap: wrap; }
  .on-tv-type-tabs { flex: 1 1 440px; overflow-x: auto; }
  .on-tv-country { flex: 1 1 310px; margin-left: auto; }
  .home-hero { min-height: 310px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout, .radio-layout { grid-template-columns: 1fr; min-height: 0; }
  .category-panel { overflow-x: auto; }
  .catalog-layout > .category-panel,
  .radio-layout > .category-panel { position: static; height: auto; max-height: none; overflow-y: hidden; scrollbar-gutter: auto; }
  .category-panel h3 { display: none; }
  .category-list { display: flex; }
  .category-button { min-width: max-content; }
  .live-layout { height: auto; grid-template-columns: 1fr; }
  .live-categories { overflow-x: auto; }
  .live-categories .category-list { display: flex; }
  .live-tv-layout .live-categories { display: block; }
  .live-tv-layout .live-section-head { display: none; }
  .live-tv-layout .live-categories .category-list { display: flex; padding: 9px; overflow-x: auto; }
  .live-tv-layout .category-button { min-width: max-content; grid-template-columns: 24px auto auto; min-height: 48px; }
  .channel-panel { max-height: 360px; }
  .live-main { min-height: 680px; }
  .live-tv-layout .live-main { min-height: 720px; grid-template-rows: minmax(330px, 52vw) auto; }
  .programme-grid { grid-template-columns: 1fr; }
  .timeline-hours time:nth-of-type(even) { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .xtroplay-copyright { flex-direction: column; gap: 8px; }
  .match-row { grid-template-columns: 45px 65px 1fr 55px 1fr; padding-inline: 10px; }
  .match-row > img:last-child { display: none; }
  .sport-selector { min-width: 190px; }
  .sport-page { min-height: 0; grid-template-columns: 1fr; }
  .sport-left-column { grid-template-rows: auto auto; }
  .sport-match-head-controls { grid-template-columns: 1fr auto; }
  .sport-date-tabs { grid-column: 1 / -1; width: 100%; justify-content: flex-start; overflow-x: auto; }
  .sport-date-tabs .date-tab { flex: 1 0 max-content; }
  .sport-panel-title { min-height: 58px; }
  .sport-competition-list { max-height: none; display: flex; overflow-x: auto; }
  .sport-competition-button { min-width: 240px; }
  .sport-policy-note { display: none; }
  .sport-match-list { max-height: none; }
  .series-detail-modal, .movie-detail-modal { inset: 76px 0 0; padding: 0; }
  .series-detail-modal .modal-card, .movie-detail-modal .modal-card { height: calc(100dvh - 76px); }
  .series-detail-modal .modal-close, .movie-detail-modal .modal-close { top: 88px; right: 14px; }
  .series-detail-clock { display: none; }
  .series-detail-grid { min-height: calc(100dvh - 76px); grid-template-columns: 1fr; gap: 24px; padding: 30px 20px; }
  .series-poster-column { position: static; display: grid; grid-template-columns: minmax(150px,220px) minmax(0,1fr); align-items: start; gap: 20px; padding-top: 0; }
  .series-facts { margin-top: 0; }
  .series-detail-content { padding-top: 0; }
  .series-detail-content > h2 { font-size: clamp(2.7rem,10vw,5rem); }
  .cast-list { grid-template-columns: repeat(2,minmax(130px,1fr)); }
  .series-episode { grid-template-columns: 118px minmax(0,1fr) 44px; }
  .series-episode time { display: none; }
  .movie-detail-content { padding-top: 0; }
  .movie-info-panels { grid-template-columns: 1fr; }
  .home-dashboard-grid { grid-template-columns: 1fr; }
  .home-live-card { min-height: 310px; }
  .home-quick-panel { grid-template-columns: 1fr; }
  .home-quick-panel > h2 { padding: 5px 8px 13px; }
  .home-quick-panel > h2 br { display: none; }
  .home-quick-panel > div { grid-template-columns: repeat(4,minmax(90px,1fr)); }
  .home-quick-panel button { min-height: 92px; border-top: 1px solid rgba(255,255,255,.055); }
  .home-status-bar { overflow-x: auto; }
  .home-status-bar > span:not(.home-legal) { min-width: 190px; padding-inline: 18px; }
  .home-legal { min-width: 220px; }
}

@media (max-width: 560px) {
  .topbar { align-items: flex-start; }
  .topbar-actions { gap: 7px; }
  .global-search { position: absolute; left: 15px; right: 15px; top: 76px; width: auto; background: #15152b; }
  .page-content { padding-top: 73px; }
  .topbar.home-mode + .page-content { padding-top: 15px; }
  .topbar.home-mode { align-items: center; }
  .topbar.home-mode .global-search { position: static; width: 44px; min-height: 44px; }
  .topbar.home-mode .global-search:focus-within { position: absolute; z-index: 3; left: 12px; right: 12px; top: 70px; width: auto; background: #15152b; }
  .topbar.home-mode .home-header-action, .topbar.home-mode .profile-chip { width: 44px; height: 44px; min-height: 44px; }
  .topbar.home-mode .home-header-action:first-of-type { display: none; }
  .topbar.home-mode .profile-chip span { width: 36px; height: 36px; }
  .home-header-clock { grid-template-columns: auto; }
  .home-header-clock > span { display: none; }
  .home-header-clock strong { font-size: 1.45rem; }
  .feature-grid, .profile-stats { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .on-tv-toolbar { align-items: stretch; flex-direction: column; }
  .on-tv-type-tabs { overflow-x: auto; }
  .on-tv-type-tabs .date-tab { min-width: max-content; }
  .on-tv-country { min-width: 0; grid-template-columns: 1fr; }
  .on-tv-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-banner { grid-template-columns: auto 1fr; }
  .profile-banner .secondary-button { grid-column: 1 / -1; }
  .match-row { grid-template-columns: 50px 1fr 48px 1fr; }
  .match-row > img:first-child, .match-row > img:last-child { display: none; }
  .sports-main-toolbar { padding: 8px; }
  .sport-selector { min-width: 0; flex: 1; }
  .sports-refresh { width: 46px; height: 46px; flex-basis: 46px; }
  .sport-match-row { min-height: 112px; grid-template-columns: 62px minmax(0,1fr) 42px minmax(0,1fr); gap: 7px; padding: 9px; }
  .sport-match-row .team { display: grid; justify-items: center; gap: 4px; text-align: center; }
  .sport-match-row .team.away { justify-content: initial; text-align: center; }
  .sport-match-row .team img, .sport-match-row .team .image-fallback { width: 34px; height: 34px; flex-basis: 34px; }
  .sport-match-row .team span { width: 100%; font-size: .82rem; }
  .sport-match-row .score { font-size: .88rem; }
  .live-tv-layout .mini-player { min-height: 280px; border-radius: 18px; }
  .live-tv-layout .video-placeholder span { width: 82px; height: 82px; font-size: 2.2rem; }
  .live-tv-layout .mini-overlay { left: 14px; right: 58px; bottom: 53px; }
  .player-channel-logo, .image-fallback.player-channel-logo { width: 44px; height: 44px; }
  .programme-card-body { grid-template-columns: 66px minmax(0,1fr); }
  .series-detail-grid { padding-inline: 14px; }
  .series-poster-column { grid-template-columns: 132px minmax(0,1fr); gap: 14px; }
  .series-facts { gap: 8px; font-size: .78rem; }
  .series-facts > div { grid-template-columns: 62px minmax(0,1fr); gap: 7px; }
  .series-summary { font-size: .95rem; }
  .series-actions .primary-button, .series-actions .secondary-button { min-width: 0; flex: 1 1 145px; }
  .cast-list { grid-template-columns: 1fr; }
  .series-detail-modal .season-tabs { gap: 17px; }
  .series-episode { min-height: 88px; grid-template-columns: 94px minmax(0,1fr) 38px; gap: 10px; padding: 7px 9px 7px 7px; }
  .episode-visual { height: 68px; }
  .episode-copy small { -webkit-line-clamp: 1; }
  .episode-play { width: 36px; height: 36px; }
  .home-live-card { min-height: 285px; padding: 23px; }
  .home-live-copy > strong { font-size: 2.7rem; }
  .home-mini-grid { grid-template-columns: 1fr; }
  .home-service-card { min-height: 105px; }
  .home-quick-panel > div { grid-template-columns: repeat(2,minmax(90px,1fr)); }
  .home-recent-row { grid-auto-columns: 155px; }
}

@media (max-width: 1400px) {
  .radio-pro-workspace { grid-template-columns: minmax(195px,215px) minmax(290px,320px) minmax(430px,1fr); gap: 10px; }
  .radio-player-card { padding-inline: 20px; }
  .radio-logo-orbit { width: 102px; height: 102px; flex-basis: 102px; }
  .radio-volume { min-width: 112px; }
  .radio-volume input { width: 82px; }
  .radio-pro-category { grid-template-columns: 31px minmax(0,1fr) auto; padding-inline: 8px; }
}

@media (max-width: 1180px) {
  .radio-pro-page { height: calc(100dvh - 142px); grid-template-rows: minmax(0,1fr) 128px; }
  .radio-pro-workspace { grid-template-columns: 190px 275px minmax(410px,1fr); }
  .radio-main-column { grid-template-rows: minmax(300px,1fr) 190px; }
  .radio-player-card { grid-template-columns: 1fr; grid-template-rows: auto auto minmax(60px,1fr) auto; padding: 17px; }
  .radio-player-identity { gap: 14px; }
  .radio-logo-orbit { width: 84px; height: 84px; flex-basis: 84px; }
  .radio-player-controls { justify-content: flex-start; }
  .radio-player-controls .radio-main-play { width: 58px; height: 58px; flex-basis: 58px; }
  .radio-waveform { min-height: 58px; }
  .radio-detail-grid { gap: 9px; }
  .radio-info-panel,.radio-favorites-panel { padding: 11px; }
  .radio-info-panel dl > div { min-height: 31px; }
  .radio-favorites-panel .radio-compact-card { min-height: 44px; }
  .radio-favorites-panel .radio-compact-logo,.radio-favorites-panel .image-fallback.radio-compact-logo { width: 33px; height: 33px; }
  .radio-favorites-panel .radio-compact-card b { display: none; }
}

@media (max-width: 820px), (orientation: portrait) {
  .radio-pro-page { height: auto; display: grid; grid-template-rows: auto auto; }
  .radio-pro-workspace { grid-template-columns: 1fr; }
  .radio-pro-categories,.radio-stations-panel { height: auto; }
  .radio-pro-categories { grid-template-rows: auto auto; }
  .radio-pro-category-list { display: flex; overflow-x: auto; overflow-y: hidden; }
  .radio-pro-category { min-width: 205px; }
  .radio-station-list { max-height: 430px; }
  .radio-main-column { grid-template-rows: auto auto; }
  .radio-player-card { min-height: 410px; }
  .radio-detail-grid { min-height: 210px; }
  .radio-recent-panel { min-height: 145px; }
  .radio-recent-list { grid-auto-columns: minmax(220px,1fr); }
}

@media (max-width: 560px) {
  .radio-detail-grid { grid-template-columns: 1fr; }
  .radio-player-identity { align-items: flex-start; }
  .radio-logo-orbit { width: 72px; height: 72px; flex-basis: 72px; }
  .radio-player-identity h2 { font-size: 1.45rem; }
  .radio-player-controls { flex-wrap: wrap; }
  .radio-volume { min-width: 120px; flex: 1; }
  .radio-volume input { width: 100%; }
  .radio-waveform { gap: 2px; }
  .radio-waveform > i { min-width: 2px; }
}

/* Replay / Catch Up V10.23 — interface premium validée. */
.topbar.replay-mode .home-only { display: grid; }
.topbar.replay-mode .global-search { width: min(560px,40vw); min-height: 52px; border-radius: 15px; background: rgba(255,255,255,.045); }
.topbar.replay-mode .profile-chip { min-height: 52px; }
.topbar.replay-mode + .page-content { padding: 14px 16px 16px; overflow: hidden; }

.replay-layout { width: 100%; height: 100%; min-width: 0; display: grid; grid-template-columns: clamp(205px,14vw,245px) clamp(285px,20vw,350px) minmax(0,1fr); gap: 13px; }
.replay-loading > * { min-height: 100%; }
.replay-categories,.replay-channels,.replay-main { min-width: 0; min-height: 0; }
.replay-categories,.replay-channels { overflow: hidden; display: grid; grid-template-rows: auto minmax(0,1fr); border-radius: 21px; background: linear-gradient(180deg,rgba(7,17,38,.97),rgba(7,13,31,.95)); }
.replay-panel-head { min-height: 72px; display: grid; align-content: center; gap: 4px; padding: 12px 17px; border-bottom: 1px solid rgba(255,255,255,.075); }
.replay-panel-head strong { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.13rem; letter-spacing: -.02em; }
.replay-panel-head small { color: var(--text-secondary); font-size: .73rem; }

.replay-category-list,.replay-channel-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.replay-category-list { display: grid; align-content: start; gap: 7px; padding: 11px; }
.replay-category { width: 100%; min-width: 0; min-height: 57px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid transparent; border-radius: 14px; color: var(--text-secondary); background: transparent; cursor: pointer; text-align: left; }
.replay-category > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #ced8ed; background: rgba(255,255,255,.045); }
.replay-category > span .app-icon { width: 1.18rem; height: 1.18rem; }
.replay-category > b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.replay-category > i { min-width: 29px; padding: 4px 6px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; font-style: normal; text-align: center; font-size: .67rem; }
.replay-category:hover { color: white; background: rgba(255,255,255,.045); }
.replay-category.active { color: white; border-color: rgba(84,215,255,.55); background: linear-gradient(110deg,#3c57ef,#7049e2 58%,#079cad); box-shadow: 0 13px 30px rgba(46,60,211,.22); }
.replay-category.active > span,.replay-category.active > i { color: white; background: rgba(4,13,37,.22); }

.replay-channel-list { padding: 8px; }
.replay-channel { width: 100%; min-width: 0; min-height: 77px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto 25px; align-items: center; gap: 10px; margin-bottom: 6px; padding: 8px 10px; border: 1px solid transparent; border-radius: 14px; color: white; background: transparent; cursor: pointer; text-align: left; }
.replay-channel:hover { background: rgba(255,255,255,.045); }
.replay-channel.active { border-color: #5e63ff; background: linear-gradient(100deg,rgba(99,61,226,.84),rgba(18,103,167,.62)); box-shadow: inset 0 0 0 1px rgba(58,211,235,.14),0 12px 28px rgba(29,65,180,.22); }
.replay-channel-logo,.image-fallback.replay-channel-logo { width: 48px; height: 48px; aspect-ratio: 1; display: grid; place-items: center; object-fit: contain; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: white; background: linear-gradient(145deg,#6140e9,#0aa3bf); font-size: 1.3rem; font-weight: 900; }
.replay-channel > span { min-width: 0; display: grid; gap: 5px; }
.replay-channel > span strong { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .94rem; }
.replay-channel > span small { display: flex; align-items: center; gap: 5px; color: #b7bfd2; font-size: .67rem; }
.replay-channel > span small .app-icon { width: .9rem; height: .9rem; color: #43d8ee; }
.replay-channel > b { padding: 5px 7px; border-radius: 8px; color: #c9b9ff; background: rgba(117,77,231,.18); font-size: .67rem; white-space: nowrap; }
.replay-channel > i { display: grid; place-items: center; color: #9ca5bb; }
.replay-channel > i .app-icon { width: 1.08rem; height: 1.08rem; }

.replay-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(205px,29%) 55px minmax(0,1fr); gap: 11px; }
.replay-hero { min-height: 0; position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(20px,2.2vw,35px); border-radius: 21px; background: #07142c url('../img/live-player-wave-v2.png') center/cover no-repeat; box-shadow: inset 0 0 0 1px rgba(77,79,255,.34); }
.replay-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(4,13,32,.98) 0%,rgba(5,16,42,.85) 49%,rgba(30,10,64,.42)); }
.replay-hero-identity { min-width: 0; display: flex; align-items: center; gap: 20px; }
.replay-hero-logo,.image-fallback.replay-hero-logo { width: clamp(86px,7vw,118px); height: clamp(86px,7vw,118px); aspect-ratio: 1; flex: 0 0 auto; display: grid; place-items: center; object-fit: contain; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; color: white; background: linear-gradient(145deg,#236fff,#7139ed); box-shadow: 0 18px 42px rgba(0,0,0,.28); font-size: 2.8rem; font-weight: 950; }
.replay-hero-identity > div { min-width: 0; display: grid; justify-items: start; }
.replay-hero-identity h2 { max-width: 520px; margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: clamp(1.75rem,2.5vw,2.8rem); line-height: 1; letter-spacing: -.045em; }
.replay-hero-identity > div > strong { color: #31e2d1; font-size: .91rem; }
.replay-hero-identity > div > small { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--text-secondary); font-size: .76rem; }
.replay-resume { min-height: 45px; display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding-inline: 21px; }
.replay-resume .app-icon { width: 1.05rem; height: 1.05rem; }
.replay-resume:disabled { cursor: default; opacity: .55; filter: saturate(.5); box-shadow: none; }
.replay-availability { max-width: 255px; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 13px; padding: 16px; border: 1px solid rgba(75,176,255,.25); border-radius: 17px; background: rgba(3,13,36,.58); backdrop-filter: blur(12px); }
.replay-availability > .app-icon { width: 2.6rem; height: 2.6rem; color: #38daf2; }
.replay-availability b,.replay-availability small { display: block; }
.replay-availability b { font-size: .85rem; }
.replay-availability small { margin-top: 5px; color: var(--text-secondary); font-size: .67rem; line-height: 1.4; }

.replay-days { min-width: 0; display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-radius: 16px; padding: 5px; }
.replay-days::-webkit-scrollbar { display: none; }
.replay-day { min-width: 105px; min-height: 45px; flex: 1 0 auto; padding: 0 13px; border: 1px solid transparent; border-radius: 11px; color: var(--text-secondary); background: transparent; cursor: pointer; font-weight: 760; white-space: nowrap; }
.replay-day:hover { color: white; background: rgba(255,255,255,.045); }
.replay-day.active { color: white; border-color: rgba(87,111,255,.55); background: linear-gradient(115deg,#3b55ef,#744ae4); box-shadow: 0 9px 23px rgba(72,57,211,.22); }

.replay-programmes { min-height: 0; overflow-y: auto; border-radius: 21px; background: linear-gradient(145deg,rgba(8,20,43,.97),rgba(13,14,39,.94)); }
.replay-programme-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.075); }
.replay-programme-head .eyebrow { margin-bottom: 3px; font-size: .65rem; }
.replay-programme-head h3 { margin: 0; font-size: 1.18rem; text-transform: capitalize; }
.replay-programme-head > span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #c7c4d5; font-size: .7rem; }
.replay-groups { padding: 4px 14px 15px; }
.replay-group h4 { min-height: 44px; display: flex; align-items: center; gap: 9px; margin: 0; color: var(--accent-bright); font-size: .95rem; }
.replay-group h4 > span { color: #45daf0; }
.replay-group h4 > i { min-width: 25px; padding: 3px 6px; border-radius: 999px; color: #b8b4c9; background: rgba(255,255,255,.055); font-size: .62rem; font-style: normal; text-align: center; }
.replay-group > div { display: grid; }
.replay-programme { width: 100%; min-width: 0; min-height: 64px; display: grid; grid-template-columns: 90px minmax(0,1fr) 62px 38px; align-items: center; gap: 13px; padding: 8px 9px; border: 0; border-top: 1px solid rgba(255,255,255,.065); color: white; background: transparent; cursor: pointer; text-align: left; }
.replay-programme:hover { background: rgba(var(--accent-rgb),.085); }
.replay-programme time { display: grid; grid-template-columns: 1fr; color: #b99cff; font-size: .82rem; font-weight: 850; }
.replay-programme time small { margin-top: 3px; color: var(--text-muted); font-size: .66rem; font-weight: 650; }
.replay-programme > span { min-width: 0; display: grid; gap: 4px; }
.replay-programme > span strong,.replay-programme > span small { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replay-programme > span strong { font-size: .9rem; }
.replay-programme > span small { color: var(--text-secondary); font-size: .69rem; }
.replay-programme > b { color: #b7b3c8; font-size: .69rem; text-align: right; }
.replay-programme > i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--accent-bright); border-radius: 50%; color: white; background: rgba(var(--accent-rgb),.16); }
.replay-programme > i .app-icon { width: .95rem; height: .95rem; margin-left: 2px; }

@media (max-width: 1400px) {
  .replay-layout { grid-template-columns: 190px 270px minmax(0,1fr); gap: 10px; }
  .replay-category { padding-inline: 8px; }
  .replay-channel { grid-template-columns: 44px minmax(0,1fr) auto; }
  .replay-channel > i { display: none; }
  .replay-channel-logo,.image-fallback.replay-channel-logo { width: 44px; height: 44px; }
  .replay-availability { max-width: 210px; }
}

@media (max-width: 1100px) {
  .topbar.replay-mode .global-search { width: min(340px,34vw); }
  .replay-layout { grid-template-columns: 175px 235px minmax(0,1fr); }
  .replay-hero { padding: 18px; }
  .replay-availability { display: none; }
  .replay-programme { grid-template-columns: 76px minmax(0,1fr) 35px; }
  .replay-programme > b { display: none; }
}

@media (max-width: 980px) and (min-width: 821px) and (orientation: landscape) {
  .replay-layout { grid-template-columns: minmax(190px,225px) minmax(0,1fr); grid-template-rows: minmax(210px,34%) minmax(0,1fr); }
  .replay-categories { grid-column: 1; grid-row: 1; }
  .replay-channels { grid-column: 1; grid-row: 2; }
  .replay-main { grid-column: 2; grid-row: 1 / span 2; }
  .replay-panel-head { min-height: 62px; padding: 9px 13px; }
  .replay-category-list { padding: 8px; }
  .replay-category { min-height: 50px; grid-template-columns: 29px minmax(0,1fr) auto; gap: 7px; }
  .replay-category > span { width: 29px; height: 29px; }
  .replay-channel { min-height: 68px; grid-template-columns: 40px minmax(0,1fr) auto; padding: 6px 8px; }
  .replay-channel-logo,.image-fallback.replay-channel-logo { width: 40px; height: 40px; }
}

@media (max-height: 720px) and (min-width: 821px) {
  .replay-main { grid-template-rows: minmax(170px,27%) 51px minmax(0,1fr); gap: 8px; }
  .replay-hero { padding: 15px 18px; }
  .replay-hero-logo,.image-fallback.replay-hero-logo { width: 76px; height: 76px; border-radius: 18px; }
  .replay-hero-identity h2 { font-size: 1.65rem; }
  .replay-hero-identity > div > small { margin-top: 5px; }
  .replay-resume { min-height: 40px; margin-top: 8px; }
}

@media (max-width: 820px), (orientation: portrait) {
  .topbar.replay-mode + .page-content { padding: 12px; overflow: visible; }
  .topbar.replay-mode .home-header-action { display: none; }
  .replay-layout { height: auto; grid-template-columns: 1fr; }
  .replay-categories,.replay-channels { grid-template-rows: auto auto; }
  .replay-category-list { display: flex; overflow-x: auto; overflow-y: hidden; }
  .replay-category { min-width: 210px; }
  .replay-channel-list { max-height: 390px; }
  .replay-main { grid-template-rows: minmax(260px,auto) 57px minmax(420px,auto); }
  .replay-programmes { max-height: 650px; }
}

@media (max-width: 560px) {
  .topbar.replay-mode .global-search { position: absolute; left: 15px; right: 15px; top: 76px; width: auto; }
  .topbar.replay-mode + .page-content { padding-top: 73px; }
  .replay-hero-identity { gap: 13px; }
  .replay-hero-logo,.image-fallback.replay-hero-logo { width: 72px; height: 72px; border-radius: 17px; }
  .replay-hero-identity h2 { font-size: 1.55rem; }
  .replay-hero-identity > div > strong,.replay-hero-identity > div > small { display: none; }
  .replay-resume { margin-top: 10px; }
  .replay-programme { grid-template-columns: 65px minmax(0,1fr) 34px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.app-icon{display:inline-block;width:1em;height:1em;overflow:visible;vertical-align:-.14em}.nav-symbol .app-icon{width:1.35rem;height:1.35rem}.feature-icon .app-icon{width:1.8rem;height:1.8rem}

/* Live TV V10.21 — reproduction complète de la maquette premium validée. */
.topbar.live-mode .home-only { display: grid; }
.topbar.live-mode .global-search { width: min(700px, 46vw); min-height: 52px; border-radius: 15px; background: rgba(255,255,255,.045); }
.topbar.live-mode .profile-chip { width: 52px; min-width: 52px; min-height: 52px; justify-content: center; padding: 4px; border-radius: 50%; }
.topbar.live-mode .profile-chip span { width: 42px; height: 42px; border-radius: 50%; }
.topbar.live-mode .profile-chip b { display: none; }
.topbar.live-mode + .page-content { padding: 14px 16px 16px; overflow: hidden; }

.live-tv-layout { height: 100%; grid-template-columns: minmax(245px,260px) minmax(350px,375px) minmax(520px,1fr); gap: 14px; }
.live-tv-layout .live-categories,
.live-tv-layout .channel-panel { border-radius: 21px; background: linear-gradient(180deg,rgba(8,20,43,.97),rgba(7,16,36,.94)); }
.live-section-head,
.live-tv-layout .panel-title { min-height: 72px; }
.live-section-head { padding: 0 21px; }
.live-section-head strong,
.live-tv-layout .panel-title strong { font-size: 1.22rem; letter-spacing: -.02em; }
.live-tv-layout .panel-title { padding: 11px 16px; }
.live-tv-layout .panel-title small { max-width: 265px; margin-top: 5px; font-size: .74rem; }
.live-tv-layout .live-categories .category-list { gap: 7px; padding: 11px; }
.live-tv-layout .category-button { min-height: 60px; grid-template-columns: 30px minmax(0,1fr); gap: 12px; padding: 0 16px; border: 1px solid transparent; font-size: .91rem; }
.live-tv-layout .category-button > span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 760; }
.live-tv-layout .category-button.active { background: linear-gradient(108deg,#3955f2 0%,#704eea 58%,#0ba9c5 100%); border-color: rgba(74,204,255,.64); }
.category-icon .app-icon { width: 1.32rem; height: 1.32rem; }

.live-tv-layout .channel-list { padding: 7px 8px 14px; scrollbar-gutter: stable; }
.channel-row { min-height: 88px; margin-bottom: 6px; border-radius: 15px; }
.channel-row.active { background: linear-gradient(100deg,rgba(98,63,226,.9),rgba(17,111,176,.67)); border-color: #536eff; box-shadow: inset 0 0 0 1px rgba(73,213,240,.18),0 12px 30px rgba(27,70,195,.24); }
.live-tv-layout .channel-button { min-height: 86px; grid-template-columns: 54px minmax(0,1fr); gap: 12px; padding: 9px 78px 9px 10px; }
.channel-logo,.image-fallback.channel-logo { width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.09); background: linear-gradient(145deg,#5f31df,#068fab); }
.channel-copy { gap: 2px; }
.channel-copy strong { padding-right: 2px; font-size: .96rem; }
.channel-copy small { font-size: .72rem; }
.channel-copy .channel-remaining { color: #aab4cc; font-size: .66rem; }
.channel-progress { width: 94%; height: 4px; margin-top: 3px; }
.channel-live-badge { position: absolute; z-index: 3; top: 9px; right: 8px; padding: 4px 8px; border: 1px solid rgba(35,225,190,.22); border-radius: 999px; color: #25dfba; background: rgba(5,39,48,.72); font-size: .58rem; font-weight: 900; text-transform: uppercase; pointer-events: none; }
.channel-favorite { top: auto; right: 8px; bottom: 8px; transform: none; }

.live-tv-layout .live-main { grid-template-rows: minmax(345px,53%) minmax(315px,1fr); gap: 14px; }
.live-tv-layout .mini-player { min-height: 0; display: block; border-radius: 24px; border-color: #2a65ff; background: #020817; box-shadow: 0 0 0 1px rgba(182,48,255,.72),0 22px 70px rgba(0,0,0,.38); }
.live-tv-layout .mini-player::after { display: none; }
.live-video-stage { width: 100%; height: 100%; position: relative; min-height: 0; isolation: isolate; overflow: hidden; background: #020817 url('../img/live-player-wave-v2.png') center/cover no-repeat; }
.live-video-stage::after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg,rgba(1,7,25,.12),rgba(1,5,17,.03) 45%,rgba(0,4,15,.28)); pointer-events: none; }
.live-tv-layout .live-video-stage video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.live-player-status { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 6px; color: #24dfbb; font-size: .7rem; font-weight: 900; white-space: nowrap; }
.live-player-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.live-player-toggle { position: absolute; z-index: 5; left: 50%; top: 50%; width: 92px; height: 92px; display: grid; place-items: center; transform: translate(-50%,-50%); border: 2px solid rgba(72,203,255,.72); border-radius: 50%; color: white; background: rgba(5,16,44,.48); box-shadow: 0 0 50px rgba(73,67,255,.35); backdrop-filter: blur(7px); cursor: pointer; transition: opacity .18s ease,transform .18s ease,background .18s ease; }
.live-player-toggle:hover,.live-player-toggle:focus-visible { transform: translate(-50%,-50%) scale(1.07); background: rgba(63,45,168,.7); }
.live-player-toggle .app-icon { width: 2.4rem; height: 2.4rem; }
.mini-player.is-playing .live-player-toggle { opacity: 0; }
.mini-player.is-playing:hover .live-player-toggle,.mini-player.is-playing .live-player-toggle:focus-visible { opacity: 1; }

.live-tv-layout .epg-panel { min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr); padding: 0; border-radius: 21px; overflow: hidden; background: linear-gradient(145deg,rgba(9,22,46,.96),rgba(14,14,41,.92)); }
.live-tv-layout .epg-panel.no-live-selection { grid-template-rows: minmax(0,1fr); }
.live-channel-summary { min-height: 84px; display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(100deg,rgba(11,27,57,.96),rgba(14,18,45,.95)); }
.epg-channel-logo,.image-fallback.epg-channel-logo { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; object-fit: contain; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; color: white; background: linear-gradient(145deg,#4961ec,#1595b2); font-size: 1.4rem; font-weight: 950; }
.live-channel-copy { min-width: 0; flex: 1 1 auto; }
.live-channel-title-row { min-width: 0; display: flex; align-items: center; gap: 12px; }
.live-channel-title-row strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 1.12rem; }
.live-channel-copy > small { display: block; margin-top: 7px; color: #aab4ca; font-size: .76rem; }
.live-channel-meta { display: flex; align-items: center; justify-content: flex-end; gap: 15px; flex: 0 0 auto; }
.live-channel-date { display: inline-flex; align-items: center; gap: 7px; color: #aeb8cc; font-size: .72rem; text-transform: capitalize; white-space: nowrap; }
.live-channel-date .app-icon { width: 1rem; height: 1rem; }
.epg-programmes { min-height: 0; overflow-y: auto; }
.live-connection-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #efb858; background: rgba(255,184,57,.06); font-size: .7rem; font-weight: 800; }
.live-connection-status .app-icon { width: 1rem; height: 1rem; }
.live-connection-status.good { color: #33df9d; background: rgba(35,210,142,.08); }
.live-connection-status.bad { color: #ff677c; background: rgba(255,79,103,.08); }
.programme-grid { gap: 11px; padding: 11px 12px 9px; }
.programme-card { min-height: 145px; padding: 14px 15px 30px; }
.programme-badge { min-width: 105px; }
.programme-card-body { grid-template-columns: 70px minmax(0,1fr); gap: 12px; margin-top: 11px; }
.programme-card h3 { font-size: 1rem; }
.programme-card p { font-size: .72rem; }
.programme-progress { left: 15px; right: 110px; bottom: 13px; }
.epg-timeline { min-height: 102px; display: block; margin: 0 12px 12px; padding: 10px 14px; }
.timeline-hours { height: 80px; padding: 0; }
.timeline-hours > time { position: relative; z-index: 2; }
.timeline-programmes { position: absolute; z-index: 1; top: 24px; left: 0; right: 0; height: 48px; }
.timeline-programme { position: absolute; top: 0; bottom: 0; min-width: 0; padding: 6px 9px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: rgba(21,33,61,.8); }
.timeline-programme.current { border-color: rgba(33,216,179,.42); background: linear-gradient(100deg,rgba(10,116,130,.38),rgba(38,43,103,.72)); }
.timeline-programme b,.timeline-programme small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-programme b { font-size: .67rem; }
.timeline-programme small { margin-top: 4px; color: #a9b3c9; font-size: .58rem; }
.timeline-marker { z-index: 3; top: 17px; bottom: 1px; background: #dce8ff; }

@media (max-width: 1400px) {
  .live-tv-layout { grid-template-columns: minmax(220px,235px) minmax(310px,335px) minmax(470px,1fr); gap: 11px; }
  .live-tv-layout .category-button { min-height: 55px; padding-inline: 12px; }
  .live-tv-layout .channel-button { padding-right: 72px; }
  .live-player-toggle { width: 78px; height: 78px; }
  .live-channel-date { display: none; }
}

@media (max-width: 1180px) {
  .topbar.live-mode .global-search { width: min(430px,42vw); }
  .live-tv-layout { grid-template-columns: 210px 290px minmax(430px,1fr); }
  .live-tv-layout .channel-button { min-height: 78px; grid-template-columns: 46px minmax(0,1fr); }
  .channel-logo,.image-fallback.channel-logo { width: 44px; height: 44px; }
}

@media (max-width: 820px), (orientation: portrait) {
  .topbar.live-mode + .page-content { padding: 12px; overflow: visible; }
  .topbar.live-mode .global-search { width: min(280px,44vw); }
  .topbar.live-mode .home-header-action { display: none; }
  .live-tv-layout { height: auto; grid-template-columns: 1fr; }
  .live-tv-layout .live-categories .category-list { display: flex; gap: 7px; overflow-x: auto; }
  .live-tv-layout .category-button { min-width: max-content; grid-template-columns: 25px auto; }
  .live-tv-layout .channel-panel { max-height: 430px; }
  .live-tv-layout .live-main { min-height: 790px; grid-template-rows: minmax(330px,52vw) auto; }
  .live-channel-meta { display: flex; }
}

@media (max-width: 560px) {
  .topbar.live-mode .global-search { position: absolute; left: 15px; right: 15px; top: 76px; width: auto; }
  .topbar.live-mode + .page-content { padding-top: 73px; }
  .live-channel-summary { min-height: 72px; gap: 9px; padding: 8px 10px; }
  .epg-channel-logo,.image-fallback.epg-channel-logo { width: 48px; height: 48px; }
  .live-channel-title-row { gap: 7px; }
  .live-channel-title-row strong { font-size: .92rem; }
  .live-player-status { display: inline-flex; font-size: .62rem; }
  .live-channel-meta { display: none; }
  .live-player-toggle { width: 70px; height: 70px; }
  .programme-grid { grid-template-columns: 1fr; }
  .timeline-programme b { font-size: .6rem; }
}
