.topbar { gap: clamp(18px, 3.2vw, 46px); }
.actions { display: flex; gap: 12px; align-items: center; }
.language { display: flex; border-radius: 9px; border: 1px solid var(--border); padding: 2px; }
.language button { color: var(--muted); padding: 3px 8px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; font-size: 12px; }
.language button[aria-pressed=true] { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; padding: 7px 14px; color: var(--foreground); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; font-size: 13px; }
.button:hover { border-color: var(--primary); color: var(--primary); }
.button.primary { background: var(--primary); color: white; border-color: var(--primary); }
.button[aria-pressed=true] { background: var(--primary-soft); color: var(--primary); }
.icon { width: 17px; height: 17px; flex: none; vertical-align: middle; }
.page-content { width: min(100% - 80px, 1240px); padding-top: 38px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 4px 0 29px; border-bottom: 1px solid var(--border); }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 750; letter-spacing: .17em; color: var(--primary); }
.kicker::before { content: ""; width: 17px; height: 1px; background: currentColor; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.21; margin: 9px 0 10px; letter-spacing: -.035em; }
.subtle { color: var(--muted); font-size: 13px; }
.search { width: min(100%, 342px); display: flex; align-items: center; gap: 10px; color: var(--primary); background: white; border: 1px solid var(--border); border-radius: 11px; padding: 9px 12px; }
.search:focus-within { border-color: var(--primary); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--foreground); font-size: 13px; background: transparent; }
.search input:focus-visible { outline: none; }
.workspace { display: grid; grid-template-columns: 204px minmax(0, 1fr); gap: 26px; margin-top: 23px; align-items: start; }
.filters { border: 1px solid var(--border); border-radius: 13px; padding: 13px; background: var(--surface); }
.filter-heading { font-size: 13px; font-weight: 700; padding: 3px 7px 10px; }
.category { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px; min-height: 37px; color: var(--foreground); border: 0; border-radius: 7px; text-align: start; cursor: pointer; background: transparent; font-size: 13px; }
.category:hover, .category[aria-pressed=true] { color: var(--primary); background: var(--primary-soft); }
.category .count { margin-left: auto; color: var(--muted); font-size: 11px; }
.category .mark { width: 7px; height: 7px; border: 1px solid currentColor; border-radius: 2px; margin-inline: 4px; }
.results-head { display: flex; align-items: center; justify-content: space-between; min-height: 35px; gap: 12px; }
.results-head h2 { font-size: 18px; }
.tagline { display: flex; flex-wrap: wrap; gap: 6px; min-height: 31px; margin: 7px 0 12px; }
.tag { border: 1px solid #ecdce5; border-radius: 6px; background: var(--surface-soft); color: var(--primary); padding: 2px 8px; line-height: 1.7; font-size: 11px; white-space: nowrap; }
button.tag { cursor: pointer; }
.tag[aria-pressed=true] { background: var(--primary); color: white; border-color: var(--primary); }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.card { border: 1px solid var(--border); border-radius: 12px; background: white; overflow: clip; position: relative; }
.card:hover { border-color: #bd7998; box-shadow: 0 6px 18px #85355510; }
.cover { display: block; width: 100%; aspect-ratio: 16/9; position: relative; background: #312439; overflow: hidden; }
.cover img, .film img { display: block; width: 100%; height: 100%; object-fit: cover; }
.duration { position: absolute; bottom: 8px; right: 8px; background: #1b1722d9; color: white; border-radius: 4px; padding: 1px 6px; font: 11px/1.7 monospace; }
.cover-play { position: absolute; inset: 0; display: grid; place-items: center; color: white; background: #1c10242b; opacity: 0; }
.cover-play .icon { width: 30px; height: 30px; }
.card:hover .cover-play, .card:focus-within .cover-play { opacity: 1; }
.card-copy { padding: 10px 12px 12px; }
.card h3 { font-size: 14px; line-height: 1.55; }
.card h3 a:hover { color: var(--primary); }
.card-meta { color: var(--muted); font-size: 11px; margin: 2px 0 8px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.save { position: absolute; z-index: 1; top: 7px; right: 7px; padding: 5px; border: 1px solid #ffffff6f; color: white; background: #24192bc9; border-radius: 7px; cursor: pointer; }
.save[aria-pressed=true] { color: #722d4d; background: #ffe1ee; }
.empty { border: 1px dashed var(--border); border-radius: 12px; padding: 38px 18px; text-align: center; color: var(--muted); background: white; }
.empty .button { margin-top: 12px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 13px; margin-bottom: 15px; }
.detail-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.detail-head h1 { font-size: clamp(26px, 4vw, 38px); }
.detail-layout { display: grid; grid-template-columns: clamp(185px, 21vw, 264px) minmax(0,1fr); gap: 28px; align-items: start; }
.detail-body { min-width: 0; }
.tech-sidebar { padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); }
.tech-sidebar h2 { font-size: 18px; margin: 5px 0 3px; }
.tech-list { display: grid; gap: 8px; margin-top: 12px; }
.tech-option { text-align: start; cursor: pointer; border: 1px solid transparent; border-radius: 9px; background: var(--surface); color: var(--foreground); padding: 10px 12px; }
.tech-option:hover { border-color: var(--border); }
.tech-option[aria-pressed=true] { background: var(--primary-soft); color: var(--primary); border-color: #dba5bf; }
.tech-option strong { display: block; font-size: 14px; }
.tech-panel { border: 1px solid var(--border); border-radius: 13px; background: var(--surface); padding: 16px 19px; margin-bottom: 16px; }
.term-head h2 { line-height: 1.4; margin-top: 5px; font-size: clamp(20px, 3vw, 29px); }
.tech-panel details { border-top: 1px solid var(--border); margin-top: 11px; padding-top: 9px; }
.tech-panel summary { cursor: pointer; color: var(--primary); font-weight: 700; font-size: 13px; }
.term-definition { margin-top: 8px; line-height: 1.65; font-size: 14px; }
.clip-note { margin-top: 14px; }
.player { background: #241b2a; color: white; border-radius: 13px; overflow: hidden; }
.player:fullscreen { display: flex; flex-direction: column; justify-content: center; }
.film { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.player:fullscreen .film { max-height: calc(100vh - 72px); }
.film img { transform-origin: center; }
.film video { display: block; width: 100%; height: 100%; object-fit: contain; background: #17131a; }
.player:fullscreen .film video { max-height: calc(100vh - 100px); }
.player-status:empty { display: none; }
.player-status { margin: 6px 0 0; font-size: 13px; }
.volume { width: clamp(42px, 10vw, 78px); accent-color: #dc8db0; }
[data-nav][hidden] { display: none; }
#account { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace.manage-layout { grid-template-columns: clamp(210px, 25vw, 280px) minmax(0, 1fr); }
.manage-sidebar > .button { width: 100%; margin-bottom: 14px; }
.manage-sidebar .filter-heading { padding-inline: 0; }
.manage-count { margin: 8px 0 4px; }
.manage-items { max-height: 24rem; overflow-y: auto; }
.manage-item { display: grid; gap: 2px; overflow-wrap: anywhere; line-height: 1.4; }
.manage-item small { font-size: 11px; }
.manage-empty { margin: 8px 0; }
.manage-pagination { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; margin-top: 10px; }
.manage-pagination .button { padding: 4px 10px; }
.manage-pagination .button:disabled { opacity: .45; cursor: default; }
.manage-pagination select { min-width: 0; padding: 5px 7px; border: 1px solid var(--border); border-radius: 7px; color: var(--foreground); background: var(--surface); font: inherit; font-size: 13px; }
.manage-form > label, .manage-pair > label { display: grid; gap: 4px; margin: 10px 0; }
.manage-form input:not([type="checkbox"]), .manage-form textarea { width: 100%; padding: 8px; border: 1px solid #e0d4dc; border-radius: 6px; font: inherit; }
.manage-form fieldset { margin: 12px 0; border: 1px solid #e0d4dc; border-radius: 6px; }
.manage-form h3 { margin: 8px 0 4px; font-size: 14px; }
.manage-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.manage-tags label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.manage-pair { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.film-label { position: absolute; top: 12px; left: 12px; padding: 3px 8px; border-radius: 5px; background: #211929cf; font-size: 11px; }
.controls { padding: 6px 12px 10px; }
.scrub { display: block; width: 100%; accent-color: #dc8db0; margin: 3px 0 5px; }
.control-row { display: flex; align-items: center; gap: 7px; }
.control-row button { background: transparent; color: white; border: 1px solid #ffffff40; border-radius: 6px; cursor: pointer; padding: 4px 8px; }
.control-row button:hover { background: #ffffff24; }
.control-row output { color: #ead9e7; font: 12px monospace; }
.control-row .expand { margin-left: auto; }
.info { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.info h2 { font-size: 16px; margin-bottom: 12px; }
.info .card-tags { margin: 9px 0 13px; }
.info p { font-size: 13px; color: var(--muted); }
dialog { width: min(420px, calc(100% - 28px)); border: 1px solid var(--border); border-radius: 15px; color: var(--foreground); padding: 22px; box-shadow: 0 16px 70px #31162938; }
dialog::backdrop { background: #2d203269; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dialog-head h2 { font-size: 21px; }
dialog p { margin-bottom: 15px; color: var(--muted); font-size: 13px; }
dialog label { display: grid; gap: 4px; margin: 10px 0; font-size: 13px; }
dialog input { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; }
.form-actions { display: flex; gap: 7px; margin-top: 15px; }
.manage-actions { justify-content: space-between; }
.button.danger { color: #9f2438; border-color: #dfb7be; }
.button.danger:hover { border-color: #9f2438; }
.button.danger.filled { background: #9f2438; border-color: #9f2438; color: white; }
#delete-clip-dialog strong { overflow-wrap: anywhere; }
.verification-row { display: flex; align-items: end; gap: 8px; }
.verification-row label { flex: 1; min-width: 0; }
.verification-row button { flex-shrink: 0; margin-bottom: 10px; }
@media(max-width: 960px) { .page-content { width: min(100% - 40px,1240px); } .workspace { grid-template-columns: 172px minmax(0,1fr); gap: 16px; } .cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 680px) {
  .workspace.manage-layout { grid-template-columns: minmax(0, 1fr); }
  .topbar { flex-wrap: wrap; gap: 0 10px; padding-top: 9px; }
  .brand-name { max-width: none; }
  .actions { margin-left: auto; gap: 6px; display: flex; }
  .primary-nav { width: 100%; order: 3; height: 36px; margin: 2px 0 0; }
  .page-content { width: calc(100% - 24px); padding: 20px 0 34px; }
  .hero { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 15px; }
  .search { width: 100%; }
  .workspace, .detail-layout { grid-template-columns: 1fr; gap: 12px; margin-top: 13px; }
  .filters { display: flex; overflow: auto; padding: 5px; }
  .filter-heading { display: none; }
  .category { width: auto; flex: none; }
  .category .count, .category .mark { display: none; }
  .cards { gap: 9px; }
  .card-copy { padding: 7px 8px; }
  .card h3 { font-size: 13px; }
  .detail-head { align-items: start; }
  .tech-sidebar { padding: 12px; }
  .tech-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .tech-option { padding: 5px 8px; }
  .tech-panel { padding: 12px; }
}
