:root {
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at top, #23113d 0%, #08070c 55%, #030304 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.container,
.song-search-page,
.dashboard-page,
.live-queue-page {
    max-width: 620px;
    width: 100%;
}

.container {
    padding: 30px;
}

.bobble-andy-feature,
.bobble-andy-customer {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    border: 1px solid rgba(157, 92, 255, 0.34);
    background: linear-gradient(135deg, rgba(157, 92, 255, 0.14), rgba(255, 255, 255, 0.04));
    border-radius: 18px;
    overflow: hidden;
}

.bobble-andy-feature {
    max-width: 520px;
    margin: 22px auto 8px;
    padding: 0 16px 0 0;
}

.bobble-andy-crop {
    position: relative;
    flex: 0 0 156px;
    width: 156px;
    height: 190px;
    overflow: hidden;
    background: transparent;
}

.bobble-andy-crop img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bobble-andy-intro {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}

.bobble-andy-intro span,
.bobble-andy-customer span {
    color: #c8a7ff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.bobble-andy-intro strong {
    font-size: 1.35rem;
}

.bobble-andy-intro button {
    align-self: flex-start;
    margin-top: 4px;
}

.bobble-andy-customer {
    margin: 0 0 18px;
    padding-right: 12px;
}

.bobble-andy-customer .mini {
    flex-basis: 72px;
    width: 72px;
    height: 88px;
}

.bobble-andy-customer > div:nth-child(2) {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.andy-tutorial {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 22px;
    box-sizing: border-box;
    background: rgba(3, 2, 8, 0.86);
    backdrop-filter: blur(8px);
}

.andy-tutorial-stage {
    width: min(760px, 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
}

.tutorial-andy {
    flex-basis: 230px;
    width: 230px;
    height: 360px;
    border-radius: 24px 0 0 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.andy-speech-bubble {
    position: relative;
    width: min(470px, 100%);
    min-height: 230px;
    padding: 30px;
    box-sizing: border-box;
    border: 2px solid #9d5cff;
    border-radius: 26px 26px 26px 6px;
    background: #ffffff;
    color: #17121f;
    text-align: left;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.andy-speech-bubble::before {
    content: "";
    position: absolute;
    left: -24px;
    bottom: 28px;
    border-width: 15px 24px 15px 0;
    border-style: solid;
    border-color: transparent #9d5cff transparent transparent;
}

.andy-speech-bubble h2 {
    margin: 8px 42px 10px 0;
    color: #7135ca;
}

.andy-speech-bubble p {
    margin: 0 0 18px;
    color: #30283b;
    opacity: 1;
    line-height: 1.55;
}

.andy-step-count {
    color: #7a6e86 !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.andy-skip {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 11px;
    background: transparent;
    color: #5d5268;
    font-size: 0.9rem;
}

.andy-tutorial-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.andy-tutorial-actions .secondary-btn {
    color: #332a3c;
    background: #ece8f1;
}

body.tutorial-open {
    overflow: hidden;
}

.song-search-card,
.live-queue-card {
    background: rgba(12, 12, 16, 0.92);
    border: 1px solid rgba(157, 92, 255, 0.25);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.song-search-header h2 {
    margin: 0;
}

h1 {
    font-size: clamp(2.3rem, 6vw, 3.6rem);
    color: #9d5cff;
    margin-bottom: 8px;
}

h2 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    margin-bottom: 20px;
}

button {
    background: linear-gradient(135deg, #9d5cff 0%, #7f3cff 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(157, 92, 255, 0.22);
}
button:disabled {
    cursor: wait;
    opacity: 0.75;
    transform: none;
    box-shadow: none;
}

.request-btn.loading {
    opacity: 0.75;
    pointer-events: none;
}

.request-btn.loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: songrush-spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes songrush-spin {
    to {
        transform: rotate(360deg);
    }
}

.landing-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-actions button {
    width: 100%;
}

.audience-entry {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid rgba(157, 92, 255, 0.4);
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        rgba(157, 92, 255, 0.16),
        rgba(255, 255, 255, 0.04)
    );
}

.audience-entry #joinButton {
    width: 100%;
    min-height: 58px;
    font-size: 20px;
    font-weight: 700;
}

.audience-entry .audience-secondary-btn {
    width: 100%;
    margin-top: 12px;
}

.audience-entry .beer-btn {
    border: 1px solid rgba(255, 204, 102, 0.42);
    background: linear-gradient(
        135deg,
        rgba(255, 180, 70, 0.22),
        rgba(255, 255, 255, 0.07)
    );
}

.audience-entry .beer-btn:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 180, 70, 0.34),
        rgba(255, 255, 255, 0.12)
    );
}

.shout-out-modal-content {
    text-align: left;
}

.shout-out-modal-content label {
    display: block;
    margin: 12px 0 7px;
    font-weight: 700;
}

.shout-out-modal-content textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: #1b1b1b;
    color: white;
    font: inherit;
}

.shout-out-help {
    margin: 0 0 16px;
}

.shout-out-meta {
    min-height: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 7px 0 14px;
    font-size: 14px;
}

#shoutOutError {
    color: #ff9b9b;
    font-weight: 700;
}

#shoutOutCount {
    margin-left: auto;
    white-space: nowrap;
    opacity: 0.75;
}

.shout-out-modal-content button {
    width: 100%;
    margin-top: 10px;
}

.access-pin-content {
    max-width: 380px;
    text-align: left;
}

.access-pin-content label {
    display: block;
    margin: 12px 0 7px;
    font-weight: 700;
}

.access-pin-content input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.35em;
}

.access-pin-content button {
    width: 100%;
    margin-top: 10px;
}

.access-pin-error {
    min-height: 22px;
    margin: 0;
    color: #ff9b9b;
    font-size: 14px;
    font-weight: 700;
}

.audience-entry p {
    margin: 12px 0 0;
    font-size: 14px;
}

.performer-entry {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.entry-label {
    margin-bottom: 12px;
    color: #c8a7ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.small-btn {
    padding: 10px 14px;
    font-size: 16px;
}

p {
    opacity: 0.82;
    margin-top: 24px;
}

.hidden {
    display: none !important;
}

.song-search-page[hidden] {
    display: none;
}

input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #1b1b1b;
    color: white;
    font-size: 18px;
    margin-bottom: 18px;
}

.song-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.song-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    flex: 1;
}

.song-title {
    font-size: 18px;
    font-weight: 600;
}

.song-artist,
.song-genre {
    font-size: 14px;
    opacity: 0.8;
}

.request-btn {
    padding: 12px 18px;
    font-size: 16px;
    white-space: nowrap;
}

.request-btn.requested {
    background: #2f8f58;
}

.empty-state {
    margin: 0;
    padding: 16px;
    opacity: 0.8;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
}

.modal-card,
.success-card {
    width: min(100%, 480px);
    background: #171717;
    border: 1px solid rgba(157, 92, 255, 0.28);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.modal-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #9d5cff;
}

.modal-artist {
    margin: 0 0 20px;
    font-size: 16px;
    opacity: 0.85;
}

.modal-subtitle {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.modal-option,
.secondary-btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
}

.modal-option {
    background: rgba(157, 92, 255, 0.16);
    color: white;
    text-align: left;
}

.modal-option span {
    display: inline-block;
    margin-top: 4px;
    font-weight: 700;
    color: #d8c4ff;
}

.success-screen {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
}

.success-card {
    text-align: center;
}

.success-label {
    margin: 10px 0 6px;
    font-size: 16px;
    opacity: 0.85;
}

.success-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.success-message,
.success-footer {
    margin: 0 0 16px;
}

.success-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 16px;
}

.session-summary {
    margin: 0 0 18px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(157, 92, 255, 0.18);
    text-align: left;
}

.session-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(47, 143, 88, 0.24);
    color: #b7ffd4;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-pill.closed {
    background: rgba(179, 63, 63, 0.24);
    color: #ffd3d3;
}

.status-pill.live {
    background: rgba(47, 143, 88, 0.24);
    color: #b7ffd4;
}

.session-code {
    font-size: 0.95rem;
    color: #d8c4ff;
    font-weight: 700;
}

.session-show-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.session-performer,
.session-venue,
.session-meta {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 3px;
}

.live-queue-card {
    text-align: left;
}

.brand-block {
    margin-bottom: 18px;
}

.eyebrow {
    margin: 2px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.8rem;
    opacity: 0.75;
}

.queue-panel + .queue-panel {
    margin-top: 16px;
}

.section-label {
    margin-bottom: 10px;
    color: #c8a7ff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.now-playing-card,
.request-highlight {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(157, 92, 255, 0.2), rgba(255, 255, 255, 0.05));
}

.music-badge {
    font-size: 1.7rem;
}

.now-playing-card h2,
.request-highlight h3 {
    margin: 0 0 4px;
    font-size: 1.25rem;
}

.now-playing-card p {
    margin: 0;
}

.up-next-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.up-next-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.up-next-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(157, 92, 255, 0.24);
    color: #e7d7ff;
    font-weight: 700;
}

.up-next-title {
    font-weight: 700;
}

.up-next-artist {
    margin-top: 2px;
    opacity: 0.72;
    font-size: 0.95rem;
}

.request-stat {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 0;
    font-size: 0.95rem;
}

.stat-label {
    opacity: 0.75;
}

.stat-value {
    font-weight: 700;
    color: white;
}

.live-queue-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.dashboard-card {
    text-align: left;
}

.backend-warning {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 198, 107, 0.16);
    border: 1px solid rgba(255, 198, 107, 0.35);
    color: #ffd89b;
    font-size: 0.95rem;
}

.dashboard-session-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(157, 92, 255, 0.18);
    margin-bottom: 16px;
}

.setlist-manager {
    margin: 20px 0;
    padding: 18px;
    border: 1px solid rgba(157, 92, 255, 0.25);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

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

.setlist-manager-header h3,
.setlist-manager-header .section-label {
    margin: 0;
}

.setlist-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.setlist-actions button {
    width: 100%;
    padding: 11px 12px;
    font-size: 14px;
}

.danger-btn {
    background: rgba(179, 63, 63, 0.86);
    color: white;
}

.danger-btn:hover {
    background: #c84b4b;
}

.add-song-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.add-song-form input {
    margin: 0;
}

.setlist-manager-status {
    min-height: 20px;
    margin: 12px 0 0;
    color: #b7ffd4;
    font-size: 14px;
}

.setlist-manager-list {
    max-height: 330px;
    margin-top: 10px;
    overflow-y: auto;
}

.setlist-manager-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.setlist-manager-item input {
    width: auto;
    margin: 3px 0 0;
}

.setlist-manager-song {
    min-width: 0;
}

.setlist-manager-song strong,
.setlist-manager-song span {
    display: block;
    overflow-wrap: anywhere;
}

.setlist-manager-song span {
    margin-top: 2px;
    opacity: 0.72;
    font-size: 13px;
}

@media (max-width: 520px) {
    .setlist-actions {
        grid-template-columns: 1fr;
    }
}

.dashboard-session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.dashboard-session-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.session-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.session-stats > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.dashboard-header h1 {
    margin-bottom: 0;
}

.toggle-btn {
    width: 100%;
    margin-bottom: 20px;
    background: #2f8f58;
}

.toggle-btn.closed {
    background: #b33f3f;
}

.queue-section h3 {
    margin: 0 0 12px;
    font-size: 20px;
    color: #9d5cff;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.queue-item {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px;
}

.queue-item-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.queue-item-meta {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.queue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.queue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.queue-actions button {
    flex: 0 0 auto;
    min-width: 88px;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 10px;
}

.queue-actions button:first-child {
    min-width: 78px;
}

@media (max-width: 600px) {
    .queue-actions button {
        flex: 1 1 calc(50% - 8px);
    }

    .queue-actions button:first-child {
        flex-basis: 100%;
    }
}
@media (min-width: 700px) {
    .live-queue-actions {
        flex-direction: row;
    }
}

@media (max-width: 600px) {
    .song-item {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        box-sizing: border-box;
    }

    .song-details {
        width: 100%;
        min-width: 0;
    }

    .request-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.25;
        text-align: center;
    }

    .bobble-andy-feature {
        gap: 10px;
    }

    .bobble-andy-feature .bobble-andy-crop {
        flex-basis: 110px;
        width: 110px;
        height: 155px;
    }

    .bobble-andy-intro strong {
        font-size: 1.1rem;
    }

    .bobble-andy-intro button {
        padding: 10px 12px;
        font-size: 0.88rem;
    }

    .andy-tutorial {
        padding: 12px;
    }

    .andy-tutorial-stage {
        position: relative;
        flex-direction: column;
        align-items: center;
    }

    .tutorial-andy {
        flex-basis: auto;
        width: 128px;
        height: 155px;
        margin: 0 0 -12px -52%;
        border-radius: 18px 18px 0 0;
    }

    .andy-speech-bubble {
        min-height: 250px;
        padding: 24px 20px 20px;
        border-radius: 22px;
    }

    .andy-speech-bubble::before {
        left: 68px;
        top: -22px;
        bottom: auto;
        transform: rotate(90deg);
    }
}
}
.now-playing-card {
  background: #1f1f26;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 18px;
  padding: 20px;
  margin: 20px 0;
}

.now-playing-card .eyebrow {
  color: #a855f7;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

#now-playing-title {
  margin: 0;
  color: white;
}

#now-playing-artist {
  margin-top: 6px;
  color: #bdbdbd;
}
/* Sprint 7.2 — Customer song list polish */

.song-search-card {
    width: 100%;
    box-sizing: border-box;
}

.song-list {
    width: 100%;
    box-sizing: border-box;
    padding: 2px 6px 2px 2px;
    scrollbar-gutter: stable;
}

.song-item {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(157, 92, 255, 0.3);
}

.song-details {
    min-width: 0;
}

.song-title,
.song-artist,
.song-genre {
    overflow-wrap: anywhere;
}

.request-btn {
    flex: 0 0 190px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
    text-align: center;
}

button:disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.request-btn:disabled {
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    .song-search-card {
        padding: 18px;
        border-radius: 18px;
    }

    .song-search-header {
        align-items: flex-start;
    }

    .song-list {
        gap: 10px;
        padding-right: 2px;
    }

    .song-item {
        padding: 14px;
    }

    .request-btn {
        flex-basis: auto;
        width: 100%;
        min-height: 50px;
    }
}
/* ---------- TV Display ---------- */

#tvDisplayPage {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-width: 0;
    overflow-x: hidden;
}

#tvDisplayPage .live-queue-card {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 48px;
    box-sizing: border-box;
    overflow: hidden;
}

#tvNormalDisplay {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

#tvDisplayPage .now-playing-card {
    justify-content: center;
    text-align: center;
}

#tvDisplayPage .now-playing-card > div:last-child {
    min-width: 0;
    max-width: 100%;
}

#backFromTvDisplayBtn {
    position: absolute;
    top: 24px;
    left: 24px;
    width: auto;
    padding: 10px 18px;
    z-index: 1000;
}
#tvDisplayPage h1 {
    font-size: 4rem;
    margin-bottom: 28px;
}

#tvDisplayPage .section-label {
    font-size: 1.2rem;
    letter-spacing: 0.25em;
    margin-top: 36px;
    margin-bottom: 18px;
}

#tvNowPlayingTitle {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    max-width: 100%;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

#tvNowPlayingArtist {
    font-size: 2rem;
    color: rgba(255,255,255,0.8);
    margin-top: 10px;
}

#tvQueueList {
    list-style: none;
    width: 100%;
    margin: 30px 0;
    padding: 0;
    text-align: center;
}

#tvQueueList li {
    font-size: 2rem;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow-wrap: anywhere;
}

#tvQrCode {
    width: min(100%, 340px);
    height: auto;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
}

#tvQrCode img {
    display: block;
    width: min(100%, 300px);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
}

#tvQrCode p {
    max-width: 300px;
    margin: 14px auto 0;
    text-align: center;
}

#tvQrCode p + p {
    margin-top: 6px;
    opacity: 0.75;
}

@media (max-width: 700px) {
    #tvDisplayPage .live-queue-card {
        padding: 72px 14px 28px;
    }

    #tvDisplayPage h1 {
        font-size: clamp(2.25rem, 11vw, 3.25rem);
        line-height: 1;
        overflow-wrap: anywhere;
    }

    #tvDisplayPage .section-label {
        font-size: 1rem;
        letter-spacing: 0.18em;
    }

    #tvDisplayPage .now-playing-card {
        flex-direction: column;
        gap: 10px;
        padding: 20px 14px;
    }

    #tvNowPlayingTitle {
        font-size: clamp(1.65rem, 8vw, 2.25rem);
    }

    #tvNowPlayingArtist {
        font-size: clamp(1.15rem, 5.5vw, 1.6rem);
    }

    #tvQueueList li {
        font-size: clamp(1.2rem, 5.5vw, 1.6rem);
    }
}
/* ---------- Bar Rush TV ---------- */

.tv-bar-rush-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    text-align: center;
    animation: barRushPulse 1.2s ease-in-out infinite alternate;
}

.tv-bar-rush-icon {
    font-size: 7rem;
    margin-bottom: 20px;
}

.tv-bar-rush-label {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.35rem;
    color: #ffd54a;
    margin-bottom: 20px;
}

#tvBarRushOffer {
    font-size: clamp(3rem, 7vw, 6rem);
    color: #ffffff;
    margin: 0 0 24px;
}

#tvBarRushCountdown {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffcc66;
    margin: 0;
}

@keyframes barRushPulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.03);
    }
}
