@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/465785f87055.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/83cb19f9b7b0.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/92a5380fb0d4.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/f2b2b22d29b5.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #05070f;
  --bg2: #080d19;
  --text: #f4f8ff;
  --muted: #93a5c4;
  --accent: #5de3ff;
  --accent-text: #03131b;
  --violet: #8e6cff;
  --border: rgba(139, 188, 255, .16);
  --border-strong: rgba(139, 196, 255, .30);
  --panel: rgba(255, 255, 255, .04);
  --panel2: rgba(255, 255, 255, .065);
  --shadow: 0 22px 60px rgba(0, 0, 0, .42);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Golos Text", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(68, 123, 255, .16), transparent 60%),
    radial-gradient(800px 520px at 100% 0%, rgba(142, 108, 255, .13), transparent 58%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { max-width: 100%; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(5, 7, 15, .96), rgba(5, 7, 15, .72));
  backdrop-filter: blur(24px) saturate(150%);
}
.brand { display: flex; align-items: center; gap: 8px; flex: none; }
.brand-name {
  font-family: "Unbounded", "Golos Text", sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.045em;
}
.nova {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 6px;
  border: 1px solid rgba(93, 227, 255, .35);
  border-radius: 5px;
  background: rgba(93, 227, 255, .10);
  color: var(--accent);
  font-family: "Golos Text", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 240px;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 15, 29, .68);
}
.search-ico { color: var(--muted); font-size: 18px; line-height: 1; }
.search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}
.search-wrap input::placeholder { color: rgba(147, 165, 196, .7); }
.search-wrap:focus-within {
  border-color: rgba(93, 227, 255, .55);
  box-shadow: 0 0 0 3px rgba(93, 227, 255, .10);
}
.icon-btn, .install-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.icon-btn:hover, .install-btn:hover { background: var(--panel2); border-color: var(--border-strong); }
.install-btn { width: auto; color: var(--accent-text); border: 0; background: linear-gradient(135deg, var(--accent), var(--violet)); font-size: 12px; font-weight: 700; }
.install-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 18px 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 196, 107, .28);
  border-radius: 12px;
  background: rgba(255, 196, 107, .08);
  color: #ffd99a;
  font-size: 11.5px;
  line-height: 1.45;
}
.banner button { padding: 7px 10px; border: 1px solid rgba(255, 196, 107, .35); border-radius: 8px; background: rgba(255, 196, 107, .12); color: #ffe3b4; font-size: 11px; font-weight: 700; }

main { max-width: 1500px; margin: 0 auto; padding: 16px 18px calc(40px + env(safe-area-inset-bottom)); }
#home-view, #detail-view { animation: rise .32s cubic-bezier(.2, .8, .25, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.home-hero {
  position: relative;
  min-height: 220px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(18, 31, 55, .82), rgba(7, 13, 25, .78));
  box-shadow: var(--shadow);
}
.home-hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .45; filter: saturate(1.1); }
.home-hero .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 7, 15, .94), rgba(5, 7, 15, .54) 58%, rgba(5, 7, 15, .2)); }
.home-hero .hero-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 18px; min-height: 176px; }
.home-hero .hero-poster { width: 112px; flex: none; border-radius: 13px; overflow: hidden; box-shadow: 0 16px 36px rgba(0, 0, 0, .45); }
.home-hero .hero-copy { min-width: 0; }
.home-hero .kicker { color: var(--accent); font-size: 8.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.home-hero h1 { margin: 6px 0 7px; font-family: "Unbounded", "Golos Text", sans-serif; font-size: clamp(22px, 5vw, 36px); line-height: 1.03; letter-spacing: -.055em; }
.home-hero .meta { color: #c3d1e5; font-size: 11.5px; }
.home-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.home-hero .hero-actions button, .home-hero .hero-actions a { padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel2); color: var(--text); font-size: 11px; text-decoration: none; }
.home-hero .hero-actions .primary { border: 0; background: linear-gradient(135deg, var(--accent), var(--violet)); color: var(--accent-text); font-weight: 700; }
.home-hero .hero-overview { max-width: 680px; margin: 9px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.rowwrap { margin: 0 0 18px; }
.rowhead { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; }
.rowhead h2 { margin: 0; font-family: "Unbounded", "Golos Text", sans-serif; font-size: 14px; letter-spacing: -.04em; }
.hrow { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.hrow::-webkit-scrollbar { display: none; }
.hcard { flex: 0 0 126px; border: 0; padding: 0; background: transparent; color: var(--text); text-align: left; }
.hcard .poster { aspect-ratio: 2 / 3; border-radius: 11px; overflow: hidden; border: 1px solid var(--border); }
.hcard .hname { margin-top: 5px; font-size: 11px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hcard .hsub { margin-top: 2px; color: var(--muted); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard .progress { height: 3px; margin-top: 5px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.hcard .progress i { display: block; height: 100%; background: var(--accent); }

.chips { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 14px; padding-bottom: 3px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.chip:hover { background: var(--panel2); color: var(--text); }
.chip.on { border-color: rgba(93, 227, 255, .35); background: rgba(93, 227, 255, .13); color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 13px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 0; padding: 0; background: transparent; color: var(--text); text-align: left; }
.card .poster { position: relative; aspect-ratio: 2 / 3; border-radius: 13px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(93, 227, 255, .10), rgba(142, 108, 255, .10)); transition: transform .18s ease, border-color .18s ease; }
.card:hover .poster { transform: translateY(-2px); border-color: rgba(93, 227, 255, .36); }
.card .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .poster .fallback { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(244, 248, 255, .72); font-family: "Unbounded", sans-serif; font-size: 30px; }
.card .badge { position: absolute; top: 6px; right: 6px; z-index: 2; padding: 3px 6px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px; background: rgba(4, 8, 17, .72); color: #ffd166; font-size: 9px; font-weight: 700; backdrop-filter: blur(6px); }
.card .playbadge { position: absolute; left: 7px; bottom: 7px; z-index: 2; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: rgba(4, 8, 17, .72); color: #fff; font-size: 9px; backdrop-filter: blur(6px); }
.card-title { margin-top: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-sub { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { margin: 24px 0; padding: 26px; border: 1px dashed var(--border-strong); border-radius: 16px; color: var(--muted); text-align: center; font-size: 12px; }

/* detail */
.detail-hero { position: relative; margin-bottom: 16px; padding: 20px; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: rgba(10, 17, 31, .74); box-shadow: var(--shadow); }
.detail-hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .4; }
.detail-hero .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 7, 15, .96), rgba(5, 7, 15, .58) 62%, rgba(5, 7, 15, .22)); }
.detail-hero .hero-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 16px; }
.detail-hero .poster { width: 116px; flex: none; border-radius: 13px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 38px rgba(0, 0, 0, .45); }
.detail-hero .poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }
.detail-copy { min-width: 0; flex: 1; }
.detail-copy .kicker { color: var(--accent); font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.detail-copy h1 { margin: 6px 0 7px; font-family: "Unbounded", "Golos Text", sans-serif; font-size: clamp(21px, 5.2vw, 34px); line-height: 1.04; letter-spacing: -.055em; overflow-wrap: anywhere; }
.detail-copy .meta { color: #c3d1e5; font-size: 11.5px; line-height: 1.45; }
.detail-copy .overview { max-width: 760px; margin: 9px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.detail-actions button, .detail-actions a { padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel2); color: var(--text); font-size: 11px; text-decoration: none; }
.detail-actions .primary { border: 0; background: linear-gradient(135deg, var(--accent), var(--violet)); color: var(--accent-text); font-weight: 700; }
.detail-actions .fav.on { color: #ff8ab3; border-color: rgba(255, 138, 179, .35); background: rgba(255, 138, 179, .10); }
.back-btn { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 12px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); color: var(--text); font-size: 11px; }
.back-btn:hover { background: var(--panel2); }

.section { margin: 0 0 18px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.section-head h2 { margin: 0; font-family: "Unbounded", "Golos Text", sans-serif; font-size: 14px; letter-spacing: -.04em; }
.section-head .count { color: var(--muted); font-size: 10.5px; }
.files { display: flex; flex-direction: column; gap: 5px; }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid transparent; border-radius: 10px; background: rgba(255, 255, 255, .025); }
.file-row:hover { background: rgba(255, 255, 255, .055); border-color: var(--border); }
.file-main { min-width: 0; }
.file-title { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-sub { margin-top: 2px; color: var(--muted); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-actions { display: flex; gap: 4px; }
.mini-btn { display: inline-grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); font-size: 11px; text-decoration: none; }
.mini-btn:hover { background: var(--panel2); border-color: var(--border-strong); }
.mini-btn.play { color: var(--accent); }
.season { margin: 12px 0 5px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.photo { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--panel); padding: 0; }
.photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.photo .pname { padding: 5px 7px 6px; color: var(--muted); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; background: rgba(2, 5, 12, .84); backdrop-filter: blur(14px); }
.auth-card { width: min(420px, 94vw); padding: 24px; border: 1px solid var(--border-strong); border-radius: 20px; background: linear-gradient(150deg, #0d1628, #070c16); box-shadow: var(--shadow); }
.auth-logo { font-family: "Unbounded", sans-serif; font-size: 18px; letter-spacing: -.05em; }
.auth-card h1 { margin: 14px 0 6px; font-family: "Unbounded", sans-serif; font-size: 20px; letter-spacing: -.04em; }
.auth-card p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-card input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: rgba(5, 11, 23, .7); color: var(--text); outline: 0; }
.auth-card input:focus { border-color: rgba(93, 227, 255, .55); box-shadow: 0 0 0 3px rgba(93, 227, 255, .10); }
.auth-card .primary { width: 100%; height: 42px; margin-top: 10px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--violet)); color: var(--accent-text); font-weight: 700; }
.err { min-height: 16px; margin-top: 8px; color: #ff9aaa; font-size: 11px; }

.player-modal { justify-content: flex-start; padding: 0; background: rgba(0, 0, 0, .94); }
.player-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
.player-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-body { display: flex; align-items: center; justify-content: center; width: 100%; flex: 1; min-height: 0; padding: 0; }
.player-body video { width: 100%; max-height: calc(100vh - 150px); border-radius: 10px; background: #000; }
.player-body audio { width: min(560px, 94vw); }
.player-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); }
.player-actions a, .player-actions button { padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel2); color: var(--text); font-size: 11px; text-decoration: none; }
.player-actions .primary { border: 0; background: linear-gradient(135deg, var(--accent), var(--violet)); color: var(--accent-text); font-weight: 700; }

.image-modal { background: rgba(0, 0, 0, .95); }
.image-modal img { max-width: 96vw; max-height: 80vh; border-radius: 10px; object-fit: contain; }
.image-close { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; }

.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 200; transform: translateX(-50%); max-width: 92vw; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: rgba(8, 14, 27, .94); color: var(--text); font-size: 11.5px; box-shadow: var(--shadow); }
#player:not([hidden]) ~ #toast { top: calc(64px + env(safe-area-inset-top)); bottom: auto; }

@media (max-width: 700px) {
  .topbar { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .brand-name { font-size: 16px; }
  .search-wrap { order: 5; flex-basis: 100%; height: 37px; }
  .icon-btn, .install-btn { height: 37px; min-width: 37px; }
  .install-btn { padding: 0 10px; font-size: 11px; }
  main { padding: 12px 12px calc(30px + env(safe-area-inset-bottom)); }
  .home-hero { min-height: 190px; padding: 16px; border-radius: 17px; }
  .home-hero .hero-inner { min-height: 150px; gap: 12px; }
  .home-hero .hero-poster { width: 92px; }
  .home-hero h1 { font-size: 23px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .detail-hero { padding: 15px; border-radius: 17px; }
  .detail-hero .hero-inner { align-items: flex-start; gap: 11px; }
  .detail-hero .poster { width: 98px; }
  .detail-copy h1 { font-size: 22px; }
  .detail-copy .overview { -webkit-line-clamp: 5; }
  .detail-actions button, .detail-actions a { flex: 1 1 auto; text-align: center; }
  .file-row { padding: 8px; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .brand-name { font-size: 14px; }
  .nova { display: none; }
  .home-hero .hero-poster { width: 78px; }
  .detail-hero .poster { width: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.skelcard {
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(100deg, rgba(255,255,255,.035), rgba(255,255,255,.075), rgba(255,255,255,.035));
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (max-width: 700px) { .skelcard { min-height: 230px; } }

/* category home */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; margin: 4px 0 16px; }
.cat-tile {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 12px; border: 1px solid var(--border); border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cat, var(--accent)) 9%, transparent), rgba(255,255,255,.025));
  color: var(--text); text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.cat-tile:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--cat, var(--accent)) 42%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--cat, var(--accent)) 14%, transparent), rgba(255,255,255,.045)); }
.cat-ico {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 25%, transparent);
  border-radius: 10px; background: color-mix(in srgb, var(--cat, var(--accent)) 10%, transparent);
  font-size: 17px;
}
.cat-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-main b { font-size: 12px; line-height: 1.2; }
.cat-main small { color: var(--muted); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-head { margin: 2px 0 10px; font-family: "Unbounded", "Golos Text", sans-serif; font-size: 14px; letter-spacing: -.04em; }
@media (max-width: 700px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .cat-tile { padding: 10px; gap: 8px; } .cat-ico { width: 32px; height: 32px; font-size: 15px; } }

/* HLS player: fixed timeline instead of the growing event duration */
.video-shell { width: 100%; max-width: min(1600px, 96vw); display: flex; flex-direction: column; align-items: stretch; }
.video-shell video { width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 10px 10px 0 0; background: #000; }
.video-shell:fullscreen { max-width: 100vw; width: 100vw; height: 100vh; justify-content: center; background: #000; }
.video-shell:fullscreen video { max-height: calc(100vh - 47px); border-radius: 0; }
.video-shell:fullscreen .vc-bar { border-radius: 0; }
.vc-bar { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 10px 10px; background: rgba(8,14,27,.92); }
.vc-btn { width: 32px; height: 32px; flex: none; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.05); color: var(--text); font-size: 12px; }
.vc-time { flex: none; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vc-range { flex: 1; min-width: 0; accent-color: var(--accent); height: 4px; }
@media (max-width: 700px) { .vc-time { font-size: 9px; } .vc-btn { width: 30px; height: 30px; } }
@media (max-height: 520px) {
  .player-head { padding: 6px 12px; }
  .player-actions { padding: 6px 12px; }
  .player-body video, .video-shell video { max-height: calc(100vh - 110px); }
  .vc-bar { padding: 4px 7px; }
  .vc-btn { width: 28px; height: 28px; }
}
