* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

body {
    background-color: #3e3e42;
    font-family: Arial, sans-serif;
    padding: 15px;
    display: flex;
    justify-content: center;
}

.player-container {
    background-color: #222222;
    border: 3px solid #111;
    width: 1260px;
    padding: 5px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.7);
}

/* PANEL SUPERIOR */
.top-panel {
    background-color: #2d2d30;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 12px;
    color: white;
}

.logo-area {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    line-height: 1;
}
.logo-snap { color: #8BE723; font-size: 24px; font-style: italic; font-family: 'Impact', sans-serif; }
.logo-sub { color: #aaa; font-size: 9px; letter-spacing: 0.5px; }

.display-screen {
    background-color: black;
    border: 2px solid #555;
    width: 260px;
    height: 65px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: Courier, monospace;
}
.display-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.track-name { color: #fff; font-size: 11px; width: 140px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-transform: uppercase;}
.timer { color: #00FF00; font-size: 22px; font-weight: bold; text-align: right;}

/* BARRA DE PROGRESO DE HARDWARE */
.progress-container {
    width: 100%;
    height: 6px;
    background: #151515;
    border: 1px solid #333;
    margin-top: auto;
    border-radius: 2px;
    overflow: hidden;
}
.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #009900 0%, #8BE723 100%);
    box-shadow: 0 0 6px #8BE723;
    transition: width 0.08s linear;
}

.vol-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
}
.vol-control input[type="range"] {
    width: 80px;
    accent-color: #8BE723;
}

.btn-alternate {
    background-color: #007a00;
    color: white;
    border: 1px solid #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 10px;
    cursor: pointer;
}

.fade-settings {
    font-size: 11px;
    display: grid;
    grid-template-columns: auto auto;
    gap: 4px;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 5px;
    margin-left: auto;
}
.btn-action {
    color: white;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid #555;
    border-radius: 4px;
    height: 45px;
    padding: 0 15px;
    cursor: pointer;
}
.btn-stop { background-color: #CC0000; }
.btn-fade { background-color: #990000; }
.btn-pause { background-color: #D49A00; font-size: 16px; }

/* BARRA DE TABS / DECKS */
.deck-bar {
    display: flex;
    background-color: #1e1e1e;
    margin-top: 5px;
    align-items: center;
    border: 1px solid #333;
}
.deck-tabs { display: flex; flex-grow: 1; overflow-x: auto; }
.tab-btn {
    min-width: 110px;
    background: linear-gradient(to bottom, #444, #2d2d2d);
    color: #DDD;
    border: 1px solid #111;
    padding: 10px 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.tab-btn.active { background: #000; color: #8BE723; }

.tab-btn input[type="text"] {
    background: #222;
    border: 1px solid #8BE723;
    color: #8BE723;
    font-size: 11px;
    font-weight: bold;
    width: 90px;
    text-align: center;
    outline: none;
    padding: 2px;
}

.btn-add-more { background-color: #2d2d30; color: #8BE723; border: 1px solid #111; font-size: 18px; font-weight: bold; padding: 4px 15px; cursor: pointer; }

/* WORKSPACE SPLIT */
.workspace { display: flex; gap: 6px; margin-top: 5px; }
.grid-wrapper { background-color: #2d2d30; padding: 10px; border: 1px solid #111; flex-grow: 1; }
.jingle-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }

/* REJILLA DE SONIDOS */
.jingle-btn {
    height: 72px;
    border-radius: 6px;
    border: 2px solid #111;
    color: #666;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
    overflow: hidden;
    padding: 6px;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 50%, #cccccc 55%, #aaaaaa 100%);
    position: relative;
}
.jingle-btn.drag-over { border: 2px dashed #8BE723 !important; background: #444 !important; }
.jingle-btn.loaded { color: #000; }
.jingle-btn.color-blue { background: linear-gradient(to bottom, #b3d9ff 0%, #3399ff 100%); }
.jingle-btn.color-green { background: linear-gradient(to bottom, #b3ffb3 0%, #2eb82e 100%); }
.jingle-btn.color-yellow { background: linear-gradient(to bottom, #ffffcc 0%, #cca300 100%); }
.jingle-btn.color-purple { background: linear-gradient(to bottom, #f2ccff 0%, #993399 100%); }
.jingle-btn.playing { background: linear-gradient(to bottom, #ff3333 0%, #cc0000 100%) !important; color: white !important; }
.jingle-btn .time-tag { font-size: 9px; margin-top: 4px; opacity: 0.8; }
.jingle-btn .hotkey-tag { position: absolute; top: 2px; left: 4px; font-size: 8px; color: #444; background: rgba(255,255,255,0.6); padding: 0 3px; border-radius: 3px; }
.jingle-btn.playing .hotkey-tag { color: #fff; background: rgba(0,0,0,0.4); }

.grid-controls { margin-top: 15px; display: flex; justify-content: center; }
.btn-add-grid { background-color: #444; color: #fff; border: 1px solid #555; padding: 8px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; }

/* HARDWARE ORBAN OPTIMOD RACK */
.master-rack {
    width: 280px;
    background-color: #161618;
    border: 2px solid #000;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #e0e0e0;
}
.rack-header {
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
}
.btn-bypass {
    width: 100%;
    padding: 8px;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid #555;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    background-color: #442222;
    color: #ff8888;
    transition: all 0.1s ease;
}
.btn-bypass.active {
    background-color: #00ffd5;
    color: #000;
    box-shadow: 0 0 12px #00ffd5;
    border-color: #fff;
}
.rack-plugin {
    background-color: #222224;
    border: 1px solid #3a3a3d;
    padding: 10px;
    border-radius: 4px;
}
.plugin-title { font-size: 10px; font-weight: bold; color: #ff9d00; margin-bottom: 8px; letter-spacing: 0.5px; }
.param-row { font-size: 10px; margin-bottom: 6px; }
.param-row label { display: block; margin-bottom: 2px; color: #ccc; }
.param-row input[type="range"] { width: 100%; accent-color: #ff9d00; }

.eq-container { display: flex; justify-content: space-around; padding: 6px 0; background-color: #111; border-radius: 4px; }
.eq-slider { display: flex; flex-direction: column; align-items: center; font-size: 9px; gap: 4px; }
.eq-slider input[type="range"] {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 15px;
    height: 65px;
    accent-color: #8BE723;
}
.eq-slider span { color: #aaa; font-weight: bold; }
.eq-slider small { color: #8BE723; }

/* MENÚ CONTEXTUAL */
.context-menu {
    position: absolute; background-color: #1e1e1e; border: 1px solid #444; padding: 12px; border-radius: 6px; color: white; font-size: 11px; box-shadow: 0px 4px 12px rgba(0,0,0,0.6); z-index: 1000; width: 210px;
}
.menu-title { font-weight: bold; color: #8BE723; margin-bottom: 8px; text-transform: uppercase; }
.menu-label { display: block; margin-bottom: 4px; margin-top: 6px; color: #aaa; }
.pointer { cursor: pointer; display: flex; align-items: center; gap: 4px;}
.color-palette { display: flex; gap: 6px; margin-top: 4px; }
.color-opt { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #fff; cursor: pointer; }
.color-opt.default { background: #ccc; }
.color-opt.blue { background: #3399ff; }
.color-opt.green { background: #2eb82e; }
.color-opt.yellow { background: #cca300; }
.color-opt.purple { background: #993399; }
hr { border: 0; border-top: 1px solid #333; margin: 8px 0; }
.context-menu button { display: block; width: 100%; padding: 6px; border: none; font-size: 11px; font-weight: bold; cursor: pointer; border-radius: 4px; text-align: left; margin-bottom: 4px; }
.btn-menu-primary { background-color: #333; color: #fff; }
.btn-menu-danger { background-color: #552222; color: #ff9999; }
.menu-row input[type="range"] { width: 100%; accent-color: #8BE723; }
.menu-row input[type="text"] { background: #333; border: 1px solid #555; color: white; padding: 3px; width: 100%; border-radius: 3px; }
.menu-row select { background: #333; color: white; border: 1px solid #555; padding: 4px; width: 100%; border-radius: 3px; }