:root { color-scheme: dark; --bg: #141414; --panel: #181818; --card: #202020; --row: #2a2a2a; --red: #E50914; --redhi: #FF0A16; --txt: #f5f5f5; --dim: #a3a3a3; }
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent !important; scrollbar-width: none !important; -ms-overflow-style: none !important; }
*::-webkit-scrollbar, html::-webkit-scrollbar, body::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; background: transparent !important; }
html, body { margin: 0; background: var(--bg); color: var(--txt); font: 16px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; scrollbar-width: none !important; -ms-overflow-style: none !important; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent !important; }
button:focus:not(:focus-visible) { outline: none !important; }
.view { display: none; min-height: 100vh; max-width: 1600px; margin: 0 auto; padding-left: 12px; padding-right: 12px; scrollbar-width: none !important; -ms-overflow-style: none !important; }
.view.active { display: block; }

/* ---------- HOME ---------- */
#view-home { padding: 70px 22px 14px; }
.homeTop { display: flex; align-items: center; gap: 30px; }
.xlogo { width: 120px; height: 120px; }
.xlogo.small { width: 48px; height: 48px; }
.clockWrap { flex: 1; text-align: center; }
#clock { font-size: 96px; font-weight: 700; letter-spacing: 2px; line-height: 1.05; }
#dateLine { font-size: 28px; font-weight: 600; margin-top: 2px; }
.cardGrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 22px 0 20px; zoom: 0.85; }
.card { background: var(--card); border: 2px solid #eee; border-radius: 14px; padding: 60px 8px 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; cursor: pointer; min-height: 380px; }
.card svg { width: 140px; height: 140px; }
.card span { font-size: 32px; font-weight: 600; }
.card:hover, .card:focus-visible { background: var(--red); border-color: #fff; outline: none; }
/* ---------- HOME ICON MOTION (transparent untouched, icons float) ---------- */
#view-home .cardGrid .card svg { animation: cardBob 3.2s ease-in-out infinite; transform-origin: center; }
#view-home .cardGrid .card:nth-child(2n) svg { animation-delay: -.8s; }
#view-home .cardGrid .card:nth-child(3n) svg { animation-delay: -1.6s; }
#view-home .cardGrid .card:nth-child(4n) svg { animation-delay: -2.4s; }
#view-home .cardGrid .card:hover svg, #view-home .cardGrid .card:focus-visible svg { animation: cardWiggle 1.1s ease-in-out 1; }
@keyframes cardBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes cardWiggle { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(8deg) scale(1.12); } 100% { transform: rotate(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { #view-home .cardGrid .card svg { animation: none; } }
.homeFoot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 24px; }

/* ---------- BROWSE ---------- */
.browseTop { display: flex; align-items: center; gap: 16px; padding: 18px 24px 14px; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.backBtn { width: auto; height: auto; border-radius: 0; border: 0; background: transparent; color: #e01b2f; padding: 4px; display: inline-flex; align-items: center; justify-content: center; flex: none; outline: none; }
.backBtn svg { width: 34px; height: 34px; display: block; pointer-events: none; }
.backBtn:hover, .backBtn:focus-visible { background: transparent; border-color: transparent; color: #e01b2f; outline: none; }
.pills { display: flex; gap: 12px; }
.pill { border: 2px solid #cfcfcf; background: transparent; border-radius: 999px; padding: 14px 52px; font-size: 22px; font-weight: 700; cursor: pointer; }
.pill.active { background: #3d3d44; }
.pillTitle { font-size: 20px; font-weight: 700; padding: 8px 8px; }
.browseTop .xlogo { margin-left: auto; }
.cols { display: grid; grid-template-columns: 340px 1fr; gap: 0; height: calc(100vh - 146px); min-height: 0; }
@media (min-width: 1001px) {
  .col.preview { display: flex; flex-direction: column; min-height: 0; height: 100%; overflow: hidden; }
  .col.cats { height: 100%; overflow: hidden; }
  #catList { min-height: 0; }
  .prevBtns, #filterBar, #status, .mobTabs, #gridHead { flex: none; }
  #video { flex: 1 1 0; min-height: 300px; max-height: 780px; height: auto; }
  #gridBox { flex: none; height: 336px; min-height: 0; max-height: none; }
  #gridBox[data-tab="movies"].chanGrid, #gridBox[data-tab="series"].chanGrid { flex: 1 1 auto; height: auto; min-height: 200px; }
}
.col { padding: 14px; overflow-y: auto; }
#catList { flex: 1 1 auto; min-height: 0; overflow-y: auto; border: 1px solid #3a3a40; border-radius: 12px; padding: 6px; position: relative; scrollbar-width: none; -ms-overflow-style: none; }
  #catList::-webkit-scrollbar { display: none; }
  #catBody { position: relative; }
  #chanBox { height: 616px; overflow-y: auto; border: 1px solid #3a3a40; border-radius: 10px; padding: 6px; margin-bottom: 12px; scrollbar-width: none; -ms-overflow-style: none; }
  #chanBox::-webkit-scrollbar { display: none; }
  .navHead { padding: 12px 6px 6px; font-size: 14px; color: #9a9aa2; letter-spacing: 1px; text-transform: uppercase; }
  .catRow.open { position: sticky; top: 0; z-index: 4; box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5); }
.col.cats { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
#chanBox .chanRow { padding: 10px 14px; margin-bottom: 10px; }
#chanBox .chanRow:last-child { margin-bottom: 0; }
#chanBox .chanRow img { width: 44px; height: 30px; }
.cats input { width: 100%; padding: 13px 18px; border-radius: 999px; border: 2px solid #cfcfcf; background: transparent; color: var(--txt); font-size: 18px; margin-bottom: 12px; }
.catRow { display: flex; justify-content: space-between; width: 100%; background: var(--row); border: 0; border-radius: 12px; padding: 15px 18px; margin-bottom: 12px; font-size: 21px; cursor: pointer; }
.catRow.active { background: var(--red); }
.catRow.sel { background: #4a2028; outline: 3px solid var(--redhi); outline-offset: -3px; }
.chanRow.selCh { background: #4a2028; outline: 3px solid var(--redhi); outline-offset: -3px; }
.chanRow { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--row); border: 0; border-radius: 12px; padding: 13px 16px; margin-bottom: 12px; font-size: 21px; cursor: pointer; text-align: left; }
.chanTools { display: flex; gap: 8px; margin-bottom: 10px; }
.chanTools button { flex: 1; background: var(--row); border: 0; border-radius: 10px; padding: 10px; font-size: 17px; cursor: pointer; }
#btnRecheck { flex: 0 0 52px; }
.ottTools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ottTools input[type="search"] { flex: 1; min-width: 200px; padding: 12px 16px; border-radius: 999px; border: 2px solid #cfcfcf; background: transparent; color: var(--txt); font-size: 17px; }
.ottTools button { padding: 12px 20px; border-radius: 999px; border: 2px solid #cfcfcf; background: transparent; color: var(--txt); font-size: 17px; cursor: pointer; }
.ottGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; padding-bottom: 48px; }
#ottSources { margin-bottom: 8px; }
#ottSources .ottSrc { min-height: 0; max-width: 220px; aspect-ratio: 1 / 1; padding: 18px 10px; gap: 10px; }
#ottSources .ottSrc .libName { font-size: 30px; }
#ottSources .ottSrc .libSub { font-size: 18px; }
.ottPlayerBox { max-width: 1100px; width: 94vw; }
#ottVideo { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 12px; cursor: pointer; }
#ottPlayerTitle { margin-top: 10px; font-size: 20px; }
.ottCard { background: var(--card); border: 2px solid #3a3a40; border-radius: 12px; overflow: hidden; cursor: pointer; padding: 0; text-align: left; }
.ottCard img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; background: #000; }
.ottCard .t { display: block; padding: 8px 10px 0; font-size: 15px; font-weight: 600; }
.ottCard .y { display: block; padding: 2px 10px 10px; color: var(--dim); font-size: 13px; }
.ottCard:hover, .ottCard:focus-visible { border-color: var(--redhi); outline: none; }
#ottLogin input { display: block; width: 100%; margin: 6px 0; padding: 12px 14px; border-radius: 8px; border: 1px solid #3a3a40; background: #101013; color: var(--txt); font-size: 17px; }
.chanRow.active { background: var(--red); }
.chanRow .num { width: 28px; color: #ddd; }
.chanRow img { width: 48px; height: 32px; object-fit: contain; background: #000; border-radius: 4px; }
.chanRow .live { margin-left: auto; color: #fff; }
.chanRow .num { flex: none; }
.chanRow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.chanRow .live { flex: none; }
.catRow span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.catRow span:last-child { flex: none; margin-left: 10px; }
.chanRow:hover, .chanRow:focus-visible, .catRow:hover, .catRow:focus-visible, .pill:hover { outline: 3px solid var(--redhi); }
.preview { display: flex; flex-direction: column; }
.preview video { flex: 1 1 auto; min-height: 0; width: 100%; aspect-ratio: auto; object-fit: contain; background: #000; border-radius: 12px; }
.epgBox { background: #101013; border: 1px solid #3a3a40; border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 16px; color: var(--dim); max-height: 150px; overflow: auto; }
.prevBtns { display: flex; gap: 8px; margin-top: 10px; }
.prevBtns button { flex: 1; min-width: 0; background: #4a4a52; border: 1px solid #eee; border-radius: 7px; padding: 5px 2px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { margin-top: 12px; color: var(--dim); min-height: 24px; font-size: 18px; }

/* ---------- SETTINGS ---------- */
.settingsWrap { max-width: 1240px; margin: 0 auto; padding: 22px; }
.setGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; zoom: 0.85; }
.modalBox.big { max-width: 980px; width: 94vw; padding: 30px; max-height: 88vh; overflow: auto; }
.modalBox.big .modalClose { font-size: 16px; padding: 6px 14px; border-radius: 8px; border: 2px solid #eee; background: #4a4a52; cursor: pointer; margin: 0 0 10px 12px; }
.modalBox h3 { padding-right: 100px; }
#xtModal { z-index: 60; }
#btnXtreamPop { flex: 1; font-size: 23px; padding: 17px 30px; border-radius: 10px; border: 2px solid #eee; background: #4a4a52; color: #fff; cursor: pointer; }
.setPanel { margin-top: 14px; }
.setPanel[hidden] { display: none; }
.setPanel h3 { margin: 16px 0 8px; font-size: 30px; }
.setPanel h3:first-child { margin-top: 0; }
.setPanel input, #view-playlist input { display: block; width: 100%; margin: 8px 0; padding: 17px 20px; border-radius: 10px; border: 1px solid #3a3a40; background: #101013; color: var(--txt); font-size: 23px; }
.setPanel input[type="file"], #view-playlist input[type="file"] { display: none !important; }
.setPanel select, #view-playlist select { display: block; width: 100%; margin: 8px 0; padding: 17px 20px; border-radius: 10px; border: 1px solid #3a3a40; background: #101013; color: var(--txt); font-size: 23px; }
.row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.row[hidden] { display: none; }
.col.preview.fs { position: fixed; inset: 0; z-index: 60; background: #000; padding: 10px; }
.col.preview.fs video, .col.preview.fs #video { width: 100% !important; height: calc(100% - 70px) !important; max-height: none; }
.col.preview.fs .prevBtns { position: sticky; bottom: 0; }
#chOsd { position: fixed; top: 110px; right: 22px; z-index: 70; display: none; align-items: center; justify-content: center; min-width: 120px; padding: 14px 26px; border-radius: 14px; background: rgba(0,0,0,.72); border: 2px solid #e01b2f; color: #fff; font-size: 44px; font-weight: 700; }
.row label.assign { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; }
.row label.assign select { flex: 1; margin: 0; }
.row.cols3 > * { flex: 1 1 0; }
#panel-playlist .row, #view-playlist .row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
#panel-playlist .row::-webkit-scrollbar, #view-playlist .row::-webkit-scrollbar { display: none; }
.row button, .fileBtn { padding: 17px 30px; border-radius: 10px; border: 1px solid #555; background: #3a3a40; color: #fff; cursor: pointer; font-size: 23px; }
#accountInfo { font-size: 23px; }
.savedRow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; }
.savedRow button { padding: 8px 14px; border-radius: 6px; border: 1px solid #444; background: #2a2a34; color: #fff; cursor: pointer; font-size: 13px; font-weight: 700; transition: all 0.15s; }
.savedRow button:hover { background: #3c3c4a; border-color: #777; }
.savedRow button:last-child { background: rgba(220, 38, 38, 0.2); color: #f87171; border-color: rgba(239, 68, 68, 0.4); }
.savedRow button:last-child:hover { background: #dc2626; color: #fff; border-color: #ef4444; }
.qrRow { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
#qrBox img, #qrBox svg { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 8px; display: block; box-sizing: border-box; }
#qrUrl { font-size: 20px; word-break: break-all; }
#qrBoxTv img, #qrBoxTv svg { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 8px; display: block; box-sizing: border-box; }
#qrUrlTv { font-size: 20px; word-break: break-all; }
#tvCodeLine { font-size: 28px; font-weight: 700; margin-top: 6px; }
.card.current { background: var(--red); }
.libCard { min-height: 260px; }
.libOpen { background: transparent; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.libMerge { font-size: 20px; border: 2px solid #eee; background: transparent; border-radius: 999px; padding: 8px 28px; cursor: pointer; }
.libMerge.on { background: var(--red); }
.libName { font-size: 30px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.libSub { font-size: 20px; color: var(--dim); }
.libKind { font-size: 18px; border: 1px solid #888; border-radius: 999px; padding: 4px 18px; color: #ddd; }
.hint { color: var(--dim); font-size: 14px; }
#setStatus { margin-top: 16px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modalBox { background: var(--panel); border: 1px solid #3a3a40; border-radius: 12px; max-width: 640px; width: 92vw; max-height: 80vh; overflow: auto; padding: 16px; }
.modalClose { float: right; font-size: 15px; padding: 6px 12px; border-radius: 8px; border: 2px solid #eee; background: #4a4a52; color: #fff; cursor: pointer; }
body.using-remote :focus { outline: 4px solid var(--redhi); outline-offset: 2px; }
@media (max-height: 860px) and (min-width: 1001px) { .preview video { flex: none; aspect-ratio: 16/9; } }
@media (max-width: 1000px) { .catRow.open { position: static; } .cardGrid { grid-template-columns: repeat(3, 1fr); } .setGrid { grid-template-columns: repeat(2, 1fr); } .cols { grid-template-columns: 1fr; height: auto; } #clock { font-size: 60px; } .card { min-height: 150px; padding: 18px 6px 14px; gap: 10px; } .card svg { width: 56px; height: 56px; } .card span { font-size: 17px; } .browseTop { position: sticky; top: 0; z-index: 6; background: var(--bg); } .col.preview { order: -1; position: sticky; top: 96px; z-index: 5; background: var(--bg); overflow: visible; padding-bottom: 10px; } body { scrollbar-width: none; } body::-webkit-scrollbar { display: none; } .col { scrollbar-width: none; } .col::-webkit-scrollbar { display: none; } .modalBox { scrollbar-width: none; } .modalBox::-webkit-scrollbar { display: none; } #panel-playlist .row button, #panel-playlist .row .fileBtn, #view-playlist .row button, #view-playlist .row .fileBtn { padding: 12px 10px; font-size: 17px; } #panel-playlist .row label.assign, #view-playlist .row label.assign { font-size: 17px; } #panel-playlist .row label.assign select, #view-playlist .row label.assign select { font-size: 17px; padding: 12px 10px; } #panel-playlist .savedRow, #view-playlist .savedRow { flex-wrap: wrap; } }

.gridHead { padding: 12px 6px 6px; font-size: 19px; color: #fff; }
.crumbBtn { background: #2a2a30; color: #fff; border: 1px solid #4a4a52; border-radius: 8px; padding: 2px 10px; font-size: 17px; cursor: pointer; }
.crumbBtn:hover { border-color: var(--redhi); }
.chanGrid[hidden] { display: none; }
.chanGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 16px; overflow-y: auto; border: 1px solid #3a3a40; border-radius: 12px; padding: 18px 12px; margin-top: 10px; scrollbar-width: none; -ms-overflow-style: none; }
.chanGrid::-webkit-scrollbar { display: none; }
.gridTile { display: flex; align-items: center; justify-content: center; background: var(--row); border: 1px solid #3a3a40; border-radius: 12px; cursor: pointer; padding: 10px; min-width: 0; overflow: hidden; position: relative; height: 150px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; transform-origin: center center; -webkit-tap-highlight-color: transparent; }
.gridTile img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: fill; flex: none; }
/* movies/series: shorter preview, 30% taller thumbs */
body:not(.fsplay) .col.preview[data-tab="movies"] #video, body:not(.fsplay) .col.preview[data-tab="series"] #video { height: clamp(240px, 32vh, 340px); flex: none; }
@media (max-width: 1000px) { body:not(.fsplay) .col.preview[data-tab="movies"] #video, body:not(.fsplay) .col.preview[data-tab="series"] #video { height: clamp(140px, 24vh, 220px); flex: none; } }
#gridBox[data-tab="movies"] .gridTile, #gridBox[data-tab="series"] .gridTile { height: 195px; padding: 0; border: 0; border-radius: 10px; }
#gridBox[data-tab="movies"] .gridTile img, #gridBox[data-tab="series"] .gridTile img { object-fit: fill; border-radius: 10px; }
#gridBox[data-tab="movies"].chanGrid, #gridBox[data-tab="series"].chanGrid { min-height: 637px; }
.gt-q { position: absolute; top: 6px; left: 6px; z-index: 2; background: rgba(0,0,0,.78); color: #ffd24d; border: 1px solid #8a6d00; border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 800; letter-spacing: .5px; pointer-events: none; white-space: nowrap; }
.gridTile .gt-nm { display: none; font-size: 15px; color: #eee; text-align: center; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.gridTile.noLogo .gt-nm { display: -webkit-box; }
.gridTile.active { background: var(--red); box-shadow: 0 0 0 3px var(--red), 0 0 16px rgba(229, 9, 20, 0.6); border-color: var(--red) !important; }
.gridTile:hover { outline: none !important; border-color: rgba(255, 255, 255, 0.85); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 14px rgba(229, 9, 20, 0.4); transform: scale(1.05); z-index: 10; }
.gridTile:focus-visible { outline: 3px solid var(--red, #e50914) !important; outline-offset: 1px; box-shadow: 0 0 18px rgba(229, 9, 20, 0.7); transform: scale(1.05); z-index: 10; }
.gridTile.active:hover, .gridTile.active:focus-visible { outline: 3px solid #ff3344 !important; box-shadow: 0 0 0 3px var(--red), 0 0 22px rgba(255, 60, 60, 0.95); }
.gridHint { grid-column: 1 / -1; text-align: center; color: #9a9aa2; padding: 26px 10px; font-size: 17px; }
@media (max-width: 1000px) { .chanGrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); min-height: 400px; max-height: calc(100vh - 140px); } }

/* ============ DEDICATED 1-PAGE LIVE TV (MOVIE-THUMBNAIL STYLE & EXPANDED PREVIEW) ============ */
#view-browse[data-tab="live"] .cols {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  height: calc(100vh - 72px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 16px 8px !important;
  background: #101014;
}
#view-browse[data-tab="live"] .col.cats {
  display: none !important;
}
#view-browse[data-tab="live"] .col.preview {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  padding: 0 !important;
}
body:not(.fsplay) #view-browse[data-tab="live"] #video,
body:not(.fsplay) #view-browse[data-tab="live"] #streamEmbed {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 960px !important;
  height: clamp(220px, 34vh, 380px) !important;
  margin: 6px auto 0 !important;
  border-radius: 14px !important;
  background: #000 !important;
  object-fit: contain !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8) !important;
}
#view-browse[data-tab="live"] .prevBtns {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 10px auto 6px !important;
  max-width: 960px !important;
  width: 100% !important;
  position: relative !important;
  z-index: 20 !important;
}
#view-browse[data-tab="live"] .prevBtns button {
  padding: 7px 18px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
}
#view-browse[data-tab="live"] .prevBtns button:hover,
#view-browse[data-tab="live"] .prevBtns button:focus-visible {
  background: var(--red, #e50914) !important;
  border-color: #ff3344 !important;
  box-shadow: 0 2px 12px rgba(229, 9, 20, 0.5) !important;
  transform: translateY(-1px) !important;
  outline: none !important;
}

/* Category Dropdown Pill */
.catDropdownWrap {
  position: relative;
  display: inline-block;
}
.catDropBtn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(229, 9, 20, 0.18) !important;
  border-color: rgba(229, 9, 20, 0.5) !important;
  color: #fff !important;
}
.catDropBtn.open, .catDropBtn:hover {
  background: var(--red, #e50914) !important;
  border-color: #ff3344 !important;
}
.catDropdownMenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  max-width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: rgba(18, 18, 24, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: catDropAnim 0.18s ease;
}
.catDropdownMenu[hidden] {
  display: none !important;
}
.catDropdownMenu::-webkit-scrollbar {
  display: none;
}
@keyframes catDropAnim {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.catDropdownItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #e0e0e0;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}
.catDropdownItem:hover, .catDropdownItem:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
  transform: translateX(3px);
}
.catDropdownItem.active {
  background: var(--red, #e50914);
  color: #fff;
  font-weight: 700;
}
.catDropdownItem .catCount {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
}
.catDropdownItem.active .catCount {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

/* ============ LIVE TV CHANNEL GRID (MOVIE-THUMBNAIL SIZE & RESPONSIVE COLUMNS) ============ */
#view-browse[data-tab="live"] #gridBox.chanGrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 12px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 8px 12px 36px !important;
  margin: 6px auto 0 !important;
  width: 100% !important;
  max-width: 1400px !important;
  box-sizing: border-box !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
#view-browse[data-tab="live"] #gridBox.chanGrid::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Movie-Thumbnail Style Channel Card */
#view-browse[data-tab="live"] .gridTile {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  aspect-ratio: 16 / 12 !important;
  height: auto !important;
  min-height: 110px !important;
  padding: 10px 8px 6px !important;
  background: radial-gradient(circle at 50% 30%, #20202c 0%, #111116 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#view-browse[data-tab="live"] .gridTile img {
  width: 100% !important;
  height: 58% !important;
  max-width: 100px !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 6px !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7)) !important;
  transition: transform 0.2s ease !important;
}

#view-browse[data-tab="live"] .gridTile .gt-nm {
  display: block !important;
  width: 100% !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #f2f2f2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
  padding: 3px 6px !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border-radius: 6px !important;
  margin-top: auto !important;
  box-sizing: border-box !important;
  line-height: 1.3 !important;
}

#view-browse[data-tab="live"] .gridTile.noLogo {
  justify-content: center !important;
}
#view-browse[data-tab="live"] .gridTile.noLogo .gt-nm {
  font-size: 13.5px !important;
  white-space: normal !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  background: transparent !important;
}

#view-browse[data-tab="live"] .gridTile.active {
  background: radial-gradient(circle at 50% 30%, rgba(229, 9, 20, 0.32) 0%, #14141c 100%) !important;
  border-color: var(--red, #e50914) !important;
  box-shadow: 0 0 0 2.5px var(--red, #e50914), 0 0 20px rgba(229, 9, 20, 0.65) !important;
}

#view-browse[data-tab="live"] .gridTile:hover,
#view-browse[data-tab="live"] .gridTile:focus-visible {
  border-color: #ffffff !important;
  outline: 2px solid #ffffff !important;
  transform: scale(1.07) translateY(-2px) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.85), 0 0 16px rgba(229, 9, 20, 0.4) !important;
  z-index: 15 !important;
}

#view-browse[data-tab="live"] .gridTile.active:hover,
#view-browse[data-tab="live"] .gridTile.active:focus-visible {
  border-color: #ff3344 !important;
  outline: 2px solid #ff3344 !important;
  box-shadow: 0 0 0 3px #ff3344, 0 12px 28px rgba(229, 9, 20, 0.85) !important;
}

/* Multi-Column Breakpoints: 7 / 6 / 5 / 4 / 3 columns */
@media (min-width: 1450px) {
  #view-browse[data-tab="live"] #gridBox.chanGrid {
    grid-template-columns: repeat(7, 1fr) !important;
    max-width: 1520px !important;
  }
}
@media (min-width: 1200px) and (max-width: 1449px) {
  #view-browse[data-tab="live"] #gridBox.chanGrid {
    grid-template-columns: repeat(6, 1fr) !important;
    max-width: 1280px !important;
  }
}
@media (min-width: 950px) and (max-width: 1199px) {
  #view-browse[data-tab="live"] #gridBox.chanGrid {
    grid-template-columns: repeat(5, 1fr) !important;
    max-width: 1040px !important;
  }
}
@media (min-width: 651px) and (max-width: 949px) {
  #view-browse[data-tab="live"] #gridBox.chanGrid {
    grid-template-columns: repeat(4, 1fr) !important;
    max-width: 820px !important;
  }
}
@media (max-width: 650px) {
  #view-browse[data-tab="live"] #gridBox.chanGrid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 6px 6px 30px !important;
  }
  #view-browse[data-tab="live"] .gridTile {
    min-height: 90px !important;
    padding: 7px 4px 4px !important;
    border-radius: 9px !important;
  }
  #view-browse[data-tab="live"] .gridTile img {
    height: 54% !important;
  }
  #view-browse[data-tab="live"] .gridTile .gt-nm {
    font-size: 11px !important;
    padding: 2px 4px !important;
  }
  body:not(.fsplay) #view-browse[data-tab="live"] #video,
  body:not(.fsplay) #view-browse[data-tab="live"] #streamEmbed {
    height: clamp(190px, 30vh, 260px) !important;
    border-radius: 10px !important;
  }
}

#video { width: 100%; background: #000; border-radius: 12px; }
@media (max-width: 1000px) { #video { height: clamp(180px, 32vh, 300px); } }

#status, #gridHead { display: none; }

.modal { z-index: 50; }
@media (max-width: 1000px) { .browseTop { padding: 8px 20px 6px; margin: 0 -12px; position: sticky; top: 0; } .browseTop .pillTitle { font-size: 19px; } }

.mobTabs { display: none; }
@media (max-width: 1000px) {
  .mobTabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
  .mobTab { flex: 1; min-width: 0; background: #4a4a52; border: 1px solid #eee; border-radius: 7px; padding: 9px 2px; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobTab.active { background: var(--red); }
  .chanGrid { background: var(--panel); }
  body.mob-sel #view-browse .col.cats #search,
  body.mob-sel #view-browse .col.cats .chanTools,
  body.mob-sel #view-browse .col.cats #catList { display: none; }
  body.mob-search #view-browse #gridBox,
  body.mob-nosel #view-browse #gridBox { display: none; }
}
/* medium-short landscape (720p-ish 16:9): step everything down, grid fixed 2 rows */
@media (max-height: 800px) {
  .cols { height: calc(100vh - 70px); min-height: 0; }
  #video { min-height: 200px; max-height: 420px; }
  .col.preview[data-tab="movies"] #video, .col.preview[data-tab="series"] #video { display: none; }
  .gridTile { height: 130px; }
  #gridBox { height: 296px; }
  #gridBox[data-tab="movies"] .gridTile, #gridBox[data-tab="series"] .gridTile { height: 170px; }
  #gridBox[data-tab="movies"].chanGrid, #gridBox[data-tab="series"].chanGrid { flex: 1 1 auto; height: auto; min-height: 300px; }
}
/* short landscape (phone landscape / small 16:9 window): screen-er baire jabe na */
@media (max-height: 500px) {
  .cols { height: auto; min-height: 0; }
  #video { min-height: 140px; max-height: 220px; }
  .col.preview[data-tab="movies"] #video, .col.preview[data-tab="series"] #video { display: none; }
  .gridTile { height: 100px; }
  #gridBox { height: 236px; }
  #gridBox[data-tab="movies"] .gridTile, #gridBox[data-tab="series"] .gridTile { height: 130px; }
  #gridBox[data-tab="movies"].chanGrid, #gridBox[data-tab="series"].chanGrid { flex: 1 1 auto; height: auto; min-height: 280px; }
}
  .mobTabs #search { width: 100%; box-sizing: border-box; border-radius: 7px; border: 2px solid #cfcfcf; background: transparent; color: var(--txt); font-size: 15px; padding: 9px 10px; margin: 0; }

.backBtn { width: auto; height: auto; border-radius: 0; border: 0; background: transparent; color: #e01b2f; padding: 4px; }
.backBtn:hover, .backBtn:focus-visible { background: transparent; border-color: transparent; color: #e01b2f; }
@media (max-width: 1000px) {
  .mobTab, .mobTabs #search { font-size: 13px; }
  .mobTabs #search { min-width: 0; }
  .catRow[data-cid="__recent__"], .catRow[data-cid="__all__"], .catRow[data-cid="__fav__"] { display: none; }
}

@media (max-width: 1000px) { .col.preview { position: static; overflow: visible; } }

@media (max-width: 1000px) {
  #view-browse.active { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  #view-browse .browseTop { flex: none; }
  #view-browse .cols { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  #view-browse .col.preview { flex: none; overflow: visible; }
  #view-browse .col.cats { flex: 1; min-height: 0; overflow: hidden; }
  #view-browse .chanTools { flex: none; }
  #view-browse #catList { flex: 1; min-height: 0; overflow-y: auto; }
}

.homeTop > .xlogo { width: 56px; height: 56px; }
.brandName { font-weight: 800; letter-spacing: 3px; color: #fff; white-space: nowrap; font-size: 44px; line-height: 1; display: inline-flex; align-items: center; gap: 6px; }
.brandName img.bx { height: 1.35em; width: auto; filter: drop-shadow(2px 3px 2px rgba(0,0,0,.55)); }
.brandName .btv { color: #fff; font-size: 0.7em; font-weight: 800; letter-spacing: 2px; }
.brandName.topbar { font-size: 24px; margin-left: auto; letter-spacing: 2px; }
.browseTop .brandName.topbar { margin-left: auto; }
@media (max-width: 1000px) { .homeTop { gap: 12px; } .homeTop > .xlogo { width: 40px; height: 40px; } .brandName { font-size: 28px; } .brandName.topbar { font-size: 22px; } }

button { transition: transform 0.08s ease; }
button:active { transform: scale(0.96); }

/* movies/series: no preview box — full-area grid + filters */
.col.preview[data-tab="movies"] #video, .col.preview[data-tab="series"] #video,
.col.preview[data-tab="movies"] #streamEmbed, .col.preview[data-tab="series"] #streamEmbed,
.col.preview[data-tab="movies"] .prevBtns, .col.preview[data-tab="series"] .prevBtns,
.col.preview[data-tab="movies"] #epgBox, .col.preview[data-tab="series"] #epgBox { display: none; }
body.fsplay #video,
body.fsplay .col.preview.playing #video,
body.fsplay #view-browse #video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #000 !important;
  object-fit: contain !important;
  position: absolute !important;
  inset: 0 !important;
}

body.fsplay.embed-mode #video {
  display: none !important;
}

body.fsplay.embed-mode #streamEmbed,
body.fsplay .col.preview.playing.embed-mode #streamEmbed,
body.fsplay #view-browse.embed-mode #streamEmbed {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 80 !important;
  background: #000 !important;
  pointer-events: auto !important;
}

/* When in embed-mode, allow passing pointer clicks to iframe unless fsControls is explicitly shown */
body.fsplay.embed-mode #fsControls:not(.show) {
  pointer-events: none !important;
}

body.fsplay.embed-mode #fsControls.show {
  pointer-events: auto !important;
}

body.fsplay:not(.embed-mode) #streamEmbed {
  display: none !important;
}

body.fsplay .fsClose { display: none !important; }
body.fsplay .browseTop, body.fsplay .col.cats { display: none !important; }
body.fsplay .cols { display: block !important; height: 100vh !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
body.fsplay .col.preview { display: block !important; height: 100vh !important; width: 100vw !important; margin: 0 !important; padding: 0 !important; position: static !important; }
body.fsplay .prevBtns, body.fsplay #filterBar, body.fsplay #epgBox, body.fsplay #status, body.fsplay #gridHead, body.fsplay #gridBox { display: none !important; }

/* Hide home live TV hero and other video elements when fsplay is active */
body.fsplay #netflixLiveHero,
body.fsplay #nflxLiveVideo,
body.fsplay #nflxLiveEmbed {
  display: none !important;
}

/* Enhanced OTT Fullscreen Player Overlay */
#fsControls.fsOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 85;
  flex-direction: column;
  justify-content: space-between;
  padding: max(20px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(56px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 25%, rgba(0,0,0,0.15) 65%, rgba(0,0,0,0.92) 100%);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  box-sizing: border-box;
}
body.fsplay #fsControls.fsOverlay {
  display: flex;
}
body.fsplay #fsControls.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.fsplay.hide-cursor,
body.fsplay.hide-cursor * {
  cursor: none !important;
}

/* Double Tap Seek Ripple Bubbles */
.fsSeekRipple {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 16px 24px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 800;
  pointer-events: none;
  z-index: 99;
  animation: fsRippleAnim 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fsSeekRipple.left { left: 15%; }
.fsSeekRipple.right { right: 15%; }
@keyframes fsRippleAnim {
  0% { transform: translateY(-50%) scale(0.7); opacity: 0; }
  50% { transform: translateY(-50%) scale(1.1); opacity: 1; }
  100% { transform: translateY(-50%) scale(1); opacity: 0; }
}

.fsPopUpload {
  border-top: 1px solid #333;
  margin-top: 4px;
  padding-top: 6px;
  color: #60a5fa !important;
}

/* Top Row */
.fsTopRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.fsTitleInfo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.fsTitle {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.fsQualityBadge {
  background: rgba(229, 9, 20, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.fsTopActions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fsIconBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(35, 35, 42, 0.88);
  color: #fff;
  border: 1px solid #5a5a62;
  border-radius: 50%;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}
.fsIconBtn:hover {
  background: #3c3c46;
  border-color: #888;
  transform: scale(1.06);
}
.fsIconBtn:active {
  background: var(--red, #e50914);
  transform: scale(0.95);
}
.fsCloseIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  padding: 0;
  font-size: 20px;
  flex-shrink: 0;
  margin-right: 4px;
}
.fsCloseIcon:hover {
  background: rgba(229, 9, 20, 0.9);
  border-color: #e50914;
}

/* Bottom Bar */
.fsBottomBar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: 8px;
}

/* Scrubber / Progress Bar */
.fsScrubRow {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 2px;
}
.fsTimeText {
  font-size: 14px;
  font-weight: 600;
  font-family: monospace;
  color: #ddd;
  min-width: 68px;
  text-align: center;
  transition: color 0.2s, text-shadow 0.2s;
}
.fsSeekTrack {
  position: relative;
  flex: 1;
  height: 11px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: height 0.2s, box-shadow 0.2s, background 0.2s;
}
.fsBufferFill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  pointer-events: none;
}
.fsProgressFill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff1a2b, #ff4455);
  border-radius: 5px;
  pointer-events: none;
}
.fsProgressThumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 3px solid #ff2233;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 34, 51, 0.9), 0 2px 6px rgba(0,0,0,0.8);
  pointer-events: none;
  z-index: 4;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s, width 0.15s, height 0.15s;
}
.fsSeekInput {
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 28px;
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 5;
}
/* TV Remote & Keyboard Focus for Seeker Bar */
.fsSeekTrack:hover,
.fsSeekTrack:focus-within,
.fsSeekTrack.focused {
  height: 15px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px #ff3344, 0 0 22px rgba(255, 51, 68, 0.95);
}
.fsSeekTrack:focus-within .fsProgressThumb,
.fsSeekTrack.focused .fsProgressThumb {
  width: 26px;
  height: 26px;
  border-width: 4px;
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 0 4px #ffffff, 0 0 20px rgba(255, 51, 68, 1);
}
.fsScrubRow:focus-within #fsTimeCur {
  color: #ff4d5a;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(255, 77, 90, 0.9);
}

/* Actions Row */
.fsActionRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
}
.fsActionGroup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fsPlayCluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.fsSeekSubCluster {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 18, 24, 0.65);
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.fsOptGroup {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
  flex-shrink: 0;
}

/* Square Player Buttons matching sleek VCR/Modern Player Design */
.fsPlayerSqBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 36, 46, 0.92);
  color: #e4e4ec;
  border: 1.2px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 0;
  width: 44px;
  height: 44px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}
.fsPlayerSqBtn svg {
  pointer-events: none;
}
.fsPlayerSqBtn:hover {
  background: rgba(65, 65, 80, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}
.fsPlayerSqBtn:active {
  background: var(--red, #e50914) !important;
  border-color: #ff3344 !important;
  color: #ffffff !important;
  transform: scale(0.95);
}

.fsServerPillBtn {
  width: auto !important;
  padding: 0 14px !important;
  gap: 6px;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  background: rgba(36, 36, 46, 0.92) !important;
  color: #fff !important;
  white-space: nowrap;
}
.fsServerPillBtn:hover {
  background: var(--red, #e50914) !important;
  border-color: #ff3344 !important;
}

/* 60 FPS Motion Button & Hardware Video Acceleration */
.fsMotionPillBtn {
  width: auto !important;
  padding: 0 13px !important;
  gap: 5px;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  background: rgba(36, 36, 46, 0.92) !important;
  color: #d6d6d6 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.fsMotionPillBtn:hover, .fsMotionPillBtn:focus-visible {
  background: rgba(0, 229, 255, 0.2) !important;
  border-color: #00e5ff !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.fsMotionPillBtn.active {
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.28), rgba(0, 229, 255, 0.28)) !important;
  border-color: #00ff88 !important;
  color: #00ff88 !important;
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.45) !important;
}

/* 60 FPS Motion Video Compositor Acceleration */
video.motion-60fps {
  transform: translateZ(0);
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
  -webkit-transform-style: flat;
}
video.motion-60fps-ultra {
  transform: translateZ(0) scale(1.0001);
  will-change: transform;
  image-rendering: -webkit-optimize-contrast;
}

.fsQualityBadge.hasMotion {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.85), rgba(0, 200, 83, 0.85)) !important;
  border-color: #00ff88 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.35) !important;
}

/* Primary Play/Pause Large Square Button */
.fsPlayMainBtn {
  width: 58px;
  height: 46px;
  background: rgba(48, 48, 62, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 7px;
  color: #ffffff;
  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
}
.fsPlayMainBtn:hover {
  background: var(--red, #e50914);
  border-color: #ff3344;
}
.fsPlayMainBtn:active {
  background: var(--red, #e50914) !important;
}

.fsServerMsgWrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 6px;
  pointer-events: none;
}
.fsServerBlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #00ffcc;
  padding: 5px 14px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(0, 255, 204, 0.55);
  border-radius: 16px;
  animation: fsServerBlinkAnim 0.9s ease-in-out infinite alternate;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 255, 204, 0.3);
}
.fsServerBlink[hidden] {
  display: none !important;
}
@keyframes fsServerBlinkAnim {
  0% { opacity: 0.35; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); text-shadow: 0 0 8px rgba(0, 255, 204, 0.9); }
}

/* Focus and Active States for Player Controls - Clean & Sleek (No white box) */
.fsBtn:focus,
.fsIconBtn:focus,
.fsPlayerSqBtn:focus,
.fsPlayMainBtn:focus,
.fsPopMenu button:focus {
  outline: none !important;
}

.fsBtn:focus:not(:focus-visible),
.fsIconBtn:focus:not(:focus-visible),
.fsPlayerSqBtn:focus:not(:focus-visible),
.fsPlayMainBtn:focus:not(:focus-visible),
.fsPopMenu button:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

.fsBtn:focus-visible,
.fsIconBtn:focus-visible,
.fsPlayerSqBtn:focus-visible,
.fsPlayMainBtn:focus-visible,
.fsPopMenu button:focus-visible {
  outline: none !important;
  background: var(--red, #e50914) !important;
  color: #ffffff !important;
  border-color: #ff3344 !important;
  transform: scale(1.05);
  box-shadow: 0 0 0 2px #ff3344, 0 0 14px rgba(229, 9, 20, 0.8) !important;
  z-index: 10;
}

/* Side Sliders (Brightness on Left, Sound on Right - Strictly Vertical Capsule) */
.fsSideCtrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(18, 18, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 8px 6px;
  width: 38px;
  z-index: 25;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}
.fsSideLeft {
  left: 14px;
}
.fsSideRight {
  right: 14px;
}
.fsSideIcon {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.fsSideIcon:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
  color: #ffd600;
}
.fsSideIcon:active {
  transform: scale(0.92);
}
.fsCapsuleTrack {
  width: 14px;
  height: 110px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.fsCapsuleFill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 10px;
  pointer-events: none;
  transition: height 0.05s ease-out;
}
.fsBrightFill {
  background: linear-gradient(to top, #ffb300, #ffea00);
  box-shadow: 0 0 8px rgba(255, 214, 0, 0.6);
}
.fsVolFill {
  background: linear-gradient(to top, #e50914, #ff3344);
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.6);
}
.fsSideVal {
  font-size: 10px;
  font-weight: 700;
  font-family: monospace;
  color: #eee;
  text-align: center;
  min-width: 28px;
}

/* Dropdown Popup Menus - Strictly Fixed Dimensions & Zero Overflow */
.fsPopWrap {
  position: relative;
  display: inline-flex;
}
.fsPopMenu {
  position: absolute;
  bottom: calc(100% + 10px);
  top: auto;
  right: 0;
  width: 220px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 70px);
  max-height: calc(100dvh - 70px);
  background: rgba(20, 20, 26, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 6px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fsPopMenu[hidden] { display: none !important; }

/* Top Actions Dropdown Menu */
.fsTopActions .fsPopMenu {
  top: calc(100% + 8px);
  bottom: auto;
  right: 0;
  width: 220px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 70px);
  max-height: calc(100dvh - 70px);
  box-sizing: border-box;
}

.fsMoreItem {
  background: transparent;
  color: #eee;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.15s ease;
}
.fsMoreItem:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.fsMoreItem:active {
  background: var(--red, #e50914);
}
.fsMoreLeft {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fsMoreIcon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.fsMoreRight {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #aaa;
  font-size: 11px;
  max-width: 75px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.fsMoreRight .fsArrow {
  font-size: 14px;
  color: #888;
  flex-shrink: 0;
}
.fsSubDrawer {
  width: 220px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 70px);
  max-height: calc(100dvh - 70px);
  box-sizing: border-box;
}
.fsSubDrawerHeader {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 7px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}
.fsSubDrawerHeader:hover {
  color: var(--red, #e50914);
}

#fsServerMenu {
  width: 220px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 70px);
  max-height: calc(100dvh - 70px);
  box-sizing: border-box;
}
.fsPopItem {
  background: transparent;
  color: #ddd;
  border: none;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fsPopItem:hover { background: #2a2a35; color: #fff; }
.fsPopItem.active { background: var(--red, #e50914); color: #fff; font-weight: 700; }

@media (max-width: 768px) {
  .fsTitle { font-size: 15px; }
  .fsSideCtrl {
    padding: 6px 4px;
    gap: 4px;
    border-radius: 20px;
    width: 32px;
  }
  .fsSideLeft { left: 8px; }
  .fsSideRight { right: 8px; }
  .fsCapsuleTrack { height: 90px; width: 12px; }
  .fsSideIcon { width: 24px; height: 24px; font-size: 13px; }
  .fsSideVal { font-size: 9px; min-width: 24px; }

  .fsActionRow {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fsActionGroup {
    gap: 4px;
  }
  .fsPlayerSqBtn {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-radius: 5px;
  }
  .fsPlayMainBtn {
    width: 40px;
    height: 36px;
    border-radius: 6px;
  }
  .fsPlayCluster {
    gap: 5px;
  }
  .fsSeekSubCluster {
    gap: 2px;
    padding: 2px;
  }
  .fsOptGroup {
    gap: 4px;
  }
  .fsTimeText { font-size: 11px; min-width: 48px; }
}
#filterBar { display: flex; gap: 10px; align-items: center; padding: 8px 2px 0; }
#filterBar[hidden] { display: none; }
#filterBar button, #filterBar select { background: #2a2a30; color: #fff; border: 1px solid #4a4a52; border-radius: 8px; padding: 8px 12px; font-size: 16px; cursor: pointer; max-width: 100%; }
#filterBar button.active { background: var(--red); border-color: var(--redhi); }
#filterBar select { flex: 1; min-width: 0; }

/* Netflix Account View - Cinematic Design */
#view-account {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background-color: #000 !important;
  background-image: 
    linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.88) 100%),
    url("../img/netflix-bg.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px 20px !important;
  z-index: 1000 !important;
}

#view-account.view:not(.active) {
  display: none !important;
}

#view-account.view.active,
html.unauthenticated #view-account {
  display: flex !important;
}

#view-account .browseTop {
  display: none !important;
}

.nflxFloatingBackBtn {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
}
.nflxFloatingBackBtn:hover {
  background: #e50914;
  border-color: #ff3849;
  transform: scale(1.08);
}
.nflxFloatingBackBtn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

.nflxAccountWrap {
  max-width: 960px !important;
  width: 92% !important;
  margin: auto !important;
  background: rgba(12, 12, 16, 0.78) !important;
  backdrop-filter: blur(24px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(229, 9, 20, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  padding: 38px 46px !important;
  position: relative;
  z-index: 10;
}

.nflxAuthHeader {
  text-align: center;
  margin-bottom: 30px;
}
.nflxAuthLogo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}
.nflxAuthLogo .bx {
  height: 34px;
  width: auto;
}
.nflxAuthLogo .btv {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}
.nflxAuthTitle {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 0 8px 0;
}
.nflxRedText {
  color: #e50914;
  text-shadow: 0 0 18px rgba(229, 9, 20, 0.6);
}
.nflxAuthSubtitle {
  font-size: 15px;
  color: #9e9ea7;
  margin: 0;
  font-weight: 400;
}

.nflxDualGrid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 36px;
  position: relative;
}

.nflxAuthCol {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.nflxColHeader {
  margin-bottom: 18px;
}
.nflxBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ff3849;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.nflxColHeader h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
}
.nflxColHeader p {
  font-size: 13.5px;
  color: #8c8c8c;
  line-height: 1.45;
  margin: 0;
}
.nflxUrl {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 600;
}

.nflxQrCol {
  align-items: center;
  text-align: center;
}
.nflxQrWrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
  display: inline-block;
  margin: 10px 0 18px;
}
#qrBoxAcc {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 180px;
}
#qrBoxAcc img, #qrBoxAcc svg, #qrBoxAcc canvas {
  width: 180px !important;
  height: 180px !important;
  display: block;
  border-radius: 6px;
}

.nflxCodeBox {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 24px;
  text-align: center;
  margin-bottom: 18px;
  width: 100%;
  max-width: 270px;
  box-sizing: border-box;
}
.nflxCodeLabel {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.nflxCodeVal {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 8px;
  color: #e50914;
  text-shadow: 0 0 16px rgba(229, 9, 20, 0.6);
  font-family: monospace, sans-serif;
  padding-left: 8px;
}

.nflxStepsList {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: #8c8c8c;
  margin-top: auto;
}
.nflxStep {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stepNum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.nflxAuthDivider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
.nflxDividerLine {
  flex: 1;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.nflxDividerText {
  padding: 12px 0;
  font-size: 13px;
  font-weight: 800;
  color: #666;
  letter-spacing: 2px;
}

.nflxDirectCol .nflxColHeader {
  text-align: left;
}
.nflxForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.nflxInputGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.nflxInputGroup label {
  font-size: 13px;
  font-weight: 600;
  color: #bbb;
}
.nflxInputGroup input {
  background: rgba(0, 0, 0, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  color: #fff !important;
  transition: all 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.nflxInputGroup input:focus {
  border-color: #e50914 !important;
  background: rgba(0, 0, 0, 0.8) !important;
  outline: none !important;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.4) !important;
}

.nflxBtnRow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.nflxBtn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  box-sizing: border-box;
}
.nflxBtnPrimary {
  background: #e50914 !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.4) !important;
}
.nflxBtnPrimary:hover, .nflxBtnPrimary:focus-visible {
  background: #f40612 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.6) !important;
  outline: none;
}
.nflxBtnSecondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.nflxBtnSecondary:hover, .nflxBtnSecondary:focus-visible {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #fff !important;
  outline: none;
}

.nflxLoggedInGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 18px;
  margin-top: 18px;
}
.nflxLoggedInGrid .card {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  padding: 20px 14px !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
}
.nflxLoggedInGrid .card:hover,
.nflxLoggedInGrid .card:focus-visible {
  background: rgba(229, 9, 20, 0.15) !important;
  border-color: #e50914 !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(229, 9, 20, 0.35) !important;
  outline: none !important;
}
.nflxLoggedInGrid .card svg {
  width: 44px !important;
  height: 44px !important;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.nflxLoggedInGrid .card span {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #fff !important;
}
.accCardSignOut {
  border-color: rgba(229, 9, 20, 0.35) !important;
}
.accCardSignOut:hover {
  background: rgba(229, 9, 20, 0.25) !important;
  border-color: #e50914 !important;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.45) !important;
}

@media (max-width: 820px) {
  .nflxDualGrid {
    flex-direction: column;
    gap: 30px;
  }
  .nflxAuthDivider {
    flex-direction: row;
    padding: 0;
    gap: 16px;
  }
  .nflxDividerLine {
    height: 1px;
    width: 100%;
  }
  .nflxAccountWrap {
    padding: 24px 20px !important;
  }
}

/* Netflix Styled Settings Wrap */
.settingsWrap {
  background: rgba(22, 22, 28, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  padding: 32px 36px;
  box-sizing: border-box;
  margin: 44px auto 50px !important;
}

/* Account Cards Grid */
#accCardsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
}
#accCardsGrid[hidden] { display: none !important; }
#accAuthBox[hidden] { display: none !important; }

.accCardBtn {
  background: #181822 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 34px 16px 28px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  min-height: 190px !important;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1) !important;
}
.accCardBtn svg {
  width: 56px;
  height: 56px;
  stroke: #e50914;
  transition: transform 0.2s;
}
.accCardBtn span {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: 0.5px;
}
.accCardBtn:hover, .accCardBtn:focus-visible {
  background: #232330 !important;
  border-color: #e50914 !important;
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: 0 10px 24px rgba(229, 9, 20, 0.35) !important;
  outline: none;
}
.accCardBtn:hover svg, .accCardBtn:focus-visible svg {
  transform: scale(1.1);
}

/* Netflix Profile Details Panel */
.profGrid {
  background: rgba(14, 14, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 18px;
  margin-top: 10px;
}
.profGrid[hidden] { display: none; }
.profGrid > div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
}
.profGrid > div:last-child { border-bottom: 0; }
.profGrid span {
  color: #8c8c8c;
  flex: 0 0 110px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.profGrid b {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profRow {
  display: flex;
  gap: 10px;
  align-items: center;
}
.profRow input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  color: #fff;
}
.profRow input:focus { border-color: #e50914; outline: none; }
.profRow button {
  flex: none;
  background: #e50914;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.profRow button:hover { background: #f40612; }

/* Saved & Profile Playlists List */
.savedList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.savedRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(14, 14, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color 0.2s;
}
.savedRow:hover { border-color: rgba(255, 255, 255, 0.28); }
.savedRowMeta { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; }
.savedRowBtns { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.savedBtn {
  background: #282832;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.savedBtn:hover { background: #3c3c4a; border-color: #777; }
.savedBtn.loadBtn { background: #e50914; border-color: #ff3344; }
.savedBtn.loadBtn:hover { background: #f40612; }
.savedBtn.danger {
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}
.savedBtn.danger:hover {
  background: #dc2626;
  color: #fff;
  border-color: #ef4444;
}

.dangerBtn {
  background: #b91c1c;
  color: #fff;
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.dangerBtn:hover, .dangerBtn:focus { background: #dc2626; outline: 2px solid #fff; }

/* Admin Panel Tabs & Tables */
#admBox[hidden] { display: none; }
#admBox h3 { margin: 14px 0 6px; font-size: 22px; color: #fff; }
.admTabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.admTabs button {
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #181820;
  color: #ccc;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
}
.admTabs button.active, .admTabs button:hover {
  background: #e50914;
  color: #fff;
  border-color: #ff3344;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

#admQ {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  color: #fff;
  margin: 10px 0 16px;
}
#admQ:focus { border-color: #e50914; outline: none; }

.admTbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: rgba(14, 14, 18, 0.7);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.admTbl td, .admTbl th {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}
.admTbl th {
  background: rgba(255, 255, 255, 0.04);
  color: #8c8c8c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admTbl button {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  margin: 2px 4px 2px 0;
  background: #2a2a34;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.admTbl button:hover { background: #3c3c4a; border-color: #777; }
.admBadge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 800; text-transform: uppercase; margin-right: 4px; }
.admBadge.admin { background: #7c3aed; color: #fff; }
.admBadge.user { background: #374151; color: #ddd; }
.admBadge.active { background: #16a34a; color: #fff; }
.admBadge.banned { background: #dc2626; color: #fff; }
.admBadge.off { background: #4b5563; color: #aaa; }
.admPendBox { background: #2e2000; border: 1px solid #facc15; padding: 10px 12px; border-radius: 8px; margin: 6px 0; font-size: 13px; line-height: 1.4; color: #fef08a; }

/* account screen: QR + big serial + OR + sign buttons (Nomadverse style) */
.accGrid { display: flex; gap: 24px; align-items: flex-start; margin: 14px 0; }
#qrBoxAcc img, #qrBoxAcc svg { width: 190px; height: 190px; border-radius: 12px; background: #fff; padding: 8px; display: block; box-sizing: border-box; box-shadow: 0 4px 16px rgba(0,0,0,0.6); }
.accSide { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.accSide input { background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; padding: 10px 14px; font-size: 15px; color: #fff; width: 100%; box-sizing: border-box; }
.accCap { font-size: 17px; font-weight: 600; color: #ddd; }
.accSerial { font-size: 32px; font-weight: 800; letter-spacing: 6px; color: #e50914; text-shadow: 0 0 10px rgba(229, 9, 20, 0.4); }
.accOr { display: flex; align-items: center; gap: 10px; color: #888; font-size: 13px; letter-spacing: 2px; }
.accOr:before, .accOr:after { content: ""; flex: 1; border-top: 1px solid rgba(255,255,255,0.1); }
.accRowBtns { display: flex; gap: 12px; }
.accRowBtns button { flex: 1; border-radius: 8px; padding: 12px 14px; font-size: 16px; font-weight: 700; cursor: pointer; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); transition: all 0.2s; }
.accRowBtns button:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.accRowBtns button.on, #btnAccSignin { background: #e50914; border-color: #ff3344; color: #fff; }
.accRowBtns button.on:hover, #btnAccSignin:hover { background: #f40612; }

@media (max-width: 700px) { .accGrid { flex-direction: column; } #qrBoxAcc img, #qrBoxAcc svg { width: 160px; height: 160px; } .accSerial { font-size: 26px; } #accCardsGrid { grid-template-columns: 1fr; } }

.admModalBox { max-width: 580px; width: 92%; margin: auto; padding: 28px; background: #161620; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,0.9); box-sizing: border-box; }
.admFormGrid { display: grid; grid-template-columns: 140px 1fr; gap: 14px 16px; align-items: center; margin-top: 18px; }
.admFormGrid label { color: #bbb; font-size: 14px; font-weight: 600; }
.admFormGrid input, .admFormGrid select { width: 100%; box-sizing: border-box; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #fff; }
.admFormGrid input:focus, .admFormGrid select:focus { border-color: #ef4444; outline: none; }
@media (max-width: 600px) {
  .admModalBox { padding: 18px 16px; }
  .admFormGrid { grid-template-columns: 1fr; gap: 6px; }
  .admFormGrid label { margin-top: 6px; font-size: 13px; }
}

/* Semi-Auto VOD Scraper UI in Admin */
.admTabSpecial { background: #b91c1c !important; color: #fff !important; border-color: #ef4444 !important; }
.admTabSpecial.active { background: #dc2626 !important; }
.admScraperWrap { display: grid; grid-template-columns: 380px 1fr; gap: 20px; margin-top: 14px; align-items: start; }
@media (max-width: 900px) { .admScraperWrap { grid-template-columns: 1fr; } }
.admScraperCol { min-width: 0; }
.admScraperCard { background: #181820; border: 1px solid #33333d; border-radius: 12px; padding: 18px 20px; }
.admScraperHeading { margin: 0 0 4px; font-size: 18px; color: #fff; font-weight: 700; }
.admScraperHint { margin: 0 0 14px; font-size: 13px; color: #999; }
.admScraperField { margin-bottom: 14px; }
.admScraperField label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #ccc; }
.admScraperField select, .admScraperField textarea { width: 100%; box-sizing: border-box; background: #0f0f13; border: 1px solid #3a3a44; border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #fff; font-family: inherit; }
.admScraperField textarea { resize: vertical; min-height: 140px; font-family: monospace; font-size: 13px; line-height: 1.5; }
.admScraperPresets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.presetLabel { font-size: 12px; color: #888; margin-right: 2px; }
.presetBtn { background: #24242c; border: 1px solid #444; border-radius: 6px; color: #ddd; font-size: 11px; padding: 4px 8px; cursor: pointer; transition: all 0.15s; }
.presetBtn:hover { background: #33333f; color: #fff; border-color: #666; }
.admScraperActions { display: flex; gap: 10px; }
.admScraperBtn { border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid transparent; transition: all 0.15s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.admScraperBtn.primary { flex: 1; background: #e50914; color: #fff; border-color: #ff3344; }
.admScraperBtn.primary:hover { background: #f40612; }
.admScraperBtn.secondary { background: #2b2b34; color: #ccc; border-color: #444; }
.admScraperBtn.secondary:hover { background: #3c3c46; color: #fff; }
.admScraperBtn.scrapeBtn { background: #16a34a; color: #fff; border-color: #22c55e; }
.admScraperBtn.scrapeBtn:hover:not(:disabled) { background: #15803d; }
.admScraperBtn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Right Column Results */
.admScraperResultsHeader { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid #2e2e38; padding-bottom: 12px; margin-bottom: 14px; }
.admScraperSummary { font-size: 13px; color: #aaa; }
.admScraperBulkControls { display: flex; align-items: center; gap: 14px; }
.admSelectAllWrap { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #ccc; cursor: pointer; user-select: none; }
.admScraperResultsList { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.admScraperPlaceholder { text-align: center; padding: 48px 16px; color: #777; }
.placeholderIcon { font-size: 40px; display: block; margin-bottom: 10px; opacity: 0.7; }
.admScraperPlaceholder p { margin: 0; font-size: 14px; line-height: 1.6; }

/* Result Row Card */
.admResultItem { display: flex; align-items: center; gap: 12px; background: #101015; border: 1px solid #2e2e38; border-radius: 10px; padding: 10px 14px; transition: border-color 0.15s; }
.admResultItem:hover { border-color: #4a4a58; }
.admResultItem.found { border-left: 4px solid #22c55e; }
.admResultItem.missing { border-left: 4px solid #ef4444; opacity: 0.75; }
.admResultPoster { width: 44px; height: 62px; border-radius: 6px; object-fit: cover; background: #222; flex-shrink: 0; }
.admResultDetails { flex: 1; min-width: 0; }
.admResultTitle { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admResultMeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #aaa; }
.admBadgeType { background: #2563eb; color: #fff; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.admBadgeRating { background: #eab308; color: #000; padding: 1px 5px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.admBadgeStatus { font-size: 11px; font-weight: 700; }
.admBadgeStatus.avail { color: #4ade80; }
.admBadgeStatus.missing { color: #f87171; }
.admResultAction { flex-shrink: 0; }
.admItemScrapeBtn { background: #22c55e; color: #fff; border: none; border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background 0.15s; }
.admItemScrapeBtn:hover { background: #16a34a; }
.admItemScrapeBtn.done { background: #374151; color: #9ca3af; cursor: default; }

/* Progress Bar */
.admScraperProgressWrap { background: #121218; border: 1px solid #333; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.admProgressInfo { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: #ddd; margin-bottom: 6px; }
.admProgressBarTrack { height: 8px; background: #2a2a34; border-radius: 4px; overflow: hidden; }
.admProgressBarFill { height: 100%; width: 0%; background: linear-gradient(90deg, #e50914, #22c55e); transition: width 0.2s ease; }

/* Logs Terminal */
.admScraperLogBox { margin-top: 14px; background: #0c0c10; border: 1px solid #2a2a35; border-radius: 8px; overflow: hidden; }
.admLogHeader { display: flex; justify-content: space-between; align-items: center; background: #14141c; padding: 6px 12px; font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.admLogClear { background: transparent; border: none; color: #999; font-size: 11px; cursor: pointer; }
.admLogClear:hover { color: #fff; }
.admScraperLogs { margin: 0; padding: 10px 12px; font-family: 'Courier New', Courier, monospace; font-size: 11px; color: #4ade80; max-height: 130px; overflow-y: auto; white-space: pre-wrap; line-height: 1.4; }

/* ==========================================================================
   NETFLIX OTT MODERN UI DESIGN SYSTEM
   ========================================================================== */

.netflixHomeView {
  padding: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden;
}

/* 1. Translucent Netflix Top Navbar */
.netflixHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px 8px;
  padding-left: max(48px, env(safe-area-inset-left));
  padding-right: max(48px, env(safe-area-inset-right));
  z-index: 100;
  background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 65%, transparent 100%);
  backdrop-filter: blur(14px);
  transition: all 0.3s ease;
}
.netflixHeader.scrolled {
  background: rgba(20, 20, 20, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  padding: 10px 48px 10px;
  padding-left: max(48px, env(safe-area-inset-left));
  padding-right: max(48px, env(safe-area-inset-right));
  height: 72px;
}
.nflxLeft {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nflxBrand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.nflxBrand .bx {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(229, 9, 20, 0.5));
}
.nflxBrand .btv {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.nflxNav {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
  white-space: nowrap;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 6px 12px;
  margin: 0;
}
.nflxNav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.nflxNavLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  outline: none;
  color: #d6d6d6;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 9999px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex: 0 0 auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  line-height: 1.2;
  box-sizing: border-box;
}
.nflxNavLink:hover,
.nflxNavLink:focus,
.nflxNavLink:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  outline: 3px solid var(--redhi, #ff2a3a) !important;
  outline-offset: 2px !important;
  transform: translateY(-1px);
}
.nflxNavLink:active {
  transform: scale(0.96);
}
.nflxNavLink.active {
  background: var(--red, #e50914);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.45);
}
.nflxNavLink.active::after {
  display: none;
}

.nflxRight {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nflxSearchWrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 6px 14px;
  height: 40px;
  box-sizing: border-box;
  transition: all 0.25s ease;
}
.nflxSearchWrap:focus-within {
  border-color: #fff;
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.5);
}
.nflxSearchIcon {
  flex-shrink: 0;
  opacity: 0.85;
  cursor: pointer;
}
#nflxSearchInput {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  padding: 4px 8px;
  width: 200px;
  outline: none;
}
#nflxSearchInput::placeholder {
  color: #888;
}

/* Netflix Navbar Clock Pill */
.nflxClockWrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 6px 16px;
  height: 40px;
  box-sizing: border-box;
  transition: all 0.25s ease;
}
.nflxClockWrap:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.85);
}
.nflxClockIcon {
  flex-shrink: 0;
  opacity: 0.85;
}
.nflxClockWrap #clock {
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace !important;
  color: #fff !important;
  letter-spacing: 1px;
  line-height: 1 !important;
  white-space: nowrap;
}
.nflxAccountBtn {
  width: 40px;
  height: 40px;
  min-height: unset;
  border-radius: 8px;
  background: #282828;
  border: 1px solid #444;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.nflxAccountBtn:hover {
  transform: scale(1.1);
  border-color: var(--red, #e50914);
}

/* 2. Netflix Hero Spotlight Billboard */
.netflixHero {
  position: relative;
  width: 100%;
  height: 48vh;
  min-height: 350px;
  max-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: 105px 48px 30px;
  box-sizing: border-box;
  overflow: hidden;
  background: #141414;
}
.netflixHero[hidden],
#netflixHero[hidden],
.netflixHomeView.liveFixedLayout #netflixHero,
.netflixHomeView.liveFixedLayout .netflixHero {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.heroBackdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 25%;
  transition: opacity 0.8s ease-in-out, background-image 0.8s ease-in-out;
  transform: scale(1.02);
  z-index: 1;
}
.heroGradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(77deg, rgba(20,20,20,0.96) 0%, rgba(20,20,20,0.85) 35%, rgba(20,20,20,0.3) 70%, transparent 100%),
              linear-gradient(180deg, rgba(20,20,20,0.1) 0%, rgba(20,20,20,0.4) 60%, #141414 100%);
  z-index: 2;
}
.heroContent {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding-top: 10px;
}
.heroBadge {
  display: inline-block;
  background: rgba(229, 9, 20, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}
.heroTitle {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 10px 0;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}
.heroMeta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 10px;
}
.heroMatch {
  color: #46d369;
  font-weight: 800;
}
.heroQuality, .heroAudio, .heroCategory, .nflxBadge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #e5e5e5;
}
.heroDesc {
  font-size: 14px;
  line-height: 1.45;
  color: #d1d1d1;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  max-width: 580px;
}
.heroBtns {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nflxBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.nflxBtn:hover,
.nflxBtn:focus,
.nflxBtn:focus-visible {
  outline: 4px solid var(--redhi, #ff2a3a) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.8) !important;
  transform: scale(1.08) !important;
}
.nflxBtnPlay {
  background: #ffffff;
  color: #000000;
}
.nflxBtnPlay:hover,
.nflxBtnPlay:focus,
.nflxBtnPlay:focus-visible {
  background: #ffffff;
  color: #000000;
}
.nflxBtnInfo {
  background: rgba(109, 109, 110, 0.7);
  color: #ffffff;
  backdrop-filter: blur(8px);
}
.nflxBtnInfo:hover,
.nflxBtnInfo:focus,
.nflxBtnInfo:focus-visible {
  background: rgba(109, 109, 110, 0.95);
}
.nflxBtnFav {
  background: rgba(40, 40, 40, 0.8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.nflxBtnFav:hover,
.nflxBtnFav:focus,
.nflxBtnFav:focus-visible {
  background: rgba(60, 60, 60, 0.95);
  border-color: #fff;
}

/* 3. Horizontal Netflix Swimlane Rows */
.netflixRows {
  position: relative;
  z-index: 5;
  margin-top: 10px;
  padding: 0 0 50px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
#netflixLiveHero:not([hidden]) ~ .netflixRows,
#netflixLiveHero:not([hidden]) ~ #netflixRows,
.netflixRows.liveGridMode {
  margin-top: 0 !important;
  padding-top: 14px !important;
}
.nflxRow {
  position: relative;
  padding: 0 44px;
  margin-bottom: 4px;
}
.nflxRowHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.nflxRowTitle {
  font-size: 21px;
  font-weight: 800;
  color: #e5e5e5;
  margin: 0;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nflxRowSeeAll {
  font-size: 13px;
  font-weight: 700;
  color: #54b9c5;
  cursor: pointer;
  background: transparent;
  border: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.nflxRow:hover .nflxRowSeeAll {
  opacity: 1;
}
.nflxRowCount {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.2px;
}

/* Row Track & Scroll Arrows */
.nflxRowTrackWrap {
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
}
.nflxRowTrack {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  padding: 26px 8px 30px;
  margin: -18px 0 -22px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nflxRowTrack::-webkit-scrollbar {
  display: none;
}
.nflxScrollBtn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  opacity: 0;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.nflxRowTrackWrap:hover .nflxScrollBtn {
  opacity: 1;
}
.nflxScrollBtn.left {
  left: -44px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
.nflxScrollBtn.right {
  right: -44px;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.nflxScrollBtn:hover {
  background: rgba(0, 0, 0, 0.9);
  color: var(--red, #e50914);
}

/* 4. Netflix Cards (Poster 2:3 and Live 16:9) */
.nflxCard {
  flex: 0 0 175px;
  aspect-ratio: 2/3;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
  transform-origin: center center;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.nflxCard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
  transition: opacity 0.3s;
}
.nflxCardInfo {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 8px 8px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.95) 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nflxCardTitle {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nflxCardMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #aaa;
}
.nflxCardBadge {
  background: var(--red, #e50914);
  color: #fff;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
}
.nflxCardProg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #444;
}
.nflxCardProgFill {
  height: 100%;
  background: var(--red, #e50914);
}

/* Card Hover & Focus Effects */
.nflxCard:hover,
.nflxCard:focus,
.nflxCard:focus-visible,
.nflxCard.focused {
  outline: 4px solid var(--redhi, #ff2a3a) !important;
  outline-offset: 3px !important;
  transform: scale(1.10) !important;
  z-index: 25 !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.95), 0 0 22px rgba(229, 9, 20, 0.9) !important;
}

/* Live TV Portrait Channel Card matching Movie Thumbs (Stretched Cover) */
.nflxCard.liveCard {
  flex: 0 0 175px;
  aspect-ratio: 2/3;
  background: #181820;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.nflxCard.liveCard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  padding: 0;
  background: #111;
  transition: transform 0.25s ease, opacity 0.3s;
}
.nflxCard.liveCard:hover img,
.nflxCard.liveCard:focus-visible img {
  transform: scale(1.06);
}
.nflxCard.liveCard.active {
  border-color: var(--red, #e50914) !important;
  box-shadow: 0 0 0 3px var(--red, #e50914), 0 0 24px rgba(229, 9, 20, 0.8) !important;
}
.nflxLiveBadge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red, #e50914);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.7);
  z-index: 5;
}

/* Vertical Up-Down Scrolling Live TV Grid */
.nflxLiveGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding: 10px 44px 60px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}
.nflxLiveGrid .nflxCard.liveCard {
  width: 100%;
  flex: none;
}
@media (min-width: 1600px) {
  .nflxLiveGrid {
    grid-template-columns: repeat(8, 1fr);
  }
}
@media (min-width: 1350px) and (max-width: 1599px) {
  .nflxLiveGrid {
    grid-template-columns: repeat(7, 1fr);
  }
}
@media (min-width: 1100px) and (max-width: 1349px) {
  .nflxLiveGrid {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (min-width: 850px) and (max-width: 1099px) {
  .nflxLiveGrid {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media (min-width: 651px) and (max-width: 849px) {
  .nflxLiveGrid {
    grid-template-columns: repeat(4, 1fr);
    padding: 10px 20px 40px;
  }
}
@media (max-width: 650px) {
  .nflxLiveGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 8px 10px 40px;
  }
}

/* 5. Netflix Detail Modal */
.netflixModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.netflixModal[hidden] {
  display: none !important;
}
.nflxModalBox {
  background: #181818;
  border-radius: 12px;
  width: 820px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  position: relative;
}
.nflxModalHero {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center 20%;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.nflxModalHeroBg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  z-index: 1;
}
.nflxModalHeroGrad {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, #181818 100%);
  z-index: 2;
}
.nflxModalHeroContent {
  position: relative;
  z-index: 3;
}
.nflxModalHeroContent h2 {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 14px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
.nflxModalHeroBtns {
  display: flex;
  gap: 12px;
}
.nflxModalDetails {
  padding: 24px 28px 32px;
}
.nflxModalMetaRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.nflxModalDesc {
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 24px;
}
.nflxSeasonHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #333;
  padding-top: 18px;
  margin-bottom: 14px;
}
.nflxSeasonHead h3 {
  margin: 0;
  font-size: 20px;
}
.nflxSeasonSelect {
  background: #242424;
  color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
}
.nflxEpGrid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}
.nflxEpCard {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #222;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.nflxEpCard:hover, .nflxEpCard:focus-visible {
  background: #333;
  outline: 2px solid var(--red, #e50914);
}
.nflxEpNum {
  font-size: 16px;
  font-weight: 800;
  color: #888;
  width: 24px;
}
.nflxEpTitle {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.nflxEpPlayBtn {
  background: var(--red, #e50914);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ============ NETFLIX FULL-PAGE DETAIL VIEW ============ */
.netflixDetailView {
  background: #111;
  color: #fff;
  min-height: 100vh;
  padding-bottom: 80px;
  overflow-y: auto;
}
.detailHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 75%, transparent 100%);
  padding: 18px 48px;
}
.nflxBackBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 30, 35, 0.85);
  color: #fff;
  border: 1px solid #555;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-right: 18px;
  transition: background 0.2s, transform 0.1s, border-color 0.2s;
}
.nflxBackBtn:hover {
  background: var(--red, #e50914);
  border-color: #e50914;
  transform: scale(1.04);
}
.detailHero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 120px 48px 48px;
  background-color: #141414;
}
.detailHeroBackdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 25%;
  opacity: 0.55;
  z-index: 1;
  transition: opacity 0.5s ease;
}
.detailHeroGradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, #111 0%, rgba(17,17,17,0.7) 45%, rgba(17,17,17,0.3) 75%, transparent 100%),
              linear-gradient(90deg, #111 0%, rgba(17,17,17,0.8) 35%, transparent 70%);
  z-index: 2;
}
.detailHeroContent {
  position: relative;
  z-index: 3;
  max-width: 800px;
}
.detailBadge {
  display: inline-block;
  background: var(--red, #e50914);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.detailTitle {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 16px;
  text-shadow: 0 4px 14px rgba(0,0,0,0.9);
}
.detailMeta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.detailMatch {
  color: #46d369;
  font-weight: 800;
  font-size: 16px;
}
.detailBadgePill {
  background: rgba(255,255,255,0.14);
  color: #eee;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.18);
}
.detailDesc {
  font-size: 16px;
  line-height: 1.65;
  color: #ddd;
  margin-bottom: 24px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.detailHeroBtns {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Series Section */
.detailSeriesSection {
  padding: 24px 48px;
  max-width: 1400px;
}
.detailSeasonBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.detailSeasonHead {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.detailSeasonHead h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.detailEpCount {
  font-size: 15px;
  color: #888;
  font-weight: 600;
}
.detailSeasonTabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.seasonTabBtn {
  background: #202024;
  color: #bbb;
  border: 1px solid #3a3a40;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.seasonTabBtn:hover {
  background: #333;
  color: #fff;
  border-color: #666;
}
.seasonTabBtn.active {
  background: var(--red, #e50914);
  color: #fff;
  border-color: #e50914;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

/* Episodes Grid */
.detailEpisodesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.nflxEpGridCard {
  background: #18181c;
  border-radius: 10px;
  border: 1px solid #282830;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.nflxEpGridCard:hover, .nflxEpGridCard:focus-visible {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--red, #e50914);
  box-shadow: 0 10px 24px rgba(0,0,0,0.8), 0 0 12px rgba(229, 9, 20, 0.3);
  outline: none;
}
.nflxEpThumbWrap {
  position: relative;
  width: 100%;
  height: 160px;
  background: #222;
  overflow: hidden;
}
.nflxEpThumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.nflxEpGridCard:hover .nflxEpThumb {
  transform: scale(1.06);
}
.nflxEpPlayOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nflxEpGridCard:hover .nflxEpPlayOverlay {
  opacity: 1;
}
.nflxEpPlayIconCircle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red, #e50914);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.nflxEpCardNumBadge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
}
.nflxEpCardBody {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nflxEpCardTitle {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.35;
}
.nflxEpCardMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

/* Responsive Netflix adjustments */
@media (max-width: 900px) {
  .netflixHeader {
    padding: 12px 18px 8px;
    height: auto;
    min-height: 60px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(12, 12, 16, 0.92) 80%, transparent 100%);
  }
  .netflixHeader.scrolled {
    padding: 10px 18px 8px;
    height: auto;
    background: rgba(14, 14, 18, 0.98);
  }
  .nflxLeft { gap: 14px; min-width: 0; }
  .nflxNav { gap: 8px; }
  .nflxNavLink { font-size: 14px; padding: 7px 15px; }
  .detailHeader { padding: 14px 20px; }
  .detailHero { padding: 100px 20px 32px; min-height: 420px; }
  .detailTitle { font-size: 30px; }
  .detailSeriesSection { padding: 20px; }
  .detailEpisodesGrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .netflixHero { padding: 95px 20px 24px; height: 46vh; min-height: 320px; }
  .heroTitle { font-size: 28px; }
  .netflixRows { padding: 0; margin-top: 10px; }
  .nflxRow { padding: 0 18px; }
  .nflxCard { flex: 0 0 130px; }
  .nflxCard.liveCard { flex: 0 0 180px; }
}

@media (max-width: 768px) {
  .netflixHeader {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "brand right"
      "nav   nav";
    row-gap: 8px;
    column-gap: 10px;
    padding: 10px 14px 8px;
    height: auto;
    min-height: auto;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 10, 12, 0.94) 85%, transparent 100%);
  }
  .netflixHeader.scrolled {
    padding: 10px 14px 8px;
    height: auto;
    background: rgba(12, 12, 16, 0.98);
  }
  .nflxLeft {
    display: contents;
  }
  .nflxBrand {
    grid-area: brand;
    align-self: center;
    gap: 6px;
  }
  .nflxBrand .bx {
    height: 34px;
  }
  .nflxBrand .btv {
    font-size: 22px;
  }
  .nflxRight {
    grid-area: right;
    justify-self: end;
    gap: 8px;
  }
  .nflxNav {
    grid-area: nav;
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 12px 8px;
    margin: 0;
    background: transparent;
    border: none;
    scroll-padding: 0 12px;
  }
  .nflxNav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  .nflxNavLink {
    font-size: 13.5px;
    padding: 6px 15px;
    flex: 0 0 auto;
    border-radius: 9999px;
  }
  .nflxSearchWrap {
    padding: 4px 10px;
  }
  #nflxSearchInput {
    width: 90px;
    font-size: 12px;
  }
  #nflxSearchInput:focus {
    width: 130px;
  }
  .nflxClockWrap {
    display: none;
  }
  .nflxAccountBtn {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
  }
  .nflxAccountBtn svg {
    width: 18px;
    height: 18px;
  }
  .netflixHero {
    padding: 95px 16px 20px;
    height: auto;
    min-height: 480px;
  }
  .heroContent {
    padding-top: 0;
  }
}

/* ============ NETFLIX LIVE TV HERO PREVIEW & CONTROLS ============ */
.netflixLiveHero {
  padding: 85px 44px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 10%, rgba(229, 9, 20, 0.08) 0%, rgba(10, 10, 14, 0.95) 75%, #0b0b0e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}
.netflixLiveHero[hidden] {
  display: none !important;
}
.nflxLivePlayerWrap {
  width: 100%;
  max-width: 1140px;
  height: clamp(280px, 46vh, 520px);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  position: relative;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
#nflxLiveVideo,
#nflxLiveEmbed {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
  border: none;
}
.nflxLiveControls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 1140px;
  position: relative;
  z-index: 25;
}
.nflxCtrlBtn,
.catDropBtn {
  padding: 8px 22px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
.nflxCtrlBtn:hover,
.nflxCtrlBtn:focus-visible,
.catDropBtn:hover,
.catDropBtn:focus-visible,
.catDropBtn.open {
  background: var(--red, #e50914) !important;
  border-color: #ff3344 !important;
  box-shadow: 0 2px 14px rgba(229, 9, 20, 0.55) !important;
  transform: translateY(-1px) !important;
  outline: none !important;
}

.view:not(.active) {
  display: none !important;
}

.nflxAccountBtn svg {
  pointer-events: none !important;
}

/* ============ NETFLIX LIVE TV FIXED LAYOUT (TOPBAR + PREVIEW + CONTROLS PINNED, CHANNELS SCROLL) ============ */
.netflixHomeView.liveFixedLayout.active {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.netflixHomeView.liveFixedLayout .netflixLiveHero {
  flex: 0 0 auto !important;
  padding: 78px 24px 8px !important;
  gap: 10px !important;
  background: radial-gradient(circle at 50% 10%, rgba(229, 9, 20, 0.08) 0%, rgba(10, 10, 14, 0.98) 80%, #0b0b0e 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
  margin-bottom: 0 !important;
}

.netflixHomeView.liveFixedLayout .nflxLivePlayerWrap {
  height: clamp(170px, 34vh, 380px) !important;
  max-width: 860px !important;
}

.netflixHomeView.liveFixedLayout .nflxLiveControls {
  margin: 0 !important;
  gap: 8px !important;
}

.netflixHomeView.liveFixedLayout .netflixRows.liveGridMode {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  margin-top: 0 !important;
  padding: 8px 0 40px !important;
}

.netflixHomeView.liveFixedLayout .nflxLiveGrid {
  padding: 8px 36px 60px !important;
}

@media (max-width: 768px) {
  .netflixHomeView.liveFixedLayout .netflixLiveHero {
    padding: 68px 12px 6px !important;
    gap: 8px !important;
  }
  .netflixHomeView.liveFixedLayout .nflxLivePlayerWrap {
    height: clamp(150px, 26vh, 220px) !important;
  }
  .netflixHomeView.liveFixedLayout .nflxLiveGrid {
    padding: 6px 12px 50px !important;
  }
}

/* ==========================================================================
   AUTHENTICATION GATEKEEPER
   Strict block when unauthenticated: only allow view-account login screen
   ========================================================================== */
html.unauthenticated #view-home,
html.unauthenticated #view-browse,
html.unauthenticated #view-detail,
html.unauthenticated #view-library,
html.unauthenticated #view-profile,
html.unauthenticated #view-admin,
html.unauthenticated #view-settings,
html.unauthenticated #view-ott,
html.unauthenticated #netflixHero,
html.unauthenticated #netflixLiveHero,
html.unauthenticated #netflixRows,
html.unauthenticated .netflixHeader,
html.unauthenticated #video,
html.unauthenticated #streamEmbed,
html.unauthenticated #fsControls {
  display: none !important;
}

html.unauthenticated #view-account {
  display: flex !important;
}

html.unauthenticated #btnBackAccount {
  display: none !important;
}

#view-profile.active,
#view-admin.active,
#view-playlist.active {
  padding: 16px 20px 60px !important;
}

/* ==========================================================================
   NEXT EPISODE PROMPT OVERLAY
   ========================================================================== */
.fsNextEpBox {
  position: fixed;
  bottom: 80px;
  right: 48px;
  background: rgba(18, 18, 22, 0.95);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 42, 58, 0.5);
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 42, 58, 0.2);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 320px;
  max-width: 450px;
  animation: fsNextEpFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fsNextEpFadeIn {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.fsNextEpTitle {
  font-size: 13px;
  font-weight: 800;
  color: #ff2a3a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.fsNextEpName {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fsNextEpBtns {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.fsNextEpBtn {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fsNextEpBtn.primary {
  background: #ffffff;
  color: #000000;
}
.fsNextEpBtn.primary:hover,
.fsNextEpBtn.primary:focus {
  background: #ff2a3a;
  color: #ffffff;
  outline: 3px solid #ffffff;
  transform: scale(1.05);
}
.fsNextEpBtn:not(.primary) {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
.fsNextEpBtn:not(.primary):hover,
.fsNextEpBtn:not(.primary):focus {
  background: rgba(255, 255, 255, 0.3);
  outline: 2px solid rgba(255, 255, 255, 0.6);
}


/* Shaka Player Container Fullscreen & Resizing Fix */
#shakaContainer, .shaka-video-container {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000 !important;
}

body.fsplay #shakaContainer,
body.fsplay .shaka-video-container {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 85 !important;
  background: #000 !important;
}

body.fsplay.embed-mode #shakaContainer,
body.fsplay.embed-mode .shaka-video-container {
  display: none !important;
}


/* Shaka Player Control Overlay Layering */
#shakaContainer, .shaka-video-container {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  background: #000 !important;
}

body.fsplay #shakaContainer,
body.fsplay .shaka-video-container {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 100 !important;
  background: #000 !important;
}

.shaka-controls-container, .shaka-bottom-controls, .shaka-controls-button-panel {
  z-index: 105 !important;
  pointer-events: auto !important;
}

.shaka-overflow-menu, .shaka-settings-menu {
  z-index: 110 !important;
}


/* ============ Movies & Series 50-Item Grid & Pagination ============ */
.nflxMediaGridWrap {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 16px 44px 60px;
  box-sizing: border-box;
}

.nflxMediaGridHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.nflxMediaGridTitle {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0;
}

.nflxMediaGridCount {
  font-size: 14px;
  color: var(--dim, #999);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
}

.nflxMediaGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
  width: 100%;
}

@media (min-width: 1650px) {
  .nflxMediaGrid {
    grid-template-columns: repeat(10, 1fr);
  }
}
@media (min-width: 1400px) and (max-width: 1649px) {
  .nflxMediaGrid {
    grid-template-columns: repeat(8, 1fr);
  }
}
@media (min-width: 1100px) and (max-width: 1399px) {
  .nflxMediaGrid {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .nflxMediaGrid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 767px) {
  .nflxMediaGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .nflxMediaGridWrap {
    padding: 12px 16px 40px;
  }
  .nflxMediaGridTitle {
    font-size: 20px;
  }
}

.nflxMediaGrid .nflxCard {
  flex: none;
  width: 100%;
}

/* Pagination Controls */
.nflxPagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.nflxPageBtn {
  background: rgba(35, 35, 45, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.nflxPageBtn:hover:not(:disabled) {
  background: var(--red, #e50914);
  border-color: #ff3344;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.5);
}

.nflxPageBtn.active {
  background: var(--red, #e50914) !important;
  border-color: #ff3344 !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.6) !important;
}

.nflxPageBtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.nflxPageEllipsis {
  color: #777;
  padding: 0 4px;
  font-weight: bold;
}


/* ==========================================================================
   NEOFLIX MOBILE-FIRST RESPONSIVE UI & SPLASH SCREEN
   ========================================================================== */

/* --- Splash Screen --- */
.neoflixSplash {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000000;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
  pointer-events: auto;
  user-select: none;
}

.neoflixSplash.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.neoflixSplashInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  animation: nflxZoomPulse 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes nflxZoomPulse {
  0% { transform: scale(0.7); opacity: 0; filter: blur(6px); }
  35% { transform: scale(1.05); opacity: 1; filter: blur(0); }
  75% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

.neoflixSplashN {
  filter: drop-shadow(0 0 24px rgba(229, 9, 20, 0.85)) drop-shadow(0 0 45px rgba(229, 9, 20, 0.45));
}

.neoflixSplashText {
  color: #E50914;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 6px;
  text-shadow: 0 0 20px rgba(229, 9, 20, 0.7);
}

.neoflixSplashLoader {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  margin-top: 10px;
}

.neoflixSplashBar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff1a25, #E50914, #ff5e62);
  border-radius: 999px;
  box-shadow: 0 0 10px #E50914;
  animation: nflxLoadingProgress 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes nflxLoadingProgress {
  0% { width: 0%; }
  50% { width: 65%; }
  100% { width: 100%; }
}

/* --- Brand Logo Styling --- */
.neoflixLogoSvg {
  display: block;
  height: 32px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.6));
  cursor: pointer;
  transition: transform 0.2s ease;
}

.neoflixLogoSvg:hover {
  transform: scale(1.04);
}

/* --- Mobile Bottom Navigation (Netflix App Style) --- */
.neoflixBottomNav {
  display: none;
}

@media (max-width: 768px) {
  /* Show Mobile Bottom Nav */
  .neoflixBottomNav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(14, 14, 18, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    justify-content: space-around;
    align-items: center;
  }

  .nflxBottomTab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: #8c8c8c;
    font-size: 10.5px;
    font-weight: 600;
    padding: 6px 0;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
  }

  .nflxBottomTab svg {
    transition: transform 0.15s ease;
  }

  .nflxBottomTab.active {
    color: #ffffff !important;
  }

  .nflxBottomTab.active svg {
    color: #E50914 !important;
    transform: translateY(-1px);
    filter: drop-shadow(0 0 6px rgba(229, 9, 20, 0.6));
  }

  /* Adjust Container Padding for Bottom Nav */
  .netflixHomeView,
  .netflixRows,
  .nflxMediaGridWrap {
    padding-bottom: 74px !important;
  }

  /* Compact Top Header on Mobile */
  .netflixHeader {
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 10, 14, 0.85) 75%, transparent 100%) !important;
  }

  /* Hide Desktop Nav on Mobile since Bottom Nav takes over */
  /* Keep Top Nav scrollable on Mobile */
  .netflixHeader .nflxNav {
    display: flex !important;
    gap: 6px !important;
    padding: 4px 0 !important;
    overflow-x: auto !important;
  }

  .neoflixLogoSvg {
    height: 28px !important;
  }

  /* Netflix Mobile Hero Banner */
  .netflixHero {
    padding: 70px 14px 20px !important;
    min-height: 400px !important;
    height: 52vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }

  .heroTitle {
    font-size: 24px !important;
    line-height: 1.18 !important;
    margin-bottom: 8px !important;
  }

  .heroDesc {
    font-size: 13px !important;
    line-height: 1.4 !important;
    -webkit-line-clamp: 2 !important;
    max-width: 100% !important;
    margin-bottom: 12px !important;
  }

  .heroMeta {
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  .heroBadge {
    font-size: 11px !important;
    padding: 3px 8px !important;
  }

  .heroBtns {
    gap: 8px !important;
  }

  .heroBtn {
    padding: 8px 16px !important;
    font-size: 13.5px !important;
    border-radius: 6px !important;
  }

  /* Mobile Netflix Cards & Rows */
  .nflxRow {
    padding: 0 12px !important;
    margin-bottom: 16px !important;
  }

  .nflxRowTitle {
    font-size: 17px !important;
  }

  .nflxRowCount {
    font-size: 12px !important;
  }

  .nflxCard {
    flex: 0 0 115px !important;
    border-radius: 8px !important;
  }

  .nflxCard.liveCard {
    flex: 0 0 155px !important;
  }

  .nflxCardTitle {
    font-size: 12px !important;
  }

  .nflxScrollBtn {
    display: none !important; /* Touch swipe on mobile */
  }

  .nflxRowTrack {
    gap: 8px !important;
    padding: 6px 2px 10px !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Mobile Live Hero */
  .netflixLiveHero {
    padding: 65px 10px 14px !important;
  }

  .nflxLivePlayerWrap {
    height: 220px !important;
    border-radius: 10px !important;
  }

  .nflxLiveControls {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .nflxCtrlBtn, .catDropBtn {
    padding: 6px 14px !important;
    font-size: 12.5px !important;
  }
}


/* ==========================================================================
   NEOFLIX TEXT & RIBBON LOGO STYLING
   ========================================================================== */
.nflxBrandLogo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.nflxRibbonN {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Impact', 'Bebas Neue', 'Helvetica Neue', Arial, sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #E50914;
  line-height: 1;
  text-shadow: 0 0 16px rgba(229, 9, 20, 0.7), 2px 2px 4px rgba(0, 0, 0, 0.8);
  transform: skewX(-5deg);
  letter-spacing: -1px;
}

.nflxBrandText {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #E50914;
  line-height: 1;
  text-shadow: 0 0 18px rgba(229, 9, 20, 0.6), 1px 2px 3px rgba(0, 0, 0, 0.9);
  display: inline-block;
  white-space: nowrap;
}

.nflxBrandLogo.small .nflxRibbonN {
  font-size: 24px;
}

.nflxBrandLogo.small .nflxBrandText {
  font-size: 20px;
  letter-spacing: 3px;
}

@media (max-width: 768px) {
  .nflxBrandLogo {
    gap: 6px;
  }
  .nflxRibbonN {
    font-size: 24px;
  }
  .nflxBrandText {
    font-size: 19px !important;
    letter-spacing: 2.5px !important;
  }
}


/* ==========================================================================
   NEOFLIX SQUARE PILL FILTER TABS FOR MOVIES & TV SHOWS
   ========================================================================== */
.nflxFilterBar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 44px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  z-index: 15;
}

.nflxFilterBar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.nflxFilterPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px; /* Square box / pill style */
  color: #e5e5e5;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  flex: 0 0 auto;
}

.nflxFilterPill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}

.nflxFilterPill.active {
  background: var(--red, #E50914) !important;
  border-color: #ff3344 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 14px rgba(229, 9, 20, 0.55);
}

@media (max-width: 768px) {
  .nflxFilterBar {
    padding: 8px 14px 12px;
    gap: 8px;
  }
  .nflxFilterPill {
    padding: 6px 14px;
    font-size: 12.5px;
    border-radius: 6px;
  }
}


/* When Hero Billboard is hidden (in Movies & TV Shows tabs), add clean top spacing to clear fixed netflixHeader */
#netflixHero[hidden] ~ #netflixRows,
#netflixHero[hidden] ~ .netflixRows {
  margin-top: 0 !important;
  padding-top: 96px !important;
}

@media (max-width: 768px) {
  #netflixHero[hidden] ~ #netflixRows,
  #netflixHero[hidden] ~ .netflixRows {
    margin-top: 0 !important;
    padding-top: 85px !important;
  }
}
