:root { color-scheme: light; --navy:#101e33; --navy2:#182a45; --brand:#2765e6; --brand-soft:#eaf1ff; --text:#192437; --muted:#718096; --stroke:#e3e9f1; --bg:#f5f7fb; --green:#16815c; --red:#ba4655; --shadow:0 5px 24px rgba(27,48,85,.055); font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
*{box-sizing:border-box}body{margin:0;color:var(--text);background:var(--bg);font-size:14px;line-height:1.55}button,input,select{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}.layout{display:flex;min-height:100vh}.sidebar{width:254px;min-width:254px;background:linear-gradient(175deg,var(--navy),#142640 80%);color:#c1cee4;padding:27px 16px 20px;display:flex;flex-direction:column;position:sticky;height:100vh;top:0}.brand{display:flex;align-items:center;gap:11px;padding:2px 9px 31px;color:#fff}.brand-mark,.login-icon{display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#528cff,#2161df);color:#fff;font-weight:800;font-size:23px;width:42px;height:42px;box-shadow:0 6px 17px #2065df45}.brand strong{display:block;font-size:15px;line-height:1.35}.brand small{display:block;font-size:11px;letter-spacing:1px;color:#97a9c8;margin-top:2px}.menu-caption{font-size:10px;letter-spacing:2px;padding:14px 16px;color:#7488a8;font-weight:700}.sidebar nav{display:flex;flex-direction:column;gap:5px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:11px;color:#b6c6df;font-weight:550}.nav-link:hover{background:#ffffff12;color:#fff}.nav-link.selected{background:#3573e8;color:#fff;box-shadow:0 6px 15px #0c3d9257}.nav-link svg{flex-shrink:0}.sidebar-footer{display:flex;gap:10px;color:#8297b5;font-size:11px;padding:18px 13px 0;margin-top:auto;border-top:1px solid #ffffff1a}.sidebar-footer svg{flex-shrink:0}.main-area{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:75px;background:#fff;border-bottom:1px solid var(--stroke);padding:0 39px;display:flex;align-items:center;justify-content:flex-end}.topbar-right{display:flex;align-items:center;gap:12px;font-weight:600}.admin-avatar{width:31px;height:31px;display:grid;place-items:center;background:#dce9ff;border-radius:50%;color:#245fc7}.topbar-right form{margin:0}.topbar-link{border:0;background:transparent;color:#7a899e;padding:9px;border-left:1px solid #e6e9f1;margin-left:11px;padding-left:18px}.topbar-link:hover{color:var(--brand)}.mobile-brand{display:none}.content{width:min(1260px,100%);margin:0 auto;padding:33px 42px 45px;flex:1}.eyebrow{letter-spacing:1.6px;font-size:10px;font-weight:800;color:#668dce}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-head h1{font-size:28px;letter-spacing:-.7px;margin:6px 0 3px}.page-head p{font-size:13px;color:var(--muted);margin:0}.refresh-link{display:flex;gap:7px;align-items:center;color:#4567a5;font-size:12px;border:1px solid #dae3f1;background:#fff;border-radius:9px;padding:9px 12px}.refresh-link svg{width:15px;height:15px}.hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(112deg,#18365b,#254a81);padding:26px 29px;border-radius:16px;color:#fff;box-shadow:var(--shadow)}.hero .eyebrow{color:#a9ccff}.hero h2{margin:7px 0 4px;font-size:24px;letter-spacing:-.4px}.hero p{color:#c6d8f1;margin:0;font-size:12px}.status-indicator{display:flex;gap:9px;align-items:center;border-radius:100px;padding:10px 16px;font-weight:700;white-space:nowrap;font-size:12px}.status-indicator i{width:8px;height:8px;border-radius:50%;background:currentColor}.status-indicator.ok{background:#def8ed;color:#187e57}.status-indicator.off{background:#ffedf0;color:#b64554}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0}.metric{background:white;border:1px solid var(--stroke);border-radius:13px;padding:20px 20px 18px;box-shadow:var(--shadow);min-height:138px;display:flex;flex-direction:column}.metric-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;color:#286bd7;background:#eef4ff;margin-bottom:11px}.metric-icon svg{width:18px;height:18px}.metric>span{font-size:12px;color:var(--muted)}.metric strong{font-weight:750;font-size:24px;letter-spacing:-.45px;margin-top:2px}.columns{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px}.panel{border:1px solid var(--stroke);border-radius:14px;background:white;padding:24px;box-shadow:var(--shadow);min-width:0}.panel-heading{margin:0 0 24px}.panel-heading h2{font-size:17px;margin:0 0 5px;letter-spacing:-.25px}.panel-heading p{margin:0;color:var(--muted);font-size:12px}.button-row{display:flex;flex-wrap:wrap;gap:10px}.inline-form{margin:0}.button{display:inline-flex;gap:8px;align-items:center;justify-content:center;border-radius:9px;padding:11px 13px;font-size:12px;font-weight:700;border:1px solid #d6e1ed;min-height:41px;white-space:nowrap;transition:background .1s,color .1s}.button svg{height:16px;width:16px}.button:hover{filter:brightness(.96)}.button-primary{background:var(--brand);border-color:var(--brand);color:#fff}.button-outline{background:#fff;color:#305d99}.button-muted{background:#f2f5fa;color:#52627a}.hint{font-size:12px;line-height:1.7;color:#8796aa;margin:18px 0 0}.info-row{display:flex;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid #ecf0f5;font-size:12px}.info-row:last-child{border:0}.info-row span{color:#7b8da5}.info-row strong{font-size:12px;text-align:right;font-weight:650}.source-link{max-width:250px;word-break:break-all}.footer{text-align:center;color:#9aa9bd;font-size:11px;padding:14px 25px 20px}.notice{border-radius:10px;padding:13px 16px;margin-bottom:20px;font-weight:650;font-size:12px}.notice.success{background:#e8f7ef;color:#15794b;border:1px solid #caead8}.notice.error{background:#fff0f1;color:#a53d4d;border:1px solid #f3ccd2}.table-panel{padding:24px 0}.table-panel .panel-heading{padding:0 25px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;min-width:610px}th{text-align:left;font-size:11px;color:#8191a5;background:#f8faff;padding:13px 26px;text-transform:uppercase;letter-spacing:.4px}td{padding:16px 26px;border-top:1px solid #f0f2f7;font-size:13px}td a{color:var(--brand);font-weight:600;font-size:12px}.film-title{font-weight:650}.episode-pill{background:#edf4ff;color:#275ca3;padding:5px 8px;border-radius:7px;font-size:11px}.count-pill{font-size:12px;color:#2d69db;background:#edf3ff;padding:3px 7px;border-radius:8px}.log-console{background:#101e31;border-radius:10px;padding:19px 21px;color:#c4e3cd;font-family:Consolas,"Cascadia Mono",monospace;font-size:11px;line-height:1.85;overflow:auto;max-height:640px;white-space:pre-wrap;overflow-wrap:anywhere}.narrow-panel{max-width:590px}.panel form label{display:block;color:#4b5b71;font-weight:650;font-size:12px;margin-bottom:9px}.panel form select,.panel input,.login-card input{display:block;width:100%;background:#fff;border:1px solid #d9e2ee;border-radius:9px;padding:12px 13px;color:#20324b;outline:none;margin-top:8px;margin-bottom:17px}.panel select:focus,.panel input:focus,.login-card input:focus{border-color:#568bec;box-shadow:0 0 0 3px #397cf625}.setting-info{background:#f1f6ff;padding:13px 15px;color:#456184;border-radius:9px;margin:12px 0 22px;font-size:12px}.stacked-form{display:flex;flex-direction:column}.security-columns{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.auth-page{min-height:100vh;display:grid;place-items:center;padding:26px;background:radial-gradient(ellipse at 15% 15%,#dce9ff 0,transparent 38%),radial-gradient(ellipse at 93% 90%,#dce9ff 0,transparent 34%),#f6f8fc}.login-card{border:1px solid #e1e8f2;box-shadow:0 22px 60px rgba(39,65,101,.11);background:#fff;border-radius:20px;width:min(440px,100%);padding:38px}.login-card .login-icon{margin-bottom:25px;width:53px;height:53px;border-radius:15px}.login-card h1{margin:8px 0 6px;font-size:27px;letter-spacing:-.6px}.login-card>p{font-size:13px;color:var(--muted);margin:0 0 26px}.login-card form label{font-weight:650;font-size:12px;color:#4b5b71;margin-bottom:7px}.login-card .full{width:100%;margin-top:9px;font-size:13px;min-height:46px}.auth-foot{text-align:center;font-size:11px;color:#9caac0;margin-top:24px}
@media(max-width:1050px){.sidebar{width:218px;min-width:218px}.content{padding:30px 27px}.metrics{grid-template-columns:repeat(2,1fr)}.columns{grid-template-columns:1fr}.panel{padding:21px}}
@media(max-width:700px){.layout{display:block}.sidebar{position:static;height:auto;width:100%;padding:12px 12px 10px}.brand{padding:3px 2px 13px}.brand-mark{width:34px;height:34px;font-size:18px}.menu-caption,.sidebar-footer{display:none}.sidebar nav{flex-direction:row;overflow-x:auto;white-space:nowrap;padding-bottom:4px;gap:4px}.nav-link{padding:9px 10px;font-size:12px;gap:5px}.nav-link svg{width:15px;height:15px}.topbar{height:50px;padding:0 16px}.content{padding:24px 15px}.page-head{align-items:flex-start}.page-head h1{font-size:23px}.refresh-link{font-size:0;padding:9px}.refresh-link svg{width:18px;height:18px}.hero{flex-direction:column;align-items:flex-start;padding:22px}.metrics{gap:9px}.metric{padding:15px;min-height:127px}.metric strong{font-size:21px}.panel{padding:19px}.button-row{display:flex}.button{white-space:normal}.login-card{padding:27px 23px}.auth-foot{line-height:1.6}}

.film-search{padding:0 25px 18px}.film-search input{width:min(430px,100%);height:42px;border-radius:9px;border:1px solid #d9e2ee;padding:0 14px;outline:none}.film-search input:focus{border-color:#417bd8;box-shadow:0 0 0 3px #4287ff1c}

/* Custom daily time-window schedule, mobile friendly */
.schedule-panel{max-width:920px}.schedule-mode-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:22px}.schedule-panel .mode-choice{display:flex;align-items:flex-start;gap:11px;border:1px solid #dce5f2;border-radius:12px;padding:16px 17px;background:#fcfdff;cursor:pointer;margin:0}.mode-choice input[type=radio]{width:17px;height:17px;flex-shrink:0;accent-color:#2765e6;margin:3px 0 0}.mode-choice strong{display:block;font-size:13px;color:#203754;margin-bottom:3px}.mode-choice small{display:block;color:#7890ac;font-size:12px;font-weight:400;line-height:1.6}.schedule-subsection{border-top:1px solid #edf1f6;padding-top:20px}.schedule-subsection[hidden]{display:none}.schedule-panel #always-schedule{max-width:350px}.schedule-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:17px}.schedule-heading h3{font-size:16px;margin:0 0 2px}.schedule-heading p{margin:0;color:var(--muted);font-size:12px}.schedule-row{background:#f8fbff;border:1px solid #e3eaf6;border-radius:12px;padding:15px 17px 4px;margin-bottom:12px}.schedule-row-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.schedule-row-head strong{font-size:12px;color:#44658e}.remove-window{color:#b34e5c;background:#fff;border:1px solid #efdce1;border-radius:7px;padding:4px 11px;font-size:12px;font-weight:650}.remove-window:disabled{opacity:.3;cursor:not-allowed}.schedule-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:13px}.schedule-fields label{margin-bottom:0}.schedule-fields input{margin-top:6px!important;margin-bottom:12px!important}.schedule-note{background:#eef5ff;border-radius:10px;padding:14px 16px;font-size:12px;color:#516e91;line-height:1.7;margin-top:14px}.schedule-estimate{color:#295eac;font-size:13px;font-weight:700;margin:15px 0 8px}.schedule-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;border-top:1px solid #edf1f6;padding-top:20px;margin-top:24px}.schedule-actions span{font-size:12px;color:var(--muted)}
@media(max-width:700px){.schedule-mode-picker{grid-template-columns:1fr}.schedule-heading{flex-direction:column}.schedule-fields{grid-template-columns:1fr 1fr}.schedule-fields label:last-child{grid-column:1/-1}.schedule-panel{padding:16px}.schedule-actions .button{width:100%}}
