/* Base Reset & Variables */
:root {
    --bg-dark: #050505;
    --surface: #121212;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent: #ff2a00;
}

body {
    margin: 0;
    padding: 0;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    text-transform: uppercase;
}

/* Base text override for readable paragraphs */
p, input, button {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: bold;
}

/* Fire & Ice Typography */
.fire-ice-text {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    background: linear-gradient(90deg, #ff0000, #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    margin: 0;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5vw;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #222;
}

.logo {
    font-size: 2rem;
}

.nav-links a {
    cursor: pointer;
    font-family: Impact, sans-serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: #0088ff;
}

/* Page Transitions */
.page {
    display: none;
    opacity: 0;
    padding: 40px 5vw;
    animation: fadeIn 0.8s forwards;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Home Layout */
.hero {
    text-align: center;
    margin-top: 2vh;
    margin-bottom: 40px;
}

.main-title { font-size: 5rem; }
.subtitle { font-size: 2.5rem; margin-top: 10px; }

/* Album Cover Frame & Animation */
.cover-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
}

.click-instruction {
    color: var(--text-secondary);
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.album-cover-container {
    width: 350px;
    height: 350px;
    border: 10px solid #ffffff;
    padding: 5px;
    background-color: #000;
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.4), 0 15px 50px rgba(0, 136, 255, 0.4);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-cover-container:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 60px rgba(255, 0, 0, 0.6), 0 25px 60px rgba(0, 136, 255, 0.6);
}

/* Philosophy */
.philosophy {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
    background-color: var(--surface);
    padding: 40px;
    border-radius: 12px;
    border-top: 4px solid #0088ff;
    border-bottom: 4px solid #ff0000;
}

.philosophy h2 { font-size: 2.5rem; margin-bottom: 20px; }
.philosophy p { line-height: 1.8; color: var(--text-secondary); font-size: 1.1rem; }

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--surface);
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #333;
    box-shadow: 0 0 40px rgba(0, 136, 255, 0.2);
}

.modal-content h2 { font-size: 3rem; margin-bottom: 10px; }
.modal-content input {
    width: 80%;
    padding: 15px;
    margin: 20px 0;
    font-size: 1.2rem;
    background: #000;
    border: 2px solid #444;
    color: #fff;
    text-align: center;
}

.modal-content button {
    padding: 15px 30px;
    font-size: 1.5rem;
    font-family: Impact, sans-serif;
    background: linear-gradient(90deg, #ff0000, #0088ff);
    border: none;
    color: white;
    cursor: pointer;
    margin: 5px;
    transition: opacity 0.3s;
    letter-spacing: 1px;
}

.modal-content button:hover { opacity: 0.8; }
.modal-content .close-btn { background: #333; }
.error-text { color: #ff0000; display: none; font-weight: bold; margin-top: 15px; }

/* Playlist / Theater Layout */
.playlist-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.main-player-section {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

/* Updated to 4:3 Aspect Ratio */
.video-wrapper-4x3 {
    width: 100%;
    max-width: 800px; /* Increased max-width to allow a larger theater view for 4:3 */
    aspect-ratio: 4 / 3;
    background-color: #000;
    border: 5px solid #222;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

video { width: 100%; height: 100%; object-fit: cover; outline: none; }
.track-title { font-size: 3.5rem; margin-top: 20px; text-align: center; }

/* Sidebar */
.sidebar-playlist {
    flex: 1;
    min-width: 300px;
    background-color: var(--surface);
    padding: 20px;
    border-radius: 10px;
    border-left: 2px solid #333;
}

.sidebar-playlist h3 { font-size: 2.5rem; margin-bottom: 20px; border-bottom: 2px solid #333; padding-bottom: 10px; }

.playlist-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #0a0a0a;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.playlist-card:hover { background: #1a1a1a; transform: translateX(10px); }
.active-track { border-left: 5px solid #0088ff; background: #111; }

.thumb-placeholder {
    width: 60px; height: 60px;
    background: linear-gradient(45deg, #ff0000, #0088ff);
    display: flex; justify-content: center; align-items: center;
    font-family: Impact, sans-serif; font-size: 1.5rem; border-radius: 5px;
}

.playlist-info h4 { margin: 0; font-family: Impact, sans-serif; font-size: 1.8rem; letter-spacing: 1px; }
.playlist-info p { margin: 5px 0 0 0; color: var(--text-secondary); font-size: 0.9rem; }