/*
/css/video.css - 2026-06-13 - Post 'N Gone Owner
Latest changes:
- Video page classes normalized to video-prefixed kebab-case.
- Aligned video card, vote controls, and comment modal behavior for compact mobile widths.
- Converted video comment open, close, and submit controls to button-safe styling.
- Added progressive video gallery loading for the capped first batch.
- Added video watch mode for back-to-back playback.
- Aligned upload progress with the shared media upload status controls.
- Re-centered the watch entry and tightened reel-side reaction controls.
- Replaced the bitmap reel frame with a CSS-built reel grid so buttons and video are real layout slots.
*/

@font-face { font-family: Fasthand; src: url(/font/Fasthand-Regular.ttf); }
.video-page { padding: 0; background: linear-gradient(to bottom, #000 550px, var(--postngone-accent) 1063px, var(--postngone-accent) 100%, #000 100%); height: auto !important; font-family: Arial, Helvetica, sans-serif; max-width: 100%; background-color: rgba(0, 0, 0, .999); }
.video-gallery-shell { margin: 20px auto; }
.video-page .blackboard-upload-status { margin-bottom: 16px; }
.video-progress-bar { display: block; width: 100%; min-height: 16px; color: inherit; font-size: inherit; font-weight: inherit; line-height: 1.25; letter-spacing: 0; text-align: center; white-space: nowrap; }
.video-player:fullscreen { object-fit: contain !important; height: auto !important; }
.video-gallery { display: grid; grid-template-columns: repeat(auto-fit, 470px); gap: 0 44px; max-width: 100%; margin: 0 auto; padding: 30px 0; justify-content: center; }
.video-card { --video-card-rail: clamp(52px, 15%, 70px); --video-card-gap: clamp(9px, 2.75%, 13px); --video-card-pad-x: clamp(10px, 3%, 14px); --video-card-pad-top: clamp(12px, 4.7%, 16px); --video-card-pad-bottom: clamp(16px, 6%, 22px); width: 470px; height: 338px; box-sizing: border-box; text-align: center; position: relative; display: grid; grid-template-columns: var(--video-card-rail) minmax(0, 1fr) var(--video-card-rail); grid-template-rows: 14% minmax(0, 1fr) 9%; column-gap: var(--video-card-gap); padding: var(--video-card-pad-top) var(--video-card-pad-x) var(--video-card-pad-bottom); border: 2px solid #000; border-radius: 2px; background: #000; box-shadow: 0 2px 5px rgba(0, 0, 0, .42); }
.video-card::before, .video-card::after { content: ""; position: absolute; top: var(--video-card-pad-top); bottom: var(--video-card-pad-bottom); width: var(--video-card-rail); border-radius: 6px; background: transparent; pointer-events: none; }
.video-card::before { left: var(--video-card-pad-x); }
.video-card::after { right: var(--video-card-pad-x); }
.video-card .video-card-media { grid-column: 2; grid-row: 2; overflow: hidden; min-width: 0; min-height: 0; border: 1px solid rgba(255, 240, 114, .18); border-radius: 7px; display: flex; justify-content: center; align-items: center; z-index: 2; background: #000; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .82); }
.video-card .video-player { transition: all .3s ease-in-out; height: 100%; width: 100%; object-fit: cover; display: block; position: relative; z-index: 10; }
.video-card-meta { grid-column: 2; grid-row: 1 / 4; color: #fff; font-size: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
.video-card-meta .video-card-footer { display: flex; justify-content: space-between; align-items: center; position: absolute; bottom: 0; width: 100%; }
.video-card-meta .video-card-header { position: absolute; top: 0; width: 100%; }
.video-card-meta .video-card-title { font-size: 20px; padding: 0 20px; white-space: nowrap; margin: 0 auto; text-align: center; cursor: grab; pointer-events: auto; }
.video-card-meta .video-card-poster { text-align: center; font-size: 15px; opacity: .5; }
.video-card-meta .video-card-days, .video-card-meta .video-card-views { text-align: left; font-size: 12px; }
.video-vote-column, .video-vote-column-secondary { position: relative; display: grid; grid-template-rows: repeat(4, minmax(42px, 16.5%)); gap: clamp(7px, 4.6%, 13px); align-content: space-between; align-items: stretch; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; text-align: center; z-index: 4; pointer-events: none; }
.video-vote-column { grid-column: 1; grid-row: 1 / 4; }
.video-vote-column-secondary { grid-column: 3; grid-row: 1 / 4; }
.video-vote-button, .video-comment-open-button { appearance: none; position: relative; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; min-height: 0; box-sizing: border-box; border: 1px solid #111; border-radius: 5px; padding: 0; cursor: pointer; background: var(--postngone-accent); color: #000; margin: 0; font-family: Arial, Helvetica, sans-serif; line-height: 1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 1px 2px rgba(0, 0, 0, .46); overflow: visible; pointer-events: auto; touch-action: manipulation; }
.video-vote-button:hover, .video-comment-open-button:hover { border-color: #000; background: #fff9a8; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .82), 0 0 0 2px rgba(255, 240, 114, .38), 0 2px 4px rgba(0, 0, 0, .5); }
.video-vote-column .video-vote-button:hover { background: #ffd8d8; box-shadow: inset 0 0 0 2px rgba(96, 0, 0, .88), 0 0 0 2px rgba(185, 0, 0, .35), 0 2px 4px rgba(0, 0, 0, .5); }
.video-vote-column-secondary .video-vote-button:hover { background: #d8f3df; box-shadow: inset 0 0 0 2px rgba(0, 72, 22, .88), 0 0 0 2px rgba(19, 122, 42, .35), 0 2px 4px rgba(0, 0, 0, .5); }
.video-comment-open-button:hover { background: #d9eaff; box-shadow: inset 0 0 0 2px rgba(0, 55, 120, .88), 0 0 0 2px rgba(15, 95, 184, .35), 0 2px 4px rgba(0, 0, 0, .5); }
.video-vote-button[data-vote-type="share"]:hover { background: #fff9a8; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .82), 0 0 0 2px rgba(255, 240, 114, .38), 0 2px 4px rgba(0, 0, 0, .5); }
.video-vote-button:active, .video-comment-open-button:active { background: #fff; box-shadow: inset 0 0 0 2px #000, 0 1px 2px rgba(0, 0, 0, .5); }
.video-vote-button:focus-visible, .video-comment-open-button:focus-visible { outline: 2px solid var(--postngone-accent); outline-offset: 2px; box-shadow: inset 0 0 0 2px #000, 0 0 0 3px rgba(255, 240, 114, .45); }
.video-vote-button.is-pending { cursor: progress; opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
.video-vote-button:disabled { cursor: not-allowed; filter: grayscale(.72); opacity: .42; background: #8e8a57; box-shadow: none; }
.video-vote-button.is-voted { background: var(--postngone-accent); filter: none; opacity: .84; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 1px 2px rgba(0, 0, 0, .46); }
.video-reaction-error { box-sizing: border-box; margin: 8px auto 0; padding: 6px 9px; border: 1px solid #d98b8b; border-radius: 5px; background: #ffe6e6; color: #7d0000; font: 800 12px/1.3 Arial, Helvetica, sans-serif; text-align: center; white-space: normal; }
.video-reaction-error:empty { display: none; }
.video-card-meta .video-reaction-error { position: absolute; right: 4px; bottom: 18px; left: 4px; z-index: 12; margin: 0; pointer-events: none; }
.video-single-controls .video-reaction-error { width: min(520px, 100%); }
.video-vote-feedback { --video-feedback-glow: rgba(255, 240, 114, .52); --video-feedback-border: #111; --video-feedback-fill: var(--postngone-accent); --video-feedback-light: #fffce0; position: fixed; inset: 0; z-index: 9999; display: flex; justify-content: center; align-items: center; pointer-events: none; opacity: 0; animation: video-vote-feedback-fade 1.5s ease-out forwards; }
.video-vote-feedback[data-mood="left"] { --video-feedback-glow: rgba(185, 0, 0, .46); --video-feedback-border: #b90000; --video-feedback-fill: #ff8f8f; --video-feedback-light: #ffe8e8; }
.video-vote-feedback[data-mood="right"] { --video-feedback-glow: rgba(19, 122, 42, .46); --video-feedback-border: #137a2a; --video-feedback-fill: #7ee095; --video-feedback-light: #e7ffe9; }
.video-vote-feedback-mark { display: flex; justify-content: center; align-items: center; width: 84px; height: 84px; box-sizing: border-box; border: 3px solid var(--video-feedback-border); border-radius: 18px; background: radial-gradient(circle at 50% 42%, var(--video-feedback-light) 0 24%, var(--video-feedback-fill) 68%, var(--postngone-accent) 100%); box-shadow: 0 0 0 0 var(--video-feedback-glow), 0 16px 38px rgba(0, 0, 0, .58), inset 0 0 0 2px rgba(255, 255, 255, .42); animation: video-vote-feedback-mark 1.5s ease-out forwards; }
.video-vote-feedback-icon { display: block; width: 46px; height: 46px; object-fit: contain; filter: saturate(1.24) contrast(1.12); animation: video-vote-feedback-icon 1.5s ease-out forwards; }
@keyframes video-vote-feedback-fade { 0% { opacity: 0; } 7% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes video-vote-feedback-mark { 0% { width: 84px; height: 84px; box-shadow: 0 0 0 0 var(--video-feedback-glow), 0 16px 38px rgba(0, 0, 0, .58), inset 0 0 0 2px rgba(255, 255, 255, .42); } 20% { width: 176px; height: 176px; box-shadow: 0 0 0 14px var(--video-feedback-glow), 0 20px 46px rgba(0, 0, 0, .62), inset 0 0 0 2px rgba(255, 255, 255, .5); } 72% { width: 154px; height: 154px; box-shadow: 0 0 0 9px var(--video-feedback-glow), 0 16px 38px rgba(0, 0, 0, .54), inset 0 0 0 2px rgba(255, 255, 255, .44); } 100% { width: 142px; height: 142px; box-shadow: 0 0 0 4px var(--video-feedback-glow), 0 14px 34px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .38); } }
@keyframes video-vote-feedback-icon { 0% { width: 46px; height: 46px; } 20% { width: 126px; height: 126px; } 72% { width: 110px; height: 110px; } 100% { width: 96px; height: 96px; } }
@media (prefers-reduced-motion: reduce) {
    .video-vote-feedback, .video-vote-feedback-mark, .video-vote-feedback-icon { animation-duration: .32s; }
}
.video-vote-count, .video-comment-count { position: absolute; top: 3px; right: 3px; z-index: 3; display: flex; justify-content: center; align-items: center; min-width: 18px; height: 18px; box-sizing: border-box; padding: 0 5px; border: 1px solid rgba(0, 0, 0, .72); border-radius: 999px; background: #fff; color: #000; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, .45); pointer-events: none; }
.video-vote-column .video-vote-count, .video-vote-column .video-comment-count { background: #b90000; color: #fff; }
.video-vote-column-secondary .video-vote-count, .video-vote-column-secondary .video-comment-count { background: #137a2a; color: #fff; }
.video-vote-column .video-comment-count, .video-vote-column-secondary .video-comment-count { background: #0f5fb8; color: #fff; }
.video-vote-count:empty, .video-comment-count:empty { display: none; }
.video-vote-icon { display: block; width: 88%; height: 88%; object-fit: contain; filter: saturate(1.15) contrast(1.08); }
.video-vote-button[data-vote-type="share"] .video-vote-icon { width: 82%; height: 82%; }
.video-comment-open-button .video-vote-icon { width: 96%; height: 96%; }
.video-vote-button::after, .video-comment-open-button::after { content: attr(data-label); position: absolute; left: calc(100% + 7px); top: 50%; transform: translateY(-50%); z-index: 20; padding: 5px 7px; border: 1px solid var(--postngone-accent); border-radius: 4px; background: #111; color: var(--postngone-accent); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; opacity: 0; pointer-events: none; box-shadow: 0 2px 5px rgba(0, 0, 0, .42); transition: opacity .15s ease-in-out; }
.video-vote-column-secondary .video-vote-button::after, .video-vote-column-secondary .video-comment-open-button::after { right: calc(100% + 7px); left: auto; }
.video-vote-button:hover::after, .video-comment-open-button:hover::after, .video-vote-button:focus-visible::after, .video-comment-open-button:focus-visible::after { opacity: 1; }
.video-filter { display: flex; justify-content: center; align-items: center; gap: 12px; width: min(470px, calc(100% - 24px)); margin: 0 auto 18px; }
.video-filter-select { flex: 1 1 auto; min-height: 42px; box-sizing: border-box; background: rgba(255, 255, 255, .5); border: 1px solid #000; padding: 10px 16px; margin: 0; display: flex; justify-content: center; align-items: center; }
.video-watch-link { flex: 0 0 auto; min-height: 42px; box-sizing: border-box; padding: 11px 18px; border: 1px solid #000; border-radius: 5px; background: #303030; color: var(--postngone-accent); font-size: 15px; font-weight: 700; line-height: 1.1; text-align: center; text-decoration: none; }
.video-watch-link:hover { background: #000; color: #fff; text-decoration: underline; }
.video-page .site-footer { background: #000; padding-top: 16px; }
.video-load-more { display: flex; flex-direction: column; justify-content: center; align-items: center; width: min(520px, calc(100% - 24px)); margin: 8px auto 34px; }
.video-load-more[hidden] { display: none; }
.video-load-more-button { min-width: 150px; min-height: 44px; box-sizing: border-box; padding: 10px 18px; border: 1px solid #000; border-radius: 6px; background: #303030; color: var(--postngone-accent); font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-weight: 700; line-height: 1.1; text-align: center; cursor: pointer; }
.video-load-more-button:hover { background: #000; color: #fff; text-decoration: underline; }
.video-load-more-button.is-busy { opacity: .72; pointer-events: none; }
.video-load-more-status { margin-top: 8px; color: #000; font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; }
.video-gallery-end-card { display: grid; grid-template-columns: minmax(120px, 210px) minmax(260px, 480px); align-items: center; gap: clamp(18px, 4vw, 44px); width: min(760px, calc(100% - 24px)); box-sizing: border-box; margin: 8px auto 44px; padding: clamp(18px, 3vw, 32px); border: 2px solid var(--postngone-accent); border-radius: 12px; background: #171717; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .3), 0 0 30px rgba(255, 240, 114, .12); }
.video-gallery-end-card[hidden] { display: none; }
.video-gallery-end-mascot { display: block; width: 100%; max-height: 250px; object-fit: contain; }
.video-gallery-end-copy { text-align: left; }
.video-gallery-end-title { margin: 0 0 10px; color: var(--postngone-accent); font-size: clamp(26px, 4vw, 40px); line-height: 1.08; }
.video-gallery-end-message { margin: 0 0 20px; font-size: clamp(17px, 2vw, 21px); line-height: 1.35; }
.video-gallery-end-action { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; box-sizing: border-box; padding: 10px 18px; border: 2px solid var(--postngone-accent); border-radius: 7px; background: var(--postngone-accent); color: #111; font-weight: 900; text-decoration: none; }
.video-gallery-end-action:hover, .video-gallery-end-action:focus-visible { background: #fff; border-color: #fff; }
.video-single-page { min-height: 100vh; background: #000; }
.video-single-page .top-note-container { margin-bottom: 8px; }
.video-single-shell { width: min(1040px, calc(100% - 28px)); margin: 18px auto 72px; color: #fff; }
.video-single-card { display: grid; gap: 18px; box-sizing: border-box; padding: 18px; border: 2px solid rgba(255, 240, 114, .72); border-radius: 8px; background: #070707; box-shadow: 0 12px 30px rgba(0, 0, 0, .58); }
.video-single-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 16px; align-items: start; padding-bottom: 0; }
.video-single-heading { min-width: 0; }
.video-single-back-link { grid-column: 1 / -1; grid-row: auto; display: inline-flex; align-items: center; width: fit-content; min-height: 38px; box-sizing: border-box; padding: 7px 10px; border: 1px solid rgba(255, 240, 114, .78); border-radius: 5px; background: #1b1b1b; color: var(--postngone-accent); font-size: 14px; font-weight: 800; line-height: 1.1; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 1px 2px rgba(0, 0, 0, .5); }
.video-single-back-link:hover { background: #000; color: #fff; border-color: var(--postngone-accent); box-shadow: inset 0 0 0 2px rgba(255, 240, 114, .32), 0 0 0 2px rgba(255, 240, 114, .2), 0 2px 5px rgba(0, 0, 0, .48); }
.video-single-back-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.video-single-title { margin: 0; color: #fff; font-size: 27px; line-height: 1.18; overflow-wrap: anywhere; }
.video-single-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; color: rgba(255, 255, 255, .9); font-size: 14px; font-weight: 700; line-height: 1.3; }
.video-single-meta strong { color: var(--postngone-accent); }
.video-single-meta-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; min-height: 34px; max-width: 100%; box-sizing: border-box; padding: 7px 10px; border: 1px solid rgba(255, 240, 114, .28); border-radius: 5px; background: rgba(255, 240, 114, .08); color: rgba(255, 255, 255, .9); overflow-wrap: anywhere; }
.video-single-meta-pill strong { min-width: 0; color: var(--postngone-accent); overflow-wrap: anywhere; }
.video-single-meta-pill + .video-single-meta-pill::before { content: none; }
.video-single-meta-pill-views { color: var(--postngone-accent); }
.video-single-utility-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; min-width: 230px; }
.video-single-player-frame { overflow: hidden; aspect-ratio: 16 / 9; border: 2px solid rgba(255, 240, 114, .86); border-radius: 6px; background: #000; box-shadow: 0 0 0 1px rgba(0, 0, 0, .95); }
.video-single-player { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.video-single-controls { display: block; }
.video-single-reaction-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.video-single-reaction-group { display: grid; grid-template-columns: repeat(3, minmax(76px, 1fr)); align-content: start; gap: 9px; min-width: 0; box-sizing: border-box; padding: 10px; border-radius: 7px; box-shadow: none; }
.video-single-reaction-group-negative { border: 1px solid rgba(185, 0, 0, .55); background: rgba(185, 0, 0, .12); }
.video-single-reaction-group-positive { border: 1px solid rgba(19, 122, 42, .62); background: rgba(19, 122, 42, .14); }
.video-single-control-button { position: relative; display: inline-flex; align-items: center; justify-content: center; align-self: stretch; gap: 7px; width: 100%; min-width: 0; min-height: 58px; box-sizing: border-box; padding: 9px 10px; border: 1px solid #111; border-radius: 5px; background: var(--postngone-accent); color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 800; line-height: 1.1; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 1px 2px rgba(0, 0, 0, .5); cursor: pointer; pointer-events: auto; touch-action: manipulation; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease; }
.video-single-reaction-button { flex-direction: column; gap: 7px; min-width: 0; min-height: 86px; padding: 10px 8px 9px; background: #fff6a0; }
.video-single-control-button:hover { background: #fff; border-color: #000; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .78), 0 0 0 2px rgba(255, 240, 114, .3), 0 2px 5px rgba(0, 0, 0, .42); }
.video-single-control-button:active { background: #fff; box-shadow: inset 0 0 0 2px #000, 0 1px 2px rgba(0, 0, 0, .55); }
.video-single-control-button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.video-single-control-button.is-voted { background: #fff7a0; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .72), 0 1px 2px rgba(0, 0, 0, .46); }
.video-single-control-button.is-copied { background: #fff7a0; color: #111; box-shadow: inset 0 0 0 2px #111, 0 0 0 2px rgba(255, 240, 114, .24); }
.video-single-control-button.is-copy-error { background: #ffe6e6; color: #111; box-shadow: inset 0 0 0 2px #600000, 0 0 0 2px rgba(185, 0, 0, .24); }
.video-single-negative-vote { border-color: #840000; background: #ffeaea; }
.video-single-negative-vote:hover, .video-single-negative-vote:focus-visible { background: #fff0f0; box-shadow: inset 0 0 0 2px rgba(96, 0, 0, .86), 0 0 0 2px rgba(185, 0, 0, .36), 0 2px 5px rgba(0, 0, 0, .42); }
.video-single-negative-vote:active, .video-single-negative-vote.is-voted { background: #ffe6e6; box-shadow: inset 0 0 0 2px #600000, 0 1px 2px rgba(0, 0, 0, .5); }
.video-single-positive-vote { border-color: #0a6220; background: #e8ffed; }
.video-single-positive-vote:hover, .video-single-positive-vote:focus-visible { background: #effff2; box-shadow: inset 0 0 0 2px rgba(0, 72, 22, .86), 0 0 0 2px rgba(19, 122, 42, .36), 0 2px 5px rgba(0, 0, 0, .42); }
.video-single-positive-vote:active, .video-single-positive-vote.is-voted { background: #e7ffe9; box-shadow: inset 0 0 0 2px #004816, 0 1px 2px rgba(0, 0, 0, .5); }
.video-single-action-button { width: auto; min-width: 112px; min-height: 44px; padding: 8px 11px; border: 2px solid var(--postngone-accent); background: #080808; color: var(--postngone-accent); box-shadow: inset 0 0 0 1px rgba(255, 240, 114, .08), 0 1px 2px rgba(0, 0, 0, .5); }
.video-single-action-button:hover, .video-single-action-button:focus-visible { border-color: var(--postngone-accent); background: var(--postngone-accent); color: #000; box-shadow: inset 0 0 0 2px #000, 0 0 0 2px rgba(255, 240, 114, .28); }
.video-single-action-button:active { border-color: var(--postngone-accent); background: var(--postngone-accent); color: #000; box-shadow: inset 0 0 8px 2px rgba(0, 0, 0, .72); }
.video-single-action-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.video-single-control-button::after { content: none; }
.video-single-control-icon { flex: 0 0 auto; width: 24px; height: 24px; object-fit: contain; filter: saturate(1.12) contrast(1.08); }
.video-single-reaction-icon { width: 44px; height: 44px; }
.video-single-action-button .video-single-control-icon { width: 30px; height: 30px; filter: brightness(0) saturate(100%) invert(89%) sepia(97%) saturate(590%) hue-rotate(345deg) brightness(108%) contrast(103%); }
.video-single-action-button:hover .video-single-control-icon, .video-single-action-button:focus-visible .video-single-control-icon, .video-single-action-button:active .video-single-control-icon, .video-single-action-button.is-copied .video-single-control-icon, .video-single-action-button.is-copy-error .video-single-control-icon { filter: none; }
.video-single-control-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-single-reaction-label { width: 100%; min-width: 0; text-align: center; white-space: normal; overflow-wrap: anywhere; line-height: 1.15; }
.video-single-count { position: static; flex: 0 0 auto; display: inline-flex; justify-content: center; align-items: center; min-width: 20px; height: 20px; box-sizing: border-box; padding: 0 5px; border: 1px solid #111; border-radius: 999px; background: #fff; color: #000; font-size: 12px; font-weight: 800; line-height: 1; box-shadow: none; }
.video-single-reaction-button .video-single-count { position: absolute; top: 6px; right: 6px; min-width: 20px; height: 20px; padding: 0 5px; font-size: 12px; }
.video-single-negative-vote .video-single-count { background: #b90000; color: #fff; }
.video-single-positive-vote .video-single-count { background: #137a2a; color: #fff; }
.video-single-count:empty { display: none; }
.video-single-comments { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 18px; align-items: stretch; width: min(960px, 100%); box-sizing: border-box; margin: 20px auto 0; padding: 18px; border: 2px solid rgba(255, 240, 114, .68); border-radius: 8px; background: #0b0b0b; color: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, .5); }
.video-single-comment-form-panel { box-sizing: border-box; padding: 16px; border: 1px solid rgba(255, 240, 114, .4); border-radius: 7px; background: #050505; text-align: center; }
.video-single-comment-list-panel { min-width: 0; box-sizing: border-box; padding: 16px; border: 1px solid rgba(255, 240, 114, .4); border-radius: 7px; background: #050505; }
.video-single-section-title { margin: 0 0 12px; color: var(--postngone-accent); font-size: 20px; line-height: 1.2; }
.video-single-comment-form { display: grid; justify-items: center; width: min(540px, 100%); margin: 0 auto; text-align: center; }
.video-single-field-label { display: block; width: 100%; margin: 11px 0 5px; color: #fff; font-size: 14px; font-weight: 800; line-height: 1.2; text-align: center; }
.video-single-comment-author-input { display: block; width: 100%; min-height: 42px; box-sizing: border-box; margin: 0 auto; padding: 10px 12px; border: 1px solid rgba(255, 240, 114, .68); border-radius: 5px; background: #fffbea; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.25; text-align: left; }
.video-single-comment-input { display: block; width: 100%; min-height: 140px; height: 160px; box-sizing: border-box; margin: 0 auto; padding: 10px 12px; border: 1px solid rgba(255, 240, 114, .68); border-radius: 5px; background: #fffbea; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.35; text-align: left; resize: vertical; }
.video-single-comment-math { width: 100%; }
.video-single-comment-math-input { display: block; width: min(220px, 100%); min-height: 42px; box-sizing: border-box; margin: 0 auto; padding: 10px 12px; border: 1px solid rgba(255, 240, 114, .68); border-radius: 5px; background: #fffbea; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.25; text-align: center; }
.video-single-comment-author-input:focus-visible, .video-single-comment-input:focus-visible, .video-single-comment-math-input:focus-visible { outline: 3px solid var(--postngone-accent); outline-offset: 2px; }
.video-single-comment-list { display: grid; align-content: start; gap: 10px; max-height: 520px; overflow-y: auto; overflow-x: hidden; padding: 2px; overscroll-behavior: contain; scrollbar-color: var(--postngone-accent) #111; }
.video-comment-card { box-sizing: border-box; margin: 0; padding: 12px; border: 1px solid #8f8514; border-radius: 5px; background: #fff4a3; color: #000; line-height: 1.35; box-shadow: 0 2px 4px rgba(0, 0, 0, .24); }
.video-comment-body { color: #000; }
.video-comment-footer { display: flex; flex-wrap: wrap; gap: 3px 7px; margin-top: 9px; padding-top: 7px; border-top: 1px solid rgba(0, 0, 0, .18); color: #49430a; font-size: 12px; line-height: 1.25; }
.video-comment-author { overflow-wrap: anywhere; }
.video-comment-empty { display: grid; align-items: center; min-height: 72px; box-sizing: border-box; margin: 0; padding: 14px; border: 1px dashed rgba(255, 240, 114, .46); border-radius: 5px; background: rgba(255, 240, 114, .06); color: var(--postngone-accent); text-align: center; }
.video-comment-counter { width: 100%; box-sizing: border-box; margin: 4px 0 0; color: var(--postngone-accent); font-size: 12px; font-weight: 800; line-height: 1.2; text-align: right; }
.video-comment-guidance { width: 100%; box-sizing: border-box; margin: 5px 0 0; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3; text-align: left; }
.video-comment-error { width: min(440px, 100%); box-sizing: border-box; margin: 10px auto 0; padding: 7px 10px; border: 1px solid #d98b8b; border-radius: 5px; background: #ffe6e6; color: #7d0000; font-size: 13px; font-weight: 800; line-height: 1.3; text-align: center; }
.video-comment-error:empty { display: none; }
.video-comment-text { margin: 0; overflow-wrap: anywhere; text-align: left; white-space: pre-line; }
.video-single-empty { display: grid; justify-items: center; gap: 14px; min-height: 240px; align-content: center; color: #fff; }
.video-watch-page { margin-top: 0; background: #000; color: #fff; }
.video-watch-shell { display: flex; flex-direction: column; height: 100vh; min-height: 100vh; overflow: hidden; background: #000; }
.video-watch-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; box-sizing: border-box; min-height: 56px; padding: 8px 12px; border-bottom: 1px solid rgba(255, 240, 114, .22); background: #111; }
.video-watch-back { display: inline-flex; align-items: center; min-height: 40px; box-sizing: border-box; padding: 6px 8px; color: var(--postngone-accent); font-size: 15px; font-weight: 700; text-decoration: none; }
.video-watch-back:hover { color: #fff; text-decoration: underline; }
.video-watch-now { min-width: 0; text-align: center; }
.video-watch-title { display: block; overflow: hidden; color: #fff; font-size: 17px; font-weight: 700; line-height: 1.2; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.video-watch-title:hover, .video-watch-title:focus-visible { color: var(--postngone-accent); text-decoration: underline; }
.video-watch-count { overflow: hidden; margin-top: 2px; color: var(--postngone-accent); font-size: 13px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.video-watch-controls { display: grid; flex: 0 0 auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; box-sizing: border-box; padding: 10px 12px; border-top: 1px solid rgba(255, 240, 114, .22); background: #111; }
.video-watch-control-button { min-height: 44px; box-sizing: border-box; padding: 8px 10px; border: 1px solid rgba(255, 240, 114, .5); border-radius: 6px; background: #303030; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700; line-height: 1.1; cursor: pointer; }
.video-watch-control-button:hover { background: #000; color: var(--postngone-accent); }
.video-watch-control-button:disabled { opacity: .5; cursor: default; }
.video-watch-start { border-color: var(--postngone-accent); background: var(--postngone-accent); color: #111; }
.video-watch-start:hover { background: #fff; color: #111; }
.video-watch-stage { display: flex; flex: 1 1 auto; justify-content: center; align-items: center; min-height: 0; background: #000; }
.video-watch-player { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.video-watch-player[hidden] { display: none; }
.video-watch-end-card { display: grid; grid-template-columns: minmax(180px, 340px) minmax(260px, 520px); align-items: center; gap: clamp(20px, 5vw, 64px); width: min(960px, calc(100% - 32px)); max-height: calc(100% - 32px); box-sizing: border-box; padding: clamp(20px, 4vw, 48px); border: 2px solid var(--postngone-accent); border-radius: 14px; background: #171717; color: #fff; box-shadow: 0 0 42px rgba(255, 240, 114, .16); }
.video-watch-end-card[hidden] { display: none; }
.video-watch-end-mascot { display: block; width: 100%; max-height: 52vh; object-fit: contain; }
.video-watch-end-copy { text-align: left; }
.video-watch-end-title { margin: 0 0 14px; color: var(--postngone-accent); font-size: clamp(28px, 5vw, 52px); line-height: 1.05; }
.video-watch-end-message { margin: 0 0 24px; font-size: clamp(18px, 2.4vw, 26px); line-height: 1.35; }
.video-watch-end-action { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; box-sizing: border-box; padding: 10px 20px; border: 2px solid var(--postngone-accent); border-radius: 7px; background: var(--postngone-accent); color: #111; font-weight: 900; text-decoration: none; }
.video-watch-end-action:hover, .video-watch-end-action:focus-visible { background: #fff; border-color: #fff; }
.video-watch-empty { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; gap: 18px; min-height: 60vh; }

/*
Video Comment Modal
*/

.video-comment-modal { visibility: hidden; opacity: 0; pointer-events: none; position: fixed; inset: 0; z-index: 1200; background: rgba(0, 0, 0, .82); transition: opacity .2s ease, visibility 0s linear .2s; }
.video-comment-modal[hidden] { display: none; }
.video-comment-modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }
.video-comment-dialog { position: absolute; inset: 20px; z-index: 10; width: min(900px, calc(100% - 40px)); height: max-content; max-height: calc(100dvh - 40px); box-sizing: border-box; margin: auto; overflow-y: auto; overflow-x: hidden; padding: 24px; border: 2px solid var(--postngone-accent); border-radius: 10px; background: #0b0b0b; color: #fff; box-shadow: 0 18px 55px rgba(0, 0, 0, .72), inset 0 0 0 1px rgba(255, 240, 114, .16), 0 0 0 1px #000; }
.video-comment-heading { margin: 0 48px 6px; color: var(--postngone-accent); font-size: 27px; line-height: 1.15; text-align: center; }
.video-comment-context { width: fit-content; max-width: calc(100% - 96px); box-sizing: border-box; margin: 0 auto 18px; padding: 6px 10px; border-radius: 4px; background: rgba(255, 240, 114, .08); color: #fff; font-size: 14px; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.video-comment-context-label { color: var(--postngone-accent); }
.video-comment-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 18px; align-items: stretch; min-height: 0; }
.video-comment-list-panel { display: grid; grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 410px; box-sizing: border-box; padding: 14px; border: 1px solid rgba(255, 240, 114, .42); border-radius: 7px; background: #050505; }
.video-comment-panel-heading { margin: 0 0 12px; color: var(--postngone-accent); font-size: 18px; line-height: 1.2; text-align: center; }
.video-comment-list { display: grid; align-content: start; gap: 10px; min-height: 0; max-height: 430px; box-sizing: border-box; overflow-y: auto; overflow-x: hidden; padding: 2px; background: #050505; overscroll-behavior: contain; scrollbar-color: var(--postngone-accent) #111; }
.video-comment-list:focus-visible, .video-single-comment-list:focus-visible { outline: 2px solid var(--postngone-accent); outline-offset: 2px; }
.video-comment-form { display: grid; align-content: start; justify-items: center; width: 100%; min-height: 410px; box-sizing: border-box; padding: 14px; border: 1px solid rgba(255, 240, 114, .42); border-radius: 7px; background: #050505; text-align: center; }
.video-comment-label { display: block; width: 100%; margin: 9px 0 5px; color: #fff; font-size: 14px; font-weight: 800; line-height: 1.2; text-align: left; }
.video-comment-author-input { width: 100%; min-height: 42px; box-sizing: border-box; margin: 0; padding: 10px 12px; border: 1px solid rgba(255, 240, 114, .68); border-radius: 5px; background: #fffbea; color: #000; font: 15px/1.25 Arial, Helvetica, sans-serif; text-align: left; }
.video-comment-input { width: 100%; min-height: 140px; height: 158px; box-sizing: border-box; margin: 0; padding: 10px 12px; border: 1px solid rgba(255, 240, 114, .68); border-radius: 5px; background: #fffbea; color: #000; font: 15px/1.35 Arial, Helvetica, sans-serif; text-align: left; resize: vertical; }
.video-comment-math { width: 100%; }
.video-comment-math-label { text-align: center; }
.video-comment-math-box { display: flex; justify-content: center; width: 100%; }
.video-comment-math-input { width: min(220px, 100%); min-height: 42px; box-sizing: border-box; margin: 0 auto; padding: 10px 12px; border: 1px solid rgba(255, 240, 114, .68); border-radius: 5px; background: #fffbea; color: #000; font: 15px/1.25 Arial, Helvetica, sans-serif; text-align: center; }
.video-comment-author-input:focus-visible, .video-comment-input:focus-visible, .video-comment-math-input:focus-visible { outline: 3px solid var(--postngone-accent); outline-offset: 2px; }
.video-comment-close { appearance: none; position: absolute; top: 10px; right: 10px; display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-width: 92px; height: 44px; box-sizing: border-box; padding: 7px 10px; border: 2px solid var(--postngone-accent); border-radius: 5px; background: #080808; color: var(--postngone-accent); font: 800 14px/1 Arial, Helvetica, sans-serif; cursor: pointer; touch-action: manipulation; box-shadow: inset 0 0 0 1px rgba(255, 240, 114, .08), 0 1px 2px rgba(0, 0, 0, .5); }
.video-comment-close:hover, .video-comment-close:focus-visible { border-color: var(--postngone-accent); background: var(--postngone-accent); color: #000; box-shadow: inset 0 0 0 2px #000, 0 0 0 2px rgba(255, 240, 114, .28); }
.video-comment-close:active { border-color: var(--postngone-accent); background: var(--postngone-accent); color: #000; box-shadow: inset 0 0 8px 2px rgba(0, 0, 0, .72); }
.video-comment-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.video-comment-close-icon { display: block; width: 20px; height: 20px; object-fit: contain; filter: brightness(0) saturate(100%) invert(89%) sepia(97%) saturate(590%) hue-rotate(345deg) brightness(108%) contrast(103%); }
.video-comment-close:hover .video-comment-close-icon, .video-comment-close:focus-visible .video-comment-close-icon, .video-comment-close:active .video-comment-close-icon { filter: none; }
.video-comment-close-label { display: block; }

/*
Responsive Layouts
*/

@media (max-width: 900px) {
    .video-comment-dialog { inset: 16px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); }
    .video-comment-layout { grid-template-columns: 1fr; }
    .video-comment-list-panel, .video-comment-form { min-height: 0; }
    .video-comment-list { min-height: 160px; max-height: 260px; }
}

@media (max-width: 820px) {
    .video-single-header { grid-template-columns: 1fr; }
    .video-single-utility-actions { justify-content: stretch; min-width: 0; }
    .video-single-action-button { flex: 1 1 130px; width: 100%; }
    .video-single-reaction-stack { grid-template-columns: 1fr; }
    .video-single-comments { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .video-comment-dialog { inset: 12px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 18px; }
    .video-comment-list { max-height: 42dvh; }
    .video-single-shell { width: calc(100% - 20px); margin-top: 18px; }
    .video-single-card { padding: 12px; }
    .video-single-back-link { grid-row: auto; }
    .video-single-title { font-size: 23px; }
    .video-single-reaction-group { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .video-single-comments { gap: 12px; }
}

@media (max-width: 600px) {
    .video-filter { flex-wrap: wrap; width: calc(100% - 24px); }
    .video-filter-select, .video-watch-link { width: min(260px, 100%); }
    .video-gallery { display: block; padding: 24px 0; }
    .video-card { width: min(470px, calc(100vw - 24px)); height: auto; aspect-ratio: 470 / 338; margin: 0 auto 16px; }
    .video-load-more { margin-bottom: 28px; }
    .video-load-more-button { width: min(220px, 100%); }
    .video-gallery-end-card { grid-template-columns: 1fr; gap: 10px; padding: 18px; text-align: center; }
    .video-gallery-end-mascot { width: min(210px, 68vw); max-height: 230px; margin: 0 auto; }
    .video-gallery-end-copy { text-align: center; }
    .video-gallery-end-message { margin-bottom: 16px; }
    .video-watch-shell { height: 100dvh; min-height: 100dvh; }
    .video-watch-bar { grid-template-columns: auto minmax(0, 1fr); min-height: 58px; padding: 8px 10px; }
    .video-watch-now { text-align: right; }
    .video-watch-title { font-size: 15px; }
    .video-watch-count { font-size: 12px; }
    .video-watch-controls { grid-template-columns: 1fr 1.35fr 1fr; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
    .video-watch-control-button { min-height: 48px; padding: 8px 6px; font-size: 14px; }
    .video-watch-fullscreen { grid-column: 1 / -1; min-height: 42px; }
    .video-watch-end-card { grid-template-columns: 1fr; gap: 10px; overflow-y: auto; padding: 18px; text-align: center; }
    .video-watch-end-mascot { width: min(220px, 70vw); max-height: 34vh; margin: 0 auto; }
    .video-watch-end-copy { text-align: center; }
    .video-watch-end-message { margin-bottom: 16px; }
}

@media (max-width: 430px) {
    .video-comment-dialog { inset: 8px; width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 14px; }
    .video-comment-heading { margin: 2px 42px 5px; font-size: 22px; }
    .video-comment-context { margin: 0 42px 14px; font-size: 13px; }
    .video-comment-layout { gap: 12px; }
    .video-comment-list { max-height: 34dvh; padding: 9px; }
    .video-comment-list-panel, .video-comment-form { padding: 10px; }
    .video-comment-input { min-height: 120px; height: 135px; }
    .video-comment-close { top: 6px; right: 6px; }
    .video-single-shell { width: calc(100% - 16px); margin-top: 10px; }
    .video-single-card, .video-single-comments { padding: 10px; }
    .video-single-title { font-size: 21px; }
    .video-single-meta { display: grid; gap: 7px; }
    .video-single-meta-pill { min-height: 32px; padding: 7px 9px; }
    .video-single-meta-pill + .video-single-meta-pill::before { content: none; }
    .video-single-reaction-stack { gap: 10px; }
    .video-single-reaction-group { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 8px; }
    .video-single-reaction-button { gap: 5px; min-height: 74px; padding: 8px 3px 7px; }
    .video-single-reaction-icon { width: 34px; height: 34px; }
    .video-single-reaction-label { font-size: 12px; line-height: 1.1; }
    .video-single-comments { margin-top: 14px; }
}

@media (max-width: 390px) {
    .video-single-control-button { flex-direction: column; gap: 4px; min-height: 66px; padding: 6px 4px; }
    .video-single-control-icon { width: 26px; height: 26px; }
    .video-single-count { min-width: 18px; height: 18px; padding: 0 4px; font-size: 11px; }
    .video-single-reaction-group { gap: 6px; padding: 7px; }
    .video-single-reaction-button { gap: 4px; min-height: 72px; padding: 7px 3px 6px; }
    .video-single-reaction-icon { width: 32px; height: 32px; }
    .video-single-reaction-label { font-size: 12px; }
    .video-single-reaction-button .video-single-count { top: 4px; right: 4px; }
}

@media (max-width: 360px) {
    .video-card { min-height: 240px; }
    .video-single-shell { width: calc(100% - 12px); }
    .video-single-card, .video-single-comments { padding: 8px; }
    .video-single-reaction-group { gap: 5px; padding: 6px; }
    .video-single-reaction-button { min-height: 70px; padding: 6px 2px; }
    .video-single-reaction-icon { width: 30px; height: 30px; }
    .video-single-reaction-label { font-size: 11px; }
    .video-single-comment-form { width: 100%; }
}
