body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
                 "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    overflow-x: hidden;
    overflow-y: hidden;
}

.song-title-wrapper {
  position: relative;
  overflow: hidden;
  height: 2.2em;
  flex-grow: 1;
}
.song-title {
  position: absolute;
  white-space: nowrap;
  animation: scroll-left linear infinite;
  font-size: 1.2em;
  color: #fff;
}
@keyframes scroll-left {
  0% { left: 100%; }
  100% { left: -100%; }
}

#section-2 .song-title-wrapper {
    width: 100% !important;
}

.motd-wrapper {
    position: relative;
    overflow: hidden;
    height: 1.5em;
    background-color: #1a1a1a;
    border-radius: 5px;
    padding: 0 5px;
    flex-grow: 1;
    margin-left: 15px;
    display: flex;
    align-items: center;
}
.motd-text {
    position: absolute;
    white-space: nowrap;
    font-size: 1em;
    color: #ffcc00;
    animation: motd-scroll 15s linear infinite;
}
@keyframes motd-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

#chat-box {
    height: calc(100vh - 420px);
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
}

.row {
    display: flex;
}

.col-md-2 .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#user-list {
    flex-grow: 1;
    overflow-y: auto;
}

.dj-image-live {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0dcaf0;
}

#section-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.buttons-container {
    display: flex;             /* Aktiviert das Flex-Layout */
    flex-direction: row;       /* Sorgt dafür, dass Elemente nebeneinander stehen */
    flex-wrap: nowrap;         /* WICHTIG: Verhindert, dass die Buttons umbrechen */
    justify-content: flex-end; /* Ordnet die Buttons am rechten Rand an */
    align-items: center;       /* Zentriert die Buttons vertikal (falls sie unterschiedliche Höhen hätten) */
    gap: 10px;                 /* Fügt 10px Abstand zwischen den Buttons hinzu */
    width: 100%;               /* Sorgt dafür, dass der Container die volle Breite nutzt */
}

/* Optional: Korrigiert das Verhalten des Logout-Formulars innerhalb von Flexbox */
.buttons-container form {
    /* Wichtig: Stellt sicher, dass das Formular nur so breit ist wie sein Inhalt */
    width: auto; 
}

#section-3 > * {
    height: fit-content;
}

#section-3 form {
    width: auto !important;
}

.row.mb-3.align-items-stretch {
    min-height: 150px;
}

#section-2 #radio-player {
    width: 225px;
}

.moderator-status-wrapper {
    text-align: center;
}
.moderator-label {
    font-size: 1.3em;
    font-weight: bold;
    color: #fff;
}
.moderator-name {
    font-size: 1.5em;
    font-weight: 900;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

#section-1,
#section-2,
#section-3 {
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#chat-box {
    background-color: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 15px;
}

.col-md-2 .card {
    background-color: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.container.d-flex.justify-content-center.align-items-center.vh-100 .card {
    background-color: rgba(30, 30, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.modal-content.card,
.nav-tabs,
.tab-content {
    background-color: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.watermark {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 5px 0;
    font-size: 0.9em;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.4);
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.watermark a {
    color: inherit;
    text-decoration: none;
}
.watermark a:hover {
    text-decoration: underline;
    color: rgba(255, 255, 255, 0.6);
}

.smileys-container {
    max-height: 400px;
    overflow-y: auto;
}

.chat-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1.4;
    padding-left: 5px;
}
.chat-line .chat-smiley,
.chat-line .chat-custom-img {
    margin: 0 !important;
    padding: 0 1px !important;
    line-height: 1 !important;
    height: auto !important;
    display: inline-block !important;
}

.chat-line strong {
    margin-right: 2px;
}

.chat-line .message-content-wrapper {
    font-size: 30px !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit;
}

.chat-line .chat-text-content {
    font-size: 14px !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.chat-line .chat-text-content {
    font-size: 22px !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.chat-line .chat-text-content span,
.chat-line .chat-text-content span:not([class]) {
    font-size: 14px !important;
}
#smilesModal .tab-content .smileys-container img,
#smilesModal .tab-content img.p-1 {
    width: 30% !important;
    height: 30% !important;
    max-width: 30% !important;
    max-height: 30% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    object-fit: contain;
}
#radio-player {
    position: relative;
    z-index: 1000; /* Sehr hoher Wert */
}
#current-time-display {
        font-size: 1.5em;
        font-weight: bold;
        color: #ffc107; /* Bootstrap yellow/warning color */
        margin-bottom: 10px;
        display: block; /* Stellt sicher, dass es in einer eigenen Zeile steht */
    }