.music-video { min-width: 0; }

.music-video-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  border-radius: .5rem .5rem 0 0;
  background: #02070d;
}

.music-video-stage img, .music-video-stage iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.music-video-stage img { object-fit: contain; }

.video-bar {
  display: grid;
  grid-template-columns: auto auto minmax(6rem, 1fr) auto auto;
  align-items: center;
  gap: .45rem .85rem;
  padding: .5rem clamp(.65rem, 2vw, 1.25rem);
  border-radius: 0 0 .5rem .5rem;
  background: linear-gradient(130deg, rgb(78 111 139 / 42%), rgb(12 29 46 / 80%));
  backdrop-filter: blur(18px) saturate(120%);
  color: #f3f7fb;
  box-shadow: 0 1rem 2.5rem rgb(2 7 13 / 22%);
}

.video-bar button, .reel-navigation button {
  min-height: 44px;
  padding: .6rem .85rem;
  border: 0;
  border-radius: .35rem;
  color: inherit;
  background: transparent;
  font-weight: 700;
  white-space: nowrap;
}

.video-bar button:hover:not(:disabled), .reel-navigation button:hover:not(:disabled) { background: #365169; }
.video-bar .video-toggle { min-width: 5.15rem; background: #dcebf4; color: #0c1b2b; }
.video-bar .video-toggle:hover:not(:disabled) { background: white; }
.video-bar button:disabled, .reel-navigation button:disabled { opacity: .55; cursor: default; }
.video-clock { color: #d5e1ec; font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.video-bar input { min-width: 0; width: 100%; min-height: 44px; margin: 0; accent-color: #dcebf4; cursor: pointer; }
.video-state { margin: .85rem 0 0; color: var(--ice); font-size: .9rem; }
.watch-caption p { margin-bottom: .4rem; color: var(--silver); font-size: .9rem; }

.music-video:fullscreen { display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #02070d; }
.music-video:fullscreen .music-video-stage { min-height: 0; aspect-ratio: auto; border-radius: 0; }
.music-video:fullscreen .video-bar { border-radius: 0; }
.music-video:fullscreen .watch-caption, .music-video:fullscreen .video-state { display: none; }

.reel-section { margin-top: clamp(2.75rem, 6vw, 6rem); }
.reel-section h3 { font: 400 clamp(2.85rem, 6vw, 5.3rem)/.96 var(--display); }
.reel-viewport { margin-top: 1.4rem; }
.reel-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; list-style: none; margin: 0; padding: 0; }
.reel-list a { display: grid; height: 100%; grid-template-rows: auto 1fr; border-radius: .4rem; overflow: hidden; background: #14283d; }
.reel-list a:hover { background: #203c54; }
.reel-list a:focus-visible { outline-offset: -3px; }
.reel-list img { width: 100%; height: auto; aspect-ratio: 9 / 13; object-fit: cover; }
.reel-list a .reel-label { display: grid; align-content: start; gap: .35rem; padding: .8rem; font-weight: 700; overflow-wrap: break-word; }
.reel-label small { color: var(--silver); font-size: .85rem; font-weight: 400; }
.reel-navigation { display: flex; justify-content: flex-end; gap: .65rem; padding-top: .65rem; }
.reel-navigation button { background: var(--surface-dark); }

.reel-dialog {
  width: min(100% - 1.25rem, 31rem);
  max-height: 96dvh;
  padding: .75rem;
  color: var(--pearl);
  background: #0b192b;
  border: 0;
  border-radius: .6rem;
  box-shadow: 0 1.2rem 4rem rgb(0 0 0 / 65%);
}

.reel-dialog::backdrop { background: rgb(1 6 12 / 80%); }
body:has(.reel-dialog[open]) { overflow: hidden; }
.reel-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding: .05rem .2rem .7rem; }
.reel-dialog-header h2 { font: 400 clamp(1.85rem, 5vw, 2.75rem)/1 var(--display); }
.reel-player { height: clamp(18rem, 72dvh, 43rem); background: #0d1b29; }
.reel-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.reel-dialog > .text-link { padding-inline: .2rem; }

@media (max-width: 760px) {
  .reel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reel-draggable { overflow: hidden; }
  .reel-draggable .reel-list { display: flex; touch-action: pan-y pinch-zoom; }
  .reel-draggable .reel-list li { flex: 0 0 53%; min-width: 0; }
}

@media (max-width: 575px) {
  .video-bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: .1rem .3rem; }
  .video-bar input { grid-row: 2; grid-column: 1 / 3; }
  .video-bar [data-video-fullscreen] { grid-row: 2; grid-column: 3; }
  .video-bar:has([data-video-fullscreen][hidden]) input { grid-column: 1 / -1; }
  .video-bar button { padding-inline: .58rem; font-size: .86rem; }
  .video-bar .video-toggle { min-width: 3.8rem; }
  .video-clock { font-size: .75rem; text-align: center; }
}
