.video-page { background: #061216; }
.video-page button { cursor: pointer; }
.video-page svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.video-page button:focus-visible, .video-page a:focus-visible, .video-page input:focus-visible { outline: 3px solid var(--music-orange); outline-offset: 4px; }
.video-page .music-header { top: 12px; min-height: 72px; }
.video-page main { width: min(1360px, calc(100% - 48px)); margin: 0 auto; padding-top: 126px; }
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 30px; }
.collection-heading h1 { margin: 0; font: 900 clamp(4.2rem, 7vw, 7rem)/.9 'Barlow Condensed', Impact, sans-serif; letter-spacing: -.025em; text-transform: uppercase; }
.collection-heading p { margin: 16px 0 0; color: var(--music-muted); font-size: 15px; }
.text-button { display: flex; align-items: center; gap: 16px; background: transparent; color: var(--music-text); border: 1px solid #355158; padding: 12px 18px; border-radius: 3px; font-size: 13px; font-weight: 600; }
.text-button:hover { border-color: var(--music-teal); }
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #254047; border-bottom: 1px solid #254047; padding: 14px 0; }
.collection-toolbar p { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 700; font-size: 14px; }
.collection-toolbar p span { color: var(--music-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.view-switch { display: flex; gap: 5px; }
.view-switch button { display: flex; align-items: center; gap: 8px; background: transparent; border: 0; border-radius: 3px; color: var(--music-muted); padding: 8px 12px; font-size: 12px; }
.view-switch button[aria-pressed=true] { background: #163036; color: var(--music-teal); }
.preview-note { color: #b1c0c3; font-size: 11px; margin: 14px 0 20px; }
.video-collection { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px 16px; }
.video-card { min-width: 0; position: relative; }
.card-open { display: block; position: relative; aspect-ratio: 3/4; width: 100%; overflow: hidden; background: #0a1c21; border: 1px solid #274047; border-radius: 7px; padding: 0; text-align: left; color: white; }
.card-open img, .card-open video { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.card-open video { position: absolute; inset: 0; }
.card-open:hover img { transform: scale(1.035); }
.card-open::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.7)); pointer-events: none; }
.card-position { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: #fff; background: rgba(3,12,15,.65); padding: 5px 7px; border-radius: 3px; }
.card-play { position: absolute; z-index: 2; bottom: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #ffffff80; background: #07171b77; backdrop-filter: blur(8px); }
.card-play svg { width: 15px; height: 15px; fill: currentColor; stroke-width: 1; margin-left: 2px; }
.card-sample { position: absolute; z-index: 2; bottom: 24px; left: 16px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.card-info { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 12px 1px 0; }
.card-info h2 { margin: 0; font-size: 13px; font-weight: 600; }
.card-info p { margin: 4px 0 0; font-size: 10px; color: #a8b9bc; }
.card-brand { display: flex; align-items: center; gap: 6px; }
.card-brand img { width: 18px; height: 18px; border-radius: 50%; }
.card-info > span { color: #769196; font-size: 11px; }
.video-footer { width: min(1360px,calc(100% - 48px)); margin: 64px auto 0; padding: 24px 0 30px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #254047; font-size: 12px; color: #a8b9bc; }
.video-footer a:first-child { color: white; font-weight: 700; }
.video-footer a:last-child { color: var(--music-teal); }
.video-collection[data-layout=feed] { display: flex; flex-direction: column; align-items: center; gap: 28px; scroll-snap-type: y proximity; }
[data-layout=feed] .video-card { width: min(100%,460px); scroll-snap-align: start; scroll-margin-top: 100px; }
[data-layout=feed] .card-open { aspect-ratio: 9/16; max-height: calc(100svh - 140px); }
dialog { color: #f7f7f3; border: 1px solid #355158; border-radius: 8px; background: #0a1c21; padding: 0; }
dialog::backdrop { background: #020a0ee8; backdrop-filter: blur(12px); }
.watch-dialog { width: min(100% - 24px,1060px); max-height: calc(100svh - 24px); }
.watch-top, .watch-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 18px; }
.watch-top { color: var(--music-muted); font-size: 12px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #355158; border-radius: 50%; background: #10272c; color: white; }
.icon-button:hover { border-color: var(--music-teal); }
#watch-media { background: black; display: grid; place-items: center; min-height: 200px; }
#watch-media video, #watch-media iframe { display: block; width: 100%; height: min(65svh,590px); object-fit: contain; border: 0; }
.watch-bottom > div { flex: 1; }
.watch-bottom h2 { font-size: 17px; margin: 0; }
.watch-bottom p { color: var(--music-muted); font-size: 11px; margin: 6px 0; }
.setup-dialog { width: min(720px,calc(100% - 24px)); max-height: calc(100svh - 32px); padding: 24px; }
.setup-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.setup-heading h2 { font: 800 36px/1 'Barlow Condensed',Impact,sans-serif; margin: 0; }
.setup-dialog p { color: var(--music-muted); font-size: 12px; }
.setup-row { display: grid; grid-template-columns: 28px 1fr 1.5fr; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #254047; }
.setup-row > span { color: var(--music-teal); font-size: 11px; }
.setup-row label { color: var(--music-muted); font-size: 10px; }
.setup-row input { display: block; width: 100%; min-width: 0; margin-top: 4px; padding: 10px; border: 1px solid #355158; border-radius: 3px; background: #061216; color: white; font-size: 12px; }
.setup-actions { display: flex; justify-content: space-between; position: sticky; bottom: -24px; padding: 18px 0; background: #0a1c21; }
.setup-actions button { border: 1px solid #355158; padding: 10px 18px; color: white; background: transparent; border-radius: 3px; font-size: 13px; }
.setup-actions .save-button { background: var(--music-teal); color: #061216; font-weight: 700; }
#setup-error { color: #ffb28a; }
@media (max-width: 1100px) { .video-collection { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 900px) { .video-page .desktop-nav { display:none; } .video-page .nav-toggle { display:flex; } }
@media (max-width: 820px) { .video-collection { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) {
 .video-page main { width: calc(100% - 32px); padding-top: 116px; }
 .collection-heading { padding-bottom: 24px; gap: 12px; align-items: flex-end; }
 .collection-heading h1 { font-size: 66px; }
 .collection-heading p { font-size: 11px; margin-top: 12px; }
 .text-button { padding: 10px; gap: 6px; font-size: 11px; }
 .text-button svg { width: 16px; height: 16px; }
 .collection-toolbar { padding: 10px 0; }
 .preview-note { font-size: 10px; line-height: 1.6; }
 .video-collection { gap: 22px 12px; }
 .card-open { border-radius: 6px; }
 [data-layout=feed] .card-open { aspect-ratio: 9/16; max-height: calc(100svh - 150px); }
 .card-info h2 { font-size: 12px; }
 .card-info > span { display: none; }
 .card-position { top: 10px; left: 10px; }
 .card-play { width: 36px; height: 36px; bottom: 12px; right: 12px; }
 .card-sample { font-size: 9px; bottom: 24px; left: 12px; }
 .video-footer { width: calc(100% - 32px); flex-wrap: wrap; margin-top: 40px; }
 .video-footer > span { display:none; }
 .watch-top,.watch-bottom { padding: 10px; gap: 10px; }
 .watch-bottom h2 { font-size: 14px; }
 .setup-dialog { padding: 18px; }
 .setup-row { grid-template-columns: 24px 1fr; }
 .setup-row label:last-child { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .video-page *, .video-page *::before, .video-page *::after { scroll-behavior: auto !important; transition: none !important; } }
.video-page .collection-heading h1 { color: var(--music-text); }
.video-page .card-info h2 { color: var(--music-text); font-family: Inter,system-ui,sans-serif; text-transform: none; line-height: 1.4; letter-spacing: 0; }

.card-open .hover-preview { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0; transition: opacity .18s ease; border: 0; }
.card-open.is-previewing .hover-preview { opacity: 1; }
.card-open.is-previewing .card-play { opacity: 0; }
.card-open.is-previewing::after { z-index: 1; }
.card-play { transition: opacity .18s ease; }
@media (hover: none) { .card-sample { display: none; } }
/* Optional media settings stay inside the selection editor. */
.setup-row { min-width: 0; grid-template-columns: 1fr 1.5fr; margin: 0; padding: 16px 0; border: 0; border-top: 1px solid #254047; }
.setup-row legend { padding: 8px 8px 0 0; color: var(--music-teal); font-size: 12px; font-weight: 700; }
.video-options { grid-column: 1 / -1; min-width: 0; }
.video-options summary { cursor: pointer; color: #b7cbce; font-size: 11px; padding: 4px 0; }
.video-options-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 8px; }
.video-options p { margin: 10px 0 0; font-size: 10px; }
.selection-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.selection-tools button { border: 1px solid #355158; border-radius: 3px; padding: 8px 12px; background: #10272c; color: white; font-size: 11px; }
.card-open.is-preview-loading .card-play { border-color: var(--music-teal); }
.card-open.is-preview-loading .card-play svg { animation: preview-pulse .8s ease-in-out infinite alternate; }
#watch-retry { margin-top: 8px; padding: 7px 12px; }
#watch-note { min-height: 1.5em; }
@keyframes preview-pulse { to { opacity: .25; } }
@media (max-width: 560px) { .setup-row { grid-template-columns: 1fr; } .setup-row label:last-child { grid-column: auto; } .video-options-fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .card-open.is-preview-loading .card-play svg { animation: none; } }
