* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Montserrat', sans-serif; background: radial-gradient(circle at 50% 50%, #2a053c 0%, #0d0015 100%); color: #ffffff; overflow: hidden; width: 100vw; height: 100vh; user-select: none; }

.screen { display: none !important; width: 100vw; height: 100vh; position: absolute; top: 0; left: 0; }
.screen.active { display: flex !important; }

/* PIN KUTUSU EKLENTİLERİ */
.pin-dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #d946ef; background: transparent; transition: all 0.2s ease; }
.pin-dot.filled { background: #d946ef; box-shadow: 0 0 10px #d946ef; }

/* GİRİŞ EKRANI */
#login-screen { justify-content: center; align-items: center; z-index: 999; }
.login-box { background: rgba(20, 3, 30, 0.95); border: 1.5px solid rgba(210, 120, 240, 0.3); border-radius: 20px; padding: 40px; width: 480px; text-align: center; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7); outline: none; }
.brand { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 20px; }
.brand h2 { font-size: 32px; font-weight: 900; }
.brand h2 span { color: #f43f5e; }
.input-group { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }
.login-input { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 14px; color: #ffffff; font-size: 15px; outline: none; }
.login-input:focus { border-color: #d946ef; background: rgba(217, 70, 239, 0.1); box-shadow: 0 0 15px rgba(217, 70, 239, 0.5); }
.login-btn { background: linear-gradient(90deg, #d946ef, #881337); border: none; border-radius: 12px; padding: 16px; color: #ffffff; font-size: 18px; font-weight: 700; cursor: pointer; outline: none; margin-top: 10px; }
.login-btn:focus { transform: scale(1.03); box-shadow: 0 0 20px rgba(217, 70, 239, 0.8); background: linear-gradient(90deg, #f43f5e, #c084fc); }
.error-msg { color: #f43f5e; font-size: 14px; margin-top: 15px; opacity: 0; transition: opacity 0.2s ease; min-height: 20px; }
.error-msg.visible { opacity: 1; }

/* ANA EKRAN */
#home-screen { flex-direction: column; justify-content: space-between; padding: 15px 30px 20px 30px; position: relative !important; }
.header { display: flex; justify-content: space-between; align-items: center; width: 100%; z-index: 10; height: 45px; }
.logo-box { display: flex; align-items: center; gap: 10px; }
.logo-icon { color: #f43f5e; font-size: 26px; }
.logo-text { font-size: 22px; font-weight: 900; line-height: 1; display: flex; gap: 6px; align-items: center; }
.logo-text span { color: #f43f5e; }
.header-right { display: flex; align-items: center; }
.clock { font-size: 20px; font-weight: 700; color: #f8fafc; }
.home-main { flex: 1; display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: calc(100vh - 75px); }

.subscription-expiry-badge { position: absolute; right: 30px; bottom: 20px; background: rgba(20, 3, 30, 0.85); border: 1px solid rgba(210, 120, 240, 0.3); color: #cbd5e1; font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 10px; backdrop-filter: blur(5px); z-index: 10; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); }

.hero-slider { width: 100%; height: 48vh; border-radius: 16px; position: relative; overflow: hidden; border: 1.5px solid rgba(210, 120, 240, 0.3); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); background: #08000f; margin-top: 5px; }
.slider-backdrop { width: 100%; height: 100%; background-size: cover; background-position: center; transition: background-image 0.8s ease-in-out; filter: brightness(0.8); }
.slider-overlay-content { position: absolute; bottom: 25px; left: 40px; display: flex; flex-direction: column; gap: 8px; z-index: 2; max-width: 60%; background: rgba(10, 2, 16, 0.85); padding: 15px 20px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); }
.slider-badge { background: linear-gradient(90deg, #f43f5e, #d946ef); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px; width: fit-content; }
.slider-title { font-size: 20px; font-weight: 800; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slider-meta { display: flex; align-items: center; gap: 12px; }
.slider-rating { color: #f59e0b; font-size: 13px; font-weight: 800; }
.slider-category { color: #cbd5e1; font-size: 11px; font-weight: 600; }
.slider-dots { position: absolute; bottom: 15px; right: 25px; display: flex; gap: 6px; z-index: 3; }
.slider-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transition: all 0.3s ease; }
.slider-dot.active { background: #f43f5e; width: 18px; border-radius: 6px; box-shadow: 0 0 8px #f43f5e; }

/* Samsung TV eski web motorlari icin yatay ana menu; simulatordeki yerlesim. */
.home-grid {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
  align-items: stretch;
  width: 100%;
  margin: auto 0;
}
.home-grid .xc-btn {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 24%;
  flex: 0 0 24%;
  width: 24%;
  min-width: 0;
}

.xc-btn { background: linear-gradient(180deg, rgba(140, 70, 160, 0.85) 0%, rgba(70, 20, 90, 0.95) 100%); border: 1.5px solid rgba(210, 120, 240, 0.45); border-radius: 16px; height: 105px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; color: #ffffff; cursor: pointer; outline: none; transition: 0.2s; }
.xc-btn:focus, .xc-btn:hover { transform: translateY(-5px) scale(1.03); border-color: #f0abfc; box-shadow: 0 0 25px rgba(217, 70, 239, 0.9); }

/* AYARLAR EKRANI */
#settings-screen { background: radial-gradient(circle at 50% 50%, #2a053c 0%, #08000f 100%); width: 100vw; height: 100vh; padding: 30px 60px; display: flex; flex-direction: column; }
.settings-container { width: 100%; max-width: 100%; display: flex; flex-direction: column; flex: 1; gap: 25px; }
.settings-header { display: flex; align-items: center; justify-content: center; position: relative; border-bottom: 2px solid rgba(255, 255, 255, 0.1); padding-bottom: 20px; margin-top: 5px; }
.settings-back-btn { position: absolute; left: 0; background: rgba(140, 70, 160, 0.3); border: 2px solid rgba(210, 120, 240, 0.4); color: #ffffff; width: 60px; height: 60px; border-radius: 14px; cursor: pointer; font-size: 26px; display: flex; align-items: center; justify-content: center; outline: none; transition: 0.2s; }
.settings-back-btn:focus { background: #d946ef; border-color: #f43f5e; box-shadow: 0 0 20px rgba(244, 63, 94, 0.8); transform: scale(1.05); }
.settings-main-title { font-size: 34px; font-weight: 900; color: #ffffff; text-transform: uppercase; letter-spacing: 2px; }

.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; width: 100%; height: 100%; align-content: center; margin-bottom: 20px; }
.setting-box { background: rgba(45, 12, 65, 0.7); border: 2px solid rgba(210, 120, 240, 0.35); border-radius: 20px; height: 125px; padding: 0 40px; display: flex; align-items: center; gap: 25px; cursor: pointer; outline: none; transition: all 0.2s ease; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.setting-box-full { grid-column: span 2; }
.setting-icon { font-size: 40px; }
.setting-text { font-size: 22px; font-weight: 800; color: #ffffff; flex: 1; text-align: left; }
.setting-val { font-size: 18px; font-weight: 800; color: #d8b4fe; background: rgba(192, 132, 252, 0.2); padding: 10px 20px; border-radius: 12px; border: 1px solid rgba(192, 132, 252, 0.3); white-space: nowrap; }
.setting-box:focus, .setting-box:hover { background: linear-gradient(90deg, rgba(217, 70, 239, 0.6) 0%, rgba(136, 19, 55, 0.7) 100%); border-color: #f43f5e; box-shadow: 0 0 35px rgba(244, 63, 94, 0.9); transform: scale(1.02); z-index: 10; }

/* ARAMA KUTUSU STİLLERİ */
.search-input { background: rgba(45, 12, 65, 0.85); border: 2px solid rgba(210, 120, 240, 0.35); border-radius: 14px; padding: 14px 25px; color: #ffffff; font-size: 16px; font-weight: 700; outline: none; width: 70%; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); }
.search-input:focus { background: linear-gradient(90deg, rgba(217, 70, 239, 0.3) 0%, rgba(136, 19, 55, 0.4) 100%); border-color: #f43f5e; box-shadow: 0 0 25px rgba(244, 63, 94, 0.9); transform: scale(1.02); }
.search-input::placeholder { color: #d8b4fe; font-weight: 600; opacity: 0.8; }

/* PANEL DÜZENİ */
#livetv-screen, #movies-screen, #series-screen { gap: 12px; padding: 15px; background: #0a0110; height: 100vh; }
.panel { background: rgba(20, 3, 30, 0.85); border: 1.5px solid rgba(210, 120, 240, 0.2); border-radius: 14px; display: flex; flex-direction: column; padding: 12px; height: calc(100vh - 30px); }
.categories-panel { width: 26% !important; }
#livetv-screen .channels-panel { width: 32%; }
#livetv-screen .player-panel { width: 42%; gap: 12px; }
#movies-screen .movies-poster-panel, #series-screen .movies-poster-panel { width: 74% !important; }

.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.panel-title { font-size: 15px; font-weight: 800; color: #d946ef; text-transform: uppercase; }
.back-btn { background: rgba(140, 70, 160, 0.3); border: 1px solid rgba(210, 120, 240, 0.4); color: #ffffff; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 700; outline: none; }
.back-btn:focus { background: #d946ef; }

.list-container { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; scroll-behavior: smooth; }
.empty-state { width:100%; text-align: center; color: #64748b; font-size: 15px; margin-top: 40px; grid-column: 1 / -1; }

.category-item { display: flex; align-items: center; justify-content: flex-start; gap: 14px; background: rgba(255, 255, 255, 0.05); border: 1.5px solid rgba(255, 255, 255, 0.1); border-radius: 14px; min-height: 68px; padding: 0 18px; cursor: pointer; outline: none; transition: all 0.15s ease; flex-shrink: 0; }
.category-item .channel-name { font-size: 20px; font-weight: 800; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; flex: 1; }
.cat-count-badge { background: rgba(217, 70, 239, 0.3); border: 1px solid rgba(217, 70, 239, 0.6); color: #f0abfc; font-size: 14px; font-weight: 800; padding: 6px 10px; border-radius: 8px; min-width: 52px; text-align: center; flex-shrink: 0; }
.category-item.selected-category { background: rgba(168, 85, 247, 0.35); border-color: #a855f7; }
.category-item:focus { background: linear-gradient(90deg, rgba(217, 70, 239, 0.55) 0%, rgba(136, 19, 55, 0.65) 100%); border-color: #f43f5e; box-shadow: 0 0 20px rgba(244, 63, 94, 0.8); transform: scale(1.02); z-index: 5; }

.channel-item { display: flex; align-items: center; justify-content: flex-start; gap: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; min-height: 60px; padding: 0 14px; cursor: pointer; outline: none; transition: all 0.15s ease; flex-shrink: 0; }
.channel-item .channel-name { font-size: 18px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.channel-item:focus, .channel-item.playing-channel { background: linear-gradient(90deg, rgba(217, 70, 239, 0.45) 0%, rgba(136, 19, 55, 0.55) 100%); border-color: #f43f5e; box-shadow: 0 0 15px rgba(244, 63, 94, 0.6); transform: scale(1.01); }
.ch-fav-star { font-size: 18px; color: rgba(255, 255, 255, 0.25); padding: 4px 6px; border-radius: 6px; transition: all 0.2s ease; flex-shrink: 0; }
.ch-fav-star.is-fav { color: #f43f5e; text-shadow: 0 0 8px rgba(244, 63, 94, 0.8); }
.ch-fav-star:hover { transform: scale(1.25); color: #f43f5e; }

/* KUKİ PLAYER: TV tarayicilarinda Grid yerine 4 sutunlu Flexbox.
   Filmler ve Diziler ayni afis bileşenini kullanir. */
.movies-grid-container {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-align-content: flex-start;
    align-content: flex-start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    padding: 10px 2px;
    scroll-behavior: smooth;
}
.movie-card {
    /* 4 sutun: 16px toplam yatay bosluk (8px sag + 8px sol) */
    -webkit-flex: 0 0 calc(25% - 16px);
    flex: 0 0 calc(25% - 16px);
    width: calc(25% - 16px);
    max-width: calc(25% - 16px);
    min-width: 0;
    margin: 8px;
    background: rgba(15, 2, 25, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    cursor: pointer;
    outline: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    height: 330px;
}
.movie-poster { width: 100%; height: 240px; object-fit: contain; background: #08000f; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.movie-info { padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; justify-content: center; background: rgba(20, 3, 30, 0.98); }
.movie-title { font-size: 11px; font-weight: 700; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.movie-rating { font-size: 11px; color: #f59e0b; font-weight: 800; }
.movie-card:focus, .movie-card.active { border-color: #f43f5e; box-shadow: 0 0 25px rgba(244, 63, 94, 0.9); transform: scale(1.05); background: rgba(217, 70, 239, 0.25); z-index: 10; }

/* ======================================================== */
/* SAMSUNG TV / TAM EKRANI DOLDURAN FİLM & DİZİ DETAY TASARIMI      */
/* ======================================================== */
#movie-detail-screen, #series-detail-screen { position: relative; width: 100vw; height: 100vh; background: #000000; overflow: hidden; display: none; flex-direction: column; padding: 40px 60px; }
.movie-backdrop-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; filter: brightness(0.35); z-index: 1; }
.detail-top-nav { position: relative; z-index: 10; margin-bottom: 15px; flex-shrink: 0; }
.back-icon-btn { background: transparent; border: none; color: #ffffff; font-size: 36px; font-weight: 900; cursor: pointer; outline: none; }
.back-icon-btn:focus { color: #f43f5e; text-shadow: 0 0 15px #f43f5e; }

.movie-detail-body-fullscreen { position: relative; z-index: 10; display: flex; gap: 55px; align-items: flex-start; flex: 1; overflow: hidden; }
.detail-left-poster { width: 280px; height: 390px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95); flex-shrink: 0; border: 2.5px solid rgba(255, 255, 255, 0.3); background: #111; }
.detail-left-poster img { width: 100%; height: 100%; object-fit: cover; }

.detail-right-info { flex: 1; display: flex; flex-direction: column; gap: 16px; max-width: 72%; }
.detail-title-stars { display: flex; justify-content: space-between; align-items: center; }
.detail-title-stars h1 { font-size: 42px; font-weight: 900; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.5px; }
.detail-stars-box { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.stars-gold { color: #f59e0b; font-size: 20px; letter-spacing: 2px; }
.rating-num { color: #ffffff; font-size: 22px; font-weight: 900; }

.detail-sub-meta { display: flex; flex-direction: column; gap: 6px; color: #e2e8f0; font-size: 17px; font-weight: 700; }
.detail-description { font-size: 16px; color: #cbd5e1; line-height: 1.65; max-height: 180px; overflow-y: auto; padding-right: 10px; font-weight: 500; }

.detail-action-btns-center { display: flex; justify-content: center; gap: 30px; margin-top: auto; padding-bottom: 20px; width: 100%; }
.btn-red-action-big { background: #e11d48; border: none; border-radius: 14px; color: #ffffff; font-size: 20px; font-weight: 900; padding: 16px 50px; cursor: pointer; outline: none; transition: 0.2s; box-shadow: 0 8px 25px rgba(225, 29, 72, 0.6); }
.btn-red-action-big:focus, .btn-red-action-big:hover { background: #f43f5e; box-shadow: 0 0 35px rgba(244, 63, 94, 0.95); transform: scale(1.06); }

.btn-fav-action-big { background: rgba(255, 255, 255, 0.15); border: 2px solid rgba(210, 120, 240, 0.5); border-radius: 14px; color: #ffffff; font-size: 20px; font-weight: 900; padding: 16px 50px; cursor: pointer; outline: none; transition: 0.2s; backdrop-filter: blur(5px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); }
.btn-fav-action-big:focus, .btn-fav-action-big:hover { background: #d946ef; border-color: #f43f5e; box-shadow: 0 0 35px rgba(244, 63, 94, 0.95); transform: scale(1.06); }
.btn-fav-action-big.is-fav { background: #22c55e; border-color: #86efac; }

/* DİZİ SEZON & BÖLÜM STİLLERİ */
.series-detail-content-area { position: relative; z-index: 10; display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.seasons-tabs-row { display: flex; gap: 12px; margin: 10px 0; overflow-x: auto; padding-bottom: 5px; }
.season-tab-btn { background: rgba(140, 70, 160, 0.35); border: 1.5px solid rgba(210, 120, 240, 0.4); color: #ffffff; font-size: 14px; font-weight: 800; padding: 8px 22px; border-radius: 8px; cursor: pointer; outline: none; transition: 0.2s; flex-shrink: 0; }
.season-tab-btn:focus, .season-tab-btn.active-season { background: #e11d48; border-color: #f0abfc; box-shadow: 0 0 15px rgba(225, 29, 72, 0.9); transform: scale(1.05); }

.episodes-list-container { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 5px; }
.episode-row-item { display: flex; align-items: center; gap: 15px; background: rgba(225, 29, 72, 0.25); border: 1.5px solid rgba(225, 29, 72, 0.6); border-radius: 12px; padding: 10px 15px; cursor: pointer; outline: none; transition: 0.2s; }
.episode-row-item:focus, .episode-row-item:hover { background: rgba(225, 29, 72, 0.6); border-color: #f0abfc; box-shadow: 0 0 20px rgba(225, 29, 72, 0.9); transform: scale(1.01); }
.episode-thumb { width: 110px; height: 65px; border-radius: 8px; object-fit: cover; background: #000; border: 1px solid rgba(255,255,255,0.2); flex-shrink: 0; }
.episode-title-text { font-size: 16px; font-weight: 700; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.ep-resume-badge { font-size: 12px; font-weight: 800; color: #fde047; background: rgba(0, 0, 0, 0.5); padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(253, 224, 71, 0.4); flex-shrink: 0; }

/* OYNATICI VE KONTROLLER */
#movie-player-screen.screen { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; background: #000000 !important; z-index: 999999 !important; display: none !important; }
#movie-player-screen.screen.active { display: block !important; }
.movie-fullscreen-video { position: absolute !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; object-fit: contain !important; background: #000000 !important; z-index: 100000 !important; }

.player-ui-overlay { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; pointer-events: none; transition: opacity 0.4s ease; z-index: 200000 !important; }
.player-ui-overlay.hidden { opacity: 0; cursor: none; }
.player-ui-overlay * { pointer-events: auto; }

.player-top-controls { position: absolute; top: 25px; right: 35px; display: flex; gap: 15px; }
.player-ctrl-btn { background: rgba(15, 2, 25, 0.85); border: 1.5px solid rgba(210, 120, 240, 0.4); color: #ffffff; font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 8px; cursor: pointer; outline: none; backdrop-filter: blur(5px); }
.player-ctrl-btn:focus, .player-ctrl-btn:hover { background: #d946ef; border-color: #f43f5e; box-shadow: 0 0 15px rgba(244, 63, 94, 0.8); }

.player-bottom-controls { position: absolute; bottom: 35px; left: 5%; right: 5%; display: flex; align-items: center; gap: 15px; background: rgba(15, 2, 25, 0.85); padding: 15px 25px; border-radius: 12px; border: 1.5px solid rgba(210, 120, 240, 0.4); backdrop-filter: blur(5px); }
.player-bottom-controls span { color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.progress-bar-bg { flex: 1; height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; position: relative; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #f43f5e, #d946ef); width: 0%; transition: width 0.1s linear; }

.player-pop-menu { position: absolute; top: 75px; right: 35px; z-index: 200001; background: rgba(18, 3, 28, 0.95); border: 1.5px solid rgba(210, 120, 240, 0.5); border-radius: 12px; padding: 15px; width: 280px; display: none; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.9); }
.player-pop-menu.active { display: flex; }
.player-pop-menu h4 { font-size: 14px; color: #d946ef; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.pop-list { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; }
.pop-item { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #fff; cursor: pointer; outline: none; }
.pop-item:focus, .pop-item.selected { background: #f43f5e; border-color: #f0abfc; box-shadow: 0 0 10px rgba(244, 63, 94, 0.7); }

.player-container { position: relative; width: 100%; height: 280px; background: #000; border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(210, 120, 240, 0.35); flex-shrink: 0; }
.player-video { width: 100%; height: 100%; object-fit: contain; }
.player-overlay { position: absolute; top: 12px; right: 12px; left: 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.fs-hint { background: rgba(0,0,0,0.65); color: #f1f5f9; font-size: 10px; padding: 4px 8px; border-radius: 6px; }
.epg-container { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(210, 120, 240, 0.2); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; height: 100%; overflow-y: auto; }
.epg-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; gap: 10px; }
.epg-header h3 { font-size: 16px; font-weight: 800; color: #f43f5e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.epg-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.epg-fav-btn { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(210, 120, 240, 0.35); color: #ffffff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 6px; cursor: pointer; outline: none; transition: 0.2s; }
.epg-fav-btn:focus, .epg-fav-btn:hover { background: #e11d48; border-color: #f0abfc; box-shadow: 0 0 10px rgba(225, 29, 72, 0.8); }
.epg-fav-btn.is-fav { background: #22c55e; border-color: #86efac; }
.epg-time-range { font-size: 12px; font-weight: 700; color: #c084fc; background: rgba(192, 132, 252, 0.15); padding: 4px 10px; border-radius: 6px; }
.epg-program-box { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.epg-label { font-size: 10px; font-weight: 800; color: #d946ef; }
.epg-title { font-size: 15px; font-weight: 700; color: #f8fafc; }
.epg-desc { font-size: 12px; color: #cbd5e1; line-height: 1.5; flex: 1; overflow-y: auto; max-height: 150px; background: rgba(0,0,0,0.2); padding: 8px 10px; border-radius: 8px; }
.epg-next-box { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.3); padding: 8px 12px; border-radius: 10px; border: 1px dashed rgba(255,255,255,0.15); margin-top: auto; }
.epg-next-label { font-size: 10px; font-weight: 800; color: #f43f5e; }
.epg-next-title { font-size: 12px; color: #e2e8f0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 6px; }
.badge-red { background: #e11d48; color: #fff; }
.player-container.fullscreen { position: fixed !important; top: 0 !important; left: 0 !important; width: 100vw !important; height: 100vh !important; z-index: 99999 !important; border-radius: 0 !important; border: none !important; }

/* ======================================================== */
/* KUKİ PLAYER - YASAL BİLGİLENDİRME VE CİHAZ EKRANLARI     */
/* ======================================================== */
#legal-screen, #device-screen {
    z-index: 2000000;
    align-items: center;
    justify-content: center;
    padding: 3vh 4vw;
    background:
        radial-gradient(ellipse at 15% 15%, rgba(217,70,239,0.22), transparent 42%),
        radial-gradient(ellipse at 85% 85%, rgba(244,63,94,0.18), transparent 42%),
        linear-gradient(135deg, #100018 0%, #190525 48%, #08000f 100%);
}
.legal-shell, .device-shell {
    width: min(1180px, 92vw);
    height: 92vh;
    display: flex;
    flex-direction: column;
    padding: 30px 42px 26px;
    border: 1.5px solid rgba(217,70,239,0.42);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(31,8,45,0.97), rgba(12,2,20,0.98));
    box-shadow: 0 20px 70px rgba(0,0,0,0.65), 0 0 35px rgba(217,70,239,0.12);
    overflow: hidden;
}
.legal-brand { display:flex; align-items:center; justify-content:center; gap:14px; flex-shrink:0; margin-bottom:16px; }
.legal-logo-icon { color:#f43f5e; font-size:42px; line-height:1; text-shadow:0 0 22px rgba(244,63,94,0.55); }
.legal-brand-name { font-size:30px; line-height:1.1; font-weight:900; letter-spacing:1px; }
.legal-brand-name span { color:#f43f5e; }
.legal-brand-subtitle { color:#c084fc; font-size:10px; font-weight:800; letter-spacing:4px; margin-top:5px; }
.legal-heading { text-align:center; font-size:25px; line-height:1.3; font-weight:900; letter-spacing:1.2px; color:#fff; margin:4px 0 8px; }
.legal-heading span { color:#e879f9; }
.legal-intro { text-align:center; color:#d8b4fe; font-size:14px; font-weight:600; margin-bottom:15px; flex-shrink:0; }
.legal-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:8px 22px 14px 8px; border-top:1px solid rgba(255,255,255,0.1); border-bottom:1px solid rgba(255,255,255,0.1); scrollbar-width:thin; scrollbar-color:#d946ef rgba(255,255,255,0.08); outline:none; }
.legal-scroll::-webkit-scrollbar { width:9px; }
.legal-scroll::-webkit-scrollbar-track { background:rgba(255,255,255,0.06); border-radius:8px; }
.legal-scroll::-webkit-scrollbar-thumb { background:linear-gradient(#d946ef,#f43f5e); border-radius:8px; }
.legal-section { margin:13px 0 18px; }
.legal-section h3 { color:#f0abfc; font-size:17px; font-weight:900; margin-bottom:7px; }
.legal-section p, .legal-note { color:#e2d6eb; font-size:14px; line-height:1.75; font-weight:500; }
.legal-note { color:#a78bba; font-size:11px; margin:18px 0 5px; }
.legal-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-top:17px; flex-shrink:0; }
.legal-scroll-hint { color:#c4b5fd; font-size:12px; font-weight:600; }
.legal-accept-btn { min-width:330px; min-height:58px; padding:0 28px; border:1px solid rgba(255,255,255,0.25); border-radius:13px; color:#fff; background:linear-gradient(90deg,#d946ef 0%,#be185d 100%); font-size:15px; font-weight:900; letter-spacing:0.4px; cursor:pointer; outline:none; box-shadow:0 8px 25px rgba(217,70,239,0.25); transition:all .2s ease; }
.legal-accept-btn:focus, .legal-accept-btn:hover { transform:scale(1.04); border-color:#fbcfe8; background:linear-gradient(90deg,#f43f5e 0%,#c084fc 100%); box-shadow:0 0 28px rgba(244,63,94,0.7); }
.device-shell { align-items:center; justify-content:center; text-align:center; max-width:900px; height:auto; min-height:650px; padding:48px 60px; }
.device-icon { display:flex; align-items:center; justify-content:center; width:90px; height:90px; border-radius:24px; margin:18px 0 20px; color:#fff; font-size:52px; background:linear-gradient(135deg,#d946ef,#881337); box-shadow:0 0 35px rgba(217,70,239,0.35); }
.device-shell h1 { color:#fff; font-size:30px; font-weight:900; letter-spacing:2px; margin-bottom:14px; }
.device-description { max-width:650px; color:#d8b4fe; font-size:15px; line-height:1.7; margin-bottom:30px; }
.device-id-card { width:100%; max-width:650px; padding:22px 25px; border:1px solid rgba(217,70,239,0.5); border-radius:16px; background:rgba(217,70,239,0.09); display:flex; flex-direction:column; gap:12px; }
.device-id-card span { color:#c084fc; font-size:12px; font-weight:900; letter-spacing:2px; }
.device-id-card strong { color:#fff; font-size:25px; font-weight:900; letter-spacing:2px; overflow-wrap:anywhere; }
.device-footnote { color:#a78bba; font-size:12px; line-height:1.6; max-width:650px; margin:20px 0 28px; }
.device-status { display:flex; align-items:center; gap:10px; padding:12px 18px; border-radius:30px; background:rgba(244,63,94,0.1); border:1px solid rgba(244,63,94,0.28); color:#fda4af; font-size:11px; font-weight:900; letter-spacing:1px; }
.status-dot { width:9px; height:9px; border-radius:50%; background:#f43f5e; box-shadow:0 0 12px #f43f5e; }
@media (max-width: 900px) {
    .legal-shell { width:96vw; height:96vh; padding:18px 20px; }
    .legal-heading { font-size:19px; }
    .legal-footer { flex-direction:column; }
    .legal-accept-btn { width:100%; min-width:0; }
    .legal-scroll-hint { text-align:center; }
    .device-shell { width:96vw; padding:30px 20px; }
    .device-id-card strong { font-size:18px; }
}

.legal-accept-btn:disabled { opacity:0.38; filter:grayscale(0.65); cursor:not-allowed; box-shadow:none; transform:none; }

/* ================================================================
   KUKİ PLAYER / 05 - GERCEK SAMSUNG TV'DE SIMULATOR FILM-DIZI DUZENI
   Yalnizca film/dizi LISTE ekranlarini etkiler.
   Eski Samsung Chromium surumlerinde flex-gap / CSS Grid yoksa da:
   solda kategoriler, sagda dort esit afis sutunu korunur.
   ================================================================ */
#movies-screen.screen.active,
#series-screen.screen.active {
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-flex-direction: row;
    flex-direction: row;
    overflow: hidden;
}

#movies-screen .categories-panel,
#series-screen .categories-panel {
    width: 26% !important;
    -webkit-flex: 0 0 26%;
    flex: 0 0 26%;
    min-width: 0;
    margin-right: 12px; /* eski TV'de flex gap desteklenmese de aralik */
}

#movies-screen .movies-poster-panel,
#series-screen .movies-poster-panel {
    width: auto !important;
    -webkit-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
}

#movies-screen .movies-grid-container,
#series-screen .movies-grid-container {
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-align-content: flex-start;
    align-content: flex-start;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 2px;
}

#movies-screen .movies-grid-container > .movie-card,
#series-screen .movies-grid-container > .movie-card {
    -webkit-flex: 0 0 calc(25% - 16px);
    flex: 0 0 calc(25% - 16px);
    width: calc(25% - 16px);
    max-width: calc(25% - 16px);
    min-width: 0;
    height: 330px;
    margin: 8px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}

#movies-screen .movie-poster,
#series-screen .movie-poster {
    width: 100%;
    height: 240px;
    -webkit-flex: 0 0 240px;
    flex: 0 0 240px;
    object-fit: contain;
}

#movies-screen .movie-info,
#series-screen .movie-info {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

/* SAMSUNG TV – AVPlay canli yayin kucuk onizleme goruntu alani */
.player-container.avplay-active {
    background: transparent !important;
}
.player-container.avplay-active .player-video {
    display: none !important;
}
.player-container .kuki-live-avplay-object {
    display: none;
}
.player-container.avplay-active .kuki-live-avplay-object {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    z-index: 0;
    pointer-events: none;
}
.player-container.avplay-active .player-overlay {
    z-index: 2;
}


/* HATA 7: Samsung Tizen / LG webOS uyumlu ebeveyn PIN ekrani.
   Kendi sayisal klavyesi sayesinde platform IME'sine zorunlu baglilik yok. */
#pin-screen.screen.active {
    display: -webkit-flex !important;
    display: flex !important;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 20px;
}
#pin-screen .login-box {
    width: 600px;
    max-width: 92vw;
    max-height: 95vh;
    overflow-y: auto;
    padding: 22px 30px 26px;
    background: rgba(20, 3, 30, 0.97);
}
#pin-screen .brand { margin-bottom: 8px; }
#pin-screen .brand h2 { font-size: 27px; }
#pin-screen #pin-desc { margin-bottom: 12px !important; font-size: 16px; }
#pin-screen #pin-dots { margin-bottom: 5px !important; }
#pin-screen .pin-dot { width: 19px; height: 19px; }
#pin-screen #pin-error { min-height: 22px; margin-top: 6px; }
.kuki-pin-hint { font-size: 14px; color: #ddd0f1; margin: 7px 0 12px; line-height: 1.4; }
#kuki-pin-keypad { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; width: 100%; -webkit-justify-content: space-between; justify-content: space-between; }
.kuki-pin-key { width: 32%; height: 58px; margin: 0 0 9px; font-size: 24px; font-weight: 800; color: #fff; border: 2px solid rgba(210,120,240,.45); border-radius: 11px; background: #411653; cursor: pointer; outline: none; }
.kuki-pin-delete { font-size: 18px; background: #512138; }
.kuki-pin-confirm { font-size: 18px; background: #76245a; }
.kuki-pin-tools { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; margin: 4px 0 8px; }
.kuki-pin-tool-btn { width: 49%; height: 50px; border: 2px solid rgba(210,120,240,.45); border-radius: 10px; background: #301344; color: #fff; font-size: 15px; font-weight: 800; outline: none; cursor: pointer; }
.kuki-pin-key:focus, .kuki-pin-tool-btn:focus, .kuki-pin-key:hover, .kuki-pin-tool-btn:hover { background: #b324a0; border-color: #fff; box-shadow: 0 0 20px rgba(217,70,239,.9); }
.kuki-pin-native-label { display: block; margin: 8px 0 6px; text-align: left; font-size: 13px; color: #dccbea; }
.kuki-pin-native-input { display: block; width: 100%; height: 44px; border: 2px solid rgba(210,120,240,.5); border-radius: 9px; background: #16051e; color: #fff; text-align: center; font-size: 22px; letter-spacing: 9px; outline: none; }
.kuki-pin-native-input:focus { border-color: #fff; box-shadow: 0 0 12px rgba(217,70,239,.7); }
@media (max-height: 650px) {
    #pin-screen .login-box { padding: 10px 22px; }
    .kuki-pin-key { height: 44px; margin-bottom: 6px; }
    .kuki-pin-tool-btn { height: 42px; }
    .kuki-pin-hint { margin: 4px 0 7px; }
}


/* KUKI PLAYER - Yeni Hata 1: Dizi bolum listesinde eski Samsung TV uyumlulugu
   Her bolum kendi yuksekligini korur. Liste kayar, satirlar sikismaz. */
#series-detail-screen .series-detail-content-area {
    min-height: 0;
}
#series-detail-screen .episodes-list-container {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 6px 12px 16px 4px;
}
#series-detail-screen .episode-row-item {
    min-height: 92px;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    margin: 0 0 12px 0; /* Eski TV'lerde flex gap desteklenmeyebilir */
    padding: 10px 16px;
    -webkit-align-items: center;
    align-items: center;
    outline: none;
}
#series-detail-screen .episode-thumb {
    width: 118px;
    height: 70px;
    -webkit-flex: 0 0 118px;
    flex: 0 0 118px;
    margin-right: 16px; /* Flex gap olmadan afis-yazi araligi */
}
#series-detail-screen .episode-title-text {
    display: block;
    min-width: 0;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    max-height: 52px;
    overflow: hidden;
    overflow-wrap: break-word;
}
#series-detail-screen .episode-row-item:focus {
    background: rgba(225, 29, 72, 0.65);
    border-color: #ffffff;
    box-shadow: 0 0 18px rgba(225, 29, 72, 0.75);
}


/* KUKİ PLAYER – film/dizi alt oynatıcı kontrolleri ve TV tam ekran düzeltmesi. */
#movie-player-screen.screen, #movie-player-screen.screen.active {
    overflow: hidden !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#movie-player-screen::-webkit-scrollbar,
#movie-player-screen *::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
#movie-player-screen .player-ui-overlay.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden;
}
#movie-player-screen .player-ui-overlay.hidden * { pointer-events: none !important; }
#movie-player-screen .player-ui-overlay { visibility: visible; }
#movie-player-screen .player-bottom-controls {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 22px 14px;
    min-height: 95px;
    overflow: hidden;
}
#movie-player-screen .player-bottom-controls > .progress-bar-bg {
    min-width: 30%;
    -webkit-flex: 1 1 30%;
    flex: 1 1 30%;
}
.kuki-vod-controls {
    width: 100%;
    display: -webkit-flex;
    display: flex;
    justify-content: center;
    -webkit-justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    margin-top: 8px;
}
.kuki-vod-action {
    height: 38px;
    min-width: 118px;
    margin: 0 10px;
    border: 1px solid #ba7ccc;
    border-radius: 9px;
    background: #522064;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    outline: none;
}
.kuki-vod-action:focus, .kuki-vod-action:hover {
    background: #b324a0;
    border: 2px solid #ffffff;
    box-shadow: 0 0 12px #b324a0;
}
#kuki-vod-avplay-object {
    position: absolute !important;
    left: 0; top: 0; width: 100%; height: 100%;
    z-index: 100005;
    display: none;
    pointer-events: none;
}
#kuki-vod-subtitles {
    /* <br> yerine çevrilen satır sonlarını gerçek satır sonu olarak göster. */
    white-space: pre-line;
    position: absolute;
    bottom: 9%; left: 8%; right: 8%;
    z-index: 110000;
    color: white;
    text-align: center;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.4;
    text-shadow: 1px 2px 5px black, -1px -1px 5px black;
    pointer-events: none;
}
#kuki-playback-status {
    position: absolute;
    left: 50%; top: 12%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 210000;
    max-width: 75%;
    padding: 8px 14px;
    font-size: 17px;
    text-align: center;
    border-radius: 10px;
    color: white;
    background: rgba(70,20,80,.90);
    border: 1px solid #d946ef;
    pointer-events: none;
}


/* KUKİ PLAYER – 2026-11-12: gerçek Samsung TV dizi sezonları ve oynatıcı durumu */
/* Sezon sekmeleri sabit yüksekliği korur; yalnızca bölüm listesi kayar. */
#series-detail-screen .series-detail-content-area {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    height: calc(100vh - 130px);
    min-height: 0;
    overflow: hidden;
}
#series-detail-screen .movie-detail-body {
    -webkit-flex: 0 1 auto;
    flex: 0 1 auto;
    max-height: calc(100% - 210px);
    min-height: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
#series-detail-screen .seasons-tabs-row {
    -webkit-flex: 0 0 54px;
    flex: 0 0 54px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 54px;
    min-height: 54px;
    margin: 0 0 8px;
    padding: 6px 8px;
    position: relative;
    z-index: 30;
    background: rgba(24, 3, 37, 0.95);
    border-radius: 9px;
    -webkit-align-items: center;
    align-items: center;
}
#series-detail-screen .episodes-list-container {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 2;
    margin-top: 0;
}
/* İşlem durumunu sadece oynatıcı alt çubuğunda göster. */
#movie-player-screen .player-ui-overlay.kuki-buffering-visible,
#movie-player-screen .player-ui-overlay.kuki-buffering-visible.hidden {
    visibility: visible !important;
    opacity: 1 !important;
}
#movie-player-screen #kuki-vod-buffering {
    display: none;
    width: 100%;
    text-align: center;
    color: #fae8ff;
    font-size: 15px;
    font-weight: 700;
    padding: 2px 0 4px;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
}
#movie-player-screen .player-ui-overlay.kuki-buffering-visible .player-top-controls,
#movie-player-screen .player-ui-overlay.kuki-buffering-visible .kuki-vod-controls {
    opacity: 0;
    pointer-events: none;
}
/* Yüklenirken video üzerinde tam ekran kapatan bir görsel yok. */
/* Dizi özetini kesmeden sezon/bolum alanlarına sabit yer ayir. */
#series-detail-screen .movie-detail-body {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    max-height: calc(100% - 290px);
}
#series-detail-screen .detail-left-poster {
    width: 185px;
    height: 23vh;
    max-height: 250px;
}
#series-detail-screen .detail-right-info {
    max-width: 95%;
    gap: 7px;
}
#series-detail-screen .detail-title-stars h1 { font-size: 31px; }
#series-detail-screen .detail-sub-meta { font-size: 14px; line-height: 1.3; gap: 2px; }
#series-detail-screen .detail-description {
    font-size: 14px;
    line-height: 1.35;
    max-height: 62px;
    overflow: hidden;
}
#series-detail-screen .detail-action-btns-center { margin-top: 4px; padding-bottom: 6px; }
#series-detail-screen .btn-fav-action-big { padding: 9px 26px; font-size: 16px; }

/* KUKİ PLAYER – altyazı rengi/boyutu seçenekleri: eski Samsung Tizen uyumu */
#settings-screen .settings-container { gap: 12px; min-height: 0; }
#settings-screen .settings-grid {
    display: -webkit-flex; display: flex;
    -webkit-flex-wrap: wrap; flex-wrap: wrap;
    -webkit-align-content: center; align-content: center;
    -webkit-flex: 1 1 auto; flex: 1 1 auto;
    gap: 0; margin-bottom: 0; height: auto; min-height: 0;
    padding: 4px 0; overflow-y: auto;
}
#settings-screen .setting-box {
    box-sizing: border-box;
    -webkit-flex: 0 0 calc(50% - 16px);
    flex: 0 0 calc(50% - 16px);
    width: calc(50% - 16px);
    height: 104px; min-height: 86px;
    margin: 8px; padding: 0 24px; gap: 14px;
}
#settings-screen .setting-box-full { -webkit-flex-basis: calc(100% - 16px); flex-basis: calc(100% - 16px); }
#settings-screen .setting-icon { font-size: 30px; }
#settings-screen .setting-text { font-size: 20px; }
#settings-screen .setting-val { font-size: 17px; padding: 8px 14px; }
#movie-player-screen #kuki-vod-subtitles {
    white-space: pre-line; white-space: pre-wrap;
    overflow-wrap: break-word; max-height: 31%; overflow: hidden;
    line-height: 1.28;
    text-shadow: -2px -2px 3px #000, 2px -2px 3px #000,
                 -2px 2px 3px #000, 2px 2px 3px #000;
}
@media(max-height:760px) {
    #settings-screen { padding: 17px 30px; }
    #settings-screen .settings-header { padding-bottom: 8px; }
    #settings-screen .setting-box { height: 80px; min-height: 76px; margin: 5px 8px; }
    #settings-screen .setting-text { font-size: 17px; }
    #settings-screen .setting-icon { font-size: 24px; }
    #settings-screen .setting-val { font-size: 14px; }
}


/* KUKİ PLAYER - 16:9 tam ekran eşleştirme arayüzü (Samsung Tizen) */
#device-screen.screen { width:100vw !important; height:100vh !important; padding:0 !important; overflow:hidden !important; display:none !important; }
#device-screen.screen.active { display:flex !important; }
#device-screen .device-shell { position:relative !important; display:flex !important; flex-direction:column !important; width:100vw !important; max-width:none !important; min-width:0 !important; height:100vh !important; min-height:0 !important; max-height:none !important; padding:2.6vh 4vw 2.3vh !important; margin:0 !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; box-sizing:border-box !important; background:radial-gradient(ellipse at 50% 20%, #391448 0%, #1a092b 58%, #090414 100%) !important; overflow:hidden !important; }
#device-screen .kuki-device-content { width:100%; min-height:0; flex:1 1 auto; display:flex; flex-direction:column; justify-content:center; align-items:center; overflow-y:auto; text-align:center; padding:4px 0; }
#device-screen .legal-brand { display:flex; align-items:center; justify-content:center; margin:0 0 1.4vh !important; gap:18px; flex:0 0 auto; }
#device-screen .kuki-ready-logo { width:95px; height:95px; object-fit:contain; flex-shrink:0; }
#device-screen .legal-brand-name { font-size:43px; font-weight:900; line-height:1.1; }
#device-screen .legal-brand-subtitle { font-size:15px; margin-top:7px; letter-spacing:3px; }
#device-screen .device-icon { display:none !important; }
#device-screen h1 { font-size:46px; font-weight:900; letter-spacing:2px; margin:0 0 1vh !important; }
#device-screen .device-description { font-size:21px; line-height:1.4; width:88%; max-width:1100px; margin:0 0 2vh !important; }
#device-screen .pairing-code-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; background:rgba(164,58,202,0.11); border:2px solid rgba(214,74,239,0.75); border-radius:18px; width:720px; max-width:80vw; padding:16px 32px; min-height:130px; margin:0 0 2.1vh !important; box-sizing:border-box; }
#device-screen .pairing-code-card span { color:#dda9f3; font-size:18px; font-weight:900; letter-spacing:2px; }
#device-screen #pairing-code-value { display:block; color:#fff; font-size:82px !important; line-height:1.08; letter-spacing:0.19em !important; font-family:Arial,sans-serif; font-weight:900; white-space:nowrap; text-align:center; }
#device-screen .kuki-device-actions { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:13px; width:450px; max-width:80vw; margin:0 0 1.9vh; }
#device-screen .kuki-device-actions button { display:block; width:100%; min-height:64px; padding:12px 20px; border-radius:13px; color:#fff; font-size:22px; font-weight:900; cursor:pointer; outline:none; box-sizing:border-box; transition:background .15s ease, box-shadow .15s ease; }
#device-screen #btn-retry-pairing { background:linear-gradient(95deg,#cb37ea,#931dba) !important; border:2px solid #dd80f1 !important; opacity:1 !important; }
#device-screen .kuki-demo-button { background:rgba(114,39,152,0.3); border:2px solid #bd70e0; }
#device-screen .kuki-device-actions button:focus, #device-screen .kuki-device-actions button:hover { border-color:#fff !important; background:#d946ef !important; box-shadow:0 0 0 4px rgba(255,255,255,0.75),0 0 32px rgba(217,70,239,.7) !important; transform:scale(1.025); }
#device-screen .device-status { flex:0 0 auto; font-size:15px; text-transform:none; letter-spacing:0; padding:9px 18px; max-width:83vw; text-align:center; }
#device-screen .kuki-demo-message { color:#ffcfec; margin:8px 0; font-size:15px; }
#device-screen .kuki-device-disclaimer { display:block; position:static !important; flex:0 0 auto; width:100%; margin:6px 0 0 !important; padding:9px 12px 2px; font-size:17px; font-weight:700; line-height:1.45; color:#e9d8f0; border-top:1px solid rgba(216,141,242,.25); text-align:center; box-sizing:border-box; }
@media (max-height:760px) {
 #device-screen .kuki-ready-logo {width:64px;height:64px;}
 #device-screen .legal-brand-name {font-size:30px;}
 #device-screen .legal-brand-subtitle {font-size:11px;}
 #device-screen h1 {font-size:31px;}
 #device-screen .device-description {font-size:16px;}
 #device-screen .pairing-code-card {min-height:88px;padding:8px 14px;margin-bottom:8px !important;}
 #device-screen .pairing-code-card span {font-size:14px;}
 #device-screen #pairing-code-value {font-size:54px !important;}
 #device-screen .kuki-device-actions {gap:9px;margin-bottom:9px;}
 #device-screen .kuki-device-actions button {min-height:48px;font-size:17px;}
 #device-screen .device-status {font-size:12px;}
 #device-screen .kuki-device-disclaimer {font-size:13px;padding:6px;}
}
@media (max-width:1000px) {
 #device-screen .kuki-ready-logo {width:68px;height:68px;}
 #device-screen .legal-brand-name {font-size:31px;}
 #device-screen .pairing-code-card {max-width:94vw;}
 #device-screen #pairing-code-value {font-size:55px !important;letter-spacing:.13em !important;}
 #device-screen .kuki-device-actions {max-width:86vw;}
}

#device-screen .kuki-device-actions button + button { margin-top:13px; }
@media (max-height:760px) { #device-screen .kuki-device-actions button + button { margin-top:9px; } }

/* === KUKİ PLAYER | 2017 model Tizen 3.0 / Chromium 47 fallback ===
   CSS Grid ve Flexbox gap bu motorda yok. 2018-2026 stilleri degismez.
   Sezon listesi, afis duzeni ve Ayarlar'a onceki yamalar dokunulmadan kalir. */
html.kuki-tizen-2017 .brand > * + * { margin-left:12px; }
html.kuki-tizen-2017 .input-group > * + * { margin-top:15px; }
html.kuki-tizen-2017 .logo-box > * + * { margin-left:10px; }
html.kuki-tizen-2017 .logo-text > * + * { margin-left:6px; }
html.kuki-tizen-2017 .slider-overlay-content > * + * { margin-top:8px; }
html.kuki-tizen-2017 .slider-meta > * + *,
html.kuki-tizen-2017 .detail-stars-box > * + * { margin-left:12px; }
html.kuki-tizen-2017 .slider-dots > * + * { margin-left:6px; }
html.kuki-tizen-2017 #livetv-screen > * + *,
html.kuki-tizen-2017 #movies-screen > * + *,
html.kuki-tizen-2017 #series-screen > * + * { margin-left:12px; }
html.kuki-tizen-2017 .list-container > * + * { margin-top:10px; }
html.kuki-tizen-2017 .category-item > * + * { margin-left:14px; }
html.kuki-tizen-2017 .channel-item > * + * { margin-left:12px; }
html.kuki-tizen-2017 .movie-info > * + * { margin-top:4px; }
html.kuki-tizen-2017 .movie-detail-body-fullscreen > * + * { margin-left:36px; }
html.kuki-tizen-2017 .detail-right-info > * + * { margin-top:14px; }
html.kuki-tizen-2017 .detail-sub-meta > * + * { margin-top:6px; }
html.kuki-tizen-2017 .detail-action-btns-center > * + * { margin-left:24px; }
html.kuki-tizen-2017 .seasons-tabs-row > * + * { margin-left:12px; }
html.kuki-tizen-2017 .player-top-controls > * + * { margin-left:15px; }
html.kuki-tizen-2017 .player-bottom-controls > * + * { margin-left:9px; }
html.kuki-tizen-2017 .player-pop-menu > * + * { margin-top:10px; }
html.kuki-tizen-2017 .pop-list > * + * { margin-top:8px; }
html.kuki-tizen-2017 .epg-container > * + * { margin-top:10px; }
html.kuki-tizen-2017 .epg-program-box > * + * { margin-top:8px; }
html.kuki-tizen-2017 .legal-brand > * + * { margin-left:14px; }
html.kuki-tizen-2017 .legal-footer > * + * { margin-left:16px; }
html.kuki-tizen-2017 .device-id-card > * + * { margin-top:12px; }
html.kuki-tizen-2017 .device-status > * + * { margin-left:10px; }
html.kuki-tizen-2017 #device-screen .legal-brand > * + * { margin-left:18px; }
html.kuki-tizen-2017 #device-screen .pairing-code-card > * + * { margin-top:9px; }
/* settings-grid ve afislerdeki mevcut margins, bolum listelerinde mevcut 12px zaten var. */

/* LG V5: ana ekranda GERİ tuşuyla açılan çıkış onayı. */
.kuki-exit-dialog{position:fixed;inset:0;z-index:2147483646;display:flex;align-items:center;justify-content:center;background:rgba(4,0,12,.87);padding:30px;box-sizing:border-box}
.kuki-exit-dialog.hidden{display:none!important}
.kuki-exit-box{width:min(770px,90vw);padding:45px 50px;border:2px solid #b24bdd;border-radius:22px;background:linear-gradient(135deg,#30113d,#170a23);box-shadow:0 22px 85px #000;color:#fff;text-align:center}
.kuki-exit-brand{font-weight:900;color:#e06bfa;font-size:22px;letter-spacing:2px}
.kuki-exit-box h2{color:#fff;font-size:clamp(25px,3vw,39px);margin:24px 0 15px}
.kuki-exit-box p{color:#e2d6ec;font-size:clamp(15px,1.3vw,19px);line-height:1.5}
.kuki-exit-actions{display:flex;gap:18px;margin-top:30px;justify-content:center}
.kuki-exit-actions button{padding:18px 25px;min-width:210px;border:2px solid #bb67df;border-radius:14px;background:#452052;color:white;font-size:20px;font-weight:800;cursor:pointer}
.kuki-exit-actions button:last-child{background:#92254f;border-color:#f36d97}
.kuki-exit-actions button:focus{outline:4px solid #fff;outline-offset:4px;box-shadow:0 0 25px #d946ef}
#kuki-exit-status{font-size:14px;color:#ffbacb;min-height:1.2em}
@media(max-width:700px){.kuki-exit-box{padding:25px 16px}.kuki-exit-actions{flex-direction:column}.kuki-exit-actions button{min-width:0;width:100%}}

/* KUKI PLAYER webOS 1280x720 HD layout refinements.
   Scoped to HD viewport; original FHD source remains unchanged. */
@media screen and (max-width: 1366px) and (max-height: 800px) {
  .screen { max-width: 100vw; max-height: 100vh; }
  #home-screen { padding: 10px 22px 14px; }
  .header { height: 38px; min-height: 38px; }
  .home-main { height: calc(100vh - 58px); min-height: 0; }
  .hero-slider { height: 43vh; min-height: 0; }
  .slider-overlay-content { bottom: 12px; left: 22px; padding: 10px 14px; }
  .slider-title { font-size: 17px; }
  .subscription-expiry-badge { right: 20px; bottom: 12px; }
  #login-screen .login-box { max-height: 94vh; overflow-y: auto; padding: 22px 30px; }
  #settings-screen { overflow-y: auto; }
  #settings-screen .setting-box { height: 76px; min-height: 70px; }
  #device-screen .kuki-device-content { min-height: 0; }
  #device-screen .pairing-code-card { max-width: 76vw; }
  #device-screen #pairing-code-value { letter-spacing: .12em !important; }
  #demo-screen { padding: 16px 3vw; }
  #demo-screen .demo-grid { min-height: 0; }
  #demo-screen .demo-items { max-height: 60vh; }
  #demo-screen video { max-height: 53vh; }
}


/* Titan OS V2: QR and pairing side by side; no additional remote focus targets. */
#device-screen .kuki-pairing-row {display:flex;align-items:center;justify-content:center;width:92%;max-width:1320px;flex:0 0 auto;margin:0 auto;box-sizing:border-box;}
#device-screen .kuki-pairing-left {flex:1 1 55%;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;}
#device-screen .kuki-pairing-left .pairing-code-card {width:100%;max-width:560px;}
#device-screen .kuki-pairing-left .kuki-device-actions {width:85%;max-width:450px;}
#device-screen .kuki-pairing-left .device-status {max-width:100%;box-sizing:border-box;}
#device-screen .kuki-qr-card {flex:0 1 36%;min-width:0;box-sizing:border-box;margin-left:3vw;padding:20px 15px;text-align:center;border:2px solid rgba(214,74,239,.55);border-radius:18px;background:rgba(98,29,126,.16);}
#device-screen .kuki-qr-title {font-size:22px;font-weight:900;color:#fff;margin:0 0 12px;}
#device-screen .kuki-qr-image {display:block;width:220px;height:220px;max-width:90%;object-fit:contain;margin:0 auto 10px;background:white;}
#device-screen .kuki-qr-url {font-size:23px;font-weight:900;color:white;overflow-wrap:break-word;}
#device-screen .kuki-qr-text,#device-screen .kuki-qr-note {font-size:16px;line-height:1.4;color:#ecd7f6;margin:10px 0 0;}
@media(max-height:800px),(max-width:1366px){
 #device-screen .kuki-qr-card{padding:12px 10px;}
 #device-screen .kuki-qr-title{font-size:17px;margin-bottom:8px;}
 #device-screen .kuki-qr-image{width:166px;height:166px;margin-bottom:6px;}
 #device-screen .kuki-qr-url{font-size:19px;}
 #device-screen .kuki-qr-text,#device-screen .kuki-qr-note{font-size:13px;margin-top:6px;}
}
@media(max-width:720px){
 #device-screen .kuki-pairing-row{width:96%;}
 #device-screen .kuki-qr-card{margin-left:2vw;flex-basis:40%;}
 #device-screen .kuki-qr-image{width:120px;height:120px;}
 #device-screen .kuki-qr-url{font-size:14px;}
 #device-screen .kuki-qr-title{font-size:14px;}
 #device-screen #pairing-code-value{font-size:36px !important;letter-spacing:.08em !important;}
 #device-screen .pairing-code-card{padding:8px;}
 #device-screen .pairing-code-card span{font-size:12px;}
}

/* V4 — Android V15.1-inspired shared premium TV playback UI. */
#home-screen .v4-home-logo{width:38px;height:38px;object-fit:contain;flex-shrink:0}
.list-container,.episodes-list-container,.movies-grid-container,.pop-list{overflow-x:hidden;scrollbar-width:none;min-width:0}
.list-container::-webkit-scrollbar,.episodes-list-container::-webkit-scrollbar,.movies-grid-container::-webkit-scrollbar,.pop-list::-webkit-scrollbar{display:none;width:0;height:0}
.list-container .category-item,.list-container .channel-item{max-width:100%;min-width:0;flex-shrink:0}
.kuki-demo-active #slider-backdrop{background-size:auto 88%;background-repeat:no-repeat;background-position:72% center;background-color:#1b0b26;filter:none}
.v4-loading.screen.active{display:flex!important;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:radial-gradient(ellipse at 50% 35%,#3d0b3c,#13061f 65%,#080412);padding:4vh 5vw;z-index:1200;overflow:hidden}
.v4-loading:before,.v4-loading:after{content:'';position:absolute;left:-10%;width:120%;height:14vh;border:3px solid #f00094;border-radius:50%;box-shadow:0 0 20px #ed1195;pointer-events:none;opacity:.7;transform:rotate(-4deg)}
.v4-loading:before{top:-11vh}.v4-loading:after{bottom:-11vh;transform:rotate(4deg)}
.v4-loading-logo{position:relative;width:28vh;height:28vh;max-width:230px;max-height:230px;display:flex;align-items:center;justify-content:center;margin-bottom:2vh}
.v4-loading-logo:before{content:'';position:absolute;inset:0;border-radius:50%;border:6px solid #63104b;border-top-color:#ff38b1;border-right-color:#ff1099;box-shadow:0 0 18px #f51b9c;animation:v4-spin 1.4s linear infinite}
.v4-loading-logo img{width:72%;height:72%;object-fit:contain}.v4-loading h1{font-size:clamp(27px,4vw,60px);font-weight:900;margin:0 0 6vh;letter-spacing:.02em}
.v4-stages{display:flex;width:86%;max-width:1200px;padding:2.4vh 2vw;border:1px solid #e972c6;border-radius:24px;background:linear-gradient(180deg,#552044,#271128);box-shadow:0 0 25px #92115d,inset 0 0 16px #6d235d;justify-content:space-between}
.v4-stage{display:flex;align-items:center;text-align:left;flex:1;min-width:0;justify-content:center}.v4-stage + .v4-stage{border-left:1px solid #8b4c80}.v4-stage b{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border:2px solid #986c93;border-radius:50%;font-size:26px;margin-right:14px;color:#f6e1ef;flex:none}.v4-stage strong{display:block;font-size:clamp(15px,1.65vw,27px)}.v4-stage small{display:block;margin-top:6px;color:#d5b8d5;font-size:clamp(11px,1vw,16px)}.v4-stage.loading b{font-size:0;border:4px solid #7c255e;border-top-color:#ff42b6;animation:v4-spin 1s linear infinite}.v4-stage.ready b{background:#d60085;border-color:#ff94de;box-shadow:0 0 14px #ff189f}.v4-stage.failed b{background:#982842;border-color:#ff718a}.v4-loading p{font-size:clamp(14px,1.6vw,23px);margin:3vh 0 1vh;color:#e9d2ea}.v4-loading button{padding:12px 24px;border-radius:12px;background:#51214f;color:white;border:1px solid #d37abb;margin:6px;font-weight:bold}.v4-loading button:focus{outline:3px solid #ff74c6}.v4-loading button[hidden]{display:none!important}@keyframes v4-spin{to{transform:rotate(360deg)}}
#movie-player-screen .v4-player-heading{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;padding:12px 24px;background:linear-gradient(180deg,rgba(11,6,18,.9),transparent);color:#fff}
.v4-player-heading button{width:46px;height:42px;background:#20192b;border:1px solid #594060;border-radius:8px;color:#fff;font-size:24px;margin-right:12px}.v4-player-heading strong{font-size:clamp(16px,1.6vw,27px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#movie-player-screen .player-bottom-controls{bottom:2.4vh;left:2%;right:2%;padding:12px 20px 8px;min-height:0;background:linear-gradient(180deg,rgba(20,33,47,.95),rgba(8,6,14,.96));border:1px solid #897080;border-radius:14px;gap:8px 12px;overflow:visible;align-items:center}
#movie-player-screen .v4-control-strip{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
#movie-player-screen .v4-media-info{display:flex;align-items:center;flex:0 1 29%;min-width:0;text-align:left}.v4-media-info img{width:46px;height:62px;object-fit:contain;background:#251b2c;border-radius:5px;margin-right:9px;flex-shrink:0}.v4-media-info>div{min-width:0}.v4-media-info strong,.v4-media-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v4-media-info strong{font-size:clamp(12px,1.25vw,19px)}.v4-media-info small{font-size:11px;color:#c5bacb;margin-top:5px}
#movie-player-screen .kuki-vod-controls{width:auto;flex:1 1 34%;margin:0;gap:5px;justify-content:center}
#movie-player-screen .kuki-vod-action,#movie-player-screen .player-ctrl-btn{min-width:0;height:45px;min-height:0;margin:0;padding:5px 9px;border:1px solid transparent;border-radius:9px;background:#19212c;color:white;font-size:12px;box-shadow:none;transform:none;display:flex;align-items:center;justify-content:center;cursor:pointer}
#movie-player-screen .kuki-vod-action{width:45px;flex:0 1 45px}#movie-player-screen .kuki-vod-action svg{width:25px;height:25px;flex:none}#movie-player-screen #kuki-vod-play{width:52px;height:52px;flex-basis:52px;border-radius:50%;background:#e61991}#movie-player-screen button:disabled{opacity:.33;cursor:default}#movie-player-screen button:focus:not(:disabled),#movie-player-screen .pop-item:focus{outline:2px solid #ff8bd4;outline-offset:1px;box-shadow:0 0 9px #ed1898;background:#3b2544}#movie-player-screen #kuki-vod-play:focus{background:#ed1898}
#movie-player-screen .player-top-controls{position:relative;top:auto;right:auto;flex:0 1 37%;display:flex;justify-content:flex-end;align-items:center;gap:5px;padding-top:14px;min-width:0}#v4-quality{position:absolute;top:-3px;right:4px;font-size:11px;color:#d3cedb}.player-top-controls .player-ctrl-btn{white-space:nowrap;max-width:39%;overflow:hidden;text-overflow:ellipsis;font-weight:700}
#movie-player-screen .player-pop-menu{top:auto;bottom:calc(2.4vh + 148px);right:2%;max-height:60vh;overflow:auto;background:#141020;z-index:200001}.v4-player-heading button:focus{outline:2px solid #ff8bd4}
#movie-player-screen .progress-bar-bg{height:7px;cursor:pointer;background:#56515c}#movie-player-screen .progress-fill{background:#f023a1}#movie-player-screen #kuki-vod-buffering{width:100%;font-size:12px;text-align:center;padding:2px 0;color:#f4badb}
#movie-player-screen .player-ui-overlay.kuki-buffering-visible .player-top-controls,#movie-player-screen .player-ui-overlay.kuki-buffering-visible .kuki-vod-controls{opacity:1;pointer-events:auto}
#movie-player-screen #kuki-vod-subtitles{bottom:19%;z-index:210000;pointer-events:none}#movie-player-screen #player-ui-overlay.hidden ~ #kuki-vod-subtitles{bottom:7%}
#movie-player-screen .movie-fullscreen-video.v4-fit-cover{object-fit:cover!important}#movie-player-screen .movie-fullscreen-video.v4-fit-fill{object-fit:fill!important}
@media(max-width:1000px){#movie-player-screen .player-bottom-controls{padding:8px 12px}#movie-player-screen .v4-control-strip{gap:5px}#movie-player-screen .kuki-vod-action{width:33px;height:34px;flex-basis:33px;padding:3px}#movie-player-screen .kuki-vod-action svg{width:21px;height:21px}#movie-player-screen #kuki-vod-play{width:40px;height:40px;flex-basis:40px}#movie-player-screen .player-ctrl-btn{font-size:10px;height:34px;padding:4px}#movie-player-screen .v4-media-info img{width:34px;height:45px}.v4-stage b{width:34px;height:34px;margin-right:8px}}
/* Live TV fullscreen: same premium strip; no fake VOD timeline for live sources. */
.v4-live-bar{display:none;position:absolute;left:2%;right:2%;bottom:2.4vh;z-index:100010;align-items:center;justify-content:space-between;padding:12px 20px;gap:12px;border:1px solid #897080;border-radius:14px;background:linear-gradient(180deg,rgba(20,33,47,.95),rgba(8,6,14,.96));color:white}.player-container.fullscreen .v4-live-bar.visible{display:flex}.v4-live-info{display:flex;align-items:center;min-width:0;flex:0 1 30%}.v4-live-info img{width:48px;height:48px;object-fit:contain;margin-right:10px}.v4-live-info>div{min-width:0}.v4-live-info strong,.v4-live-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v4-live-info small{font-size:11px;color:#d8b7d5;margin-top:5px}.v4-live-buttons,.v4-live-tools{display:flex;gap:6px;align-items:center}.v4-live-bar button{width:45px;height:45px;background:#19212c;color:#fff;border:1px solid transparent;border-radius:9px;cursor:pointer}.v4-live-bar button svg{width:24px;height:24px}.v4-live-bar button.primary{width:52px;height:52px;border-radius:50%;background:#e61991}.v4-live-bar button:focus{outline:2px solid #ff8bd4;background:#3b2544}.v4-live-panel{position:absolute;right:0;bottom:calc(100% + 10px);width:260px;max-height:50vh;overflow:auto;padding:12px;background:#141020;border:1px solid #83568a;border-radius:12px}.v4-live-panel[hidden]{display:none}.v4-live-panel button{width:100%;height:auto;min-height:36px;margin:4px 0;text-align:left;padding:8px 10px}.player-container.fullscreen .player-overlay{display:none}

/* V5: focus-safe layout; no horizontal scrollbars on TV. */
#settings-screen,#settings-screen .settings-container,#settings-screen .settings-grid{overflow-x:hidden!important;min-width:0;scrollbar-width:none;-ms-overflow-style:none}
#settings-screen .settings-grid{padding:8px 8px 12px;box-sizing:border-box}
#settings-screen .setting-box{min-width:0;max-width:calc(50% - 16px)}
#settings-screen .setting-box:focus,#settings-screen .setting-box:hover{transform:none!important}
#settings-screen::-webkit-scrollbar,#settings-screen *::-webkit-scrollbar{display:none!important;width:0;height:0}
#v5-announcement[hidden]{display:none!important}#v5-announcement{position:absolute;bottom:18px;left:30px;right:245px;z-index:9;display:flex;align-items:center;gap:12px;padding:9px 14px;background:#2a103a;border:1px solid #9442ad;border-radius:10px;color:#f4def9;font-size:15px;min-width:0;box-sizing:border-box}#v5-announcement-title{flex:none;color:#f5a9ef}#v5-announcement-viewport{flex:1;min-width:0;overflow:hidden;white-space:nowrap}#v5-announcement-text{display:inline-block;white-space:nowrap;will-change:transform}#v5-announcement-text.v5-scroll{animation:v5-marquee var(--v5-duration,15s) linear infinite}@keyframes v5-marquee{from{transform:translateX(var(--v5-start,0px))}to{transform:translateX(var(--v5-end,-100%))}}.v5-live-engine{position:absolute;bottom:8px;right:8px;color:#fff;background:#170c24bd;font-size:11px;border-radius:6px;padding:4px 7px;z-index:3;pointer-events:none}#home-screen:not(.active) #v5-announcement{display:none!important}
@media(max-width:1000px){#v5-announcement{left:20px;right:210px;bottom:12px;font-size:12px;padding:6px 9px}}

#player-wrapper.fullscreen #v5-live-engine{display:none} #v5-live-engine:empty{display:none}
/* V7 — existing palette; compact additions */
.v7-dialog{position:fixed;inset:0;z-index:20000;background:rgba(0,0,0,.78);display:flex;align-items:center;justify-content:center;padding:4vh 5vw;box-sizing:border-box}.v7-dialog-panel{width:760px;max-width:90vw;max-height:88vh;background:#241132;border:2px solid #c84bde;border-radius:22px;padding:24px;display:flex;flex-direction:column;box-sizing:border-box;box-shadow:0 14px 60px #000}.v7-dialog-panel h2{font-size:28px;margin:0 0 12px}.v7-dialog-body{white-space:pre-wrap;overflow-y:auto;min-height:0;max-height:48vh;font-size:19px;line-height:1.5;color:#f2defa;overflow-wrap:anywhere}.v7-dialog-actions{display:flex;justify-content:center;flex-wrap:wrap;margin-top:18px}.v7-dialog-actions button,.v7-epg-button{background:#3e1956;color:#fff;border:2px solid #b05bd0;border-radius:12px;padding:12px 18px;margin:5px;font-size:17px;font-weight:bold;cursor:pointer}.v7-dialog-actions button:focus,.v7-epg-button:focus{outline:3px solid white;background:#a828ba}.v7-epg-button:disabled{opacity:.45;cursor:default}.v7-poster-progress{padding:0 10px 6px;flex-shrink:0}.v7-poster-progress:empty{display:none}.v7-progress{height:4px;background:#49354e;border-radius:3px;overflow:hidden;margin-top:4px;min-width:30px}.v7-progress i{height:100%;display:block;background:#ec2a9a}.v7-progress-label{font-size:12px;color:#f6b9e0}.episode-row-item .v7-progress{width:64px;flex-shrink:0}.episode-row-item .v7-progress-label{white-space:nowrap}.v7-magnified .setting-text,.v7-magnified .channel-name,.v7-magnified .movie-title,.v7-magnified .episode-title-text{font-size:1.2em!important}.v7-magnified .setting-val{font-size:1.05em!important}.v7-magnified .v7-dialog-body{font-size:23px}.v7-magnified .device-description{font-size:1.25em!important}#settings-screen .settings-grid{align-content:flex-start!important}#settings-screen .setting-box .setting-text{min-width:0;white-space:normal;overflow-wrap:break-word}#settings-screen .setting-box .setting-val{flex-shrink:0}#settings-screen .setting-box:focus-visible{outline:3px solid #f5b9fb;outline-offset:-3px}
