/* ---- Media player: the Gridtop's (gt/playerdeck.js, 2026-09-27), ported to PLUSA 2026-10-20 as assets/media-player.js ------------------------------------------------------------
   The picture's box takes the picture's shape (no bars, never black); its own colours glow around it; the controls
   are glass on straight lines, flush to the picture's bottom edge, with the Gridtop's spotlight under the pointer. */
.poc-media-area {
    flex: 1 1 auto; min-height: 0; position: relative; overflow: hidden; outline: none;
    display: flex; align-items: center; justify-content: center;
    background: none;   /* the window itself around the picture; the blurred fill is gone (2026-09-30) */
}
.poc-media-area.is-full { background: #1d1e28; }
.poc-media-area .poc-media-stage {
    flex: none; position: relative; overflow: hidden; container-type: inline-size;
    background: transparent; border: none;
    box-shadow: 0 18px 44px rgba(29,30,40,.34), 0 0 0 1px rgba(255,255,255,.14);
    transition: width .28s cubic-bezier(.2,.8,.2,1), height .28s cubic-bezier(.2,.8,.2,1);
}
.poc-media-area .poc-media-stage.is-free { width: 100%; height: 100%; box-shadow: none; }
.poc-media-area .poc-media-video { background: transparent; object-fit: contain; opacity: 0; transition: opacity .35s ease; }
.poc-media-area .poc-media-stage.is-ready .poc-media-video { opacity: 1; }
.poc-media-area .poc-media-stage[data-aspect="fill"] .poc-media-video,
.poc-media-area .poc-media-stage[data-aspect="fill"] .poc-media-image { object-fit: cover; width: 100%; height: 100%; }
.poc-media-area .poc-media-image { width: 100%; height: 100%; max-width: none; max-height: none; opacity: 0; transition: opacity .3s ease; }
.poc-media-area .poc-media-stage.is-ready .poc-media-image { opacity: 1; }
/* Loading: a lavender glass sheen instead of a black box. */
.poc-media-area .poc-media-stage.is-video:not(.is-ready) {
    background: linear-gradient(110deg, #E4E1F3 30%, #F6F5FC 45%, #E4E1F3 60%) 0 0 / 300% 100%;
    animation: gt-deck-sheen 1.4s linear infinite;
}
@keyframes gt-deck-sheen { from { background-position: 100% 0; } to { background-position: -200% 0; } }
/* A song (or a picture this browser can't draw): a glass panel with the name, the controls always showing. */
.poc-media-area .poc-media-stage.is-audio { width: min(100%, 720px) !important; height: 220px !important; background: linear-gradient(135deg, #44465E, #5B5480 55%, #857EB6); animation: none; }
.poc-media-area .poc-media-stage.is-audio .poc-media-video { opacity: 0 !important; }
.poc-media-area .poc-media-stage.is-audio::before {
    content: attr(data-name); position: absolute; left: 24px; right: 24px; top: 34%;
    font-family: 'Afacad', sans-serif; font-size: 22px; color: #F4F3FA; letter-spacing: .5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gt-deck-note { position: absolute; left: 24px; top: calc(34% + 34px); font-family: 'Afacad', sans-serif; font-size: 12px; color: #C8BFE7; pointer-events: none; }

.gt-deck-bar {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    display: none; flex-direction: column;
    color: #F4F3FA; font-family: 'Afacad', sans-serif;
    /* Solid, not frosted: a backdrop blur over a playing video is redrawn every frame and made playback stutter. */
    background: linear-gradient(180deg, rgba(68,70,94,.78), rgba(29,30,40,.9));
    border-top: 1px solid rgba(255,255,255,.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(0,0,0,.28), 0 -10px 28px rgba(29,30,40,.22);
    transition: opacity .35s ease, transform .35s ease;
    cursor: url('/assets/cursors/cursor_default.ico'), default;
}
.poc-media-stage.is-video .gt-deck-bar { display: flex; }
.gt-deck-bar::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), rgba(255,255,255,.30), transparent 72%);
}
.gt-deck-bar::after {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.9) 20%, rgba(255,255,255,.35) 55%, rgba(255,255,255,.85) 85%, transparent);
}
.poc-media-stage.is-idle .gt-deck-bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.poc-media-stage.is-idle { cursor: none; }

.gt-deck-seek { position: relative; height: 14px; margin: 0 12px; cursor: url('/assets/cursors/cursor_point.ico'), pointer; touch-action: none; }
.gt-deck-seek::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 3px; background: rgba(255,255,255,.22); transition: top .15s, height .15s; }
.gt-deck-seek-buf, .gt-deck-seek-fill, .gt-deck-seek-ab { position: absolute; left: 0; top: 6px; height: 3px; pointer-events: none; transition: top .15s, height .15s; }
.gt-deck-seek-buf { background: rgba(255,255,255,.34); }
.gt-deck-seek-fill { background: linear-gradient(90deg, #C8BFE7, #F4F3FA); box-shadow: 0 0 10px rgba(200,191,231,.8); }
.gt-deck-seek-ab { background: rgba(170,163,72,.55); outline: 1px solid #AAA348; }
.gt-deck-seek-ab.is-half { width: 2px !important; }
.gt-deck-seek-head { position: absolute; top: 3px; width: 3px; height: 9px; margin-left: -1px; background: #FFF; box-shadow: 0 0 8px rgba(255,255,255,.9); pointer-events: none; opacity: 0; transition: opacity .15s; }
.gt-deck-seek-tip { position: absolute; bottom: 16px; transform: translateX(-50%); padding: 2px 6px; font-size: 11px; background: rgba(29,30,40,.72); color: #F4F3FA; pointer-events: none; opacity: 0; white-space: nowrap; }
.gt-deck-seek:hover::before, .gt-deck-seek:hover .gt-deck-seek-buf, .gt-deck-seek:hover .gt-deck-seek-fill, .gt-deck-seek:hover .gt-deck-seek-ab,
.gt-deck-seek.is-drag::before, .gt-deck-seek.is-drag .gt-deck-seek-buf, .gt-deck-seek.is-drag .gt-deck-seek-fill, .gt-deck-seek.is-drag .gt-deck-seek-ab { top: 4px; height: 6px; }
.gt-deck-seek:hover .gt-deck-seek-head, .gt-deck-seek.is-drag .gt-deck-seek-head, .gt-deck-seek:hover .gt-deck-seek-tip { opacity: 1; }

.gt-deck-row { position: relative; display: flex; align-items: center; padding: 0 6px 4px; min-width: 0; }
.gt-deck-spacer { flex: 1 1 auto; min-width: 4px; }
.gt-deck-btn {
    flex: 0 0 auto; width: 34px; height: 32px; padding: 0; border: none; border-radius: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: #F4F3FA; position: relative;
    cursor: url('/assets/cursors/cursor_point.ico'), pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}
.gt-deck-btn:hover { background: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(0,0,0,.18); }
.gt-deck-btn:active { background: rgba(255,255,255,.26); }
.gt-deck-btn:disabled { opacity: .35; pointer-events: none; }
.gt-deck-btn.is-on { color: #E6DF8A; }
.gt-deck-btn.is-on svg { filter: drop-shadow(0 0 5px rgba(230,223,138,.75)); }
.gt-deck-btn.is-half { color: #C8BFE7; }
.gt-deck-btn[data-mode]::after { content: attr(data-mode); position: absolute; right: 3px; bottom: 3px; font-size: 8px; font-weight: 700; color: #E6DF8A; }
.gt-deck-btn[data-mode=""]::after { content: none; }
.gt-deck-speed { width: auto; min-width: 40px; padding: 0 6px; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.gt-deck-time {
    flex: 0 0 auto; padding: 0 10px; height: 32px; border: none; background: transparent; color: #F4F3FA;
    font-family: 'JetBrains Mono', monospace; font-size: 12px; white-space: nowrap;
    cursor: url('/assets/cursors/cursor_point.ico'), pointer;
}
.gt-deck-vol { -webkit-appearance: none; appearance: none; flex: 0 1 80px; width: 80px; min-width: 40px; height: 3px; margin: 0 8px 0 2px; border-radius: 0;
    background: linear-gradient(90deg, #F4F3FA var(--v, 100%), rgba(255,255,255,.25) var(--v, 100%)); cursor: url('/assets/cursors/cursor_point.ico'), pointer; }
.gt-deck-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 3px; height: 12px; border-radius: 0; background: #FFF; box-shadow: 0 0 6px rgba(255,255,255,.9); }
.gt-deck-vol::-moz-range-thumb { width: 3px; height: 12px; border: none; border-radius: 0; background: #FFF; }

.gt-deck-menu {
    position: absolute; right: 8px; bottom: 58px; z-index: 4; display: none; flex-direction: column; min-width: 128px;
    background: linear-gradient(180deg, rgba(68,70,94,.92), rgba(29,30,40,.95));
    border: 1px solid rgba(255,255,255,.38); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 30px rgba(29,30,40,.35);
}
.gt-deck-menu.is-open { display: flex; }
.gt-deck-menu-item { border: none; background: transparent; color: #F4F3FA; text-align: left; padding: 5px 14px; font-family: 'Afacad', sans-serif; font-size: 13px; cursor: url('/assets/cursors/cursor_point.ico'), pointer; }
.gt-deck-menu-item:hover { background: rgba(255,255,255,.16); }
.gt-deck-menu-item.is-on { color: #E6DF8A; }
.gt-deck-menu-pitch { border-top: 1px solid rgba(255,255,255,.25); }
.gt-deck-menu-pitch.is-on::before { content: "\2713\00a0"; }

.gt-deck-flash {
    position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; z-index: 2; pointer-events: none;
    display: flex; align-items: center; justify-content: center; color: #FFF; opacity: 0;
    background: rgba(29,30,40,.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 24px rgba(0,0,0,.25);
}
.gt-deck-flash svg { width: 28px; height: 28px; }
.gt-deck-flash.is-on { animation: gt-deck-flash .6s ease-out; }
@keyframes gt-deck-flash { 0% { opacity: .95; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }

.gt-deck-plist {
    position: absolute; top: 0; right: 0; bottom: 0; z-index: 5; width: 260px; max-width: 70%;
    display: none; flex-direction: column; overflow-y: auto;
    background: linear-gradient(180deg, rgba(248,247,253,.96), rgba(239,237,251,.98));
    border-left: 1px solid rgba(255,255,255,.7); box-shadow: inset 1px 0 0 rgba(68,70,94,.12), -12px 0 30px rgba(29,30,40,.18);
    font-family: 'Afacad', sans-serif; color: #44465E;
}
.gt-deck-plist.is-open { display: flex; }
.gt-deck-plist-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid rgba(68,70,94,.15); }
.gt-deck-plist-add { border: 1px solid rgba(68,70,94,.3); background: rgba(255,255,255,.5); color: #44465E; font-family: 'Afacad', sans-serif; font-size: 11px; padding: 2px 8px; cursor: url('/assets/cursors/cursor_point.ico'), pointer; }
.gt-deck-plist-add:hover { background: #FFF; }
.gt-deck-plist-item { display: flex; gap: 8px; align-items: baseline; border: none; background: transparent; text-align: left; padding: 6px 12px; font-family: inherit; font-size: 13px; color: inherit; border-bottom: 1px solid rgba(68,70,94,.08); cursor: url('/assets/cursors/cursor_point.ico'), pointer; }
.gt-deck-plist-item:hover { background: rgba(255,255,255,.6); }
.gt-deck-plist-item.is-active { box-shadow: inset 3px 0 0 #AAA348; background: rgba(255,255,255,.7); font-weight: 600; }
.gt-deck-plist-n { flex: 0 0 18px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #857EB6; }
.gt-deck-plist-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt-deck-plist-none { padding: 10px 12px; font-size: 12px; color: #857EB6; }

/* Narrow pictures: the rarer controls step aside first. */
@container (max-width: 620px) { .gt-deck-vol, .gt-deck-pip, .gt-deck-snap, .gt-deck-stop { display: none; } }
@container (max-width: 440px) { .gt-deck-fstep, .gt-deck-shuf, .gt-deck-asp { display: none; } }
/* A narrow picture keeps a wide box (gt/playerdeck.js DECK_MIN_W) and sits centred on black; and when the box is
   small anyway, the controls wrap onto a second line instead of running off the edge (2026-10-20, Matt). */
.poc-media-area .poc-media-stage.is-pillar { background: #000; }
.gt-deck-row { flex-wrap: wrap; }
/* Nothing open: the player's open state is its controls over the AUTOCOMPUTING wordmark, on black (2026-10-20, Matt). */
.poc-media-stage.is-free .gt-deck-bar { display: flex; }
.poc-media-area .poc-media-stage.is-free { background: #000; }
.poc-media-area .poc-media-stage.is-free .poc-media-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 24px 24px 64px; font-family: 'Afacad', sans-serif; font-weight: 400; font-size: clamp(22px, 5cqw, 52px); letter-spacing: .14em; color: #44465E; }
/* The File Directory's hover spotlight, fading in and out over .25s like it, on the empty player's black; softened
   (2026-10-20, Matt) to a dim, very large glow, so the background seems lit from within rather than shone on.
   Only the empty stage draws it, so it is never seen over a video. */
.poc-media-area .poc-media-stage::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(560px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), rgba(255,255,255,.085), rgba(255,255,255,.035) 40%, transparent 72%);
    opacity: 0; transition: opacity .25s ease; }
.poc-media-area .poc-media-stage.is-free:hover::after { opacity: 1; }
.poc-media-area .poc-media-stage:not(.is-free)::after { display: none; }

/* ---- PLUSA's frame around it (media/index.html) ----------------------------------------------------------------
   Video on the left; the right column will hold past games, and comments go under the video (not built yet).
   Before a video loads, the box is black with the AUTOCOMPUTING wordmark. */
.md-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 52px; }
.md-player { max-width: 1040px; }
.md-player .poc-media-area { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  overflow: hidden; outline: none; background: #000; border: 1px solid rgba(96, 150, 255, .22); border-radius: 14px; }
.md-player .poc-media-area.is-full { border-radius: 0; border: 0; }
.md-player .poc-media-video { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; background: #000; outline: none; }
.md-player .poc-media-stage.is-free { background: #000; }
.md-player .poc-media-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px;
  font-family: 'Afacad', sans-serif; font-weight: 400; font-size: clamp(1.6rem, 5vw, 3.2rem); letter-spacing: .14em; color: #44465E; background: #000; user-select: none; }
.md-player .poc-media-stage.is-video .poc-media-empty { display: none; }
