:root {
  --bg: #000;
  --bg2: #0e0e11;
  --card: #1a1a1f;
  --line: rgba(255,255,255,.1);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --accent: #e5172f;
  --radius: 14px;
  --pad: clamp(16px, 4vw, 56px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  display: flex; align-items: center; gap: 28px; padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,0));
  transition: background .3s, backdrop-filter .3s;
}
.nav.solid { background: rgba(18,18,22,.72); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); border-bottom: 1px solid var(--line); }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -.5px; display: flex; align-items: baseline; }
.logo-x { color: var(--accent); font-size: 28px; }
.logo-tv { margin-left: 3px; font-size: 13px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--text); color: #000; transform: translateY(-3px); }
.tabs { display: flex; gap: 6px; }
.tabs a { padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); transition: .2s; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: rgba(255,255,255,.14); color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border-radius: 999px; padding: 7px 14px; width: 220px; transition: .25s; }
.search:focus-within { background: rgba(255,255,255,.16); width: 280px; }
.search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.search input { background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 15px; width: 100%; }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.install-btn { display: flex; align-items: center; gap: 6px; border: 0; background: var(--text); color: #000; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.install-btn svg { width: 17px; height: 17px; }

.app { min-height: 100vh; padding-bottom: 80px; }
.fade-in { animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero { position: relative; height: min(88vh, 820px); min-height: 520px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 9s linear; }
.hero-slide.on img { transform: scale(1.0); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%), linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 40%); }
.hero-info { position: absolute; z-index: 2; left: var(--pad); bottom: 12%; max-width: 620px; }
.hero-info h1 { font-size: clamp(34px, 6vw, 72px); line-height: 1.02; margin: 0 0 14px; font-weight: 800; letter-spacing: -1.5px; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero-info p { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.5; color: #e8e8ed; margin: 12px 0 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-dots { position: absolute; z-index: 3; right: var(--pad); bottom: 12%; display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.35); transition: .3s; }
.hero-dots button.on { width: 26px; background: #fff; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.meta .dot::before { content: "·"; margin-right: 8px; }
.badge { border: 1px solid rgba(255,255,255,.45); color: #e8e8ed; border-radius: 5px; padding: 1px 6px; font-size: 12px; font-weight: 700; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 26px; font-size: 16px; font-weight: 700; transition: transform .15s, background .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e4e4e7; }
.btn-primary svg { fill: #000; stroke: none; }
.btn-glass { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.btn-glass:hover { background: rgba(255,255,255,.24); }
.btn-red { background: var(--accent); color: #fff; }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

.rows { position: relative; z-index: 3; margin-top: -60px; }
.rows.no-hero { margin-top: 0; padding-top: 96px; }
.row { margin: 0 0 38px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--pad); margin-bottom: 12px; }
.row-head h2 { font-size: 21px; margin: 0; font-weight: 700; letter-spacing: -.3px; }
.row-head a { color: var(--muted); font-size: 15px; font-weight: 600; }
.row-head a:hover { color: var(--text); }
.row-wrap { position: relative; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 340px); gap: 18px; overflow-x: auto; padding: 8px var(--pad) 18px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.arrow { position: absolute; top: 8px; bottom: 18px; width: var(--pad); min-width: 40px; border: 0; background: rgba(0,0,0,.45); opacity: 0; transition: .2s; z-index: 4; display: flex; align-items: center; justify-content: center; }
.row-wrap:hover .arrow { opacity: 1; }
.arrow.l { left: 0; } .arrow.r { right: 0; }
.arrow svg { width: 30px; height: 30px; }

.card { scroll-snap-align: start; display: block; }
.thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 40px; font-weight: 800; background: linear-gradient(135deg, #24242b, #121216); }
.card:hover .thumb, .card:focus-visible .thumb { transform: scale(1.045); box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.card:focus-visible { outline: none; }
.card:focus-visible .thumb { outline: 3px solid #fff; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.thumb .bar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); overflow: hidden; }
.thumb .bar i { display: block; height: 100%; background: #fff; }
.card-title { margin-top: 10px; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.page { padding: 100px var(--pad) 0; }
.page h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 24px; letter-spacing: -.8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { padding: 9px 18px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 600; font-size: 15px; transition: .2s; }
.chip:hover { background: rgba(255,255,255,.18); }
.chip.on { background: #fff; color: #000; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.cat-tile { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--card); transition: transform .3s; }
.cat-tile:hover { transform: scale(1.03); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(1.1); }
.cat-tile span { position: absolute; left: 18px; bottom: 14px; font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.cat-tile small { position: absolute; right: 16px; bottom: 18px; color: #ddd; font-weight: 600; }

.detail-hero { position: relative; min-height: min(84vh, 760px); display: flex; align-items: flex-end; }
.detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.05) 80%), linear-gradient(0deg, #000 2%, rgba(0,0,0,0) 45%); }
.detail-info { position: relative; z-index: 2; padding: 120px var(--pad) 60px; max-width: 760px; }
.detail-info h1 { font-size: clamp(34px, 5.5vw, 66px); line-height: 1.03; margin: 0 0 14px; letter-spacing: -1.4px; font-weight: 800; }
.detail-info .desc { font-size: 17px; line-height: 1.6; color: #e1e1e6; margin: 18px 0 28px; white-space: pre-line; }
.resume-note { color: var(--muted); font-size: 14px; margin-top: 12px; }
.section { padding: 10px 0 20px; }
.shots { grid-auto-columns: clamp(240px, 26vw, 400px); }
.shot { scroll-snap-align: start; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 0; padding: 0; background: var(--card); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.shot:hover img { transform: scale(1.05); }

.empty { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 40px; color: var(--muted); }
.empty h2 { color: var(--text); font-size: 28px; margin: 18px 0 8px; }
.empty .big { font-size: 64px; }
.empty p { max-width: 460px; line-height: 1.6; margin: 0 0 22px; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 30px; animation: fade .25s; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.lb-close { position: absolute; top: 20px; right: 24px; border: 0; background: rgba(255,255,255,.15); width: 44px; height: 44px; border-radius: 50%; font-size: 18px; }

.modal { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: #1c1c21; border: 1px solid var(--line); border-radius: 20px; padding: 26px; max-width: 400px; width: 100%; }
.modal-card h3 { margin: 0 0 10px; font-size: 22px; }
.modal-card ol { padding-left: 20px; line-height: 1.8; color: #ddd; }
.kbd { display: inline-block; background: rgba(255,255,255,.15); border-radius: 6px; padding: 0 6px; }

.player { position: fixed; inset: 0; z-index: 100; background: #000; overflow: hidden; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .p-top, .player .p-bottom { position: absolute; left: 0; right: 0; z-index: 3; transition: opacity .35s, transform .35s; }
.player .p-top { top: 0; display: flex; align-items: center; gap: 14px; padding: 18px var(--pad); padding-top: calc(18px + env(safe-area-inset-top)); background: linear-gradient(180deg, rgba(0,0,0,.7), transparent); }
.player .p-bottom { bottom: 0; padding: 40px var(--pad) 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }
.player.idle { cursor: none; }
.player.idle .p-top { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.player.idle .p-bottom { opacity: 0; transform: translateY(10px); pointer-events: none; }
.p-title { font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-btn { width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .2s, transform .15s; }
.p-btn:hover { background: rgba(255,255,255,.14); }
.p-btn:active { transform: scale(.92); }
.p-btn svg { width: 26px; height: 26px; }
.p-btn .fill { fill: currentColor; }
#pPlay svg { fill: #fff; stroke: none; width: 30px; height: 30px; }
.p-text { width: auto; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 15px; }
#pPlay .i-pause, .player.playing #pPlay .i-play { display: none; }
.player.playing #pPlay .i-pause { display: block; }
.i-mute, .player.muted .i-vol { display: none; }
.player.muted .i-mute { display: block; }
.i-exit, .player.fs .i-full { display: none; }
.player.fs .i-exit { display: block; }
.p-row { display: flex; align-items: center; gap: 4px; }
.p-spacer { flex: 1; }
.p-time { font-size: 14px; font-weight: 600; color: #ddd; margin-left: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-vol { display: flex; align-items: center; }
.p-vol input { width: 0; opacity: 0; transition: width .25s, opacity .25s; accent-color: #fff; }
.p-vol:hover input, .p-vol input:focus { width: 100px; opacity: 1; margin-right: 6px; }
.p-progress { position: relative; height: 22px; display: flex; align-items: center; cursor: pointer; margin-bottom: 6px; touch-action: none; }
.p-track { position: relative; width: 100%; height: 5px; border-radius: 5px; background: rgba(255,255,255,.25); overflow: hidden; transition: height .15s; }
.p-progress:hover .p-track, .p-progress.drag .p-track { height: 8px; }
.p-buffered { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.35); width: 0; }
.p-played { position: absolute; inset: 0 auto 0 0; background: #fff; width: 0; }
.p-thumb { position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #fff; left: 0; transform: translateX(-50%) scale(0); transition: transform .15s; box-shadow: 0 0 10px rgba(0,0,0,.5); }
.p-progress:hover .p-thumb, .p-progress.drag .p-thumb { transform: translateX(-50%) scale(1); }
.p-hover { position: absolute; bottom: 26px; transform: translateX(-50%); background: rgba(30,30,34,.9); padding: 4px 9px; border-radius: 7px; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .15s; font-variant-numeric: tabular-nums; }
.p-progress:hover .p-hover, .p-progress.drag .p-hover { opacity: 1; }
.p-menu-wrap { position: relative; }
.p-menu { position: absolute; bottom: 54px; right: 0; background: rgba(30,30,36,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 130px; }
.p-menu button { display: flex; width: 100%; border: 0; background: none; padding: 9px 12px; border-radius: 9px; font-weight: 600; justify-content: space-between; }
.p-menu button:hover { background: rgba(255,255,255,.1); }
.p-menu button.on::after { content: "✓"; }
.p-center { position: absolute; left: 50%; top: 50%; z-index: 2; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.8); transition: .25s; pointer-events: none; }
.p-center svg { width: 42px; height: 42px; fill: #fff; stroke: none; margin-left: 5px; }
.player.paused-ui .p-center { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.p-spinner { position: absolute; left: 50%; top: 50%; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; opacity: 0; pointer-events: none; transition: opacity .2s; }
.player.loading .p-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.p-toast { position: absolute; left: 50%; top: 90px; transform: translate(-50%, -10px); z-index: 4; background: rgba(30,30,36,.9); padding: 10px 18px; border-radius: 12px; font-weight: 600; opacity: 0; transition: .3s; pointer-events: none; }
.p-toast.on { opacity: 1; transform: translate(-50%, 0); }
.p-error { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; max-width: 460px; text-align: center; background: rgba(30,30,36,.95); padding: 24px; border-radius: 16px; line-height: 1.5; }

@media (max-width: 760px) {
  .nav { gap: 14px; height: 58px; }
  .tabs a { padding: 6px 10px; font-size: 14px; }
  .search { width: 40px; padding: 7px 11px; }
  .search input { width: 0; }
  .search:focus-within { width: 170px; position: absolute; right: var(--pad); background: #222; }
  .search:focus-within input { width: 100%; }
  .install-btn span { display: none; }
  .install-btn { padding: 8px 10px; }
  .hero { min-height: 480px; height: 72vh; }
  .hero-info { bottom: 14%; right: var(--pad); }
  .hero-dots { bottom: auto; top: calc(74px + env(safe-area-inset-top)); right: var(--pad); }
  .scroller { grid-auto-columns: 72vw; gap: 12px; }
  .btn { padding: 12px 20px; }
  .p-vol input, #pPip { display: none; }
  #pBackward, #pForward { width: 40px; }
  .p-time { font-size: 13px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .card-title { font-size: 14px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .logo { font-size: 21px; }
}
