:root {
    --bg-dark: #0a0a12;
    --bg-card: rgba(20, 20, 35, 0.6);
    --primary-sun: #FDB813;
    --secondary-orange: #FF8F00;
    --accent-glow: #ff5e00;
    --text-main: #ffffff;
    --text-muted: #a0a0ff;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    /* Changed for Portal Layout */
    position: relative;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.sun {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, var(--primary-sun) 0%, var(--secondary-orange) 30%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    border-radius: 50%;
    animation: pulseSun 10s infinite alternate ease-in-out;
}

@keyframes pulseSun {
    0% {
        opacity: 0.1;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 0.2;
        transform: translateX(-50%) scale(1.1);
    }
}

.grid-overlay {
    position: absolute;
    bottom: -20%;
    left: 0;
    width: 100%;
    height: 60%;
    background:
        linear-gradient(transparent 0%, var(--accent-glow) 100%),
        repeating-linear-gradient(90deg, transparent 0, transparent 40px, rgba(255, 143, 0, 0.1) 40px, rgba(255, 143, 0, 0.1) 41px),
        repeating-linear-gradient(180deg, transparent 0, transparent 40px, rgba(255, 143, 0, 0.1) 40px, rgba(255, 143, 0, 0.1) 41px);
    perspective: 1000px;
    transform: perspective(500px) rotateX(60deg);
    opacity: 0.3;
}

/* PORTAL NAVIGATION */
.main-nav {
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 143, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    width: 100%;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-sun);
    background: rgba(255, 143, 0, 0.1);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* PAGE CONTENT WRAPPER */
.page-content {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    flex: 1;
    /* Pushes footer down */
    position: relative;
    /* Ensure z-index works above background */
    z-index: 1;
}

/* TYPOGRAPHY & GENERAL */
h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--secondary-orange);
    color: white;
}

.highlight {
    color: var(--primary-sun);
}

/* PLAYER CARD (Original + Adapted) */
.player-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 143, 0, 0.1);
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 800px) {
    .player-card {
        flex-direction: row;
        text-align: left;
        padding: 3rem;
        align-items: flex-start;
    }

    .cover-art-container {
        margin: 0;
        flex-shrink: 0;
    }

    .player-main-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .controls {
        align-items: flex-start;
    }

    .volume-control {
        max-width: 300px;
    }
}

.cover-art-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 1.5rem;
}

#track-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.visualizer-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary-sun), var(--accent-glow), var(--secondary-orange));
    z-index: 1;
    filter: blur(15px);
    opacity: 0.5;
    animation: rotateGlow 5s linear infinite;
}

@keyframes rotateGlow {
    0% {
        filter: hue-rotate(0deg) blur(15px);
    }

    100% {
        filter: hue-rotate(360deg) blur(15px);
    }
}

.track-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-sun);
    font-family: var(--font-heading);
    word-break: break-word;
}

.track-info h3 {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 1.5rem;
    word-break: break-word;
}

/* CONTROLS */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-sun), var(--secondary-orange));
    border: none;
    color: #000;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 143, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 143, 0, 0.6);
}

.play-btn:active {
    transform: scale(0.95);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    width: 100%;
    max-width: 250px;
}

#volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: var(--primary-sun);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-sun);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ff4444;
    margin-top: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff0000;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* STATS */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item i {
    color: var(--primary-sun);
    font-size: 0.8rem;
}

/* ACTION BUTTONS & HISTORY */
.action-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn.hidden {
    display: none;
}

.btn.secondary {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-sun);
    color: var(--primary-sun);
}

.history-section {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 900px;
    width: 100%;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.history-time {
    color: var(--primary-sun);
    font-size: 0.8rem;
    opacity: 0.8;
}

.history-cover {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: #222;
}

/* FOOTER */
.portal-footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
    width: 100%;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-col h3,
.footer-col h4 {
    color: var(--primary-sun);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-sun);
}

.gema-badge {
    margin-top: 1rem;
    color: #4CAF50;
    border: 1px solid #4CAF50;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a0a12;
        flex-direction: column;
        padding: 1rem;
        gap: 10px;
        border-bottom: 1px solid rgba(255, 143, 0, 0.2);
    }

    .nav-links.show {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .cover-art-container {
        width: 200px;
        height: 200px;
        margin-top: 3rem;
    }

    .player-card {
        padding: 1.5rem;
    }
}

/* Sendeplan & Team Styles */
.schedule-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
}

.schedule-day {
    flex: 1;
    min-width: 250px;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-day h3 {
    color: var(--primary-sun);
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.schedule-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.schedule-card .time {
    color: var(--secondary-orange);
    font-weight: bold;
    font-size: 0.9rem;
}

.schedule-card .title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
}

.schedule-card .mod {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-sun);
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.team-info h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.team-info .role {
    color: var(--secondary-orange);
    font-weight: bold;
    display: block;
    margin-bottom: 1rem;
}

.team-info .bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    margin: 0 10px;
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-sun);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff4444;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    animation: pulse-red 2s infinite;
    font-family: 'Orbitron', sans-serif;
    border: none;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
    margin: 1rem 0;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}