* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: Arial, Helvetica, sans-serif; color: #25384c; background: #f7f9fc; }
[hidden] { display: none !important; }
.top { height: 76px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; color: #06213f; background: #fff; border-bottom: 1px solid #e6ebf1; box-shadow: 0 2px 12px rgba(6,33,63,.035); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions button { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 13px; font-family: 'Trebuchet MS', Arial, sans-serif; }
.brand-logo { display: block; width: 105px; height: auto; }
.brand-divider { width: 1px; height: 29px; margin-left: 3px; background: #d4dee8; }
.brand-tv { font-size: 28px; line-height: 1; font-weight: bold; }
.brand small { margin-left: 5px; padding-left: 16px; border-left: 1px solid #d4dee8; color: #65798d; font: bold 10px Arial, sans-serif; letter-spacing: 2px; }
main { max-width: 1800px; margin: 0 auto; padding: 39px 28px 72px; }
h1, h2 { font-family: 'Trebuchet MS', Arial, sans-serif; color: #06213f; }
h1 { margin: 6px 0 7px; font-size: 35px; }
h2 { margin: 4px 0 0; font-size: 22px; }
p { margin: 0; color: #66788a; line-height: 1.5; }
.eyebrow { color: #0877a9; font-size: 11px; font-weight: bold; letter-spacing: 1.7px; }
button { border: 1px solid transparent; border-radius: 8px; padding: 11px 16px; background: #087bb1; color: #fff; font: bold 13px Arial, sans-serif; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
button:hover { background: #06699a; }
button:focus-visible { outline: 3px solid #94cde7; outline-offset: 2px; }
button:disabled { opacity: .6; cursor: wait; }
button.secondary { background: #eff6fa; color: #075f86; border-color: #dcebf3; }
button.secondary:hover { background: #e1f0f8; }
button.ghost { background: #fff; border-color: #d9e3ec; color: #274560; }
button.ghost:hover { background: #f3f7fa; }
button.link-button { padding: 5px 2px; background: transparent; color: #087da9; }
button.example-button { width: 100%; margin: -3px 0 15px; padding: 9px; background: #eef7fb; color: #096286; text-align: left; }
input, select, textarea { width: 100%; border: 1px solid #d7e0e8; border-radius: 7px; background: #fff; padding: 10px 11px; color: #25384c; font: 14px Arial, sans-serif; }
input:focus, select:focus, textarea:focus { outline: 2px solid #8dd8ee; border-color: #2199c0; }
label { display: block; margin: 0 0 16px; color: #3a4e62; font-size: 12px; font-weight: bold; }
label input, label select, label textarea { display: block; margin-top: 7px; font-weight: normal; }
.login-card { max-width: 440px; margin: 8vh auto 0; padding: 42px; border: 1px solid #e5ebf1; border-radius: 14px; background: #fff; box-shadow: 0 14px 38px rgba(6,33,63,.055); }
.login-card p { margin-bottom: 29px; }
.login-card button { width: 100%; }
.message { min-height: 22px; margin: 12px 0; color: #087b61; font-size: 13px; }
.message.error { color: #b73e3e; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.player-strip { margin-top: 23px; padding: 21px 24px; border: 1px solid #e4ebf1; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgba(6,33,63,.035); }
.player-strip-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.player-status { padding: 6px 9px; border-radius: 6px; background: #e8eef2; color: #5c7180; font-size: 11px; }
.player-status.online { background: #dcf6ef; color: #087b61; }
.player-status.offline { background: #fff2e5; color: #9e681d; }
.player-url-label { margin: 0; }
.player-url-label input { margin-top: 7px; font-family: Consolas, 'Courier New', monospace; font-size: 12px; background: #f8fafc; }
.player-strip-details { display: flex; flex-wrap: wrap; gap: 7px 24px; margin-top: 12px; color: #688096; font-size: 12px; }
.player-strip-details strong { color: #173550; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin: 18px 0 25px; }
.summary div { min-height: 86px; padding: 17px 20px; border: 1px solid #e5ebf1; border-radius: 11px; background: #fff; box-shadow: 0 3px 14px rgba(6,33,63,.025); }
.summary strong { display: block; font: bold 26px 'Trebuchet MS', Arial, sans-serif; color: #0a5d8a; }
.summary span { color: #688096; font-size: 11px; font-weight: bold; }
.workspace { display: grid; grid-template-columns: minmax(270px,.77fr) minmax(405px,1.1fr) minmax(335px,.92fr); gap: 18px; align-items: start; }
.panel { min-width: 0; padding: 24px; border: 1px solid #e4ebf1; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgba(6,33,63,.035); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; min-height: 58px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #edf1f5; }
.panel-heading span { color: #8395a3; font-size: 11px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.filters button { padding: 7px 9px; background: #f4f7fa; border-color: #e7edf2; color: #4e6578; font-size: 11px; }
.filters button.selected { background: #087fae; color: #fff; }
.content-list { display: grid; gap: 10px; }
.content-row { padding: 15px; border: 1px solid #e6ecf1; border-radius: 9px; background: #fff; }
.content-row:hover { border-color: #c9dce9; box-shadow: 0 3px 12px rgba(6,33,63,.04); }
.content-row-title { margin-bottom: 4px; color: #173550; font-size: 15px; font-weight: bold; line-height: 1.25; }
.content-row-meta { color: #6b8395; font-size: 11px; line-height: 1.5; }
.content-row-top { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.status { flex: none; padding: 4px 6px; border-radius: 4px; background: #dcf6ef; color: #087b61; font-size: 10px; font-weight: bold; }
.status.scheduled { background: #e5f0ff; color: #315da4; }
.status.ended { background: #f4edf0; color: #8b5a6c; }
.status.paused { background: #e9eef1; color: #667a8a; }
.row-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.row-actions button { padding: 6px 8px; background: #f1f7fa; border-color: #e3eef4; color: #075f86; font-size: 10px; }
.row-actions button.danger { background: #fff0f0; color: #aa3f40; }
.empty { padding: 20px; border: 1px dashed #cbdce7; border-radius: 8px; color: #71899b; font-size: 13px; text-align: center; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 17px; }
.mode-tabs button { background: #f4f7fa; border-color: #e6edf3; color: #51677a; }
.mode-tabs button.selected { background: #0a4b7b; color: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.hint { margin: 6px 0 12px; color: #658297; font-size: 11px; }
.form-actions { display: flex; gap: 9px; margin-top: 10px; }
.form-actions button:first-child { flex: 1; }
.form-actions button:last-child { flex: 1; }
.preview-panel { position: sticky; top: 18px; }
.preview-viewport { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; border-radius: 8px; background: #071d39; }
#preview-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; background: #071d39; transform-origin: 0 0; }
.preview-top { position: absolute; left: 80px; top: 35px; width: 1760px; height: 108px; border-bottom: 1px solid #254465; color: #fff; }
.preview-top img { display: inline-block; width: 160px; vertical-align: middle; }
.preview-top b { display: inline-block; margin-left: 22px; padding-left: 22px; border-left: 1px solid #42617e; font: bold 39px 'Trebuchet MS', Arial, sans-serif; vertical-align: middle; }
.preview-top span { position: absolute; right: 0; top: 35px; color: #aac9db; font-size: 18px; font-weight: bold; letter-spacing: 2px; }
#preview-frame { position: absolute; left: 80px; top: 179px; width: 1760px; height: 710px; overflow: hidden; border-radius: 15px; background: #0c3156; }
#preview-frame img, #preview-frame video { width: 100%; height: 100%; object-fit: cover; }
.preview-placeholder { padding: 220px 130px; color: #c9e4f5; font: bold 42px 'Trebuchet MS', Arial, sans-serif; }
.preview-bottom { position: absolute; left: 80px; top: 930px; width: 1760px; color: #fff; white-space: nowrap; }
.preview-bottom span { color: #57c6e7; font-size: 18px; font-weight: bold; letter-spacing: 3px; }
.preview-bottom strong { margin-left: 25px; font: bold 27px 'Trebuchet MS', Arial, sans-serif; }
.preview-bottom em { float: right; color: #89b2ca; font-size: 18px; font-style: normal; }
.preview-help { margin-top: 13px; font-size: 12px; }
@media (max-width: 1260px) { .workspace { grid-template-columns: minmax(260px,.8fr) minmax(400px,1.2fr); } .preview-panel { grid-column: 1 / -1; position: static; max-width: 760px; } }
@media (max-width: 760px) { main { padding: 24px 15px 45px; } .top { height: auto; min-height: 76px; padding: 13px 16px; flex-wrap: wrap; gap: 12px; } .header-actions { width: 100%; flex-wrap: wrap; } .brand small { display: none; } .page-heading { display: block; } .page-heading button { margin-top: 16px; } .summary { grid-template-columns: 1fr 1fr; } .workspace { display: block; } .panel { margin-bottom: 14px; } .two { grid-template-columns: 1fr; } .login-card { margin-top: 6vh; padding: 26px; } }
