@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: url('img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    line-height: 1.6;
}

/* Overlay für bessere Lesbarkeit - dunkler mit leichtem Blur */
body::before {
    content: '';
    position: fixed;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: url('img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: blur(3px);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Seitliche Tab-Leiste */
.side-tabs {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
}

.side-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(40, 25, 15, 0.95), rgba(25, 15, 10, 0.98));
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-left: none;
    border-radius: 0 15px 15px 0;
    color: #ccc;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.5);
}

.side-tab:hover {
    background: linear-gradient(135deg, rgba(60, 35, 20, 0.95), rgba(40, 25, 15, 0.98));
    border-color: #ff6b35;
    color: #fff;
    padding-left: 25px;
}

.side-tab.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 215, 0, 0.1));
    border-color: #ff6b35;
    color: #ffd700;
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-text {
    font-weight: bold;
    letter-spacing: 1px;
}

/* Mobile: Tabs unten */
@media (max-width: 768px) {
    .side-tabs {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        background: rgba(15, 10, 5, 0.98);
        padding: 10px;
        border-top: 2px solid rgba(255, 107, 53, 0.4);
    }
    
    .side-tab {
        border-radius: 10px;
        border: 2px solid rgba(255, 107, 53, 0.4);
        padding: 8px 12px;
        flex-direction: column;
        gap: 2px;
    }
    
    .side-tab .tab-text {
        font-size: 0.7rem;
    }
    
    .side-tab:hover {
        padding-left: 12px;
    }
}

/* Tab Content Bereiche */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Regeln Styling */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 107, 53, 0.05);
    border-left: 4px solid #ff6b35;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.rule-item:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(5px);
}

.rule-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.rule-text h3 {
    color: #ffd700;
    font-family: 'Cinzel', serif;
    margin-bottom: 8px;
}

.rule-text p {
    color: #ccc;
    line-height: 1.5;
}

/* Clips Styling */
.clips-upload-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.clips-upload-section h3 {
    color: #ffd700;
    font-family: 'Cinzel', serif;
    margin-bottom: 15px;
    text-align: center;
}

.clip-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.clip-input {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
}

.clip-input:focus {
    outline: none;
    border-color: #ff6b35;
}

.clips-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.3), transparent);
    margin: 30px 0;
}

.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.clip-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.clip-card:hover {
    border-color: #ff6b35;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.clip-card.death-clip {
    border-color: rgba(255, 50, 50, 0.5);
}

.clip-card.death-clip:hover {
    border-color: #ff3232;
    box-shadow: 0 10px 30px rgba(255, 50, 50, 0.3);
}

.clip-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 10;
}

.clip-badge.death-badge {
    background: rgba(255, 50, 50, 0.9);
    color: white;
}

.clip-embed {
    width: 100%;
    aspect-ratio: 16/9;
}

.clip-embed iframe {
    width: 100%;
    height: 100%;
}

.clip-link-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    background: rgba(145, 70, 255, 0.2);
    color: #9146FF;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background 0.2s;
}

.clip-link-fallback:hover {
    background: rgba(145, 70, 255, 0.3);
}

.clip-info {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clip-title {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 5px;
}

.clip-author {
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clip-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.clip-date {
    color: #888;
    font-size: 0.85rem;
}

/* Death entries in participant modal */
.death-entry {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.death-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 50, 50, 0.15);
    flex-wrap: wrap;
    gap: 10px;
}

.death-number {
    color: #ff6b6b;
    font-weight: bold;
}

.death-level {
    color: #ffd700;
    font-weight: bold;
}

.death-date {
    color: #888;
    font-size: 0.85rem;
}

.death-clip {
    padding: 10px;
}

.death-clip iframe {
    border-radius: 8px;
}

.death-clip-link {
    display: block;
    padding: 15px;
    text-align: center;
    color: #9146FF;
    text-decoration: none;
    transition: background 0.2s;
}

.death-clip-link:hover {
    background: rgba(145, 70, 255, 0.1);
}

/* Discord Login Button */
.discord-login-btn {
    background: linear-gradient(135deg, #5865F2, #4752C4) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
}

.discord-login-btn:hover {
    background: linear-gradient(135deg, #6875F5, #5865F2) !important;
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4) !important;
}

/* Discord Tab Link */
.discord-tab {
    text-decoration: none;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2), rgba(88, 101, 242, 0.1)) !important;
    border-color: rgba(88, 101, 242, 0.3) !important;
}

.discord-tab:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.4), rgba(88, 101, 242, 0.2)) !important;
    border-color: rgba(88, 101, 242, 0.5) !important;
}

/* Test-Streamer Admin UI */
.test-streamer-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.test-streamer-list {
    margin-top: 10px;
}

.test-streamer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.test-streamer-item span {
    color: #ffd700;
}

.test-streamer-remove {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.test-streamer-remove:hover {
    background: rgba(255, 107, 107, 0.4);
}

.settings-clear-btn {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.settings-clear-btn:hover {
    background: rgba(255, 107, 107, 0.3);
}

.settings-logout-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.settings-logout-btn:hover {
    background: rgba(255, 107, 107, 0.3);
}

/* Player Header */
.player-header {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1000;
}

.player-settings-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(88, 101, 242, 0.1));
    border: 1px solid rgba(88, 101, 242, 0.5);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.player-settings-btn:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.5), rgba(88, 101, 242, 0.2));
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.3);
}

.player-header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Admin Header */
.admin-header {
    position: fixed;
    top: 10px;
    right: 150px;
    z-index: 1000;
}

.admin-settings-btn {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 215, 0, 0.2));
    border: 1px solid rgba(255, 107, 53, 0.5);
    color: #ffd700;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.admin-settings-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.5), rgba(255, 215, 0, 0.3));
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

/* Player Modal */
.player-modal-content {
    max-width: 450px;
}

.player-char-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
}

.player-modal-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ff6b35;
}

.player-char-details h3 {
    color: #ffd700;
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.player-modal-race {
    color: #aaa;
    margin: 0;
}

.player-edit-row {
    display: flex;
    gap: 10px;
}

.player-edit-row .settings-input {
    flex: 1;
}

.player-death-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-death-form .settings-input {
    width: 100%;
}

/* Neues Stream Layout */
.main-stream-container {
    margin-bottom: 20px;
}

.main-stream-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px 10px 0 0;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-bottom: none;
}

.main-stream-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ff6b35;
}

.main-stream-info {
    flex: 1;
}

.main-stream-name {
    color: #ffd700;
    font-size: 1.2rem;
    margin: 0;
}

.main-stream-race {
    color: #aaa;
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}

.main-stream-live-badge {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
    color: #ff4444;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.main-stream-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 0 0 10px 10px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-top: none;
}

/* Streamer Thumbnails */
.streamer-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 15px 0;
}

.streamer-thumbnail {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.streamer-thumbnail img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.streamer-thumbnail:hover img {
    border-color: #ff6b35;
    transform: scale(1.1);
}

.streamer-thumbnail.active img {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.thumbnail-viewers {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #4ade80;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.thumbnail-name {
    display: block;
    color: #aaa;
    font-size: 0.75rem;
    margin-top: 5px;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.streamer-thumbnail.active .thumbnail-name {
    color: #ffd700;
}

.no-streams-message {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.no-streams-message h3 {
    color: #ff6b35;
    margin-bottom: 10px;
}

/* Event Countdown unter Logo */
.event-countdown {
    margin-top: 25px;
    text-align: center;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.event-countdown .countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.event-countdown .countdown-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.event-countdown .countdown-label {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-countdown .countdown-separator {
    font-size: 2rem;
    color: #ff6b35;
    font-weight: bold;
    margin: 0 5px;
}

.event-date-box {
    margin-top: 30px;
    padding: 25px 50px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 215, 0, 0.15));
    border: 3px solid rgba(255, 107, 53, 0.5);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.2);
}

.event-date-label {
    font-size: 1.2rem;
    color: #ff6b35;
    font-family: 'Cinzel', serif;
    letter-spacing: 4px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.event-date-value {
    font-size: 1.5rem;
    color: #ffd700;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

header {
    text-align: center;
    padding: 40px 20px 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.header-logo {
    max-width: 100%;
    width: 600px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.5));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.5));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.7));
    }
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #ff6b35, 0 0 20px #ff6b35, 0 0 30px #ff6b35;
    }
    to {
        text-shadow: 0 0 20px #ff6b35, 0 0 30px #ff6b35, 0 0 40px #ff6b35, 0 0 50px #ff6b35;
    }
}

/* Countdown Styles */
.countdown-wrapper {
    margin-top: 0;
    margin-bottom: 30px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    min-width: 100px;
}

.countdown-value {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    color: #ffd700;
    text-transform: uppercase;
    margin-top: 8px;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 3rem;
    color: #ff6b35;
    font-weight: bold;
    padding: 0 5px;
}

.countdown-ended {
    font-size: 1.5rem;
    color: #ffd700;
    font-weight: bold;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.3rem;
    color: #ffd700;
    font-style: italic;
}

main {
    padding: 20px 0;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.content-box {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 107, 53, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 107, 53, 0.3) 50%, 
        transparent);
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 107, 53, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
}

.content-box h2 {
    text-align: center;
}

h2 {
    font-family: 'Cinzel', serif;
    color: #ff6b35;
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-weight: 700;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #ff6b35 20%, 
        #ff6b35 80%, 
        transparent);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #e0e0e0;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: #e0e0e0;
}

ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-size: 1.2rem;
}

.cta-button {
    background: linear-gradient(135deg, #ff6b35 0%, #d94e24 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.cta-button:active {
    transform: translateY(0);
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: #888;
    font-size: 0.9rem;
}

/* Quiz Styles */
.quiz-section {
    margin-top: 0;
}

/* Fade Animationen */
.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-button {
    background: rgba(255, 107, 53, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.3);
    color: #ff6b35;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.quiz-intro {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #ffd700;
}

#quiz-container {
    margin-top: 30px;
}

.question-container {
    margin-bottom: 30px;
}

#question-text {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 25px;
    text-align: center;
}

.answers-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    align-items: center;
}

.answer-btn {
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(255, 107, 53, 0.3);
    color: #e0e0e0;
    padding: 15px 20px;
    font-size: 0.95rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    line-height: 1.4;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.answer-btn:hover {
    background: rgba(60, 60, 60, 0.9);
    border-color: rgba(255, 107, 53, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.answer-btn.selected {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.4) 0%, rgba(217, 78, 36, 0.4) 100%);
    border-color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-weight: bold;
}

.answer-btn.blink {
    animation: blinkEffect 0.6s ease-in-out;
}

@keyframes blinkEffect {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    25% {
        opacity: 0.7;
        transform: scale(0.98);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.8);
    }
    75% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-button {
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid #ff6b35;
    color: #ff6b35;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav-button:hover:not(:disabled) {
    background: rgba(255, 107, 53, 0.4);
    transform: scale(1.05);
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.progress-indicator {
    flex: 1;
    text-align: center;
    min-width: 200px;
}

#progress-text {
    display: block;
    color: #ffd700;
    margin-bottom: 8px;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35 0%, #ffd700 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.result-container {
    text-align: center;
}

.result-content {
    padding: 20px;
}

.result-content h3 {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 30px;
}

.race-image {
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.5);
    margin-bottom: 30px;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.countdown-container {
    text-align: center;
    padding: 60px 20px;
}

.countdown-container h3 {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.countdown-container p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.countdown-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3) 0%, rgba(217, 78, 36, 0.3) 100%);
    border: 3px solid #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.7);
    }
}

#countdown-number {
    font-size: 4rem;
    font-weight: bold;
    color: #ff6b35;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
}

.result-race {
    margin-bottom: 30px;
}

.race-icon {
    font-size: 5rem;
    margin-bottom: 15px;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.result-race h2 {
    font-size: 2.5rem;
    color: #ff6b35;
    margin: 0;
    border: none;
    padding: 0;
}

.result-description {
    text-align: left;
    margin-bottom: 30px;
}

.result-description p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.race-traits,
.race-classes {
    margin-top: 25px;
    padding: 20px;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.race-traits h4,
.race-classes h4 {
    color: #ff6b35;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.traits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.trait-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #d94e24 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.race-classes p {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin: 0;
}

/* Klassenauswahl Buttons */
.class-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.class-btn {
    background: rgba(40, 40, 40, 0.8);
    border: 2px solid rgba(255, 107, 53, 0.3);
    color: #e0e0e0;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.class-btn:hover {
    background: rgba(60, 60, 60, 0.9);
    border-color: rgba(255, 107, 53, 0.6);
    transform: translateY(-2px);
}

.class-btn.selected {
    background: linear-gradient(135deg, #ff6b35 0%, #d94e24 100%);
    border-color: #ff6b35;
    color: white;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* Teilnehmer Tabelle */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.participants-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.participants-table thead {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(20, 20, 20, 0.9));
}

.participants-table th {
    padding: 15px;
    text-align: left;
    color: #ff9900;
    font-size: 1rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    cursor: default;
}

.participants-table th:last-child {
    border-right: none;
}

.participants-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.participants-table th.sortable:hover {
    background: rgba(42, 42, 42, 0.5);
    color: #ffaa22;
}

.sort-indicator {
    margin-left: 5px;
    font-size: 0.8rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.participants-table td {
    padding: 12px 15px;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 1rem;
}

.participants-table td:last-child {
    border-right: none;
}

.participants-table tbody tr {
    background: rgba(10, 10, 10, 0.3);
    transition: all 0.3s ease;
}

.participants-table tbody tr:hover {
    background: rgba(26, 26, 26, 0.5);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.1);
}

.name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #444;
}

.participant-name {
    color: #ff9900;
    font-weight: normal;
    text-decoration: none;
    transition: color 0.3s ease;
}

.participant-name:hover {
    color: #ffbb33;
    text-decoration: underline;
}

.live-indicator {
    display: inline-block;
    background: #ff0000;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.race-text {
    color: #ff3333;
    font-weight: normal;
}

/* Admin Löschen-Button */
.delete-btn {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid rgba(255, 68, 68, 0.4);
    color: #ff4444;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: rgba(255, 68, 68, 0.4);
    border-color: rgba(255, 68, 68, 0.8);
    transform: scale(1.1);
}

.admin-header {
    color: #ff6b35 !important;
}

/* Entferne alte Styles */
.race-badge {
    display: none;
}

.twitch-name,
.twitch-icon {
    display: none;
}

/* Responsive Design für Tablets */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .content-box {
        padding: 25px;
    }

    p, ul li {
        font-size: 1rem;
    }
}

/* Responsive Design für Smartphones */
@media screen and (max-width: 480px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 40px 15px 30px;
    }

    .header-logo {
        width: 90%;
        max-width: 400px;
    }

    h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 10px 12px;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .countdown-separator {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .content-box {
        padding: 20px;
        margin-bottom: 20px;
    }

    p, ul li {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
    }

    /* Quiz Mobile Anpassungen */
    .answers-grid {
        grid-template-columns: 1fr;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .nav-button {
        width: 100%;
    }

    .progress-indicator {
        width: 100%;
        order: -1;
    }

    #question-text {
        font-size: 1.2rem;
    }

    .race-icon {
        font-size: 4rem;
    }

    .result-race h2 {
        font-size: 2rem;
    }

    .race-image {
        width: 100%;
        max-width: 350px;
    }

    .countdown-circle {
        width: 120px;
        height: 120px;
    }

    #countdown-number {
        font-size: 3rem;
    }

    .participants-table th,
    .participants-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .participant-avatar {
        width: 28px;
        height: 28px;
    }

    .name-cell {
        gap: 8px;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 2px solid #5a4a2a;
    border-radius: 12px;
    padding: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(255, 153, 0, 0.3);
    z-index: 1001;
}

.modal-header {
    margin-bottom: 13px;
}

.modal-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-avatar {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    border: 3px solid #ff9900;
    object-fit: cover;
}

.modal-title-section {
    flex: 1;
}

.modal-name {
    color: #ff9900;
    font-size: 2.5rem;
    margin: 0 0 8px 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-twitch-link {
    color: #9147ff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.modal-twitch-link:hover {
    color: #b380ff;
}

.modal-race {
    color: #cccccc;
    margin: 0;
    font-size: 1.2rem;
}

.modal-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.modal-stat-badge {
    background: rgba(255, 153, 0, 0.15);
    border: 1px solid #ff9900;
    border-radius: 8px;
    padding: 8px 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: #ff9900;
    font-size: 0.9rem;
    font-weight: normal;
}

.stat-value {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
}

.modal-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 10px;
}

.modal-section h3 {
    color: #ff9900;
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.deaths-list {
    min-height: 100px;
}

.no-deaths {
    color: #888;
    text-align: center;
    font-style: italic;
    margin: 30px 0;
    font-size: 1.1rem;
}

.modal-close-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff9900 0%, #cc7700 100%);
    border: 2px solid #ff9900;
    border-radius: 8px;
    color: #1a1200;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.modal-close-btn:hover {
    background: linear-gradient(135deg, #ffbb33 0%, #ff9900 100%);
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.5);
    transform: translateY(-2px);
}

/* Tabellenzeilen Hover-Effekt */
.participants-table tbody tr {
    transition: all 0.3s ease;
}

.participants-table tbody tr:hover {
    background: rgba(255, 153, 0, 0.15) !important;
    transform: scale(1.01);
}

/* Twitch Registrierung */
.twitch-register-section {
    background: rgba(255, 153, 0, 0.1);
    border: 2px solid #ff9900;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.twitch-register-section h3 {
    color: #ff9900;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.twitch-register-section p {
    color: #cccccc;
    margin: 10px 0;
}

.twitch-input-group {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.twitch-input {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #ff9900;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
}

.twitch-input:focus {
    outline: none;
    border-color: #ffbb33;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.3);
}

.twitch-input::placeholder {
    color: #888;
}

.register-message {
    font-weight: bold;
    font-size: 1rem;
    margin: 10px 0 0 0;
    min-height: 24px;
}

/* Twitch Login Button */
.twitch-login-btn {
    background: #9147ff !important;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.twitch-login-btn:hover {
    background: #772ce8 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(145, 71, 255, 0.4);
}

.twitch-login-btn:active {
    transform: translateY(0);
}

/* Twitch Login Button Small (Header) */
.twitch-login-btn-small {
    background: #9147ff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.twitch-login-btn-small:hover {
    background: #772ce8;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(145, 71, 255, 0.4);
}

/* User Info Container */
.user-info-container {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 100;
}

/* User Profile mit Avatar */
.user-profile {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #9147ff;
    transition: all 0.3s ease;
    object-fit: cover;
}

.user-avatar:hover {
    border-color: #ff6b35;
    box-shadow: 0 0 15px rgba(145, 71, 255, 0.5);
    transform: scale(1.05);
}

/* Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(145, 71, 255, 0.3);
    border-radius: 10px;
    min-width: 200px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.user-profile:hover .user-dropdown,
.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.dropdown-name {
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
}

.dropdown-rank {
    color: #9147ff;
    font-size: 0.85rem;
    padding: 3px 8px;
    background: rgba(145, 71, 255, 0.2);
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.dropdown-rank.admin {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.2);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dropdown-logout:hover {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
}

/* Admin Edit Button */
.edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(145, 71, 255, 0.2);
    border: 1px solid rgba(145, 71, 255, 0.4);
    color: #9147ff;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: rgba(145, 71, 255, 0.4);
    color: #fff;
}

.content-box {
    position: relative;
}

/* Edit Modal */
.edit-modal-content {
    max-width: 600px;
    width: 90%;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.edit-form label {
    color: #9147ff;
    font-weight: bold;
    font-size: 0.9rem;
}

.edit-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(145, 71, 255, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.edit-input:focus {
    outline: none;
    border-color: #9147ff;
    box-shadow: 0 0 10px rgba(145, 71, 255, 0.3);
}

.edit-textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(145, 71, 255, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 0.95rem;
    font-family: monospace;
    resize: vertical;
    min-height: 150px;
    transition: all 0.3s ease;
}

.edit-textarea:focus {
    outline: none;
    border-color: #9147ff;
    box-shadow: 0 0 10px rgba(145, 71, 255, 0.3);
}

.edit-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.edit-save-btn {
    background: linear-gradient(135deg, #9147ff, #772ce8);
    border: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.edit-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(145, 71, 255, 0.4);
}

.edit-cancel-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ccc;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.edit-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Settings Modal */
.settings-modal-content {
    max-width: 500px;
    width: 90%;
}

.settings-section {
    margin-bottom: 20px;
}

.settings-section h3 {
    color: #ffd700;
    font-family: 'Cinzel', serif;
    margin-bottom: 8px;
}

.settings-description {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.settings-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.3s;
    border-radius: 30px;
    border: 2px solid #555;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: #888;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: rgba(255, 107, 53, 0.3);
    border-color: #ff6b35;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
    background-color: #ff6b35;
}

.toggle-label {
    color: #aaa;
    font-size: 0.95rem;
}

.settings-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.settings-datetime {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-input {
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(145, 71, 255, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1rem;
}

.settings-input:focus {
    outline: none;
    border-color: #9147ff;
}

.settings-save-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.settings-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Wartungsmodus Overlay */
.maintenance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 5, 0, 0.98), rgba(20, 10, 5, 0.95));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-content {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(180deg, rgba(40, 25, 15, 0.95), rgba(25, 15, 10, 0.98));
    border: 4px solid #ff6b35;
    border-radius: 25px;
    box-shadow: 
        0 0 60px rgba(255, 107, 53, 0.4),
        0 0 120px rgba(255, 107, 53, 0.2),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
    max-width: 550px;
    width: 90%;
    overflow: hidden;
}

.maintenance-content h1 {
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 25px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    word-wrap: break-word;
}

.maintenance-content p {
    color: #ddd;
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.maintenance-content p:last-child {
    color: #ff6b35;
    font-size: 1.1rem;
    margin-top: 30px;
    font-style: italic;
}

/* Slot Machine Animation */
.slot-machine {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto;
}

.slot-window {
    width: 400px;
    height: 400px;
    overflow: hidden;
    border: 4px solid #ff6b35;
    border-radius: 20px;
    background: rgba(10, 8, 5, 0.95);
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Blink-Effekt während des Drehens */
.slot-window.spinning {
    animation: windowBlink 0.3s ease-in-out infinite;
}

@keyframes windowBlink {
    0%, 100% {
        border-color: #ff6b35;
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    }
    50% {
        border-color: #ffd700;
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

/* Statischer Glow nach dem Reveal */
.slot-window.revealed {
    border-color: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 107, 53, 0.4);
    animation: none;
}

.slot-reel {
    display: flex;
    flex-direction: column;
    transition: transform 0.1s ease-out;
}

.slot-item {
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-item img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 15px;
}

/* Motion Blur während des Spinnens */
.slot-window.spinning .slot-item img {
    filter: blur(2px);
}

.slot-window.revealed .slot-item img {
    filter: blur(0);
    transition: filter 0.3s ease;
}

.slot-item span {
    display: none;
}

.slot-glow {
    display: none;
}

#slot-result-name {
    font-size: 2.5rem;
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: opacity 0.5s ease;
    font-family: 'Cinzel', serif;
}

#slot-result-name.slot-winner {
    animation: winnerPulse 0.5s ease-out;
}

@keyframes winnerPulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#result-description.fade-in {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Viewerrad Styles - Carousel */
.streams-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.streams-container {
    flex: 1;
    position: relative;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stream-container {
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(145, 71, 255, 0.3);
    border-radius: 16px;
    padding: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: none;
    box-shadow: 0 8px 32px rgba(145, 71, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stream-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(145, 71, 255, 0.5) 50%, 
        transparent);
}

.stream-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.carousel-nav {
    background: rgba(145, 71, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(145, 71, 255, 0.3);
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(145, 71, 255, 0.2);
}

.carousel-nav:hover {
    background: rgba(145, 71, 255, 0.4);
    border-color: rgba(145, 71, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(145, 71, 255, 0.3);
}

.carousel-nav:active {
    transform: scale(0.95);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-controls {
    text-align: center;
}

.stream-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.stream-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #9147ff;
}

.stream-info {
    flex: 1;
}

.stream-name {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    font-family: 'Cinzel', serif;
}

.stream-race {
    color: #ff9900;
    font-size: 0.9rem;
    margin: 2px 0 0 0;
}

.stream-live-badge {
    background: #ff0000;
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stream-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 8px;
    background: #000;
}

.no-streams-message {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 1.2rem;
}

.no-streams-message h3 {
    color: #ff6b35;
    margin-bottom: 15px;
}

/* Responsive Viewerrad */
@media (max-width: 1200px) {
    .carousel-nav {
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .streams-carousel {
        flex-direction: column;
        gap: 10px;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }
    
    .streams-container {
        min-height: 300px;
    }
    
    .stream-container {
        padding: 10px;
    }
    
    .stream-name {
        font-size: 1rem;
    }
    
    .carousel-controls {
        order: -1;
        margin-bottom: 15px;
    }
}

/* Mobile Anpassungen für Modal */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .modal-avatar {
        width: 60px;
        height: 60px;
    }
    
    .modal-name {
        font-size: 1.4rem;
    }
    
    .modal-stats {
        flex-wrap: wrap;
    }
    
    .modal-stat-badge {
        flex: 1;
        min-width: 100px;
    }
}
