:root {
  --bg: #05070B;
  --panel: rgba(14, 18, 28, 0.78);
  --panel-solid: #0B101B;
  --panel-2: #111827;
  --line: rgba(148, 163, 184, 0.16);
  --cyan: #00C8FF;
  --cyan-soft: rgba(0, 200, 255, 0.14);
  --ink: #E8EEF6;
  --muted: #93A0B5;
  --sans: "IBM Plex Sans", "Geist", system-ui, sans-serif;
  --disp: "Syne", "Instrument Sans", sans-serif;
  --mono: "IBM Plex Mono", "Geist Mono", ui-monospace, monospace;
  --side: 270px;
  --nav-h: 60px;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  max-width: 100%;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

body {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 70% 50% at 80% -10%, rgba(0, 200, 255, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(80, 90, 140, 0.08), transparent 50%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 70% -10%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% -10%, black 10%, transparent 70%);
}

.nav, .shell, .modal { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 8px;
  background: #05070B;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand img {
  height: 72px;
  width: 72px;
  object-fit: contain;
  mix-blend-mode: lighten;
  margin: -6px 0;
  flex: 0 0 auto;
}

.brand .id {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.brand .id em {
  font-style: normal;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand .id span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.nav-mid {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.filter-toggle {
  display: none;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  flex: 0 0 auto;
}

/* ---------- Shell / sidebar ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--side) 1fr;
  min-height: calc(100dvh - var(--nav-h));
  align-items: start;
}

.sidebar {
  position: sticky;
  top: var(--nav-h);
  height: calc(100dvh - var(--nav-h));
  overflow: auto;
  padding: 16px 16px 16px;
  border-right: 1px solid var(--line);
  background: #0A0D14;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.side-h {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 6px;
}

.side-h:first-child { margin-top: 0; }

.sidebar input[type="search"] {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  font-size: 13px;
}

.sidebar input[type="search"]:focus {
  border-color: rgba(0, 200, 255, 0.45);
}

.cats, .months { display: flex; flex-direction: column; gap: 2px; }

.cat, .mo {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
  min-width: 0;
}

.cat:hover, .mo:hover { background: rgba(255, 255, 255, 0.04); }

.cat .box {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 3px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.cat.on .box {
  background: var(--cyan);
  border-color: var(--cyan);
}

.cat.on .box::after {
  content: "";
  width: 8px;
  height: 5px;
  border: 1.6px solid #071018;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translateY(-1px);
}

.cat .label, .mo .label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat .n, .mo .n {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  flex: 0 0 auto;
}

.pills { display: flex; flex-wrap: wrap; gap: 6px; }

.pill {
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.pill.on, .pill:hover {
  border-color: rgba(0, 200, 255, 0.45);
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.08);
}

.mo { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; }

.mo .tick {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  justify-self: center;
}

.mo.on { background: rgba(0, 200, 255, 0.07); }
.mo.on .tick {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.reset {
  margin-top: auto;
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: #0A0D14;
  position: sticky;
  bottom: 0;
}

.reset:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Main / cards ---------- */
.main { min-width: 0; padding: 16px 22px 32px; }

.toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.toolbar h1 {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.toolbar .sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sort select {
  height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0E121C url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2393A0B5' d='M1 1l5 5 5-5'/></svg>") no-repeat right 8px center;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.sort select:focus { border-color: rgba(0, 200, 255, 0.45); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  text-align: left;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color .16s, transform .16s;
  width: 100%;
}

.card:hover, .card:focus-visible {
  border-color: rgba(0, 200, 255, 0.4);
  transform: translateY(-2px);
  outline: none;
}

.card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.card .thumb-blur {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(18px) saturate(1.15);
  transform: scale(1.05);
}

.card .thumb-main {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.card .thumb.portrait .thumb-main { object-fit: contain; }

.card .file {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  height: 18px;
  padding: 0 6px;
  background: rgba(7, 9, 15, 0.72);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
}

.card .play-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 255, 0.45);
  background: rgba(5, 7, 11, 0.62);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .16s;
}

.card:hover .play-hint, .card:focus-visible .play-hint { opacity: 1; }
.card .play-hint svg { width: 11px; height: 11px; fill: #fff; margin-left: 1px; }

.card .body { padding: 9px 10px 11px; }

.card .ct {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .cm {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  grid-column: 1 / -1;
  padding: 48px 8px;
  color: var(--muted);
  text-align: center;
}

footer {
  grid-column: 2;
  padding: 6px 22px 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Modal / player ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(10px);
  padding: 16px;
  overflow: auto;
}

.modal.open { display: flex; }

.dialog {
  width: min(960px, 94vw);
  max-width: 100%;
  background: var(--panel-solid);
  border: 1px solid rgba(0, 200, 255, 0.24);
  border-radius: 14px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 200, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
}

.dialog.portrait { width: min(460px, 92vw); }

.stage {
  position: relative;
  background: radial-gradient(circle at 50% 42%, #13223D 0%, #070B13 68%, #020408 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 42%, #13223D 0%, #070B13 68%, #020408 100%);
}

.dialog.portrait .stage {
  background: radial-gradient(circle at 50% 38%, #162646 0%, #070B13 72%, #020408 100%);
}

.dialog.portrait .video-frame {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-height: 70vh;
  background: radial-gradient(circle at 50% 38%, #162646 0%, #070B13 72%, #020408 100%);
}

.video-frame .poster,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-frame video { z-index: 1; }
.video-frame .poster { z-index: 2; }
.stage video:not([src]),
.stage video[src=""] { display: none; }
.stage.is-started .poster { display: none; }

.center-play {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(7, 11, 19, 0.72);
  border: 1.5px solid rgba(0, 200, 255, 0.7);
  box-shadow: 0 0 32px rgba(0, 200, 255, 0.25);
  display: grid;
  place-items: center;
  z-index: 3;
}

.center-play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.stage.playing .center-play { opacity: 0; pointer-events: none; }

.controls-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 36px 16px 12px;
  background: linear-gradient(to top, rgba(3, 6, 12, 0.96) 0%, rgba(3, 6, 12, 0.72) 60%, transparent 100%);
}

.scrubber {
  position: relative;
  height: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.scrubber::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.scrubber-buf,
.scrubber-fill {
  position: absolute;
  left: 0;
  height: 5px;
  border-radius: 999px;
  width: 0%;
  pointer-events: none;
}

.scrubber-buf { background: rgba(255, 255, 255, 0.22); }
.scrubber-fill {
  background: linear-gradient(90deg, #0EA5E9, #00E5FF);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.6);
}

.scrubber-knob {
  position: absolute;
  left: 0%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.9);
  pointer-events: none;
}

.ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.ctrl-left, .ctrl-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.cbtn {
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
}

.cbtn:hover, .cbtn:focus-visible {
  border-color: rgba(0, 200, 255, 0.35);
  outline: none;
}

.cbtn.play-btn {
  background: var(--cyan);
  color: #04101A;
  min-width: 36px;
}

.cbtn svg { width: 15px; height: 15px; fill: currentColor; }

.time {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #CBD5E1;
  margin-left: 4px;
  white-space: nowrap;
}

.vol-wrap {
  display: flex;
  align-items: center;
  width: 64px;
  flex: 0 0 auto;
}

.vol-wrap input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.vol-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
  border: 0;
  cursor: pointer;
}

.vol-wrap input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cyan);
  border: 0;
  cursor: pointer;
}

.info {
  padding: 14px 18px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: #090E18;
  flex: 0 1 auto;
  min-width: 0;
}

.dialog.portrait .info {
  flex-direction: column;
  gap: 12px;
  padding: 13px 15px 15px;
}

.title-block { flex: 1 1 200px; min-width: 0; }
.title-block h2 {
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  overflow-wrap: anywhere;
}

.dialog.portrait .title-block h2 { font-size: 18px; }

.meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

.tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--cyan-soft);
  color: #7DD3FC;
  border: 1px solid rgba(0, 200, 255, 0.25);
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
}

.action-nav,
.icon-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.dialog.portrait .actions,
.dialog.portrait .title-block {
  flex: 1 1 100%;
}

.dialog.portrait .actions { width: 100%; justify-content: flex-start; }

.abtn {
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.abtn:hover, .abtn:focus-visible {
  border-color: rgba(0, 200, 255, 0.4);
  outline: none;
}

.abtn:disabled { opacity: 0.4; cursor: default; }

.abtn.share {
  border-color: rgba(0, 200, 255, 0.32);
  background: rgba(0, 200, 255, 0.08);
  color: #E8EEF6;
}

.abtn.share svg,
.abtn.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.abtn.icon-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  gap: 0;
  position: relative;
}

.abtn.icon-btn.copied {
  border-color: rgba(0, 200, 255, 0.7);
  background: rgba(0, 200, 255, 0.16);
  color: #7DD3FC;
}

.abtn.icon-btn.copied::after {
  content: "Copied";
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0B101B;
  border: 1px solid rgba(0, 200, 255, 0.45);
  color: #7DD3FC;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  z-index: 6;
}

.abtn.share:hover, .abtn.share:focus-visible {
  border-color: rgba(0, 200, 255, 0.7);
  background: rgba(0, 200, 255, 0.16);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.18);
}

.abtn.fb {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.14);
  color: #BAE6FD;
}

.abtn.close-btn {
  width: 36px;
  min-width: 36px;
  padding: 0;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
}

.scrim {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 55;
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    height: auto;
    z-index: 60;
    border-right: 1px solid var(--line);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    pointer-events: none;
  }
  body.filters-open .sidebar {
    transform: translateX(0);
    pointer-events: auto;
  }
  body.filters-open .scrim { display: block; }
  .filter-toggle { display: inline-flex; align-items: center; }
  .brand .id { display: none; }
  .main { padding: 14px 14px 32px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  footer { grid-column: 1; padding-left: 14px; padding-right: 14px; }
  .brand img { height: 60px; width: 60px; }
  .nav { padding-right: 12px; }
  .dialog { width: min(960px, 94vw); }
  .vol-wrap { display: none; }
  .ctrl-row { gap: 6px; }
  .cbtn { height: 30px; min-width: 30px; padding: 0 7px; font-size: 11px; }
  .time { font-size: 10.5px; margin-left: 0; }
  .info {
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px 14px;
  }
  .actions { width: 100%; justify-content: flex-start; }
  .title-block, .actions { flex: 1 1 100%; }
  .abtn { height: 36px; padding: 0 10px; font-size: 11.5px; }
  .abtn.icon-btn, .abtn.close-btn { width: 36px; min-width: 36px; padding: 0; }
  .title-block h2 { font-size: 18px; }
  .controls-wrap { padding: 28px 10px 10px; }
}

@media (min-width: 520px) and (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .modal {
    padding: 0;
    align-items: center;
    justify-content: center;
    background: rgba(3, 5, 10, 0.94);
  }

  .dialog,
  .dialog.portrait {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .stage,
  .dialog.portrait .stage {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    aspect-ratio: auto;
    height: auto;
    max-height: none;
    overflow: hidden;
  }

  .video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .dialog.portrait .video-frame {
    width: 100%;
    aspect-ratio: auto;
    height: 58dvh;
    max-height: 58dvh;
  }

  .controls-wrap {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    background: #070C16;
    border-top: 1px solid var(--line);
    padding: 10px 12px;
  }

  .info {
    padding: 10px 12px 14px;
    gap: 10px;
  }

  .abtn {
    height: 36px;
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .abtn.icon-btn,
  .abtn.close-btn {
    width: 36px;
    min-width: 36px;
    padding: 0;
  }

  .action-nav { flex: 1 1 auto; order: 1; }
  .abtn.close-btn { order: 2; margin-left: auto; }
  .icon-cluster { order: 3; flex: 1 1 100%; }
  .abtn.fb { order: 4; }
}

@media (max-width: 768px) and (max-height: 520px) {
  .video-frame,
  .dialog.portrait .video-frame {
    max-height: 72dvh;
    height: auto;
    width: auto;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    align-self: center;
  }
}

@media (max-width: 420px) {
  .cbtn#btnBack, .cbtn#btnFwd { padding: 0 6px; }
}

body.modal-open { overflow: hidden; }
