:root {
    --bg: #050505;
    --panel: #101010;
    --panel-2: #181818;
    --gold: #d8b34a;
    --gold-light: #f4d87d;
    --text: #ffffff;
    --muted: #aaaaaa;
    --danger: #e84e4e;
    --success: #2db36c;
    --line: rgba(216, 179, 74, 0.34);
    --topbar-height: 64px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background:
        radial-gradient(circle at 50% -20%, rgba(216, 179, 74, 0.14), transparent 42%),
        #050505;
}

button, input { font: inherit; }
button, .button-link { cursor: pointer; }
a { color: inherit; }

.topbar {
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 8, 8, 0.97);
    position: relative;
    z-index: 20;
}

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-centered { justify-content: center; }

.brand-mark {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 10px;
    background: linear-gradient(145deg, #f0d374, #a87918);
    color: #090909;
    font-weight: 900;
    box-shadow: 0 0 24px rgba(216, 179, 74, 0.18);
}

.brand-copy { min-width: 0; }
.brand strong {
    display: block;
    color: var(--gold-light);
    letter-spacing: 1.1px;
    font-size: 16px;
    white-space: nowrap;
}
.brand span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.button:disabled { opacity: .55; cursor: not-allowed; }
.button-gold { background: linear-gradient(145deg, var(--gold-light), #b98b24); color: #090909; }
.button-muted { background: #191919; color: #ededed; border-color: #343434; }

/* PÁGINA PÚBLICA */
.public-page { overflow: hidden; }

.screen-grid {
    height: calc(100dvh - var(--topbar-height));
    display: grid;
    grid-template-columns: repeat(var(--desktop-columns, 2), minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 4px;
    padding: 4px;
}

.screen-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #000;
}

.screen-toolbar {
    flex: 0 0 34px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 8px;
    border-bottom: 1px solid rgba(216, 179, 74, .22);
    background: #0b0b0b;
}

.live-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e84141;
    box-shadow: 0 0 9px rgba(232, 65, 65, .85);
}

.screen-title {
    min-width: 0;
    flex: 1;
    margin: 0;
    color: #f1d379;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-button {
    width: 28px;
    height: 28px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #e9e9e9;
    font-size: 17px;
}
.icon-button:hover { background: #242424; }

.player-host {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #000;
}

.player-host video,
.player-host iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000;
}

.player-host video { object-fit: contain; }

.empty-state,
.player-error {
    padding: 20px;
    text-align: center;
}

.empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold-light);
    font-size: 20px;
}

.empty-state p,
.player-error p { margin: 12px 0 4px; font-weight: 800; }
.empty-state span,
.player-error span { color: var(--muted); font-size: 12px; line-height: 1.4; }

.screen-card:fullscreen {
    width: 100vw;
    height: 100vh;
    border: 0;
    border-radius: 0;
}

/* ADMINISTRACIÓN */
.admin-page { min-height: 100vh; }
.admin-shell { padding: 22px; }
.admin-panel { max-width: 1200px; margin: 0 auto; }

.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-heading h1,
.login-card h1 { margin: 0 0 7px; color: var(--gold-light); }
.admin-heading p,
.login-card p { margin: 0; color: var(--muted); line-height: 1.5; }

.screen-editor-list { display: grid; gap: 12px; }

.link-card {
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(18, 18, 18, .94);
}

.link-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.link-card legend {
    padding: 0;
    color: var(--gold-light);
    font-weight: 900;
}

.row-actions { display: flex; gap: 6px; }
.small-button {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #383838;
    border-radius: 7px;
    background: #202020;
    color: #fff;
    font-weight: 800;
}
.small-button.danger { border-color: rgba(232, 78, 78, .5); color: #ff8d8d; }
.small-button:disabled { opacity: .4; cursor: not-allowed; }

.fields-row {
    display: grid;
    grid-template-columns: minmax(210px, .7fr) minmax(280px, 1.5fr);
    gap: 12px;
}

label {
    display: grid;
    gap: 7px;
    color: #e8e8e8;
    font-size: 13px;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #3a3a3a;
    border-radius: 9px;
    outline: none;
    background: #090909;
    color: #fff;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 179, 74, .12); }

.form-message { min-height: 24px; margin: 14px 0; font-weight: 800; }
.form-message.success { color: #66df9d; }
.form-message.error { color: #ff8585; }

.sticky-savebar {
    position: sticky;
    bottom: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 8, 8, .96);
    backdrop-filter: blur(10px);
}
.sticky-savebar span { color: var(--muted); font-weight: 800; }

/* LOGIN */
.login-shell {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: min(100%, 430px);
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 15, 15, .96);
    box-shadow: 0 18px 70px rgba(0,0,0,.55);
    text-align: center;
}

.login-card h1 { margin-top: 22px; }
.login-form { display: grid; gap: 14px; margin-top: 22px; text-align: left; }
.login-form .button { width: 100%; }
.text-link { display: inline-block; margin-top: 18px; color: var(--gold-light); }
.alert { margin-top: 16px; padding: 10px 12px; border-radius: 9px; }
.alert-error { border: 1px solid rgba(232,78,78,.5); background: rgba(232,78,78,.1); color: #ff9b9b; }

/* CELULAR */
@media (max-width: 767px) {
    :root { --topbar-height: 56px; }

    .public-page { overflow: auto; }
    .topbar { min-height: var(--topbar-height); padding: 7px 9px; }
    .brand-mark { width: 36px; height: 36px; border-radius: 8px; font-size: 13px; }
    .brand strong { font-size: 13px; }
    .brand span { font-size: 9px; }
    .top-actions .button { min-height: 34px; padding: 0 10px; font-size: 11px; }

    .screen-grid {
        height: auto;
        min-height: calc(100dvh - var(--topbar-height));
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 8px;
        padding: 8px;
    }

    .screen-card { min-height: 0; border-radius: 8px; }
    .screen-toolbar { flex-basis: 32px; }
    .player-host { flex: none; width: 100%; aspect-ratio: 16 / 9; }
    .screen-title { font-size: 10px; }

    .admin-topbar { align-items: flex-start; }
    .admin-topbar .brand span { display: none; }
    .admin-topbar .top-actions { gap: 5px; }
    .admin-topbar .button { padding: 0 8px; font-size: 10px; }

    .admin-shell { padding: 12px 9px 90px; }
    .admin-heading { align-items: stretch; flex-direction: column; }
    .admin-heading .button { width: 100%; }
    .fields-row { grid-template-columns: 1fr; }
    .link-card { padding: 12px; }
    .link-card-header { align-items: flex-start; }
    .row-actions { flex-wrap: wrap; justify-content: flex-end; }
    .small-button { min-height: 30px; padding: 0 8px; font-size: 11px; }
    .sticky-savebar {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* HORARIOS AUTOMÁTICOS */
[hidden] { display: none !important; }

.no-streams {
    grid-column: 1 / -1;
    min-height: 50vh;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(14, 14, 14, .94);
}
.no-streams h1 { margin: 16px 0 8px; color: var(--gold-light); }
.no-streams p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.5; }

select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #3a3a3a;
    border-radius: 9px;
    outline: none;
    background: #090909;
    color: #fff;
}
select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 179, 74, .12); }

.schedule-box {
    margin-top: 14px;
    padding: 13px;
    border: 1px solid rgba(216, 179, 74, .22);
    border-radius: 10px;
    background: #0c0c0c;
}
.switch-row {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
    color: var(--gold-light);
}
.switch-row input,
.day-chip input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    accent-color: var(--gold);
}
.schedule-fields {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(130px, .6fr));
    gap: 12px;
    margin-top: 13px;
}
.days-block { margin-top: 13px; }
.days-block > span { display: block; margin-bottom: 8px; color: #e8e8e8; font-size: 13px; font-weight: 800; }
.day-checks { display: flex; flex-wrap: wrap; gap: 7px; }
.day-chip {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid #373737;
    border-radius: 8px;
    background: #171717;
    font-size: 12px;
}
.schedule-disabled .schedule-fields,
.schedule-disabled .days-block { opacity: .42; }

@media (max-width: 767px) {
    .schedule-fields { grid-template-columns: 1fr; }
    .day-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .day-chip { justify-content: center; padding: 0 5px; }
    .no-streams { min-height: calc(100dvh - var(--topbar-height) - 16px); }
}

/* TWINSPIRES AUTOMÁTICO */
.sync-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid #303030;
    border-radius: 8px;
    background: #151515;
    color: #d7d7d7;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .7px;
}
.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b8b8b;
}
.sync-dot.is-ok { background: #35d07f; box-shadow: 0 0 8px rgba(53, 208, 127, .7); }
.sync-dot.is-warning { background: #e4a637; box-shadow: 0 0 8px rgba(228, 166, 55, .55); }

.race-status {
    flex: 0 0 auto;
    max-width: 86px;
    padding: 3px 6px;
    border: 1px solid rgba(216, 179, 74, .35);
    border-radius: 6px;
    color: #e8ce7d;
    background: rgba(216, 179, 74, .08);
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.race-status.is-unmatched { color: #ffcc76; border-color: rgba(255, 184, 72, .35); }

.source-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid rgba(216, 179, 74, .4);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(216, 179, 74, .11), rgba(16, 16, 16, .96) 48%);
}
.source-panel h2 { margin: 2px 0 5px; color: var(--gold-light); }
.source-panel p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.source-kicker { color: #d6b45b; font-size: 10px; font-weight: 900; letter-spacing: 1.2px; }

.auto-box {
    margin-top: 14px;
    padding: 13px;
    border: 1px solid rgba(53, 208, 127, .28);
    border-radius: 10px;
    background: rgba(11, 18, 14, .86);
}
.auto-box .switch-row { color: #8fe4b6; }
.auto-fields {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(280px, 1.2fr);
    gap: 12px;
    margin-top: 13px;
}
.auto-disabled .auto-fields,
.auto-disabled .field-help { opacity: .42; }

.match-status {
    display: grid;
    align-content: center;
    gap: 3px;
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid #333;
    border-radius: 9px;
    background: #0a0a0a;
}
.match-status strong { font-size: 12px; }
.match-status span,
.match-status small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.match-status.is-matched { border-color: rgba(53, 208, 127, .42); }
.match-status.is-matched strong { color: #77dea7; }
.match-status.is-unmatched { border-color: rgba(228, 166, 55, .4); }
.match-status.is-unmatched strong { color: #f0bd63; }

.field-help {
    margin: 10px 0 0;
    color: #999;
    font-size: 11px;
    line-height: 1.45;
}
.field-help code {
    padding: 2px 5px;
    border-radius: 5px;
    background: #202020;
    color: #ecd078;
}

.manual-details {
    margin-top: 10px;
    border: 1px solid #292929;
    border-radius: 9px;
    background: #0b0b0b;
}
.manual-details summary {
    padding: 11px 13px;
    color: #bbb;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}
.manual-details .schedule-box { margin: 0 10px 10px; }

@media (max-width: 767px) {
    .sync-indicator { padding: 0 7px; }
    .sync-text { display: none; }
    .race-status { max-width: 66px; font-size: 8px; }
    .source-panel { align-items: stretch; flex-direction: column; }
    .source-panel .button { width: 100%; }
    .auto-fields { grid-template-columns: 1fr; }
}

/* PERSONALIZACIÓN BETGAMBLER V10 */
:root { --promo-height: 82px; }

.brand-with-logo {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
}
.brand-centered.brand-with-logo { align-items: center; }
.brand-logo {
    width: clamp(190px, 22vw, 310px);
    height: 38px;
    display: block;
    object-fit: contain;
    object-position: left center;
}
.brand-logo-login {
    width: min(100%, 310px);
    height: auto;
    max-height: 58px;
    object-position: center;
}
.brand-subtitle {
    width: 100%;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: .2px;
}
.brand-centered .brand-subtitle { text-align: center; }

.public-page.has-promo .screen-grid {
    height: calc(100dvh - var(--topbar-height) - var(--promo-height));
}
.public-page:not(.has-promo) .screen-grid {
    height: calc(100dvh - var(--topbar-height));
}

.promo-footer {
    min-height: var(--promo-height);
    display: grid;
    place-items: center;
    padding: 12px 100px 12px 18px;
    border-top: 1px solid rgba(216, 179, 74, .52);
    background:
        radial-gradient(circle at 50% 0%, rgba(241, 201, 91, .16), transparent 60%),
        linear-gradient(180deg, #111 0%, #050505 100%);
    text-align: center;
}
.promo-footer-link {
    color: #f6d66e;
    font-size: clamp(16px, 2vw, 29px);
    font-weight: 1000;
    letter-spacing: clamp(.5px, .13vw, 2px);
    line-height: 1.15;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 2px 0 #5f4300, 0 0 20px rgba(246, 214, 110, .28);
}
.promo-footer-link:hover { color: #fff0a8; }

.whatsapp-float {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 80;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 16px 0 12px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: #20b85a;
    color: #fff;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .48), 0 0 22px rgba(32, 184, 90, .28);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .18s ease, filter .18s ease;
}
.has-promo .whatsapp-float { bottom: calc(var(--promo-height) + 13px); }
.whatsapp-float:hover { transform: translateY(-2px); filter: brightness(1.08); }
.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Módulo de información en el panel */
.site-settings-card {
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid rgba(216, 179, 74, .42);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(216, 179, 74, .08), rgba(14, 14, 14, .98) 42%);
}
.site-settings-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}
.site-settings-heading h2 { margin: 3px 0 5px; color: var(--gold-light); }
.site-settings-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.site-settings-grid {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(420px, 1.3fr);
    gap: 16px;
}
.logo-settings-panel,
.site-copy-panel {
    min-width: 0;
    padding: 14px;
    border: 1px solid #2f2f2f;
    border-radius: 11px;
    background: rgba(7, 7, 7, .72);
}
.logo-settings-panel { display: grid; align-content: start; gap: 11px; }
.site-copy-panel { display: grid; gap: 13px; }
.field-title { color: #e9e9e9; font-size: 13px; font-weight: 900; }
.logo-preview {
    min-height: 92px;
    display: grid;
    place-items: center;
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(216, 179, 74, .3);
    border-radius: 9px;
    background: #030303;
}
.logo-preview img {
    width: min(100%, 420px);
    max-height: 72px;
    object-fit: contain;
}
.logo-settings-panel small,
.setting-group small {
    color: #999;
    font-size: 11px;
    line-height: 1.45;
}
.logo-settings-panel code { color: var(--gold-light); }
.setting-group {
    display: grid;
    gap: 12px;
    padding: 13px;
    border: 1px solid #303030;
    border-radius: 10px;
    background: #0b0b0b;
}
.settings-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.setting-disabled > label:not(.switch-row),
.setting-disabled > .settings-two-columns,
.setting-disabled > small { opacity: .42; }
textarea {
    width: 100%;
    min-height: 82px;
    padding: 10px 12px;
    resize: vertical;
    border: 1px solid #3a3a3a;
    border-radius: 9px;
    outline: none;
    background: #090909;
    color: #fff;
    font: inherit;
}
textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 179, 74, .12); }

@media (max-width: 767px) {
    :root { --promo-height: 74px; }
    .brand-logo { width: 165px; height: 28px; }
    .brand-subtitle { font-size: 8px; }
    .public-page.has-promo .screen-grid,
    .public-page:not(.has-promo) .screen-grid {
        height: auto;
        min-height: calc(100dvh - var(--topbar-height));
    }
    .promo-footer {
        min-height: var(--promo-height);
        padding: 14px 16px 82px;
    }
    .promo-footer-link { font-size: 17px; line-height: 1.25; }
    .has-promo .whatsapp-float,
    .whatsapp-float {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        min-height: 48px;
        padding: 0 13px 0 10px;
    }
    .whatsapp-float svg { width: 25px; height: 25px; }
    .site-settings-heading { align-items: stretch; flex-direction: column; }
    .site-settings-heading .button { width: 100%; }
    .site-settings-grid { grid-template-columns: 1fr; }
    .settings-two-columns { grid-template-columns: 1fr; }
    .brand-logo-login { width: min(100%, 280px); height: auto; }
}

/* =========================================================
   BETGAMBLER V11 - SELECTOR + IMAGEN EDITABLE BAJO VIDEOS
========================================================= */
:root { --track-selector-height: 76px; }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.public-page {
    overflow-x: hidden;
    overflow-y: auto;
}

.public-page.has-track-selector .screen-grid {
    height: calc(100dvh - var(--topbar-height) - var(--track-selector-height));
}

.public-page:not(.has-track-selector) .screen-grid {
    height: calc(100dvh - var(--topbar-height));
}

.track-selector-section {
    min-height: var(--track-selector-height);
    display: grid;
    grid-template-columns: auto minmax(250px, 360px) minmax(280px, 1fr);
    align-items: center;
    gap: 14px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(216, 179, 74, .42);
    background:
        radial-gradient(circle at 0 50%, rgba(216, 179, 74, .14), transparent 35%),
        #090909;
}

.track-selector-section[hidden] { display: none !important; }

.track-selector-copy {
    min-width: 190px;
    display: grid;
    gap: 4px;
}

.track-selector-copy strong {
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 1000;
    letter-spacing: .8px;
    white-space: nowrap;
}

.track-selector-copy span {
    color: #44d98a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .7px;
}

.track-select-label { display: block; }

.track-select {
    width: 100%;
    min-height: 43px;
    padding: 0 42px 0 13px;
    border: 1px solid rgba(216, 179, 74, .55);
    border-radius: 9px;
    outline: none;
    background: #111;
    color: #fff;
    font-weight: 900;
}

.track-select:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 0 3px rgba(216, 179, 74, .14);
}

.track-quick-list {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    padding: 3px 2px 5px;
    scrollbar-width: thin;
    scrollbar-color: #6f5a23 #151515;
}

.track-chip {
    flex: 0 0 auto;
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid #353535;
    border-radius: 999px;
    background: #151515;
    color: #f1d379;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.track-chip:hover {
    border-color: var(--gold);
    background: #211c0f;
}

.track-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e84141;
    box-shadow: 0 0 8px rgba(232, 65, 65, .78);
}

.screen-card.is-selected-track {
    border-color: #ffe187;
    box-shadow: 0 0 0 3px rgba(255, 225, 135, .18), 0 0 30px rgba(216, 179, 74, .34);
    animation: selectedTrackPulse .8s ease-in-out 2;
}

@keyframes selectedTrackPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(.992); }
}

.bottom-promo-section {
    padding: 28px 18px 34px;
    border-top: 1px solid rgba(216, 179, 74, .52);
    background:
        radial-gradient(circle at 50% 0%, rgba(241, 201, 91, .16), transparent 60%),
        linear-gradient(180deg, #111 0%, #050505 100%);
}

.bottom-promo-inner {
    width: min(100%, 1100px);
    margin: 0 auto;
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
}

.bottom-promo-image-link {
    display: inline-flex;
    justify-content: center;
    max-width: 100%;
    text-decoration: none;
}

.bottom-promo-image {
    width: min(100%, 700px);
    max-height: 190px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 12px 25px rgba(0, 0, 0, .58));
}

.bottom-promo-text {
    color: #f6d66e;
    font-size: clamp(18px, 2.2vw, 31px);
    font-weight: 1000;
    letter-spacing: clamp(.5px, .13vw, 2px);
    line-height: 1.18;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 2px 0 #5f4300, 0 0 20px rgba(246, 214, 110, .28);
}

.bottom-promo-text:hover { color: #fff0a8; }

.has-bottom-content .whatsapp-float,
.whatsapp-float {
    bottom: max(16px, env(safe-area-inset-bottom));
}

.site-settings-grid-v11 {
    grid-template-columns: minmax(280px, .7fr) minmax(480px, 1.4fr);
}

.upload-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.upload-row .button {
    min-height: 38px;
    font-size: 12px;
}

.upload-status {
    color: #aaa;
    font-size: 11px;
    font-weight: 800;
}

.upload-status.success { color: #65dc9b; }
.upload-status.error { color: #ff8585; }

.promo-image-preview {
    min-height: 130px;
    display: grid;
    place-items: center;
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(216, 179, 74, .3);
    border-radius: 9px;
    background: #030303;
}

.promo-image-preview img {
    width: min(100%, 560px);
    max-height: 150px;
    object-fit: contain;
}

.promo-image-settings.setting-disabled > *:not(.switch-row) {
    opacity: .42;
}

@media (max-width: 980px) {
    .track-selector-section {
        grid-template-columns: minmax(160px, auto) minmax(220px, 1fr);
    }

    .track-quick-list {
        grid-column: 1 / -1;
    }

    .public-page.has-track-selector .screen-grid {
        height: calc(100dvh - var(--topbar-height) - 118px);
    }
}

@media (max-width: 767px) {
    :root { --track-selector-height: auto; }

    .public-page.has-track-selector .screen-grid,
    .public-page:not(.has-track-selector) .screen-grid {
        height: auto;
        min-height: calc(100dvh - var(--topbar-height));
    }

    .track-selector-section {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 11px 9px;
    }

    .track-selector-copy {
        min-width: 0;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .track-selector-copy strong {
        font-size: 12px;
        white-space: normal;
    }

    .track-select { min-height: 46px; }

    .track-quick-list {
        grid-column: auto;
        margin: 0 -2px;
    }

    .bottom-promo-section {
        padding: 22px 14px 86px;
    }

    .bottom-promo-image {
        width: min(100%, 480px);
        max-height: 130px;
    }

    .bottom-promo-text {
        font-size: 18px;
        line-height: 1.25;
    }

    .site-settings-grid-v11 { grid-template-columns: 1fr; }
    .promo-image-preview { min-height: 105px; }
}
