body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111;
    color: #eee;
}

.page-wrapper {
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    background: #1b1b1b;
    padding: 20px 25px 40px 25px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.container.small {
    max-width: 400px;
}

.container.wide {
    max-width: 1100px;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.station-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #00aaff;
}

h1, h2 {
    margin-top: 10px;
    color: #00aaff;
}

p {
    line-height: 1.5;
}

.form-card {
    margin-top: 15px;
}

label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #111;
    color: #eee;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

button {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    background: #00aaff;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

button:hover {
    background: #0088cc;
}

.msg {
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
}

.msg.success {
    background: #144d1a;
    border: 1px solid #2da33a;
}

.msg.error {
    background: #4d1a1a;
    border: 1px solid #a32d2d;
}

.msg.info {
    background: #1a294d;
    border: 1px solid #2d5aa3;
}

.hint {
    font-size: 0.9em;
    color: #aaa;
}

.admin-link {
    margin-top: 20px;
    text-align: right;
}

a {
    color: #00aaff;
}

a:hover {
    text-decoration: underline;
}

.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9em;
}

.table th, .table td {
    border: 1px solid #333;
    padding: 6px 8px;
    vertical-align: top;
}

.table th {
    background: #222;
}

.inline-form {
    display: inline-block;
    margin-top: 5px;
}

.inline-form button {
    margin-top: 0;
    margin-left: 5px;
}

/* Radio Player */
.radioplayer-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 20px;
}

.radioplayer {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #222;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px #000;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radioplayer button#playBtn {
    background: #00aaff;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    font-size: 22px;
    cursor: pointer;
    color: #fff;
}

.radioplayer button#playBtn:hover {
    background: #0088cc;
}

/* Visualizer */
.visualizer {
    display: flex;
    gap: 3px;
    height: 24px;
    align-items: flex-end;
}

.visualizer .bar {
    width: 3px;
    height: 6px;
    background: #555;
    border-radius: 2px;
    opacity: 0.6;
}

.visualizer.active .bar {
    animation: bounce 0.6s infinite ease-in-out;
}

.visualizer.active .bar:nth-child(2) { animation-delay: 0.1s; }
.visualizer.active .bar:nth-child(3) { animation-delay: 0.2s; }
.visualizer.active .bar:nth-child(4) { animation-delay: 0.3s; }
.visualizer.active .bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 100% { height: 6px; }
    50% { height: 22px; }
}

.player-center {
    flex: 1;
    min-width: 0;
}

.stream-title {
    font-size: 1.05rem;
    font-weight: bold;
}

.stream-next {
    font-size: 0.9rem;
    color: #ccc;
}

.stream-listeners {
    font-size: 0.9rem;
    color: #ff5555;
}

.player-right {
    display: flex;
    justify-content: flex-end;
}

.cover-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.cover-placeholder.has-cover {
    background-size: cover;
    background-position: center;
    color: transparent;
}

/* MOBILE OPTIMIERUNG */
@media (max-width: 700px) {

    .container {
        margin: 0;
        padding: 15px;
        border-radius: 0;
        width: 100%;
    }

    .radioplayer {
        flex-direction: column;
        text-align: center;
        padding: 15px;
        gap: 12px;
    }

    .player-left {
        justify-content: center;
    }

    .player-right {
        justify-content: center;
        margin-top: 10px;
    }

    .radioplayer button#playBtn {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }

    .stream-title {
        font-size: 1.2rem;
        margin-top: 5px;
    }

    .stream-next,
    .stream-listeners {
        font-size: 1rem;
    }

    form.form-card input,
    form.form-card textarea {
        font-size: 1.1rem;
    }

    form.form-card button {
        width: 100%;
        padding: 14px;
        font-size: 1.3rem;
        margin-top: 20px;
    }

    .visualizer .bar {
        width: 5px;
        margin: 0 2px;
    }
}
