/* DCT Broadcast - Presenter-style production workspace */

#production-shell {
    max-width: 1780px;
}

#production-preview-panel {
    align-self: start;
}


#production-layout.is-lyrics-mode {
    grid-template-columns: minmax(0, 1.75fr) minmax(340px, .65fr);
    align-items: start;
}

#production-layout.is-lyrics-mode #production-control-panel {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#production-layout.is-lyrics-mode #overlay-form {
    padding: 0;
}

#production-layout.is-lyrics-mode #generic-control-heading,
#production-layout.is-lyrics-mode #graphic-type-field,
#production-layout.is-lyrics-mode #design-field,
#production-layout.is-lyrics-mode #standard-preset-section,
#production-layout.is-lyrics-mode #control-guidance,
#production-layout.is-lyrics-mode #display-duration-field,
#production-layout.is-lyrics-mode #form-action-row,
#production-layout.is-lyrics-mode #form-success {
    display: none !important;
}

#production-layout.is-lyrics-mode #form-error {
    margin-top: 12px;
    border-color: #7f1d1d;
    background: #2a1114;
    color: #fecaca;
}

#production-layout.is-lyrics-mode #production-preview-panel {
    top: 12px;
}

#production-layout.is-lyrics-mode #live-preview-card,
#production-layout.is-lyrics-mode #current-display-card,
#production-layout.is-lyrics-mode #obs-setup-card {
    border-color: #2f2f2f;
    background: #191919;
    color: #f8fafc;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
}

#production-layout.is-lyrics-mode #live-preview-card > div:first-child {
    border-color: #333;
    background: #202020;
}

#production-layout.is-lyrics-mode #live-preview-card h2,
#production-layout.is-lyrics-mode #current-display-card #current-type,
#production-layout.is-lyrics-mode #current-display-card #current-design {
    color: #fff !important;
}

#production-layout.is-lyrics-mode #live-preview-card p,
#production-layout.is-lyrics-mode #current-display-card p,
#production-layout.is-lyrics-mode #obs-setup-card p {
    color: #a3a3a3;
}

#production-layout.is-lyrics-mode #live-preview-card > div:last-child {
    background: #101010;
}

#production-layout.is-lyrics-mode #current-content {
    color: #9ca3af !important;
}

#production-layout.is-lyrics-mode #obs-setup-card code {
    border: 1px solid #333;
    background: #111;
    color: #d4d4d8;
}



@media (min-width: 1280px) {
    #production-preview-panel {
        position: sticky;
        top: 18px;
    }

    #production-layout.is-lyrics-mode {
        grid-template-columns: minmax(0, 1fr) 390px;
    }
}

.dct-lyrics-hub {
    overflow: hidden;
    border: 1px solid #313131;
    border-radius: 16px;
    background: #1d1d1d;
    color: #f8fafc;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
}

.dct-lyrics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border-bottom: 1px solid #343434;
    background: #181818;
}

.dct-lyrics-brand {
    min-width: 0;
}

.dct-lyrics-kicker {
    margin: 0;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dct-lyrics-title {
    margin: 3px 0 0;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.dct-lyrics-subtitle {
    margin: 3px 0 0;
    color: #a3a3a3;
    font-size: 12px;
    line-height: 1.45;
}

.dct-lyrics-source {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #3f3f46;
    border-radius: 999px;
    background: #262626;
    padding: 6px 10px;
    color: #e5e7eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dct-lyrics-source::before {
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}

.dct-lyrics-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dct-presenter-exit {
    min-height: 32px;
    border: 1px solid #474747;
    border-radius: 6px;
    background: #2b2b2b;
    padding: 0 10px;
    color: #d4d4d8;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.dct-presenter-exit:hover {
    border-color: #737373;
    background: #353535;
    color: #fff;
}

.dct-lyrics-workspace {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 700px;
}

.dct-song-library {
    min-width: 0;
    border-right: 1px solid #333;
    background: #171717;
}

.dct-song-search {
    padding: 14px;
    border-bottom: 1px solid #303030;
}

.dct-song-search-label {
    display: block;
    margin-bottom: 7px;
    color: #d4d4d8;
    font-size: 11px;
    font-weight: 800;
}

.dct-song-search-row {
    display: flex;
    gap: 8px;
}

.dct-song-search-input {
    min-width: 0;
    width: 100%;
    height: 40px;
    border: 1px solid #3f3f46;
    border-radius: 7px;
    outline: none;
    background: #222;
    padding: 0 11px;
    color: #fff;
    font: inherit;
    font-size: 12px;
}

.dct-song-search-input::placeholder {
    color: #737373;
}

.dct-song-search-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .12);
}

.dct-song-search-button {
    flex: none;
    border: 1px solid #3f3f46;
    border-radius: 7px;
    background: #2d2d2d;
    padding: 0 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.dct-song-search-button:hover {
    background: #3a3a3a;
}

#lyrics-search-status {
    margin: 10px 14px 0 !important;
    border-radius: 7px !important;
    padding: 9px 10px !important;
    font-size: 11px !important;
}

#lyrics-search-status.border-emerald-200 {
    border-color: rgba(34, 197, 94, .28) !important;
    background: rgba(34, 197, 94, .09) !important;
    color: #86efac !important;
}

#lyrics-search-status.border-red-200 {
    border-color: rgba(239, 68, 68, .28) !important;
    background: rgba(239, 68, 68, .09) !important;
    color: #fca5a5 !important;
}

.dct-song-list {
    max-height: 628px;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: #525252 #171717;
}

.lyrics-library-item {
    width: 100%;
    display: block;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    padding: 9px 10px;
    color: #e5e7eb;
    text-align: left;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
}

.lyrics-library-item + .lyrics-library-item {
    margin-top: 3px;
}

.lyrics-library-item:hover {
    border-color: #3f3f46;
    background: #242424;
}

.lyrics-library-item.is-loaded {
    border-color: rgba(34, 197, 94, .72);
    background: rgba(34, 197, 94, .10);
}

.lyrics-library-title {
    overflow: hidden;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lyrics-library-meta {
    margin-top: 3px;
    color: #737373;
    font-size: 10px;
}

.dct-lyrics-deck {
    min-width: 0;
    background: #202020;
}

.dct-presenter-panel {
    min-height: 700px;
}


.dct-presenter-empty {
    min-height: 650px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 40px;
    color: #737373;
    text-align: center;
}

.dct-presenter-empty.hidden {
    display: none;
}

.dct-presenter-empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border: 1px solid #3f3f46;
    border-radius: 14px;
    background: #292929;
    color: #d4d4d8;
    font-size: 30px;
}

.dct-presenter-empty h4 {
    margin: 0;
    color: #e5e7eb;
    font-size: 16px;
    font-weight: 800;
}

.dct-presenter-empty p {
    max-width: 340px;
    margin: 7px auto 0;
    color: #737373;
    font-size: 11px;
    line-height: 1.6;
}

.dct-presenter-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 56px;
    padding: 10px 12px;
    border-bottom: 1px solid #353535;
    background: #262626;
}

.dct-presenter-song-label {
    margin: 0;
    color: #9ca3af;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dct-presenter-song-title {
    max-width: 650px;
    overflow: hidden;
    margin: 2px 0 0;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dct-presenter-statuses {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: none;
}

.dct-presenter-translation-status {
    border: 1px solid rgba(197, 164, 90, .42);
    border-radius: 999px;
    background: rgba(197, 164, 90, .10);
    padding: 5px 8px;
    color: #e8d6a7;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dct-presenter-position {
    flex: none;
    border-radius: 5px;
    background: #333;
    padding: 5px 8px;
    color: #d4d4d8;
    font-size: 10px;
    font-weight: 800;
}

.dct-presenter-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 1px solid #343434;
    background: #1b1b1b;
}

.dct-presenter-control {
    min-height: 38px;
    border: 1px solid #424242;
    border-radius: 6px;
    background: #2c2c2c;
    padding: 0 14px;
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.dct-presenter-control:hover {
    background: #393939;
}

.dct-presenter-control.is-live {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}

.dct-presenter-control.is-live:hover {
    background: #15803d;
}

.dct-presenter-control.is-hide {
    border-color: #6b2025;
    background: #4b1519;
    color: #fecaca;
}

.dct-presenter-control.is-hide:hover {
    background: #5a1014;
    color: #fff;
}

.dct-presenter-cue {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-bottom: 1px solid #333;
    background: #1d1d1d;
    color: #e5e7eb;
    font-size: 11px;
}

.dct-presenter-cue-prefix {
    color: #c5a45a;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dct-presenter-cue strong {
    overflow: hidden;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dct-current-slide-wrap {
    padding: 14px;
    border-bottom: 1px solid #333;
}

.dct-current-slide-label {
    margin-bottom: 8px;
    color: #a3a3a3;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.dct-current-slide {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #404040;
    border-radius: 8px;
    background: #050505;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
}

.dct-current-slide::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 34%;
    content: "";
    background:
        linear-gradient(180deg, rgba(35, 34, 31, .93), rgba(20, 20, 19, .98)),
        repeating-linear-gradient(
            105deg,
            rgba(255, 255, 255, .025) 0 2px,
            transparent 2px 13px
        );
}

.dct-current-slide-copy {
    position: absolute;
    z-index: 2;
    right: 5%;
    bottom: 4.5%;
    left: 5%;
    max-height: 27%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-size: clamp(18px, 2.15vw, 32px);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 2px 3px #000, 0 0 9px rgba(0, 0, 0, .75);
    white-space: pre-line;
}

.dct-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 8px;
}

.dct-section-heading h5 {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.dct-section-heading p {
    margin: 3px 0 0;
    color: #737373;
    font-size: 10px;
}

.dct-slide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-height: 548px;
    overflow-y: auto;
    padding: 0 12px 12px;
    scrollbar-width: thin;
    scrollbar-color: #525252 #202020;
}

.dct-slide-card {
    min-width: 0;
    overflow: hidden;
    border: 2px solid #363636;
    border-radius: 7px;
    background: #111;
    padding: 0;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 120ms ease, transform 120ms ease;
}

.dct-slide-card:hover {
    border-color: #737373;
    transform: translateY(-1px);
}

.dct-slide-card.is-selected {
    border-color: #c5a45a;
    box-shadow: 0 0 0 1px rgba(197, 164, 90, .22);
}

.dct-slide-card.is-live {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, .28);
}

.dct-slide-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    padding: 0 9px;
    background: #292929;
    color: #e5e7eb;
    font-size: 10px;
    font-weight: 800;
}

.dct-slide-card.is-selected .dct-slide-card-header {
    background: #4a4027;
    color: #fff;
}

.dct-slide-card.is-live .dct-slide-card-header {
    background: #16a34a;
    color: #fff;
}

.dct-slide-screen {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #050505;
}

.dct-slide-screen::before {
    position: absolute;
    z-index: 1;
    right: 8%;
    bottom: 7%;
    left: 8%;
    height: 58%;
    content: "";
    border-radius: 9px;
    background: #5C9083;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .28);
}

.dct-slide-screen::after {
    position: absolute;
    z-index: 2;
    top: 34%;
    right: 18%;
    left: 18%;
    height: 12%;
    content: "";
    border-radius: 999px;
    background: #353D30;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .22);
}

.dct-slide-copy {
    position: absolute;
    z-index: 2;
    right: 4%;
    left: 4%;
    overflow: hidden;
    color: #fff;
    font-weight: 800;
    line-height: 1.08;
    text-align: center;
    text-shadow: 0 1px 2px #000, 0 0 5px rgba(0, 0, 0, .75);
    white-space: pre-line;
}

.dct-slide-copy-primary {
    z-index: 3;
    right: 13%;
    bottom: 11%;
    left: 13%;
    max-height: 43%;
    font-size: clamp(8px, .70vw, 12px);
}

.dct-slide-screen.has-translation .dct-slide-copy-primary {
    right: 13%;
    bottom: 31%;
    left: 13%;
    max-height: 25%;
    font-size: clamp(7px, .61vw, 11px);
}

.dct-slide-copy-translation {
    z-index: 3;
    right: 13%;
    bottom: 10%;
    left: 13%;
    max-height: 18%;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, .34);
    color: rgba(255, 255, 255, .92);
    font-size: clamp(6px, .53vw, 10px);
    font-weight: 700;
}

.dct-presenter-help {
    margin: 0 12px 12px;
    border: 1px solid #343434;
    border-radius: 7px;
    background: #181818;
    padding: 9px 11px;
    color: #8b8b8b;
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 1380px) {
    .dct-slide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    #production-layout.is-lyrics-mode {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .dct-lyrics-workspace {
        grid-template-columns: 250px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .dct-lyrics-workspace {
        grid-template-columns: 1fr;
    }

    .dct-song-library {
        border-right: 0;
        border-bottom: 1px solid #333;
    }

    .dct-song-list {
        max-height: 260px;
    }

    .dct-slide-grid {
        grid-template-columns: 1fr;
    }
}
