:root {
  --bg: #111315;
  --bg-deep: #0c0e0f;
  --panel: #181b1d;
  --panel-soft: #202427;
  --line: rgba(242, 239, 230, 0.12);
  --line-bright: rgba(242, 239, 230, 0.2);
  --text: #f2efe6;
  --muted: #a7a9a4;
  --muted-dark: #6f7472;
  --accent: #ec654e;
  --accent-dark: #b84538;
  --cream: #f3eadd;
  --side-width: 224px;
  --radius: 5px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
  background: #151718;
  border-right: 1px solid var(--line);
  display: flex;
  flex: 0 0 var(--side-width);
  flex-direction: column;
  min-height: 100vh;
  padding: 29px 16px 22px;
}

.brand-lockup { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 13px 55px; position: relative; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; line-height: 18px; }
.brand-kicker { color: var(--muted-dark); font-family: "DM Mono", monospace; font-size: 8px; letter-spacing: .6px; margin: 5px 0 0 26px; text-transform: uppercase; width: 100%; }
.brand-mark { display: inline-flex; gap: 2px; height: 18px; transform: skew(-12deg); width: 17px; }
.brand-mark span { background: var(--accent); display: block; height: 18px; width: 4px; }
.brand-mark span:nth-child(2) { height: 13px; margin-top: 5px; opacity: .74; }
.brand-mark span:nth-child(3) { height: 9px; margin-top: 9px; opacity: .45; }

.nav-label, .section-overline { color: var(--muted-dark); font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: 1.4px; margin: 0 12px 12px; text-transform: uppercase; }
.primary-nav { display: grid; gap: 3px; }
.secondary-nav { border-top: 1px solid var(--line); margin-top: 37px; padding-top: 29px; }
.nav-item { align-items: center; background: transparent; border: 0; border-radius: var(--radius); cursor: pointer; display: flex; gap: 13px; min-height: 42px; padding: 0 13px; text-align: left; transition: background .2s, color .2s; width: 100%; }
.nav-item svg { color: var(--muted); height: 16px; stroke-width: 1.7; width: 16px; }
.nav-item span { color: #c4c5c0; flex: 1; font-size: 13px; }
.nav-item b { color: var(--muted-dark); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 400; }
.nav-item:hover { background: #202325; }
.nav-item.active { background: #24282a; }
.nav-item.active span, .nav-item.active svg { color: var(--text); }
.nav-item.active::before { background: var(--accent); border-radius: 0 2px 2px 0; content: ""; height: 20px; left: 0; position: absolute; width: 3px; }
.nav-item { position: relative; }

.sidebar-bottom { margin-top: auto; }
.server-status { align-items: center; background: #1c2020; border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 9px; margin: 0 2px 18px; padding: 12px 10px; }
.status-dot { background: #74c899; border-radius: 50%; box-shadow: 0 0 0 3px rgba(116, 200, 153, .12); flex: 0 0 6px; height: 6px; }
.server-status div, .profile-copy { display: grid; gap: 3px; min-width: 0; }
.server-status strong, .profile-copy strong { font-size: 10px; font-weight: 600; }
.server-status small, .profile-copy small { color: var(--muted-dark); font-family: "DM Mono", monospace; font-size: 8px; white-space: nowrap; }
.server-status .icon-button { margin-left: auto; }
.profile-row { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 9px; padding: 20px 9px 0; }
.avatar { align-items: center; background: #806b60; border-radius: 50%; color: var(--cream); display: flex; font-size: 11px; font-weight: 700; height: 27px; justify-content: center; width: 27px; }
.profile-copy { flex: 1; }

.main-content { flex: 1; min-width: 0; }
.topbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; height: 78px; justify-content: space-between; padding: 0 clamp(24px, 4.2vw, 62px); }
.breadcrumb { align-items: center; color: var(--muted-dark); display: flex; font-size: 11px; gap: 8px; }
.breadcrumb svg { height: 12px; width: 12px; }
.breadcrumb strong { color: var(--text); font-weight: 600; }
.topbar-actions { align-items: center; display: flex; gap: 20px; }
.search-box { align-items: center; border-bottom: 1px solid var(--line-bright); display: flex; gap: 9px; padding: 7px 0 8px; width: 240px; }
.search-box svg { color: var(--muted); height: 15px; width: 15px; }
.search-box input { background: transparent; border: 0; color: var(--text); font-size: 11px; min-width: 0; outline: 0; width: 100%; }
.search-box input::placeholder { color: var(--muted-dark); }
.search-box kbd { border: 1px solid var(--line-bright); border-radius: 2px; color: var(--muted-dark); font-family: "DM Mono", monospace; font-size: 9px; padding: 1px 5px; }
.icon-button { align-items: center; background: transparent; border: 1px solid transparent; border-radius: 50%; cursor: pointer; display: inline-flex; height: 35px; justify-content: center; padding: 0; position: relative; transition: background .2s, color .2s, border-color .2s; width: 35px; }
.icon-button svg { height: 17px; stroke-width: 1.6; width: 17px; }
.icon-button:hover { background: var(--panel-soft); border-color: var(--line); color: var(--text); }
.cast-trigger.connected { color: var(--accent); }
.icon-button.tiny { height: 22px; width: 22px; }
.icon-button.tiny svg { height: 14px; width: 14px; }
[data-tooltip]::after { background: #090a0a; border: 1px solid var(--line-bright); border-radius: 3px; color: var(--text); content: attr(data-tooltip); font-size: 10px; opacity: 0; padding: 5px 8px; pointer-events: none; position: absolute; right: 0; top: calc(100% + 8px); transform: translateY(-3px); transition: opacity .15s, transform .15s; white-space: nowrap; z-index: 30; }
[data-tooltip]:hover::after { opacity: 1; transform: translateY(0); }
.notification-button span { background: var(--accent); border: 2px solid var(--bg); border-radius: 50%; height: 7px; position: absolute; right: 4px; top: 4px; width: 7px; }
.mobile-brand { display: none; }
.mobile-bottom-nav { display: none; }

.content-wrap { margin: 0 auto; max-width: 1520px; padding: 0 clamp(24px, 4.2vw, 62px) 36px; }
.hero-section { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(300px, .79fr) minmax(430px, 1.21fr); min-height: 475px; }
.hero-copy { align-self: center; max-width: 480px; padding: 66px 30px 58px 0; }
.eyebrow { align-items: center; color: var(--accent); display: flex; font-family: "DM Mono", monospace; font-size: 10px; gap: 10px; letter-spacing: 1.2px; margin-bottom: 22px; text-transform: uppercase; }
.eyebrow-line { background: var(--accent); height: 1px; width: 31px; }
.hero-copy h1 { font-size: clamp(44px, 5.2vw, 77px); font-weight: 800; letter-spacing: -4px; line-height: .98; margin: 0; }
.hero-copy h1 em { color: var(--accent); font-style: normal; }
.hero-subtitle { color: var(--muted); font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .3px; margin: 22px 0 16px; }
.hero-subtitle span { color: var(--accent); margin: 0 6px; }
.hero-description { color: #b6b8b3; font-size: 13px; line-height: 1.8; margin: 0; max-width: 355px; }
.hero-meta { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-family: "DM Mono", monospace; font-size: 10px; gap: 8px; margin-top: 22px; }
.meta-separator { color: var(--muted-dark); }
.quality-tag { border: 1px solid rgba(236, 101, 78, .55); color: var(--accent); font-size: 9px; letter-spacing: .5px; padding: 3px 6px; }
.hero-actions { display: flex; gap: 11px; margin-top: 28px; }
.button { align-items: center; border: 0; border-radius: var(--radius); cursor: pointer; display: inline-flex; font-size: 11px; font-weight: 700; gap: 8px; justify-content: center; min-height: 40px; padding: 0 16px; transition: background .2s, transform .2s; }
.button svg { height: 15px; width: 15px; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #1b1210; }
.button-primary:hover { background: #f27b63; }
.button-quiet { background: transparent; border: 1px solid var(--line-bright); color: var(--text); }
.button-quiet:hover { background: var(--panel-soft); }
.hero-progress-label { color: var(--muted-dark); display: flex; font-family: "DM Mono", monospace; font-size: 9px; justify-content: space-between; margin-top: 35px; max-width: 355px; }
.hero-progress-label span:last-child { color: var(--accent); }
.progress-track { background: rgba(242, 239, 230, .15); height: 3px; overflow: hidden; position: relative; }
.progress-track span { background: var(--accent); display: block; height: 100%; }
.hero-progress { margin-top: 9px; max-width: 355px; }
.hero-art-wrap { align-self: stretch; min-height: 475px; overflow: hidden; position: relative; }
.hero-art { background-image: linear-gradient(90deg, #111315 0%, rgba(17, 19, 21, 0) 25%), url("https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?auto=format&fit=crop&w=1500&q=90"); background-position: center; background-size: cover; height: 100%; min-height: 475px; }
.hero-art::after { background: linear-gradient(180deg, rgba(17, 19, 21, 0) 55%, rgba(17, 19, 21, .82) 100%); content: ""; inset: 0; position: absolute; }
.hero-art-credit { bottom: 21px; color: rgba(242, 239, 230, .55); font-family: "DM Mono", monospace; font-size: 9px; left: 28px; letter-spacing: 1px; position: absolute; z-index: 1; }
.hero-expand { bottom: 12px; position: absolute; right: 12px; z-index: 2; }

.section-block { border-bottom: 1px solid var(--line); padding: 42px 0 44px; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 24px; }
.section-heading .section-overline { margin: 0 0 8px; }
.section-heading h2 { font-size: 22px; letter-spacing: -1px; margin: 0; }
.text-button { align-items: center; background: transparent; border: 0; color: var(--muted); cursor: pointer; display: flex; font-size: 11px; gap: 7px; padding: 6px 0; }
.text-button:hover { color: var(--text); }
.text-button svg { height: 14px; width: 14px; }
.continue-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.continue-item { cursor: pointer; display: grid; gap: 14px; grid-template-columns: 108px 1fr; min-width: 0; }
.continue-poster { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; position: relative; }
.continue-poster::after, .movie-poster::after { background: rgba(0, 0, 0, .14); content: ""; inset: 0; position: absolute; transition: background .2s; }
.continue-item:hover .continue-poster::after, .movie-card:hover .movie-poster::after { background: rgba(0, 0, 0, .03); }
.poster-paper-city, .poster-quiet-season, .poster-blue-hour, .movie-poster { background-position: center; background-size: cover; }
.poster-paper-city { background-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=600&q=85"); }
.poster-quiet-season { background-image: url("https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=600&q=85"); }
.poster-blue-hour { background-image: url("https://images.unsplash.com/photo-1534447677768-be436bb09401?auto=format&fit=crop&w=600&q=85"); }
.play-overlay { align-items: center; background: var(--accent); border-radius: 50%; display: flex; height: 29px; justify-content: center; left: 50%; opacity: 0; position: absolute; top: 50%; transform: translate(-50%, -45%); transition: opacity .2s, transform .2s; width: 29px; z-index: 2; }
.play-overlay svg { color: #1b1210; height: 13px; margin-left: 2px; width: 13px; }
.continue-item:hover .play-overlay { opacity: 1; transform: translate(-50%, -50%); }
.poster-index { bottom: 7px; color: rgba(255,255,255,.65); font-family: "DM Mono", monospace; font-size: 9px; left: 9px; position: absolute; z-index: 2; }
.continue-info { min-width: 0; padding-top: 1px; }
.continue-top { align-items: center; display: flex; justify-content: space-between; margin-bottom: 10px; }
.item-type, .item-time { color: var(--muted-dark); font-family: "DM Mono", monospace; font-size: 9px; white-space: nowrap; }
.item-time { color: var(--accent); font-size: 8px; }
.continue-info h3 { font-size: 15px; letter-spacing: -.4px; margin: 0 0 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue-info p { color: var(--muted-dark); font-family: "DM Mono", monospace; font-size: 9px; margin: 0 0 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.library-section { padding-bottom: 55px; }
.filter-row { display: flex; gap: 18px; }
.filter-button { background: transparent; border: 0; border-bottom: 1px solid transparent; color: var(--muted-dark); cursor: pointer; font-family: "DM Mono", monospace; font-size: 10px; padding: 8px 0 7px; }
.filter-button.active, .filter-button:hover { border-color: var(--accent); color: var(--text); }
.movie-grid { display: grid; gap: 31px 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.movie-card { cursor: pointer; min-width: 0; position: relative; }
.movie-poster { aspect-ratio: 2 / 2.85; border-radius: var(--radius); margin-bottom: 13px; overflow: hidden; position: relative; }
.movie-poster .play-overlay { opacity: 0; }
.movie-card:hover .play-overlay { opacity: 1; transform: translate(-50%, -50%); }
.movie-card:nth-child(1) .movie-poster { background-image: url("https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&w=700&q=85"); }
.movie-card:nth-child(2) .movie-poster { background-image: url("https://images.unsplash.com/photo-1542206395-9feb3edaa68d?auto=format&fit=crop&w=700&q=85"); }
.movie-card:nth-child(3) .movie-poster { background-image: url("https://images.unsplash.com/photo-1517604931442-7e0c8ed2963c?auto=format&fit=crop&w=700&q=85"); }
.movie-card:nth-child(4) .movie-poster { background-image: url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=700&q=85"); }
.movie-card:nth-child(5) .movie-poster { background-image: url("https://images.unsplash.com/photo-1536440136628-849c177e76a1?auto=format&fit=crop&w=700&q=85"); }
.movie-card:nth-child(6) .movie-poster { background-image: url("https://images.unsplash.com/photo-1440404653325-ab127d49abc1?auto=format&fit=crop&w=700&q=85"); }
.movie-card:nth-child(7) .movie-poster { background-image: url("https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=700&q=85"); }
.movie-card:nth-child(8) .movie-poster { background-image: url("https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?auto=format&fit=crop&w=700&q=85"); }
.movie-poster::before { color: rgba(255,255,255,.75); content: attr(data-quality); font-family: "DM Mono", monospace; font-size: 8px; letter-spacing: .7px; position: absolute; right: 9px; top: 9px; z-index: 2; }
.movie-info { min-width: 0; padding: 0 3px; }
.movie-title-row { align-items: center; display: flex; gap: 7px; justify-content: space-between; }
.movie-title { font-size: 12px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.movie-year { color: var(--muted-dark); font-family: "DM Mono", monospace; font-size: 9px; flex: 0 0 auto; }
.movie-subtitle { color: var(--muted-dark); font-family: "DM Mono", monospace; font-size: 9px; margin: 6px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.movie-card .bookmark-button { background: rgba(17, 19, 21, .74); border: 0; border-radius: 50%; cursor: pointer; height: 28px; opacity: 0; padding: 0; position: absolute; right: 8px; top: 8px; transition: opacity .2s, color .2s; width: 28px; z-index: 3; }
.movie-card:hover .bookmark-button, .movie-card .bookmark-button.saved { opacity: 1; }
.bookmark-button svg { height: 13px; width: 13px; }
.bookmark-button.saved { color: var(--accent); }
.empty-state { align-items: center; color: var(--muted); display: flex; flex-direction: column; padding: 65px 0 30px; text-align: center; }
.empty-state svg { color: var(--accent); height: 26px; margin-bottom: 14px; width: 26px; }
.empty-state h3 { color: var(--text); font-size: 15px; margin: 0 0 7px; }
.empty-state p { color: var(--muted-dark); font-size: 11px; margin: 0; }
.site-footer { color: var(--muted-dark); display: flex; font-family: "DM Mono", monospace; font-size: 9px; justify-content: space-between; letter-spacing: .3px; padding-top: 20px; }

.toast-region { bottom: 20px; display: grid; gap: 8px; pointer-events: none; position: fixed; right: 24px; z-index: 80; }
.toast { align-items: center; background: #252a2a; border: 1px solid var(--line-bright); border-left: 2px solid var(--accent); border-radius: 4px; box-shadow: 0 14px 35px rgba(0,0,0,.3); display: flex; gap: 10px; min-width: 240px; padding: 12px 14px; transform: translateY(12px); animation: toast-in .25s forwards; }
.toast svg { color: var(--accent); height: 16px; width: 16px; }
.toast span { color: var(--cream); font-size: 11px; }
@keyframes toast-in { to { opacity: 1; transform: translateY(0); } }

.player-dialog { background: #0c0e0f; border: 1px solid var(--line-bright); border-radius: 6px; box-shadow: 0 20px 80px rgba(0,0,0,.65); color: var(--text); max-height: calc(100vh - 48px); max-width: 1200px; padding: 0; width: calc(100% - 48px); }
.player-dialog::backdrop { background: rgba(5, 6, 6, .82); backdrop-filter: blur(4px); }
.player-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; height: 60px; justify-content: space-between; padding: 0 20px; }
.player-brand { align-items: center; display: flex; font-family: "DM Mono", monospace; font-size: 10px; gap: 10px; letter-spacing: .7px; text-transform: uppercase; }
.player-brand .brand-mark { height: 14px; width: 14px; }
.player-brand .brand-mark span { height: 14px; width: 3px; }
.player-brand .brand-mark span:nth-child(2) { height: 10px; margin-top: 4px; }
.player-brand .brand-mark span:nth-child(3) { height: 7px; margin-top: 7px; }
.player-header-actions { display: flex; gap: 5px; }
.player-layout { display: grid; grid-template-columns: minmax(0, 1fr) 265px; }
.video-frame { background: #050606; min-height: 500px; position: relative; }
.video-frame video { background: #050606; display: block; height: 100%; min-height: 500px; object-fit: contain; width: 100%; }
.video-placeholder { align-items: center; color: var(--muted); display: flex; flex-direction: column; gap: 12px; inset: 0; justify-content: center; pointer-events: none; position: absolute; }
.video-placeholder svg { color: var(--accent); height: 40px; width: 40px; }
.video-placeholder strong { color: var(--text); font-size: 15px; }
.video-placeholder span { color: var(--muted-dark); font-family: "DM Mono", monospace; font-size: 9px; }
.video-cast-state { align-items: center; background: rgba(12,14,15,.85); border: 1px solid var(--accent); border-radius: 3px; bottom: 26px; color: var(--accent); display: flex; font-family: "DM Mono", monospace; font-size: 10px; gap: 7px; left: 50%; padding: 8px 11px; position: absolute; transform: translateX(-50%); }
.video-cast-state svg { height: 14px; width: 14px; }
.player-info { background: #151819; border-left: 1px solid var(--line); padding: 38px 28px 24px; }
.player-info .section-overline { margin: 0 0 14px; }
.player-info h2 { font-size: 24px; letter-spacing: -1px; line-height: 1.15; margin: 0; }
.player-original { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; margin: 11px 0 28px; }
.player-rule { background: var(--line); height: 1px; margin-bottom: 22px; }
.player-detail-list { display: grid; gap: 16px; margin-bottom: 36px; }
.player-detail-list div { display: flex; justify-content: space-between; }
.player-detail-list span { color: var(--muted-dark); font-family: "DM Mono", monospace; font-size: 9px; }
.player-detail-list strong { color: #d6d5ce; font-size: 10px; font-weight: 500; text-align: right; }
.button-cast { background: #2b3030; color: var(--text); width: 100%; }
.button-cast:hover { background: #3a4141; }
.player-note { align-items: flex-start; color: var(--muted-dark); display: flex; font-size: 10px; gap: 7px; line-height: 1.5; margin-top: 16px; }
.player-note svg { flex: 0 0 auto; height: 13px; margin-top: 1px; width: 13px; }

.cast-popover { background: #1b1f20; border: 1px solid var(--line-bright); border-radius: 5px; box-shadow: 0 18px 55px rgba(0,0,0,.5); padding: 18px; position: fixed; right: 28px; top: 68px; width: 285px; z-index: 70; }
.cast-popover-head { align-items: flex-start; display: flex; justify-content: space-between; margin-bottom: 14px; }
.cast-popover-head .section-overline { margin: 0 0 5px; }
.cast-popover-head h3 { font-size: 14px; margin: 0; }
.device-row { align-items: center; background: transparent; border: 1px solid transparent; border-radius: 3px; cursor: pointer; display: flex; gap: 10px; padding: 10px 8px; text-align: left; width: 100%; }
.device-row:hover, .device-row.active { background: #252a2a; border-color: var(--line); }
.device-icon { align-items: center; background: #303635; border-radius: 3px; color: var(--muted); display: flex; height: 30px; justify-content: center; width: 30px; }
.device-icon svg { height: 15px; width: 15px; }
.device-row > span:nth-child(2) { display: grid; flex: 1; gap: 3px; }
.device-row strong { font-size: 11px; font-weight: 600; }
.device-row small { color: #75c698; font-family: "DM Mono", monospace; font-size: 8px; }
.device-check { color: var(--accent); height: 15px; opacity: 0; width: 15px; }
.device-row.active .device-check { opacity: 1; }
.cast-popover-foot { align-items: flex-start; border-top: 1px solid var(--line); color: var(--muted-dark); display: flex; font-size: 9px; gap: 7px; line-height: 1.45; margin-top: 10px; padding: 14px 3px 0; }
.cast-popover-foot svg { flex: 0 0 auto; height: 13px; width: 13px; }
.cast-support-note { align-items: flex-start; background: #252a2a; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); display: flex; font-size: 10px; gap: 9px; line-height: 1.55; padding: 13px 11px; }
.cast-support-note svg { color: var(--accent); flex: 0 0 auto; height: 15px; margin-top: 1px; width: 15px; }

@media (max-width: 1100px) {
  :root { --side-width: 190px; }
  .hero-section { grid-template-columns: minmax(280px, .9fr) minmax(330px, 1.1fr); }
  .hero-copy h1 { font-size: clamp(42px, 5vw, 63px); }
  .continue-grid { gap: 16px; }
  .continue-item { gap: 10px; grid-template-columns: 88px 1fr; }
  .item-time { display: none; }
  .movie-grid { gap: 27px 13px; }
  .player-layout { grid-template-columns: minmax(0, 1fr) 235px; }
  .player-info { padding-left: 21px; padding-right: 21px; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .topbar { height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0; }
  .mobile-brand { align-items: center; display: flex; font-size: 16px; font-weight: 800; gap: 7px; }
  .mobile-brand .brand-mark { height: 15px; width: 14px; }
  .mobile-brand .brand-mark span { height: 15px; width: 3px; }
  .mobile-brand .brand-mark span:nth-child(2) { height: 11px; margin-top: 4px; }
  .mobile-brand .brand-mark span:nth-child(3) { height: 7px; margin-top: 8px; }
  .breadcrumb { display: none; }
  .topbar-actions { gap: 6px; }
  .search-box { border: 0; flex: 0 0 35px; padding: 0; width: 35px; }
  .search-box input, .search-box kbd { display: none; }
  .search-box.expanded { background: var(--panel-soft); border: 1px solid var(--line-bright); border-radius: 4px; flex-basis: min(56vw, 230px); gap: 7px; padding: 7px 9px; width: min(56vw, 230px); }
  .search-box.expanded input { display: block; }
  .search-box svg { height: 18px; width: 18px; }
  .mobile-bottom-nav { align-items: start; background: rgba(21, 23, 24, .96); border-top: 1px solid var(--line-bright); bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); left: 0; padding: 8px 12px max(8px, env(safe-area-inset-bottom)); position: fixed; right: 0; z-index: 60; }
  .mobile-nav-item { align-items: center; background: transparent; border: 0; color: var(--muted-dark); cursor: pointer; display: flex; flex-direction: column; font-size: 9px; gap: 4px; min-height: 44px; padding: 5px 0; }
  .mobile-nav-item svg { height: 18px; stroke-width: 1.7; width: 18px; }
  .mobile-nav-item.active, .mobile-nav-item:hover { color: var(--accent); }
  .content-wrap { padding: 0 18px 24px; }
  .hero-section { display: flex; flex-direction: column-reverse; min-height: 0; }
  .hero-art-wrap, .hero-art { min-height: 278px; }
  .hero-art-wrap { height: 278px; margin: 0 -18px; }
  .hero-art { background-position: center 45%; }
  .hero-copy { padding: 34px 0 39px; }
  .hero-copy h1 { font-size: 48px; letter-spacing: -3px; }
  .hero-description { max-width: 100%; }
  .hero-progress-label, .hero-progress { max-width: 100%; }
  .section-block { padding: 34px 0 36px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 17px; }
  .section-heading h2 { font-size: 20px; }
  .continue-grid { display: flex; flex-direction: column; gap: 22px; }
  .continue-item { grid-template-columns: 121px 1fr; }
  .continue-poster { aspect-ratio: 16 / 10; }
  .item-time { display: block; }
  .library-heading { gap: 15px; }
  .filter-row { gap: 17px; max-width: 100%; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-button { min-height: 36px; }
  .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 29px; }
  .movie-poster { margin-bottom: 10px; }
  .movie-card .bookmark-button { opacity: 1; }
  .button { min-height: 44px; }
  .site-footer { flex-wrap: wrap; gap: 10px 20px; line-height: 1.5; }
  .site-footer span:nth-child(2) { order: 3; width: 100%; }
  .toast-region { bottom: 14px; left: 14px; right: 14px; }
  .toast { min-width: 0; }
  .cast-popover { left: 14px; right: 14px; top: 59px; width: auto; }
  .player-dialog { border: 0; border-radius: 0; height: 100dvh; max-height: none; width: 100vw; }
  .player-header { height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 14px 0; }
  .player-layout { display: block; height: calc(100dvh - 56px - env(safe-area-inset-top)); max-height: none; overflow-y: auto; }
  .video-frame { aspect-ratio: 16 / 9; min-height: 0; }
  .video-frame video { aspect-ratio: 16 / 9; min-height: 0; }
  .player-info { border-left: 0; border-top: 1px solid var(--line); padding: 25px 20px 28px; }
  .player-info h2 { font-size: 20px; }
  .player-detail-list { gap: 11px; margin-bottom: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
