:root {
    --bg-color: #050811;
    --container-bg: rgba(11, 24, 41, 0.35); /* Deine perfektionierte 35% Deckkraft */
    --accent-color: #0088cc;
    --accent-glow: rgba(0, 136, 204, 0.4);
    --text-color: #ffffff;
    --player-width: 1000px; 
}

/* GLOBALER BACKGROUND-FIX FÜR ALLE SEITEN */
html, body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

/* --- HAUPT-DASHBOARD (index.php) --- */
body.dashboard-body {
    background-image: url('gb.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.dashboard-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr; /* Links Menü (250px), rechts Inhalt */
    width: 100%;
    height: 100%;
}

.sidebar {
    background-color: rgba(6, 11, 23, 0); /* Deine gewünschten 0% Deckkraft */
    border-right: 1px solid rgba(0, 136, 204, 0.3);
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    z-index: 20;
    height: 100%;
}

.sidebar-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9ca3af;
    margin-bottom: 25px;
    padding-left: 10px;
    font-weight: bold;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    background: rgba(255, 255, 255, 0.02);
}

.menu-item:hover {
    background: rgba(0, 136, 204, 0.1);
    color: var(--accent-color);
    padding-left: 20px;
}

.menu-item.active {
    background: rgba(0, 136, 204, 0.2);
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    font-weight: bold;
    text-shadow: 0 0 8px var(--accent-glow);
}

.content-area {
    width: 100%;
    height: 100%;
}

.main-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

/* --- INHALTS-SEITEN (player_content.php, roguecompany.php etc.) --- */
body.content-body {
    background-image: url('gb.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 20px 10px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    overflow: hidden;
}

/* OBERER BANNER-BEREICH */
.fixed-header-block {
    position: sticky;
    top: 0;
    width: var(--player-width);
    max-width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.image-container img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: fill; 
    border: 1px solid rgba(0, 136, 204, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.1);
}

/* STEUERUNGSELEMENTE DES PLAYERS */
.controls-container {
    background-color: var(--container-bg);
    border: 1px solid rgba(0, 136, 204, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 136, 204, 0.15);
    width: 100%; 
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.current-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-glow);
    margin-bottom: 15px;
    height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

audio {
    width: 100%;
    margin-bottom: 15px;
}

audio::-webkit-media-controls-panel {
    background-color: #111827;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: #ffffff;
}

.search-input {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    background-color: #111827;
    border: 1px dashed rgba(0, 136, 204, 0.4);
    color: #ffffff;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.suno-info-text {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin-top: 5px;
}

.suno-info-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: text-shadow 0.2s;
}

.suno-info-text a:hover {
    text-shadow: 0 0 8px var(--accent-glow);
    text-decoration: underline;
}

/* SCROLL-BOX FÜR DIE MUSIK-TABELLE */
.table-scroll-container {
    width: var(--player-width);
    max-width: 100%;
    flex-grow: 1;
    margin-bottom: 20px;
    overflow-y: auto;
    overflow-x: hidden; 
    background-color: var(--container-bg);
    border: 1px solid rgba(0, 136, 204, 0.3);
    border-radius: 12px;
    box-sizing: border-box;
}

.table-scroll-container::-webkit-scrollbar,
.gaming-scroll-container::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.table-scroll-container::-webkit-scrollbar-track,
.gaming-scroll-container::-webkit-scrollbar-track {
    background: rgba(11, 24, 41, 0.1);
    border-radius: 10px;
}

.table-scroll-container::-webkit-scrollbar-thumb,
.gaming-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0, 136, 204, 0.4);
    border-radius: 10px;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover,
.gaming-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 136, 204, 0.8);
}

/* DIE SCHICKE MUSIK-TABELLE */
table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    box-sizing: border-box;
}

tr {
    cursor: pointer;
}

tr:hover td {
    background-color: rgba(0, 136, 204, 0.08) !important;
}

td {
    height: 40px;
    border-bottom: 1px solid rgba(0, 136, 204, 0.15);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    box-sizing: border-box;
}

td.title-cell {
    padding-left: 15px;
}

td.disable-btn {
    width: 50px;
    color: var(--accent-color); 
    text-align: center;
    font-weight: bold;
    user-select: none;
}

tr:first-child td {
    border-top: none;
}

.music-link {
    color: #ffffff;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 38px;
}

tr:hover td.title-cell .music-link {
    color: var(--accent-color);
}

.playing td {
    background-color: rgba(0, 136, 204, 0.15) !important;
    font-weight: bold;
}

.playing td.title-cell .music-link {
    color: var(--accent-color) !important;
    text-shadow: 0 0 6px var(--accent-glow);
}

.disabled-song td {
    opacity: 0.2;
}

.disabled-song td.title-cell {
    text-decoration: line-through;
    color: #ffffff !important;
}

.disabled-song .disable-btn {
    color: #ff3333 !important; 
    opacity: 1 !important;
}

.info-msg {
    width: var(--player-width);
    max-width: 100%;
    text-align: center;
    font-size: 16px;
    background-color: var(--container-bg);
    border: 1px solid rgba(0, 136, 204, 0.3);
    padding: 20px;
    border-radius: 12px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* --- REINE TEXT-BOX FÜR DIE GAMING SEITEN (Rogue & Diablo) --- */
.gaming-scroll-container {
    width: var(--player-width);
    max-width: 100%;
    flex-grow: 1;
    margin-bottom: 20px;
    overflow-y: auto;
    overflow-x: hidden; 
    background-color: var(--container-bg);
    border: 1px solid rgba(0, 136, 204, 0.3);
    border-radius: 12px;
    box-sizing: border-box;
}

.gaming-text-box {
    padding: 25px; 
    color: #ffffff;
    text-align: left;
}
