:root {
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
  color: #18191c;
  background: #f6f7f8;
  font-synthesis: none;
  letter-spacing: 0;
  --surface: #fff;
  --line: #e3e5e7;
  --muted: #61666d;
  --faint: #9499a0;
  --accent: #fb7299;
  --accent-dark: #e85a83;
  --green: #14795b;
  --green-soft: #e4f4ee;
  --blue: #326ca9;
  --blue-soft: #eaf2fb;
  --amber: #a96208;
  --amber-soft: #fff2db;
  --red: #b93636;
  --red-soft: #fbeaea;
  --shadow: 0 1px 3px rgba(24,25,28,.06);
}
* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; background: #f6f7f8; }
body { min-height: 100vh; }
button, input, select { font: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img, video { display: block; max-width: 100%; }
.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 64px; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.topbar-inner {
  display: flex; align-items: center; width: min(100%,1580px); height: 100%;
  margin: 0 auto; padding: 0 38px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 42px; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 30px; color: #fff;
  background: var(--accent); border-radius: 6px; font-size: 16px; font-weight: 750;
}
.brand > span:last-child, .connection > span { display: flex; flex-direction: column; min-width: 0; }
.brand strong { color: #18191c; font-size: 15px; }
.brand small, .connection small { margin-top: 1px; color: var(--faint); font-size: 9px; }
.nav { display: flex; align-self: stretch; gap: 4px; margin-left: 42px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 7px; padding: 0 13px;
  color: #61666d; font-size: 13px;
}
.nav a::after { content: ""; position: absolute; right: 13px; bottom: 0; left: 13px; height: 3px; background: transparent; border-radius: 3px 3px 0 0; }
.nav a span { display: grid; place-items: center; width: 18px; color: #9499a0; font-size: 16px; }
.nav a:hover, .nav a.active { color: #18191c; }
.nav a.active::after { background: var(--accent); }
.connection {
  display: flex; align-items: center; gap: 9px; margin-left: auto; padding-left: 20px;
}
.connection > i { width: 8px; height: 8px; background: #e16767; border-radius: 50%; }
.connection.online > i { background: #42b58a; box-shadow: 0 0 0 3px rgba(66,181,138,.13); }
.connection strong { color: #3f4247; font-size: 11px; }
.main { width: min(100%,1580px); min-width: 0; min-height: calc(100vh - 64px); margin: 0 auto; padding: 30px 38px 64px; }
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; min-height: 58px; margin-bottom: 24px;
}
.page-header h1, .entity-hero h1, .video-info h1 {
  margin: 0; color: #1a1d21; font-weight: 700; overflow-wrap: anywhere;
}
.page-header h1 { font-size: 27px; line-height: 1.2; }
.page-header p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px;
  padding: 0 14px; border: 1px solid transparent; border-radius: 6px;
  cursor: pointer; font-size: 13px; font-weight: 600;
}
.button:disabled { cursor: wait; opacity: .62; }
.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.primary:hover { background: var(--accent-dark); }
.secondary, .icon-button {
  color: #4f5660; background: #fff; border-color: var(--line); box-shadow: var(--shadow);
}
.secondary:hover, .icon-button:hover { background: #fafbfc; border-color: #c8ced6; }
.toolbar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
}
.toolbar .search {
  display: flex; align-items: center; flex: 1; min-width: 180px; height: 38px;
  padding: 0 11px; color: #747d89; background: #fafbfc;
  border: 1px solid var(--line); border-radius: 6px;
}
.toolbar input, .toolbar select { height: 38px; color: #1c2025; border: 1px solid var(--line); border-radius: 6px; }
.toolbar .search input { flex: 1; min-width: 0; padding: 0 0 0 9px; background: transparent; border: 0; outline: 0; }
.toolbar select { min-width: 120px; padding: 0 30px 0 10px; background: #fff; }
.toolbar > input { width: 92px; padding: 0 10px; }
.toolbar .check { display: flex; align-items: center; gap: 7px; padding: 0 7px; color: #505761; font-size: 12px; white-space: nowrap; }
.toolbar .check input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.toolbar.compact .search { max-width: 480px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 26px 16px; }
.video-grid > .state { grid-column: 1 / -1; }
.video-card {
  min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e8eaed;
  border-radius: 7px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
  content-visibility: auto; contain-intrinsic-size: 0 270px;
}
.video-card:hover { border-color: #d7d9dc; box-shadow: 0 6px 18px rgba(24,25,28,.09); }
.video-media {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9;
  overflow: hidden; color: #9299a3; background: #e9ebee;
}
.video-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.video-card:hover .video-media img { transform: scale(1.025); }
.media-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.video-media .play {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; display: grid; place-items: center;
  width: 31px; height: 31px; color: #fff; background: rgba(20,22,26,.78);
  border-radius: 50%; font-size: 12px; font-style: normal;
}
.media-labels { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 5px; }
.media-badge {
  padding: 4px 7px;
  color: #fff; background: rgba(20,22,26,.76); border-radius: 4px; font-size: 10px;
}
.video-body { display: flex; flex-direction: column; min-height: 126px; padding: 11px 12px 10px; }
.video-title {
  display: -webkit-box; min-height: 42px; overflow: hidden; color: #20242a;
  font-size: 14px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.video-title:hover, .video-author a:hover { color: #00aeec; }
.video-card.is-unavailable .video-media { filter: saturate(.6); }
.video-author { display: flex; align-items: center; gap: 7px; min-width: 0; margin-top: 9px; color: var(--muted); font-size: 12px; }
.video-author a, .video-author > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; color: var(--faint); font-size: 10px; }
.avatar {
  flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px;
  overflow: hidden; color: #6d7580; background: #e9edf1; border: 1px solid #d8dde3;
  border-radius: 50%; font-size: 14px; font-weight: 650;
}
.avatar.small { width: 22px; height: 22px; font-size: 10px; }
.avatar.large { width: 76px; height: 76px; font-size: 24px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.rows, .issues {
  overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: 7px; box-shadow: var(--shadow);
}
.entity-row {
  display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 10px 14px;
  border-bottom: 1px solid #eceef1; transition: background .15s;
}
.entity-row:last-child { border-bottom: 0; }
.entity-row:hover { background: #fafbfc; }
.entity-icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 6px; font-size: 21px;
}
.entity-icon.folder { color: var(--amber); background: var(--amber-soft); }
.entity-icon.tag-icon { color: var(--blue); background: var(--blue-soft); }
.entity-icon.large { width: 62px; height: 62px; font-size: 28px; }
.entity-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.entity-main strong, .entity-main small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.entity-main strong { color: #282c32; font-size: 13px; }
.entity-main small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.entity-count { display: flex; flex: 0 0 76px; flex-direction: column; align-items: flex-end; }
.entity-count strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.entity-count small { margin-top: 2px; color: var(--faint); font-size: 10px; }
.entity-row > b { color: #adb4bd; font-size: 20px; font-weight: 400; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.back:hover { color: var(--accent-dark); }
.entity-hero {
  display: flex; align-items: center; gap: 17px; min-height: 116px; margin-bottom: 28px;
  padding: 20px 22px; background: #fff; border: 1px solid var(--line);
  border-radius: 7px; box-shadow: var(--shadow);
}
.entity-hero > div:nth-child(2) { flex: 1; min-width: 0; }
.entity-hero > div > small { color: var(--muted); font-size: 10px; }
.entity-hero h1 { margin-top: 5px; font-size: 23px; line-height: 1.3; }
.entity-hero p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.hero-count {
  display: flex; flex: 0 0 auto !important; flex-direction: column; align-items: flex-end;
  padding-left: 24px; border-left: 1px solid var(--line);
}
.hero-count strong { font-size: 18px; }
.hero-count small { margin-top: 3px; }
.metadata {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px;
  margin: -5px 0 28px; padding: 20px 0; border-block: 1px solid var(--line);
}
.metadata h2, .section-title { margin: 0 0 11px; color: #282c32; font-size: 15px; }
.metadata p { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 8px;
  color: #4c535d; background: #fff; border: 1px solid var(--line);
  border-radius: 5px; font-size: 11px;
}
.chip small { color: var(--faint); font-size: 9px; }
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 8px; }
.tag {
  display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center;
  gap: 7px; min-height: 44px; padding: 7px 11px; color: #3b4149; background: #fff;
  border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow);
}
.tag:hover { color: var(--blue); border-color: #aebfd2; }
.tag span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tag small { color: var(--faint); font-size: 10px; }
.load-more { display: flex; justify-content: center; padding-top: 25px; }
.state {
  display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
}
.state strong { font-size: 13px; }
.state span { color: var(--muted); font-size: 12px; }
.state .button { margin-left: auto; }
.error-state { color: var(--red); background: #fffafa; border-color: #eed4d4; }
.empty-state { flex-direction: column; justify-content: center; min-height: 190px; text-align: center; }
.loading-page {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60vh; color: var(--muted); font-size: 12px;
}
.loading-page i {
  width: 18px; height: 18px; border: 2px solid #c9ced5;
  border-right-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-rows .row { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px; }
.loading-rows .row i, .loading-rows .row span, .skeleton > * {
  background: #e8ebef; border-radius: 4px; animation: pulse 1.1s ease-in-out infinite alternate;
}
.loading-rows .row i { width: 40px; height: 40px; border-radius: 50%; }
.loading-rows .row span { width: 48%; height: 11px; }
.skeleton { min-height: 270px; padding: 0 12px; }
.skeleton > div { width: calc(100% + 24px); aspect-ratio: 16/9; margin-left: -12px; }
.skeleton > i { display: block; width: 80%; height: 11px; margin-top: 14px; }
.skeleton > i:last-child { width: 50%; }
@keyframes pulse { to { opacity: .55; } }

.player-layout {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 1px; overflow: hidden;
  background: #08090b; border: 1px solid #202226; border-radius: 7px;
  box-shadow: 0 8px 24px rgba(14,17,22,.14);
}
.player-layout.with-episodes { grid-template-columns: minmax(0,1fr) 300px; }
.player-stage {
  --media-aspect: 16 / 9;
  display: grid; place-items: center; justify-self: center; width: 100%; min-width: 0;
  aspect-ratio: var(--media-aspect); overflow: hidden; background: #050607;
}
.player-stage[data-shape="portrait"] { width: min(100%, 46svh, 520px); }
.player-stage[data-shape="square"] { width: min(100%, 72svh, 760px); }
.player-stage[data-shape="ultrawide"] { width: 100%; }
.player-stage video { width: 100%; height: 100%; object-fit: contain; background: #050607; }
.player-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #9aa1aa; font-size: 13px;
}
.player-empty b { font-size: 32px; }
.episodes {
  display: flex; flex-direction: column; min-width: 0; height: 100%; max-height: min(82svh,900px);
  color: #e8eaed; background: #17191d;
}
.episodes > header {
  display: flex; justify-content: space-between; padding: 15px;
  border-bottom: 1px solid #2a2d32; font-size: 12px;
}
.episodes header span { color: #9299a4; font-size: 10px; }
.episodes > div { overflow-y: auto; }
.episodes button {
  display: grid; grid-template-columns: 28px minmax(0,1fr) 14px; align-items: center;
  gap: 8px; width: 100%; min-height: 44px; padding: 7px 12px; color: #adb3bc;
  text-align: left; background: transparent; border: 0; border-bottom: 1px solid #24272c;
  cursor: pointer;
}
.episodes button:hover:not(:disabled), .episodes button.active { color: #fff; background: #292c31; }
.episodes button.active { box-shadow: inset 3px 0 var(--accent); }
.episodes button:disabled { opacity: .4; cursor: not-allowed; }
.episodes button span { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.episodes button small { display: grid; place-items: center; height: 24px; background: #282b30; border-radius: 4px; }

.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 38px; padding-top: 26px; }
.video-info { min-width: 0; }
.badges { display: flex; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px;
  border-radius: 4px; font-size: 10px; font-weight: 650; white-space: nowrap;
}
.badge.ok { color: var(--green); background: var(--green-soft); }
.badge.running { color: var(--blue); background: var(--blue-soft); }
.badge.warning { color: var(--amber); background: var(--amber-soft); }
.badge.error { color: var(--red); background: var(--red-soft); }
.badge.neutral { color: #636b76; background: #eceff2; }
.title-line { display: flex; align-items: flex-start; gap: 14px; margin-top: 9px; }
.title-line h1 { flex: 1; min-width: 0; font-size: 24px; line-height: 1.38; }
.title-line .icon-button { flex: 0 0 auto; width: 38px; padding: 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.uploader-line { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; }
.uploader-line > span { display: flex; flex-direction: column; }
.uploader-line small { color: var(--faint); font-size: 9px; }
.uploader-line strong { margin-top: 2px; font-size: 12px; }
.description {
  max-width: 900px; margin: 20px 0 0; color: #515862; font-size: 13px;
  line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.detail-tags a {
  max-width: 260px; overflow: hidden; padding: 5px 8px; color: #505761;
  background: #eceff2; border-radius: 4px; font-size: 10px;
  text-overflow: ellipsis; white-space: nowrap;
}
.locations { min-width: 0; padding-left: 23px; border-left: 1px solid var(--line); }
.locations > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.locations h2 { margin: 0; font-size: 15px; }
.locations header span { color: var(--faint); font-size: 10px; }
.locations > div { display: flex; flex-direction: column; gap: 5px; }
.locations button {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 54px;
  padding: 7px 9px; text-align: left; background: transparent;
  border: 1px solid transparent; border-radius: 6px; cursor: pointer;
}
.locations button:hover { background: #f0f2f4; }
.locations button.active { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.locations button i {
  flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px;
  color: var(--amber); background: var(--amber-soft); border-radius: 5px; font-style: normal;
}
.locations button span { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.locations button strong, .locations button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locations button strong { font-size: 11px; }
.locations button small { margin-top: 3px; color: var(--faint); font-size: 9px; }
.locations button > b { width: 7px; height: 7px; background: #a5abb3; border-radius: 50%; }
.locations button > b.available { background: #31a277; }
.source-link { display: inline-block; margin: 14px 14px 0 0; color: var(--blue); font-size: 11px; }

.health {
  display: flex; align-items: center; gap: 13px; min-height: 76px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow);
}
.health > i {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 6px;
  font-size: 20px; font-style: normal; font-weight: 700;
}
.health > i.ok { color: var(--green); background: var(--green-soft); }
.health > i.warning { color: var(--amber); background: var(--amber-soft); }
.health > span { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.health strong { font-size: 13px; }
.health small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.health > b { color: var(--green); background: var(--green-soft); padding: 5px 8px; border-radius: 4px; font-size: 10px; }
.metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.metrics > div {
  display: flex; flex-direction: column; min-height: 76px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow);
}
.metrics strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.metrics span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.system-section { margin-top: 30px; }
.scan-summary { background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.scan-summary > header {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.scan-summary header > span { display: flex; flex-direction: column; }
.scan-summary header small { color: var(--muted); font-size: 10px; }
.scan-summary header strong { margin-top: 3px; font-size: 12px; }
.scan-summary > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 13px 16px; }
.scan-summary > div span {
  display: flex; flex-direction: column; min-width: 0; padding: 3px 14px;
  color: var(--muted); border-right: 1px solid var(--line); font-size: 10px;
}
.scan-summary > div span:first-child { padding-left: 0; }
.scan-summary > div span:last-child { border-right: 0; }
.scan-summary > div strong {
  margin-bottom: 4px; overflow: hidden; color: #1c2025;
  font-size: 12px; text-overflow: ellipsis; white-space: nowrap;
}
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 11px; }
th, td { height: 44px; padding: 7px 12px; text-align: left; border-bottom: 1px solid #eceef1; white-space: nowrap; }
th { height: 38px; color: var(--muted); background: #f8f9fa; font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
.issues article {
  display: grid; grid-template-columns: 30px minmax(0,1fr) auto;
  gap: 10px; padding: 12px 14px; border-bottom: 1px solid #eceef1;
}
.issues article:last-child { border-bottom: 0; }
.issues article > i {
  display: grid; place-items: center; width: 30px; height: 30px;
  color: var(--amber); background: var(--amber-soft); border-radius: 5px; font-style: normal;
}
.issues article > i.error { color: var(--red); background: var(--red-soft); }
.issues article > div { min-width: 0; }
.issues header { display: flex; gap: 8px; align-items: center; }
.issues code { font-size: 10px; font-weight: 650; }
.issues header small, .issues time, .issues article span { color: var(--faint); font-size: 9px; }
.issues p { margin: 5px 0; color: #454b54; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.issues article span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .player-layout.with-episodes { grid-template-columns: minmax(0,1fr) 260px; }
  .detail-grid { grid-template-columns: minmax(0,1fr) 270px; gap: 24px; }
}
@media (max-width: 850px) {
  .topbar { height: 56px; }
  .topbar-inner { padding: 0 20px; }
  .topbar .nav { display: none; }
  .connection span { display: none; }
  .main { min-height: calc(100vh - 56px); padding: 24px 20px 86px; }
  .mobile-nav {
    position: fixed; inset: auto 0 0; z-index: 30; display: grid;
    grid-template-columns: repeat(5,1fr); min-height: 64px; padding: 6px 8px;
    color: #707985; background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  }
  .mobile-nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; font-size: 18px;
  }
  .mobile-nav small { font-size: 9px; }
  .mobile-nav a.active { color: var(--accent); }
  .player-layout.with-episodes { grid-template-columns: 1fr; }
  .episodes { height: auto; max-height: 280px; }
  .detail-grid { grid-template-columns: 1fr; }
  .locations { padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}
@media (max-width: 650px) {
  .topbar-inner { padding: 0 12px; }
  .brand small { display: none; }
  .main { padding: 18px 10px 82px; }
  .page-header { align-items: flex-start; min-height: 42px; margin-bottom: 15px; }
  .page-header h1 { font-size: 22px; }
  .page-header p { margin-top: 5px; font-size: 11px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .search { flex-basis: 100%; max-width: none !important; }
  .toolbar select { flex: 1; min-width: 120px; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 8px; }
  .video-card { contain-intrinsic-size: 0 220px; }
  .video-body { min-height: 104px; padding: 8px; }
  .video-title { min-height: 37px; font-size: 12px; line-height: 1.55; }
  .video-author { margin-top: 6px; font-size: 10px; }
  .video-author .avatar { display: none; }
  .video-meta { padding-top: 7px; font-size: 9px; }
  .video-meta span:last-child { display: none; }
  .video-media .play { right: 7px; bottom: 7px; width: 27px; height: 27px; }
  .media-labels { top: 6px; right: 6px; gap: 3px; }
  .media-badge { padding: 3px 5px; font-size: 9px; }
  .entity-count { flex-basis: 54px; }
  .entity-hero { align-items: flex-start; flex-wrap: wrap; padding: 16px; }
  .entity-hero h1 { font-size: 19px; }
  .hero-count { width: 100%; align-items: flex-start; padding: 12px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .metadata { grid-template-columns: 1fr; gap: 20px; }
  .tag-grid { grid-template-columns: 1fr; }
  .player-layout { margin-inline: -10px; border-inline: 0; border-radius: 0; }
  .player-stage[data-shape="portrait"] { width: min(100%, 44svh); }
  .player-stage[data-shape="square"] { width: min(100%, 70svh); }
  .title-line h1 { font-size: 20px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scan-summary > div { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 0; }
  .scan-summary > div span:nth-child(2) { border-right: 0; }
  .scan-summary > div span:nth-child(3) { padding-left: 0; }
  .issues article { grid-template-columns: 30px minmax(0,1fr); }
  .issues time { display: none; }
}
@media (max-width: 410px) {
  .toolbar { padding: 9px; }
  .toolbar select { min-width: 105px; font-size: 11px; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
