/* Beam for the web: the Apple apps' dark navy theme, glass controls and card grid. */
:root {
  --bg1: #090a12; --bg2: #0f111c;
  --accent: #6bccff; --accent-strong: #2475f0; --violet: #9978ff;
  --text: #fff; --secondary: rgba(255,255,255,.62); --tertiary: rgba(255,255,255,.4);
  --glass: rgba(28,30,44,.55); --glass-line: rgba(255,255,255,.12);
  --margin: 28px; --top: 64px; --hero: 434px; --radius: 12px;
  --gap: 25px; --pw: 150px; --ph: 225px; --lw: 325px; --lh: 183px; --tw: 500px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* body's background becomes the canvas, so the fixed backdrops (z-index -1) paint above it. */
body {
  margin: 0; min-height: 100vh; color: var(--text);
  background: linear-gradient(var(--bg1), var(--bg2)) fixed;
  font: 14px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--secondary); }
.small { font-size: 12px; }
.grow { flex: 1; }
.icon { flex: none; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.glass {
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.12); font-weight: 600; white-space: nowrap; transition: background .15s, transform .15s;
}
.btn:hover:not(:disabled) { background: rgba(255,255,255,.2); }
.btn.primary { background: var(--accent-strong); }
.btn.primary:hover:not(:disabled) { background: #3a86f5; }
.btn.small { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.wide { width: 100%; justify-content: center; height: 44px; }
.btn.pill.on { background: rgba(107,204,255,.18); color: var(--accent); }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent;
  color: #fff; transition: background .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.14); }
.icon-btn.big { width: 52px; height: 52px; }

/* Loading */
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.center-fill { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 16px; }
.empty { padding: 60px 0; text-align: center; }

/* Sign in */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 90px; padding: 24px;
  background: radial-gradient(circle at 100% 0, rgba(153,120,255,.25), transparent 60%); }
.wordmark { display: flex; align-items: center; gap: .2em; font-weight: 700; font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; }
.login-card { width: min(420px, 100%); padding: 34px; border-radius: 26px; display: grid; gap: 14px; }
.login-card input, .search-field {
  height: 46px; border-radius: 999px; border: 1px solid var(--glass-line); background: rgba(0,0,0,.25); padding: 0 20px; outline: none;
}
.login-card input:focus, .search-field:focus { border-color: var(--accent); }
.error { color: #ffae57; font-size: 13px; }

/* Tab bar */
.tabbar {
  position: fixed; z-index: 20; top: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 999px;
}
.tab { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 18px; border-radius: 999px; color: rgba(255,255,255,.75); font-weight: 500; }
.tab .icon { display: none; }
.tab.icon-only { padding: 0 13px; }
.tab.icon-only .icon { display: block; }
.tab.icon-only span { display: none; }
.tab:hover { color: #fff; }
.tab.on { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }

/* Pages */
.page { padding: var(--top) var(--margin) 80px; position: relative; }
.page.detail { padding-top: 0; }
.home, .search-page, .browse-pane, .detail-page { position: relative; }

/* Home */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.ambient img { width: 100%; height: 100%; object-fit: cover; filter: blur(80px); opacity: .45; transform: scale(1.2); transition: opacity .9s; }
.ambient::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(11,13,22,.9)); }

.hero { position: relative; height: var(--hero); display: flex; align-items: flex-end; margin-bottom: 36px; }
.hero-art {
  position: absolute; left: calc(-1 * var(--margin)); right: calc(-1 * var(--margin)); top: calc(-1 * var(--top) - 30px); bottom: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent);
}
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.25) 50%, transparent); }
.hero-art .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease-in-out; }
.hero-art .slide.on { opacity: 1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { position: relative; padding-bottom: 25px; max-width: 760px; display: grid; gap: 12px; animation: fade .6s; }
.hero h1 { font-size: 45px; line-height: 1.05; letter-spacing: -.01em; }
.plot { color: var(--secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 610px; }
.plot.long { -webkit-line-clamp: 5; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.dots { display: flex; gap: 8px; align-items: center; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.3); transition: width .3s, background .3s; }
.dots button.on { width: 22px; background: #fff; }
@keyframes fade { from { opacity: 0; } }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--secondary); font-size: 13px; }
.meta .rating { display: inline-flex; align-items: center; gap: 4px; color: #ffd60a; }
.meta .sep { color: var(--tertiary); }

.tiles { display: flex; gap: var(--gap); margin-bottom: 30px; overflow-x: auto; scrollbar-width: none; }
.tiles::-webkit-scrollbar { display: none; }
.tile { position: relative; flex: none; width: var(--tw); height: var(--lh); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.06);
  transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: scale(1.03); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.tile-art, .tile-art .blur { position: absolute; inset: 0; }
.tile-art .blur img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px); opacity: .8; transform: scale(1.3); }
.tile-art .strip { position: absolute; inset: 0; display: flex; gap: 2px; }
.tile-art .strip img { flex: none; height: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.tile-fallback { position: absolute; inset: 0; display: flex; gap: 14px; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(36,117,240,.6), rgba(153,120,255,.35)); }
.tile-fallback img { width: 44px; height: 44px; object-fit: contain; }
.tile-label { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px; border-radius: 999px; }
.tile-label .icon { align-self: center; }
.tile-label b { font-size: 16px; }
.tile-label span { color: var(--secondary); font-size: 13px; }

/* Shelves */
.shelf { margin-bottom: 26px; }
.shelf h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.shelf h2 .sub { color: var(--tertiary); font-size: 14px; font-weight: 400; margin-left: 8px; }
.row-wrap { position: relative; margin: 0 calc(-1 * var(--margin)); }
.row {
  display: flex; gap: var(--gap); overflow-x: auto; padding: 10px var(--margin); scroll-padding: 0 var(--margin);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.row::-webkit-scrollbar { display: none; }
.row-arrow {
  position: absolute; z-index: 2; top: 10px; bottom: 54px; width: var(--margin); border: 0; background: rgba(9,10,18,.55); color: #fff;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s;
}
.row-arrow.left { left: 0; } .row-arrow.right { right: 0; }
.row-wrap:hover .row-arrow { opacity: 1; }

/* Cards */
.card { flex: none; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.card.poster { width: var(--pw); }
.card.landscape { width: var(--lw); }
.card .art { position: relative; border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.07); transition: transform .15s, box-shadow .15s; }
.card.poster .art { height: var(--ph); }
.card.landscape .art { height: var(--lh); }
.card:hover .art, .card:focus-visible .art { transform: scale(1.05); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.card .art > .img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img { opacity: 0; transition: opacity .25s; }
.img.loaded { opacity: 1; }
.placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 12px; text-align: center;
  color: var(--tertiary); font-size: 12px; background: linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.03)); }
.progress { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.progress.inline { position: static; width: min(260px, 100%); }
.badge { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.remove { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.55); opacity: 0; transition: opacity .15s; }
.card:hover .remove { opacity: 1; }
.caption { min-width: 0; }
.caption .t { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caption .d { font-size: 11px; color: var(--tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.channel .blur { position: absolute; inset: 0; }
.channel .blur img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px); opacity: .7; transform: scale(1.4); }
.channel .logo-blur img { filter: blur(50px); opacity: .55; }
.channel .split { position: absolute; inset: 0; display: flex; align-items: center; background: rgba(0,0,0,.25); }
.channel .split .logo { margin: 0 auto; }
.channel .cover { height: 78%; aspect-ratio: 2 / 3; margin-right: 11%; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.5); position: relative; }
.channel .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.channel .center { position: absolute; inset: 0; display: grid; place-items: center; }
.logo { display: grid; place-items: center; flex: none; }
.logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo span { color: var(--secondary); font-weight: 700; font-family: ui-rounded, -apple-system, sans-serif; }

/* Side menu pages (Live TV, Movies, Series) */
.split-page { display: flex; gap: 20px; align-items: flex-start; }
.side-menu { position: sticky; top: var(--top); width: 230px; flex: none; max-height: calc(100vh - var(--top) - 20px); overflow-y: auto;
  display: grid; gap: 2px; padding: 4px 6px 20px 0; scrollbar-width: thin; }
.side-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px; border: 0; border-radius: 12px; background: transparent;
  color: rgba(255,255,255,.8); text-align: left; transition: background .15s, transform .15s; }
.side-item .name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item .count { font-size: 11px; opacity: .55; }
.side-item:hover { background: #fff; color: #000; transform: scale(1.02); }
.side-item.on { background: rgba(107,204,255,.14); color: var(--accent); }
.side-item.on:hover { color: #000; background: #fff; }
.side-select { width: 100%; height: 42px; border-radius: 12px; padding: 0 14px; margin-bottom: 12px; }
.browse-pane, .guide-pane { flex: 1; min-width: 0; }
.browse-bar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.browse-bar select, select.glass { height: 34px; border-radius: 999px; padding: 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, var(--pw)); gap: 28px var(--gap); }
.grid .card { width: auto; }
.grid.wide { grid-template-columns: repeat(auto-fill, var(--lw)); }
.more { display: grid; place-items: center; padding: 30px; }

/* Live TV */
.guide-header { display: flex; gap: 30px; height: 160px; padding-top: 6px; margin-bottom: 10px; }
.guide-header .info { flex: 1; min-width: 0; display: grid; align-content: start; gap: 8px; }
.guide-header h2 { font-size: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-header .when { display: flex; align-items: center; gap: 10px; color: var(--secondary); font-size: 13px; }
.live { background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.catchup { color: var(--accent); }
.desc { color: var(--secondary); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.preview-slot { width: 258px; height: 145px; flex: none; border-radius: 14px; background: #000; }
.header-logo { width: 180px; flex: none; display: grid; justify-items: center; align-content: center; gap: 8px; color: var(--tertiary); font-size: 12px; text-align: center; }

.guide { display: flex; flex-direction: column; height: calc(100vh - var(--top) - 196px); min-height: 360px; }
.guide-ruler { display: flex; gap: 6px; height: 34px; align-items: center; }
.guide-nav { width: 220px; flex: none; display: flex; gap: 4px; }
.ticks { position: relative; flex: 1; height: 100%; color: var(--secondary); font-size: 12px; }
.ticks span { position: absolute; top: 8px; padding-left: 6px; border-left: 1px solid rgba(255,255,255,.2); }
.guide-rows { flex: 1; overflow-y: auto; scrollbar-width: thin; }
.guide-row { position: absolute; left: 0; right: 0; height: 52px; display: flex; gap: 6px; }
.guide-channel { width: 220px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.06); text-align: left; }
.guide-channel .name { flex: 1; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-channel .fav { color: var(--tertiary); opacity: 0; display: grid; place-items: center; width: 24px; height: 24px; }
.guide-channel .fav.on { color: #ffd60a; opacity: 1; }
.guide-channel:hover .fav { opacity: 1; }
.guide-channel:hover { background: rgba(255,255,255,.12); }
.guide-channel.playing { box-shadow: inset 0 0 0 2px var(--accent); }
.guide-line { position: relative; flex: 1; overflow: hidden; }
.prog { position: absolute; top: 0; bottom: 0; padding: 6px 10px; border: 0; border-left: 4px solid transparent; background-clip: padding-box;
  background-color: rgba(255,255,255,.07); border-radius: 10px; display: flex; flex-direction: column; justify-content: center; text-align: left; overflow: hidden; }
.prog .title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog .title .icon { display: inline; vertical-align: -1px; color: var(--accent); }
.prog .time { font-size: 11px; color: var(--tertiary); }
.prog.live { background-color: rgba(107,204,255,.16); }
.prog.past { opacity: .6; }
.prog:hover { background-color: #fff; color: #000; opacity: 1; }
.prog:hover .time { color: rgba(0,0,0,.6); }
.prog.empty { color: var(--tertiary); }
.now-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); pointer-events: none; }

/* Details */
.back-button { position: fixed; z-index: 20; top: 12px; left: 84px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.backdrop { position: fixed; inset: 0; z-index: -1; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; }
.backdrop.blurred img { filter: blur(30px); transform: scale(1.1); }
.backdrop::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.35) 55%, transparent), linear-gradient(transparent 30%, rgba(13,14,23,.96) 85%); }
.detail-head { min-height: 75vh; display: flex; align-items: flex-end; gap: 44px; padding-bottom: 36px; }
.detail-text { flex: 1; display: grid; gap: 14px; max-width: 760px; }
.detail-text h1 { font-size: 47px; line-height: 1.05; }
.detail-poster { width: 186px; flex: none; aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.5); margin-left: auto; }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.credits { font-size: 12px; color: var(--secondary); display: grid; gap: 4px; }
.credits .muted { color: var(--tertiary); margin-right: 6px; }
.one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.seasons { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.row.episodes { margin: 0 calc(-1 * var(--margin)); --lw: 248px; --lh: 140px; }
.episode-plot { min-height: 60px; max-width: 800px; font-size: 13px; }

/* Search */
.search-field { width: min(640px, 100%); display: block; margin: 8px 0 26px; }

/* Settings */
.settings { max-width: 760px; margin: 0 auto; display: grid; gap: 26px; }
.settings-title { font-size: 28px; }
.settings h3 { font-size: 13px; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px 14px; }
.group { border-radius: 14px; background: rgba(255,255,255,.06); overflow: hidden; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 10px 16px; width: 100%;
  border: 0; background: transparent; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.group > .setting:last-child { border-bottom: 0; }
button.setting:hover:not(:disabled), a.setting:hover { background: rgba(255,255,255,.06); }
.setting select { background: rgba(255,255,255,.1); border: 0; border-radius: 8px; height: 32px; padding: 0 10px; }
.setting.danger { color: #ff6961; justify-content: center; }
.check { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--tertiary); }
.check.on { background: var(--accent); color: #000; }
.switch { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.2); position: relative; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch:checked { background: #30d158; }
.switch:checked::after { transform: translateX(18px); }

/* Player */
.player { position: fixed; z-index: 50; background: #000; overflow: hidden; }
.player.full { inset: 0; }
.player.preview { border-radius: 14px; cursor: pointer; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player video::cue { font-size: var(--sub-size); background: rgba(0,0,0,.6); }
.player.idle { cursor: none; }
.player.idle .player-top, .player.idle .player-bottom { opacity: 0; pointer-events: none; }
.player-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.player-center > * { pointer-events: auto; }
.error-card { padding: 26px 30px; border-radius: 20px; max-width: 460px; display: grid; gap: 10px; text-align: center; }
.error-card .actions { justify-content: center; }
.player-top, .player-bottom { position: absolute; left: 0; right: 0; padding: 14px max(20px, env(safe-area-inset-left)); transition: opacity .3s; }
.player-top { top: 0; display: flex; align-items: center; gap: 12px; padding-top: max(14px, env(safe-area-inset-top));
  background: linear-gradient(rgba(0,0,0,.7), transparent); }
.player-title { flex: 1; min-width: 0; display: grid; }
.player-title b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-title span { color: var(--secondary); font-size: 13px; }
.player-bottom { bottom: 0; display: grid; gap: 10px; padding-bottom: max(18px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.player-bottom .buttons { display: flex; align-items: center; gap: 6px; }
.now-next { display: grid; gap: 6px; }
.scrubber { display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--secondary); }
.scrubber input { flex: 1; accent-color: var(--accent); height: 4px; }
.menu-wrap { position: relative; }
.menu { position: absolute; bottom: 48px; right: 0; min-width: 220px; max-height: 50vh; overflow-y: auto; padding: 6px; border-radius: 14px; display: grid; }
.menu button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 9px 12px; border-radius: 8px; text-align: left; padding-left: 34px; }
.menu button.on { padding-left: 12px; }
.menu-head { color: var(--tertiary); font-size: 12px; font-weight: 600; padding: 8px 12px 4px; }
.menu-note { color: var(--tertiary); font-size: 13px; padding: 6px 12px 6px 34px; }
.menu button:hover { background: rgba(255,255,255,.12); }
.channel-list { position: absolute; top: 70px; right: 16px; bottom: 120px; width: 320px; border-radius: 18px; overflow-y: auto; padding: 8px; display: grid; align-content: start; gap: 2px; }
.channel-list button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 8px; border-radius: 10px; text-align: left; }
.channel-list button span { display: grid; min-width: 0; }
.channel-list button b, .channel-list button .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.channel-list button:hover { background: rgba(255,255,255,.1); }
.channel-list button.on { background: rgba(107,204,255,.16); }

/* Phones */
@media (max-width: 700px) {
  :root { --margin: 16px; --top: 14px; --hero: 58vh; --radius: 10px; }
  .page { padding-bottom: calc(90px + env(safe-area-inset-bottom)); padding-top: calc(var(--top) + env(safe-area-inset-top)); }
  .tabbar { top: auto; bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100% - 24px); justify-content: space-between; }
  .tab { flex-direction: column; justify-content: center; gap: 2px; height: 50px; padding: 0 4px; flex: 1; font-size: 10px; border-radius: 22px; }
  .tab .icon, .tab.icon-only .icon { display: block; }
  .tab.icon-only span { display: inline; }
  .tab.icon-only { padding: 0 4px; }
  .login { flex-direction: column; gap: 36px; }
  .hero h1 { font-size: 30px; }
  .hero-text { gap: 8px; }
  .hero .plot { -webkit-line-clamp: 2; font-size: 13px; }
  .hero-art { top: calc(-1 * var(--top) - 60px); }
  .shelf h2 { font-size: 18px; }
  .row-arrow { display: none; }
  .split-page { display: block; }
  .guide-header { height: auto; min-height: 70px; }
  .guide-header h2 { font-size: 20px; }
  .guide-header .desc { display: none; }
  .header-logo { display: none; }
  .guide { height: calc(100vh - 240px); }
  .guide-nav, .guide-channel { width: 110px; }
  .guide-channel .name { font-size: 11px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .guide-channel .logo { display: none; }
  .guide-nav .btn { padding: 0 8px; }
  .detail-head { min-height: 60vh; }
  .detail-text h1 { font-size: 32px; }
  .detail-poster { display: none; }
  .back-button { top: max(12px, env(safe-area-inset-top)); left: 12px; }
  .channel-list { left: 16px; width: auto; }
  .grid { gap: 18px var(--gap); }
}
