/* Controls are scoped to Works video players; carousel geometry stays unchanged. */
.ip-player { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; overflow: hidden; background: #040b16; }
.ip-player > .ip-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #040b16; }
.ip-player > .ip-video:focus-visible { outline: 1px solid #ffffff80; outline-offset: -2px; }
.ip-controls { position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; padding: 25px 8px 4px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.68)); opacity: 0; pointer-events: none; transform: translateY(3px); transition: opacity 250ms ease, transform 250ms ease; }
.ip-controls-visible .ip-controls { opacity: 1; pointer-events: auto; transform: none; }
.ip-control-row { display: grid; grid-template-columns: 28px 28px minmax(0,1fr) 28px; align-items: center; gap: 2px; }
.ip-control-button { display: grid; place-items: center; width: 28px; height: 32px; padding: 4px; border: 0; border-radius: 0; background: transparent; color: #fff; cursor: pointer; opacity: .92; }
.ip-control-button:hover { opacity: 1; }
.ip-control-button svg, .ip-video-expand svg { display: block; width: 20px; height: 20px; }
.ip-control-time { font: 10px/1.2 var(--font); white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ip-control-sound { position: relative; }
.ip-controls input[type="range"] { display: block; appearance: none; -webkit-appearance: none; border: 0; border-radius: 0; padding: 0; background: transparent; color: #fff; cursor: pointer; accent-color: #fff; touch-action: none; }
.ip-controls .ip-control-progress { width: 100%; height: 22px; margin: 0; }
.ip-controls .ip-control-volume { position: absolute; left: -12px; bottom: 41px; width: 96px; height: 24px; margin: 0; opacity: 0; pointer-events: none; transition: opacity 180ms; filter: drop-shadow(0 1px 3px #000); }
.ip-controls-visible .ip-control-sound:hover .ip-control-volume, .ip-controls-visible .ip-control-sound:focus-within .ip-control-volume { opacity: 1; pointer-events: auto; }
.ip-controls input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(to right,#fff var(--ip-fill,0%),#ffffff59 var(--ip-fill,0%)); }
.ip-controls input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 8px; height: 8px; margin-top: -3px; border: 0; border-radius: 50%; background: #fff; }
.ip-controls input[type="range"]::-moz-range-track { height: 2px; border: 0; border-radius: 2px; background: #ffffff59; }
.ip-controls input[type="range"]::-moz-range-progress { height: 2px; background: #fff; }
.ip-controls input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #fff; }
.ip-controls :focus-visible { outline: 1px solid #fff; outline-offset: 2px; }
.ip-card.is-video-open > .ip-video-expand { display: none; }
.ip-video-expand, .ip-video-expand:hover { border: 0; background: transparent; }
.ip-video-expand { display: grid; place-items: center; filter: drop-shadow(0 1px 4px #0009); }
.ip-card > .ip-duration { left: 12px; right: auto; bottom: 12px; display: flex; align-items: center; height: 32px; padding: 0; border-radius: 0; background: transparent; line-height: 1; opacity: 1; text-shadow: 0 1px 4px #0008; }
.ip-card > .ip-video-expand { right: 12px; bottom: 12px; width: 32px; height: 32px; }
.ip-card:has(> .ip-duration:not([hidden]))::after { background: linear-gradient(180deg, transparent 65%, rgba(5,14,23,.12) 78%, rgba(5,14,23,.68)); }
.ip-player--expanded .ip-controls { padding: 36px 12px 8px; }
.ip-player--expanded .ip-control-time { font-size: 12px; }
.ip-expanded-stage { position: relative; }
.ip-video-modal > .ip-expanded-close { z-index: 10; border: 0; background: transparent; text-shadow: 0 1px 6px #000b; }
.ip-video-modal:fullscreen { display: grid; place-items: center; width: 100vw; height: 100dvh; border-radius: 0; background: #040b16; }
.ip-video-modal:fullscreen .ip-expanded-stage { width: min(100vw,calc(100dvh * 9 / 16)); height: min(100dvh,calc(100vw * 16 / 9)); }
@media (max-height: 500px) { .ip-player--expanded .ip-control-time { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .ip-controls, .ip-control-volume { transition: none; } }
