#web_player_wrapper { outline: none; }
#video_content_area { position: relative; }
#web_video_stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
#web_video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#web_video.showing-movie-preview { object-fit: scale-down; }
#web_video.showing-movie-preview:not([poster]) { opacity: 0; }
#web_video.showing-movie-preview[poster] ~ #player_spinner { background-color: rgba(0, 0, 0, .35); }
#web_video::cue { color: #fff; background-color: rgba(0, 0, 0, .75); font-size: clamp(16px, 2.2vw, 34px); }
.web-player-heading { display: none; pointer-events: none; }
.web-player-controls { position: relative; z-index: 20; padding: 12px; background: #111827; color: #fff; }
.web-player-timeline { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.web-player-timeline input { flex: 1; min-width: 40px; }
.web-player-time { font: 12px ui-monospace, monospace; white-space: nowrap; }
.web-player-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.web-player-row label { display: flex; align-items: center; gap: 8px; }
.web-player-row select { max-width: 230px; min-width: 64px; padding: 7px; border: 1px solid #334155; border-radius: 8px; background: #0b0f19; color: #fff; }
.web-player-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid #334155; border-radius: 10px; background: #0b0f19; color: #fff; cursor: pointer; }
.web-player-button:hover { background: #1e293b; }
.web-player-button:focus-visible, .web-player-row select:focus-visible, .web-player-controls input:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }
.web-player-controls input[type="range"] { accent-color: #3b82f6; cursor: pointer; }
.web-player-volume { width: 75px; }
.web-player-status { margin-left: auto; color: #93c5fd; font-weight: 700; }
.web-player-button[hidden], .web-seek-feedback[hidden] { display: none; }
.web-seek-feedback { position: absolute; left: 50%; top: 35%; transform: translate(-50%, -50%); z-index: 25; padding: 12px 20px; border-radius: 12px; background: rgba(0, 0, 0, .75); color: #fff; font: bold 22px ui-monospace, monospace; pointer-events: none; }

#web_player_wrapper.web-is-fullscreen { width: 100% !important; height: 100% !important; max-width: none; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: #000; }
#web_player_wrapper.web-fullscreen-fallback { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; z-index: 1000; }
#web_player_wrapper.web-is-fullscreen #video_content_area { width: 100%; height: 100%; }
#web_player_wrapper.web-is-fullscreen #web_video_stage { width: 100%; height: 100%; aspect-ratio: auto; }
#web_player_wrapper.web-is-fullscreen .web-player-heading { display: block; position: absolute; top: 0; left: 0; right: 0; z-index: 20; padding: 28px; background: linear-gradient(rgba(0, 0, 0, .8), transparent); color: #fff; font-size: clamp(18px, 2vw, 30px); font-weight: 800; }
#web_player_wrapper.web-is-fullscreen .web-player-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 28px 24px; background: linear-gradient(transparent, rgba(0, 0, 0, .9) 40%); }
#web_player_wrapper.web-is-fullscreen .web-player-controls, #web_player_wrapper.web-is-fullscreen .web-player-heading { transition: opacity .15s ease; }
#web_player_wrapper.web-controls-hidden { cursor: none; }
#web_player_wrapper.web-controls-hidden .web-player-controls, #web_player_wrapper.web-controls-hidden .web-player-heading { opacity: 0; visibility: hidden; pointer-events: none; }
#web_player_wrapper.web-is-fullscreen #web_resume_modal { font-size: 18px; }

@media (max-width: 600px) {
    .web-player-row { gap: 8px; font-size: 12px; }
    .web-player-row select { max-width: 150px; }
    .web-player-volume, #web_download_button { display: none; }
    .web-player-status { margin-left: 0; flex-basis: 100%; order: -1; }
    #web_player_wrapper.web-is-fullscreen .web-player-controls { padding: 35px 12px 12px; }
    #web_player_wrapper.web-is-fullscreen .web-player-heading { padding: 16px; }
}
