/* ============================================================
  Operation Hearth — التلفزيون
   Mobile-first dark theme, RTL by default
   ============================================================ */

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

:root {
  --font-ui: 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
}

/* The HTML hidden attribute should always trump display rules from class selectors */
[hidden] { display: none !important; }

html, body {
  height: 100%;
  background: #0B0D12;
  color: #fff;
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.greet-name,
.hero-name,
.row-title,
.tab,
.bnav span,
.card-name,
.player-name,
.pc-name,
.pis-name,
.settings-title,
.search-bar input {
  font-family: var(--font-display);
}

body {
  /* iOS PWA safe area handling */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  background: #0B0D12;
  min-height: 100vh;
}

body[data-ui-layout='netflix'] {
  background:
    radial-gradient(circle at top right, rgba(255, 92, 77, 0.20), transparent 28%),
    radial-gradient(circle at top left, rgba(255, 179, 71, 0.16), transparent 24%),
    linear-gradient(180deg, #0f0c10, #140f13 38%, #0b0d12 100%);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ============================================================
   Status banner
   ============================================================ */
.status-banner {
  position: fixed;
  top: env(safe-area-inset-top, 0);
  left: 0;
  right: 0;
  background: #FF4D6D;
  color: #fff;
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 1000;
}
.status-banner.warning { background: #F5B800; color: #0B0D12; }
.status-banner.success { background: #16A085; }

/* ============================================================
   Loading
   ============================================================ */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  gap: 16px;
}
.loading-mark {
  width: 76px;
  height: 76px;
  border-radius: 26px;
  background: #10141b url('/icons/icon-primary.svg') center / cover no-repeat;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
  animation: pulse 1.5s infinite;
}
.loading-text {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ============================================================
   App shell
   ============================================================ */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: min(100%, 680px);
  max-width: 100%;
  margin: 0 auto;
  background: #0B0D12;
  position: relative;
}

body[data-ui-layout='netflix'] .app {
  background: linear-gradient(180deg, rgba(20, 15, 19, 0.86), rgba(11, 13, 18, 0.68) 24%, rgba(11, 13, 18, 0.38) 100%);
}

/* Greeting header */
.greet {
  padding: 10px 20px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
body[data-ui-layout='netflix'] .greet {
  padding-top: 18px;
  padding-bottom: 10px;
}
.greet-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #10141b url('/icons/icon-primary.svg') center / cover no-repeat;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}
body[data-ui-layout='netflix'] .greet-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}
.greet-text { flex: 1; }
.greet-hi {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.3;
}
.greet-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 1px 0 0;
  line-height: 1.3;
}
body[data-ui-layout='netflix'] .greet-name {
  font-size: 21px;
}
.greet-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  transition: background 0.15s;
}
body[data-ui-layout='netflix'] .greet-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.greet-icon:active { background: rgba(255,255,255,0.12); }

/* Hero card */
.hero-pad { padding: 8px 16px 16px; }
body[data-ui-layout='netflix'] .hero-pad {
  padding-top: 14px;
}
.hero {
  position: relative;
  height: 200px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #F5A623;
  display: block;
  text-align: right;
  padding: 0;
  transition: transform 0.15s;
}
body[data-ui-layout='netflix'] .hero {
  --hero-brand: #f5a623;
  min-height: 260px;
  height: clamp(260px, 34vw, 420px);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(circle at top left, rgba(255, 179, 71, 0.20), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 52%),
    var(--hero-brand);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}
.hero:active { transform: scale(0.99); }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background: #0b0d12;
  opacity: 0.25;
  transition: opacity 0.3s;
}
body[data-ui-layout='netflix'] .hero-bg {
  opacity: 0.18;
}
.hero-preview-brand,
.hero-preview-watermark,
.hero-preview-video,
.hero-preview-haze,
.hero-preview-fallback {
  position: absolute;
  inset: 0;
}
.hero-preview-brand {
  background:
    linear-gradient(180deg, rgba(11,13,18,0.12) 0%, rgba(11,13,18,0.56) 100%),
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.16), transparent 20%),
    radial-gradient(circle at 80% 12%, rgba(255,255,255,0.10), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 52%),
    var(--hero-brand);
  filter: saturate(0.82) brightness(0.82);
}
.hero-preview-watermark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(24px, 6vw, 72px);
  opacity: 0.26;
  filter: blur(1px) saturate(1.08) brightness(1.06);
  transform: scale(1.28);
}
.hero-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.08) contrast(1.04);
  transition: opacity 0.28s ease;
}
.hero-bg[data-preview-state='playing'] .hero-preview-video {
  opacity: 0.9;
}
.hero-preview-haze {
  background:
    linear-gradient(180deg, rgba(11,13,18,0.06) 0%, rgba(11,13,18,0.34) 42%, rgba(11,13,18,0.72) 100%),
    radial-gradient(circle at center, transparent 28%, rgba(11,13,18,0.36) 100%);
}
.hero-preview-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  transition: opacity 0.28s ease;
}
.hero-bg[data-preview-state='playing'] .hero-preview-fallback {
  opacity: 0;
}
.hero-preview-logo {
  width: min(48%, 240px);
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.28));
}
.hero-preview-mark {
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 22px 44px rgba(0,0,0,0.3);
}
.hero-preview-mark.is-hidden {
  display: none;
}
.hero-preview-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11,13,18,0.38);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,247,239,0.86);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11,13,18,0.96) 0%, rgba(11,13,18,0.55) 45%, rgba(11,13,18,0.05) 100%);
}
body[data-ui-layout='netflix'] .hero-overlay {
  background: linear-gradient(0deg, rgba(11,13,18,0.96) 0%, rgba(11,13,18,0.55) 38%, rgba(11,13,18,0.18) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
body[data-ui-layout='netflix'] .hero-content {
  padding: 22px 24px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 12px;
  background: rgba(255,77,77,0.95);
  color: #fff;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
body[data-ui-layout='netflix'] .hero-badge {
  padding: 8px 14px;
  background: rgba(255,92,77,0.16);
  color: #ffd9d3;
  border: 1px solid rgba(255,92,77,0.22);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.5s infinite;
}
.hero-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-logo {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 13px;
  overflow: hidden;
  background: #F5A623;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  padding: 4px;
}
body[data-ui-layout='netflix'] .hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.32);
}
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-titles { flex: 1; min-width: 0; }
.hero-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-ui-layout='netflix'] .hero-name {
  font-size: clamp(24px, 4vw, 48px);
  line-height: 1.08;
}
.hero-now {
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  margin: 3px 0 0;
  line-height: 1.4;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-ui-layout='netflix'] .hero-now {
  font-size: 15px;
  color: rgba(255,247,239,0.74);
}
.hero-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #F5B800;
  color: #0B0D12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
body[data-ui-layout='netflix'] .hero-play {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #ff5c4d, #ff7a45);
  color: #170d0c;
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  background: #0B0D12;
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
body[data-ui-layout='netflix'] .tabs {
  gap: 10px;
  background: transparent;
  border-bottom: 0;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  transition: all 0.15s;
  user-select: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
body[data-ui-layout='netflix'] .tab {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
}
.tab i { font-size: 15px; }
.tab.active {
  background: #F5B800;
  color: #0B0D12;
}
body[data-ui-layout='netflix'] .tab.active {
  background: linear-gradient(135deg, #ff5c4d, #ffb347);
  color: #1a0f0d;
}

/* Rows */
.rows {
  padding: 12px 0 90px;
  flex: 1;
}
body[data-ui-layout='netflix'] .rows {
  padding-top: 18px;
}
.row { margin-bottom: 22px; }
body[data-ui-layout='netflix'] .row {
  margin-bottom: 30px;
}
.row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 10px;
}
body[data-ui-layout='netflix'] .row-head {
  margin-bottom: 14px;
}
.row-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
body[data-ui-layout='netflix'] .row-title {
  font-size: 20px;
  letter-spacing: -0.03em;
}
.row-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  overflow: hidden;
  display: inline-block;
}
.row-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
body[data-ui-layout='netflix'] .row-meta {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,247,239,0.72);
}
.row-scroll {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
body[data-ui-layout='netflix'] .row-scroll {
  scroll-snap-type: x proximity;
}
body[data-ui-layout='netflix'] .cover-flow-row {
  --cover-card-width: clamp(168px, 34vw, 220px);
  --cover-overlap: clamp(12px, 3.8vw, 28px);
  gap: 0;
  padding-inline: max(24px, calc(50% - var(--cover-card-width) / 2 + var(--cover-overlap)));
  padding-block: 20px 30px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, calc(50% - var(--cover-card-width) / 2 + var(--cover-overlap)));
  perspective: 2200px;
  perspective-origin: center center;
}
.row-scroll::-webkit-scrollbar { display: none; }

/* Cards */
.card {
  flex-shrink: 0;
  width: 104px;
}
body[data-ui-layout='netflix'] .card {
  width: clamp(180px, 42vw, 240px);
  scroll-snap-align: start;
}
body[data-ui-layout='netflix'] .cover-flow-row .card {
  width: var(--cover-card-width);
  margin-inline: calc(var(--cover-overlap) * -1);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transform-style: preserve-3d;
  transform-origin: center bottom;
  backface-visibility: hidden;
  transform:
    translateX(var(--cover-shift, 0px))
    translateZ(var(--cover-depth, 0px))
    rotateY(var(--cover-angle, 0deg))
    scale(var(--cover-scale, 1));
  opacity: var(--cover-opacity, 1);
  filter: saturate(var(--cover-sat, 0.94)) brightness(var(--cover-bright, 0.92));
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  will-change: transform, opacity;
}
body[data-ui-layout='netflix'] .cover-flow-row .card.cover-active {
  filter: saturate(1.04) brightness(1.02);
}
body[data-ui-layout='netflix'] .cover-flow-row .card.cover-near {
  opacity: max(var(--cover-opacity, 0.88), 0.82);
}
.card-tile {
  width: 104px;
  height: 104px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s;
  background: #1a1f2a;
  display: flex;
  align-items: center;
  justify-content: center;
}
body[data-ui-layout='netflix'] .card-tile {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 20px 44px rgba(0,0,0,0.28);
}
body[data-ui-layout='netflix'] .cover-flow-row .card-tile {
  border-radius: 26px;
  box-shadow: 0 26px 56px rgba(0,0,0,0.36);
}
body[data-ui-layout='netflix'] .cover-flow-row .card.cover-active .card-tile {
  box-shadow: 0 34px 76px rgba(0,0,0,0.42);
}
.card:active .card-tile { transform: translateY(-2px) scale(0.96); }
body[data-ui-layout='netflix'][data-pointer='fine'] .card:hover .card-tile {
  transform: translateY(-8px) scale(1.03);
}
.card:focus-visible {
  outline: none;
}
.card:focus-visible .card-tile {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 0 2px rgba(255, 122, 69, 0.72), 0 22px 44px rgba(0,0,0,0.28);
}
.card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
body[data-ui-layout='netflix'] .card-logo-img {
  padding: 16px;
}
.card-logo-text {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  padding: 8px;
  line-height: 1.3;
  word-break: break-word;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
body[data-ui-layout='netflix'] .card-logo-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.card-preview-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  background: #000;
  transition: opacity 0.24s ease;
  z-index: 1;
}
.card.card-preview-loading .card-logo-img,
.card.card-preview-loading .card-logo-text,
.card.card-preview-active .card-logo-img,
.card.card-preview-active .card-logo-text {
  opacity: 0.32;
  transform: scale(1.02);
}
.card.card-preview-active .card-preview-media {
  opacity: 0.88;
}
.card-fav {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: all 0.15s;
  z-index: 2;
}
body[data-ui-layout='netflix'] .card-fav {
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.56);
  backdrop-filter: blur(6px);
}
.card-fav:active { transform: scale(0.9); }
.card-fav.fav { color: #FF4D6D; background: rgba(0,0,0,0.6); }
.card-live {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 7px 2px 8px;
  background: rgba(255,77,77,0.95);
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
body[data-ui-layout='netflix'] .card-live {
  right: 10px;
  bottom: 10px;
  padding: 4px 9px 4px 10px;
}
.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.5s infinite;
}
.card-info { padding: 8px 2px 0; }
body[data-ui-layout='netflix'] .card-info { padding: 10px 4px 0; }
body[data-ui-layout='netflix'] .cover-flow-row .card-info {
  text-align: center;
  padding-top: 14px;
  opacity: 0.74;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
body[data-ui-layout='netflix'] .cover-flow-row .card.cover-active .card-info {
  opacity: 1;
  transform: translateY(0);
}
.card-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
body[data-ui-layout='netflix'] .card-name {
  font-size: 15px;
  color: #fff7ef;
}
body[data-ui-layout='netflix'] .cover-flow-row .card-name {
  font-size: 16px;
}
.card-now {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-weight: 400;
}
body[data-ui-layout='netflix'] .cover-flow-row .card-now {
  color: rgba(255,247,239,0.74);
}

/* Empty state */
.empty {
  text-align: center;
  padding: 60px 24px;
}
.empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,77,109,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #FF4D6D;
  font-size: 28px;
}
.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.empty-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
}

/* Bottom nav */
.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0B0D12;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: min(100%, 680px);
  max-width: 100%;
  margin: 0 auto;
}
body[data-ui-layout='netflix'] .bottom-nav {
  background: rgba(18, 14, 18, 0.86);
  backdrop-filter: blur(18px);
}
.bnav {
  padding: 6px 4px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  user-select: none;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.bnav i { font-size: 22px; }
.bnav.on { color: #F5B800; }

/* ============================================================
   Player overlay — YouTube-style
   Normal mode: 16:9 video + info strip + scrollable channel list
   Fullscreen mode (.player-fs): video fills screen, tap for controls
   ============================================================ */
.player-overlay {
  position: fixed;
  inset: 0;
  background: #0B0D12;
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: env(safe-area-inset-top);
}
/* Fullscreen mode: black bg, no scroll */
.player-overlay.player-fs {
  background: #000;
  overflow: hidden;
}

.player-back,
.player-fav,
.player-expand,
.pc-btn,
.pc-action,
.pis-fav,
.pis-expand-btn,
.pcp-close {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ── Inline header (back + title + fav + expand) ── */
.player-inline-header {
  grid-area: header;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  flex-shrink: 0;
  background: #0B0D12;
}
.player-overlay.player-fs .player-inline-header { display: none; }

.player-back, .player-fav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.player-expand {
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(245,184,0,0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #F5B800;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(245,184,0,0.28);
  transition: background 0.15s, transform 0.15s;
}
.player-back:active, .player-fav:active, .player-expand:active {
  background: rgba(255,255,255,0.18);
}
.player-fav.fav { color: #FF4D6D; }
.player-expand:active { transform: scale(0.98); }
.player-titles { flex: 1; min-width: 0; }
.player-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-now {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Video stage (16:9 in normal, fills screen in fullscreen) ── */
.player-stage {
  grid-area: stage;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  flex-shrink: 0;
  overflow: hidden;
}
.player-overlay.player-fs .player-stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  z-index: 201;
}
.player-overlay.player-fs.player-fs-rotated .player-stage {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 100vw;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}
#player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}
.player-overlay.player-fs.player-fs-rotated #player-video {
  object-fit: contain;
}
/* Tap zone — captures taps for controls toggle in fullscreen */
.player-tap-zone {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}
.player-overlay:not(.player-fs) .player-tap-zone { pointer-events: none; }

/* ── Fullscreen controls overlay (shown on tap, auto-hides) ── */
.player-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.78) 0%, transparent 30%,
    transparent 70%, rgba(0,0,0,0.78) 100%);
  animation: pc-fadein 0.2s ease;
}
@keyframes pc-fadein { from { opacity: 0; } to { opacity: 1; } }

.pc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
}
.pc-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.pc-titles { flex: 1; min-width: 0; }
.pc-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-now {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin: 2px 0 0;
}
.pc-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.pc-btn:active { background: rgba(255,255,255,0.25); }
.pc-btn.fav { color: #FF4D6D; }
.pc-btn-lg { width: 62px; height: 62px; font-size: 28px; background: rgba(255,255,255,0.18); }
.pc-mini { width: 38px; height: 38px; font-size: 18px; }
.pc-action {
  min-width: 108px;
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.15s;
}
.pc-action i { font-size: 18px; }
.pc-action:active { transform: scale(0.98); }
.pc-action-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.pc-action-primary {
  background: #F5B800;
  color: #0B0D12;
}
.pc-live-badge {
  margin-inline-end: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(220,30,30,0.9);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  max-width: fit-content;
}

/* ── Info strip (normal mode, hidden in fullscreen) ── */
.player-info-strip {
  grid-area: info;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.player-overlay.player-fs .player-info-strip { display: none; }
.pis-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.pis-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #1a1f2a;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.pis-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pis-text { min-width: 0; }
.pis-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pis-sub { font-size: 11px; color: rgba(255,255,255,0.45); margin: 2px 0 0; }
.pis-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pis-fav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  transition: all 0.15s;
}
.pis-fav.fav { color: #FF4D6D; }
.pis-expand-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 10px 16px;
  background: #F5B800;
  color: #0B0D12;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(245,184,0,0.18);
}
.pis-expand-btn i { font-size: 15px; }

/* ── In-player channel list (normal mode, hidden in fullscreen) ── */
.player-panel-section {
  grid-area: panel;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.player-overlay.player-fs .player-panel-section { display: none; }
.pps-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.pps-tab {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.pps-tab.active { color: #F5B800; border-bottom-color: #F5B800; }
.pps-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding: 4px 0 80px;
}
.pps-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  transition: background 0.15s;
  cursor: pointer;
}
.pps-row:active { background: rgba(255,255,255,0.05); }
.pps-row.pps-active { background: rgba(245,184,0,0.08); }
.pps-thumb {
  width: 72px;
  height: 40px;
  border-radius: 8px;
  background: #1a1f2a;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}
.pps-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pps-info { min-width: 0; flex: 1; }
.pps-ch-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pps-ch-sub { font-size: 11px; color: rgba(255,255,255,0.4); margin: 2px 0 0; }

/* ── Fullscreen channel drawer (slides from right, transparent) ── */
.player-channel-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 88vw);
  background: rgba(11,13,18,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 210;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  animation: drawer-in 0.25s ease;
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.pcp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pcp-title { font-size: 16px; font-weight: 800; color: #fff; }
.pcp-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.pcp-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.08); }
.pcp-tab {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.pcp-tab.active { color: #F5B800; border-bottom-color: #F5B800; }
.pcp-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding: 4px 0;
}

@media (max-width: 640px) {
  .pc-action {
    min-width: 92px;
    font-size: 13px;
  }

  .pc-live-badge {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* ── Player error message ── */
.player-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  background: rgba(0,0,0,0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  z-index: 5;
}
.player-message.error { color: #FF4D6D; }
.player-message i { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }



/* ============================================================
   Search overlay
   ============================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: #0B0D12;
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.search-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  flex-shrink: 0;
}
#search-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 15px;
  text-align: right;
  direction: rtl;
}
.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-content: start;
}
.search-results .card { width: 100%; }
.search-results .card-tile { width: 100%; aspect-ratio: 1; height: auto; }
body[data-ui-layout='netflix'] .search-results .card-tile { aspect-ratio: 16 / 9; }
.search-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  padding: 40px 20px;
}

/* ============================================================
   Settings overlay
   ============================================================ */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: #0B0D12;
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.settings-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.settings-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
}
.settings-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.settings-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}
.settings-row {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.settings-row-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.settings-row-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin: 0 0 12px;
  line-height: 1.5;
}
.settings-btn {
  background: #F5B800;
  color: #0B0D12;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}
.settings-btn.danger {
  background: rgba(255,77,109,0.2);
  color: #FF4D6D;
}

body[data-device-class='tablet'] .app {
  width: min(100%, 980px);
}

body[data-device-class='desktop'] .app,
body[data-device-class='tv'] .app {
  width: min(100%, 1420px);
}

body[data-device-class='tablet'] .bottom-nav {
  width: min(100%, 980px);
}

body[data-device-class='desktop'] .bottom-nav,
body[data-device-class='tv'] .bottom-nav {
  width: min(100%, 1420px);
}

body[data-device-class='tablet'] .hero-pad,
body[data-device-class='tablet'] .tabs,
body[data-device-class='tablet'] .row-head,
body[data-device-class='tablet'] .row-scroll,
body[data-device-class='tablet'] .player-inline-header,
body[data-device-class='tablet'] .player-info-strip,
body[data-device-class='tablet'] .search-bar,
body[data-device-class='tablet'] .settings-bar,
body[data-device-class='tablet'] .settings-body,
body[data-device-class='tablet'] .search-results {
  padding-inline: 24px;
}

body[data-device-class='desktop'] .hero-pad,
body[data-device-class='desktop'] .tabs,
body[data-device-class='desktop'] .row-head,
body[data-device-class='desktop'] .row-scroll,
body[data-device-class='desktop'] .player-inline-header,
body[data-device-class='desktop'] .player-info-strip,
body[data-device-class='desktop'] .search-bar,
body[data-device-class='desktop'] .settings-bar,
body[data-device-class='desktop'] .settings-body,
body[data-device-class='desktop'] .search-results,
body[data-device-class='tv'] .hero-pad,
body[data-device-class='tv'] .tabs,
body[data-device-class='tv'] .row-head,
body[data-device-class='tv'] .row-scroll,
body[data-device-class='tv'] .player-inline-header,
body[data-device-class='tv'] .player-info-strip,
body[data-device-class='tv'] .search-bar,
body[data-device-class='tv'] .settings-bar,
body[data-device-class='tv'] .settings-body,
body[data-device-class='tv'] .search-results {
  padding-inline: 28px;
}

body[data-device-class='tablet'] .row-scroll { gap: 14px; }
body[data-device-class='desktop'] .row-scroll,
body[data-device-class='tv'] .row-scroll { gap: 18px; }

body[data-ui-layout='netflix'][data-device-class='tablet'] .cover-flow-row,
body[data-ui-layout='netflix'][data-device-class='desktop'] .cover-flow-row,
body[data-ui-layout='netflix'][data-device-class='tv'] .cover-flow-row {
  padding-inline: max(24px, calc(50% - var(--cover-card-width) / 2 + var(--cover-overlap)));
  scroll-padding-inline: max(24px, calc(50% - var(--cover-card-width) / 2 + var(--cover-overlap)));
}

body[data-device-class='tablet'] .card {
  width: 148px;
}

body[data-device-class='tablet'] .card-tile {
  width: 148px;
  height: 148px;
}

body[data-device-class='desktop'] .card {
  width: 176px;
}

body[data-device-class='desktop'] .card-tile {
  width: 176px;
  height: 176px;
}

body[data-device-class='tv'] .card {
  width: 220px;
}

body[data-device-class='tv'] .card-tile {
  width: 220px;
  height: 220px;
  border-radius: 22px;
}

body[data-device-class='desktop'] .card-name,
body[data-device-class='tv'] .card-name {
  font-size: 15px;
}

body[data-device-class='desktop'] .hero,
body[data-device-class='tv'] .hero {
  height: 300px;
}

body[data-device-class='desktop'] .hero-name,
body[data-device-class='tv'] .hero-name {
  font-size: 26px;
}

body[data-device-class='desktop'] .row-title,
body[data-device-class='tv'] .row-title {
  font-size: 20px;
}

body[data-device-class='desktop'] .search-results {
  grid-template-columns: repeat(5, 1fr);
}

body[data-device-class='tv'] .search-results {
  grid-template-columns: repeat(6, 1fr);
}

body[data-device-class='tv'] .greet {
  padding-top: 16px;
  padding-bottom: 14px;
}

body[data-device-class='tv'] .greet-mark {
  width: 52px;
  height: 52px;
  font-size: 24px;
}

body[data-device-class='tv'] .greet-name {
  font-size: 24px;
}

body[data-device-class='tv'] .tab {
  min-height: 56px;
  padding: 12px 20px;
  font-size: 16px;
}

body[data-device-class='tv'] .tab i {
  font-size: 18px;
}

body[data-device-class='tv'] .bottom-nav {
  padding-top: 12px;
}

body[data-device-class='tv'] .bnav {
  font-size: 14px;
  gap: 6px;
}

body[data-device-class='tv'] .bnav i {
  font-size: 28px;
}

body[data-device-class='desktop'] .player-overlay:not(.player-fs),
body[data-device-class='tv'] .player-overlay:not(.player-fs) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 27vw, 380px);
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas:
    'header header'
    'stage panel'
    'info panel';
  align-content: start;
  column-gap: 24px;
  overflow: hidden;
}

body[data-device-class='desktop'] .player-overlay:not(.player-fs) .player-stage,
body[data-device-class='tv'] .player-overlay:not(.player-fs) .player-stage {
  margin-inline-start: 28px;
  margin-inline-end: 0;
  border-radius: 24px;
  overflow: hidden;
  align-self: start;
}

body[data-device-class='desktop'] .player-overlay:not(.player-fs) .player-info-strip,
body[data-device-class='tv'] .player-overlay:not(.player-fs) .player-info-strip {
  margin-inline-start: 28px;
  margin-inline-end: 0;
  border-bottom: 0;
  padding-top: 16px;
}

body[data-device-class='desktop'] .player-overlay:not(.player-fs) .player-panel-section,
body[data-device-class='tv'] .player-overlay:not(.player-fs) .player-panel-section {
  min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 92px);
  height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 92px);
  margin-inline-end: 18px;
  border-inline-start: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

body[data-device-class='tv'] .player-overlay:not(.player-fs) .player-inline-header,
body[data-device-class='tv'] .player-overlay:not(.player-fs) .player-info-strip,
body[data-device-class='tv'] .player-overlay:not(.player-fs) .pps-row,
body[data-device-class='tv'] .player-overlay:not(.player-fs) .pps-tab {
  font-size: 16px;
}

body[data-ui-layout='netflix'][data-device-class='tablet'] .card {
  width: clamp(210px, 30vw, 280px);
}

body[data-ui-layout='netflix'][data-device-class='tablet'] .card-tile {
  width: 100%;
  height: auto;
}

body[data-ui-layout='netflix'][data-device-class='desktop'] .card {
  width: clamp(240px, 18vw, 300px);
}

body[data-ui-layout='netflix'][data-device-class='desktop'] .card-tile {
  width: 100%;
  height: auto;
}

body[data-ui-layout='netflix'][data-device-class='tv'] .card {
  width: clamp(280px, 18.8vw, 360px);
}

body[data-ui-layout='netflix'][data-device-class='tv'] .card-tile {
  width: 100%;
  height: auto;
  border-radius: 28px;
}

body[data-ui-layout='netflix'][data-device-class='desktop'] .bottom-nav,
body[data-ui-layout='netflix'][data-device-class='tv'] .bottom-nav {
  display: none;
}

body[data-ui-layout='netflix'][data-device-class='desktop'] .rows,
body[data-ui-layout='netflix'][data-device-class='tv'] .rows {
  padding-bottom: 42px;
}

body[data-ui-layout='netflix'][data-device-class='desktop'] .hero,
body[data-ui-layout='netflix'][data-device-class='tv'] .hero {
  height: clamp(320px, 36vw, 440px);
}

body[data-ui-layout='netflix'][data-device-class='desktop'] .player-overlay:not(.player-fs),
body[data-ui-layout='netflix'][data-device-class='tv'] .player-overlay:not(.player-fs) {
  background:
    radial-gradient(circle at top right, rgba(255,92,77,0.12), transparent 24%),
    linear-gradient(180deg, rgba(15,12,16,0.98), rgba(11,13,18,0.94));
}

body[data-ui-layout='netflix'][data-device-class='tv'] .tab {
  min-height: 58px;
  font-size: 17px;
}

body[data-ui-layout='netflix'][data-device-class='tv'] .row-title {
  font-size: 24px;
}

/* ============================================================
   Wider screens (iPad / laptop)
   ============================================================ */
@media (min-width: 768px) {
  .card { width: 130px; }
  .card-tile { width: 130px; height: 130px; }
  .hero { height: 260px; }
  .hero-name { font-size: 22px; }
  .row-title { font-size: 18px; }
}
@media (min-width: 1024px) {
  .app { max-width: 1100px; }
  .card { width: 150px; }
  .card-tile { width: 150px; height: 150px; }
}
