.video-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.video-filter .field{flex:1;min-width:180px}.video-upload{border:1px solid #c4dfd0;background:#f0f8f3;border-radius:20px;padding:20px;margin:20px 0}.video-upload summary{font-weight:750;color:#08783e;cursor:pointer;min-height:44px}.video-upload-status{white-space:pre-wrap;color:#a71d32}.reels-feed{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}.reel-card{min-width:0;overflow:hidden;background:white;border:1px solid #d8e6dc;border-radius:22px;box-shadow:0 8px 26px #1233220b}.reel-player{position:relative;aspect-ratio:9/14;background:#10231a;overflow:hidden}.reel-player video{width:100%;height:100%;object-fit:contain}.reel-label{position:absolute;top:12px;left:12px;color:white;background:#a7162fd9;border-radius:8px;padding:5px 10px;font-size:12px;pointer-events:none}.reel-copy{padding:18px}.reel-copy h2{font-size:18px;margin:8px 0}.reel-copy p{white-space:pre-wrap;overflow-wrap:anywhere}.reel-copy small{color:#62736a}.reel-status{font-size:13px;color:#08783e;font-weight:700}.reel-copy .btn{min-height:44px}.video-upload .check{display:flex;gap:10px;align-items:flex-start}.video-upload .check input{flex:none;width:20px;height:20px}@media(max-width:900px){.reels-feed{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.reels-feed{grid-template-columns:minmax(0,1fr)}.reel-player{max-height:65svh}.video-upload{padding:16px}}

/* Public Reels are a dedicated viewport; cabinet video cards keep their own layout. */
body.reels-mode {overflow:hidden!important;background:#07100c!important}
dialog.reels-startup {width:100vw!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;inset:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important}
dialog.reels-startup .reels-page {inset:0}
body.reels-mode .body {transform:none!important;filter:none!important}
.reels-page {position:fixed;inset:0;z-index:1000;width:100%;height:100vh;height:100dvh;background:#07100c;color:#fff;font-family:Arial,sans-serif;isolation:isolate}
.reels-page * {box-sizing:border-box}
.reels-page [hidden] {display:none!important}
.reels-page button,.reels-page a {touch-action:manipulation}
.reels-page .reels-toolbar {position:absolute!important;inset:0 0 auto!important;height:auto!important;min-height:0!important;display:flex!important;gap:12px;align-items:center;z-index:7;border:0!important;background:linear-gradient(#07100cd9,transparent)!important;box-shadow:none!important;margin:0!important;padding:calc(12px + env(safe-area-inset-top,0px)) 22px 28px!important;color:white}
.reels-toolbar h1 {font-size:14px;line-height:1.2;margin:0!important;display:flex;align-items:center;gap:14px;color:white!important;font-weight:500}
.reels-toolbar h1 b {letter-spacing:1.5px;font-size:20px}.reels-toolbar h1 b::after {content:"";display:inline-block;width:5px;height:5px;background:#ed3653;margin-left:2px;border-radius:50%}
.reels-toolbar h1 span {border-left:1px solid #ffffff45;padding-left:14px;color:#e7ece9}
.reels-page .reels-back,.reels-menu>summary {width:40px;height:40px;display:grid;place-items:center;color:white;background:#ffffff12;border:1px solid #ffffff20;border-radius:50%;text-decoration:none;cursor:pointer;list-style:none;padding:8px!important}
.reels-back svg,.reels-menu svg {width:22px;height:22px}
.reels-page .reels-menu {margin:0 0 0 auto!important;border:0!important;padding:0!important;background:transparent!important;position:relative;color:white}
.reels-menu>summary::-webkit-details-marker {display:none}.reels-menu-panel {position:absolute;right:0;top:48px;width:min(290px,calc(100vw - 32px));padding:18px;border:1px solid #dce7df;border-radius:20px;box-shadow:0 14px 48px #0006;background:#fff;color:#193629;display:grid;gap:8px}
.reels-menu-panel form,.reels-menu-panel label {display:grid;gap:8px;font-size:13px}.reels-menu-panel select {min-height:44px;max-width:100%;font:inherit;background:#f5f8f6;border:1px solid #cbded2;border-radius:12px;padding:8px;color:#193629}
.reels-menu-panel .btn {font-size:13px;justify-content:center;padding:10px;min-height:42px}
.reels-stage {height:100%;position:relative;display:flex;justify-content:center;background:radial-gradient(ellipse at 30% 20%,#12342455,transparent 55%),#07100c}
.reels-scroll {height:100%;width:100%;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;scrollbar-width:none;touch-action:pan-y}
.reels-scroll::-webkit-scrollbar {display:none}
.reel-slide {height:100%;width:100%;scroll-snap-align:start;scroll-snap-stop:always;position:relative;display:flex;justify-content:center;outline-offset:-3px}
.reel-screen {height:100%;width:min(100%,56.25dvh);position:relative;overflow:hidden;background:#0b120e}
.reel-screen video {display:block;width:100%;height:100%;object-fit:contain;background:#0b120e}
.reel-tap {position:absolute;inset:0;background:none;border:0;width:100%;cursor:pointer;padding:0;display:grid;place-items:center}
.reel-play-indicator {display:grid;width:66px;height:66px;border-radius:50%;place-items:center;background:#07100c88;border:1px solid #ffffff55;color:white;backdrop-filter:blur(8px);transition:opacity .18s}
.reel-play-indicator svg {width:28px;height:28px}.is-playing .reel-play-indicator {opacity:0}
.reel-rail {position:absolute;right:10px;bottom:calc(180px + env(safe-area-inset-bottom,0px));z-index:4;display:grid;gap:16px}
.reel-rail>div {display:grid;justify-items:center;gap:3px;font-size:12px;font-weight:650;text-shadow:0 1px 4px #000}
.reel-rail button,.reels-controls button,.reel-playback button {border:1px solid #ffffff30;color:white;background:#10241c66;border-radius:50%;width:44px;height:44px;display:grid;place-items:center;cursor:pointer;padding:10px;backdrop-filter:blur(8px);transition:background .2s,transform .2s}
.reel-rail svg {width:25px;height:25px;filter:drop-shadow(0 1px 2px #0003)}
.reel-rail button[aria-pressed=true] {color:#ed3653}.reel-rail button[aria-pressed=true] svg {fill:currentColor}
.reel-rail button[data-reel-action=save][aria-pressed=true] {color:#9ce6b9}
.reel-rail button:disabled {opacity:.55;cursor:wait}
.reel-overlay {position:absolute;bottom:calc(48px + env(safe-area-inset-bottom,0px));left:0;right:0;z-index:3;color:white;padding:72px 72px 8px 18px;background:linear-gradient(transparent,#06100bcc);pointer-events:none}
.reel-overlay>* {pointer-events:auto}
.reel-byline {display:flex;align-items:center;gap:8px}.reel-avatar {display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:1px solid #ffffff80;background:#08783e;font-size:13px;font-weight:700;flex-shrink:0}
.reel-author {font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reel-overlay h2 {font-size:17px!important;line-height:1.35;margin:9px 0 5px!important;font-weight:650;color:white!important;text-wrap:balance}
.reel-category {font-size:11px;letter-spacing:.25px;color:#e0ece4;margin:0 0 4px}
.reel-description {font-size:13px;line-height:1.45;border:0!important;background:none!important;padding:0!important;margin:0!important}
.reel-description summary {cursor:pointer;color:#e4f2e8;min-height:24px;padding:4px 0!important;font-size:12px;font-weight:400;border:0!important}
.reel-description p {max-height:130px;overflow:auto;margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere;background:#06100ce6;padding:8px;border-radius:10px}
.reel-playback {position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;gap:7px;padding:5px 9px calc(7px + env(safe-area-inset-bottom,0px));background:linear-gradient(#06100bcc,#06100c);z-index:5;color:white}
.reel-playback button {width:34px;height:34px;flex-shrink:0;border:none;background:transparent;padding:7px}
.reel-playback svg {width:20px;height:20px}.reel-playback input {width:100%;min-width:30px;accent-color:#ed3653;cursor:pointer;padding:0;height:24px;border:0;background:transparent;margin:0}.reel-playback output {font-size:10px;white-space:nowrap;color:#e4eae6}
.reel-feedback {font-size:12px;line-height:1.4;margin:4px 0 0}.reel-feedback:empty {display:none}
.reel-offer {display:inline-flex!important;align-items:center;gap:16px;background:#08783ee8;color:white!important;border:1px solid #8fdeac77;border-radius:12px;padding:9px 12px!important;text-decoration:none;font-size:12px!important;min-height:36px!important;margin-top:6px;box-shadow:0 4px 16px #0002}
.reel-offer svg {width:16px;height:16px}
.reels-controls {display:grid;gap:12px;position:absolute;left:calc(50% + 28.125dvh + 24px);top:46%;z-index:6}.reels-controls svg {width:22px;height:22px}
.reels-page :focus-visible {outline:3px solid #ed6b80;outline-offset:3px}
.reels-page:fullscreen {width:100vw;height:100dvh}
.reels-empty {height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:80px 24px;gap:12px}.reels-empty h2 {color:white}.reels-empty .btn {background:#08783e;color:white}
dialog.reel-comments-dialog {padding:0!important;width:min(440px,calc(100vw - 32px))!important;max-width:100vw!important;height:min(680px,86dvh);max-height:100dvh!important;border:1px solid #d6e2db!important;border-radius:24px!important;background:#fff!important;color:#193629!important;box-shadow:0 20px 80px #0006;overflow:hidden!important}
dialog.reel-comments-dialog[open] {display:flex!important;flex-direction:column}
dialog.reel-comments-dialog::backdrop {background:#0008;backdrop-filter:blur(3px)}
.reel-comments-dialog>header {position:static!important;display:flex!important;align-items:center;justify-content:space-between;min-height:0!important;height:auto!important;margin:0!important;padding:20px!important;background:white!important;box-shadow:none!important;border:0!important;border-bottom:1px solid #edf0ee!important;gap:12px}
.reel-comments-dialog header h2 {font-size:18px!important;color:#193629!important;margin:0 0 4px!important}
.reel-comments-dialog header p {font-size:12px;color:#6c7b71;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:300px}
.reel-comments-dialog [data-comment-close] {width:36px;height:36px;background:#f0f5f2;border:0;border-radius:50%;font-size:24px;color:#193629;cursor:pointer;flex-shrink:0}
.reel-comments-list {padding:8px 20px;overflow-y:auto;flex:1;min-height:70px;overscroll-behavior:contain}
.reel-comment {display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;padding:15px 0;border-bottom:1px solid #f0f3f1;font-size:13px}
.reel-comment-avatar {width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#e4f4eb;color:#08783e;font-weight:700}
.reel-comment-meta {display:flex;gap:8px;flex-wrap:wrap;align-items:center}.reel-comment-meta strong {font-size:13px;color:#193629}.reel-comment time {font-size:10px;color:#7a887f}
.reel-comment p {white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0;line-height:1.55;color:#324b3d}
.reel-comment [data-comment-delete] {background:none;border:0;padding:5px 0;color:#8d4c56;font-size:11px;cursor:pointer;min-height:28px}
.reel-comments-state {padding:0 20px 8px;flex-shrink:0}.reel-comments-state p {font-size:13px;margin:6px 0;color:#65796d}.reel-comments-state .btn {font-size:12px;min-height:36px}
.reel-comments-dialog form {padding:14px 20px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid #e8efe9;background:#f7faf8;flex-shrink:0}
.reel-comments-dialog form>label {font-size:12px;font-weight:650;color:#456552}
.reel-compose {display:flex;gap:8px;align-items:center;margin-top:7px}
.reel-compose textarea {font:14px/1.4 Arial,sans-serif;resize:none;min-height:52px;max-height:100px;width:100%;border:1px solid #d5e1d9;border-radius:16px;background:white;color:#193629;padding:12px;flex:1;min-width:0}
.reel-compose button {border:0;background:#08783e;color:white;border-radius:50%;width:42px;height:42px;flex-shrink:0;font-size:23px;cursor:pointer}.reel-compose button:disabled {opacity:.5}
.reel-comments-dialog small {font-size:12px;color:#8e3045;display:block;margin-top:6px}
@media(hover:hover){.reel-rail button:hover,.reels-controls button:hover,.reels-back:hover {background:#ffffff2b;transform:translateY(-2px)}.reel-offer:hover {background:#08783e!important}}
@media(min-width:900px){dialog.reel-comments-dialog {margin:auto 24px auto auto}}
@media(max-width:650px){
 .reels-page .reels-toolbar {padding:calc(10px + env(safe-area-inset-top,0px)) 12px 28px!important;gap:8px}
 .reels-toolbar h1 {gap:9px;font-size:12px}.reels-toolbar h1 b {font-size:18px}.reels-toolbar h1 span {padding-left:9px}
 .reel-screen {width:100%}.reels-controls {display:none}.reel-rail {right:9px;gap:12px}.reel-rail button {width:42px;height:42px}
 .reel-overlay {padding-left:15px}.reel-overlay h2 {font-size:16px!important}
 dialog.reel-comments-dialog {margin:auto 0 0!important;width:100%!important;border-radius:24px 24px 0 0!important;height:min(72dvh,620px)}
 .reel-comments-dialog header p {max-width:260px}
}
@media(max-height:580px){.reel-rail {bottom:105px;gap:4px}.reel-rail button {width:34px;height:34px;padding:7px}.reel-overlay {padding-top:25px}.reel-overlay h2 {font-size:14px!important}.reel-byline,.reel-category {display:none}.reels-toolbar h1 span {display:none}}
@media(prefers-reduced-motion:reduce){.reels-page * {transition:none!important;animation:none!important;scroll-behavior:auto!important}}
