:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #00f2ff;
    --accent-secondary: #7000ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.logo-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    color: black;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: 10%;
    right: 10%;
}

.sphere-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: 20%;
    left: 10%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
}

.rockola-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
}

.rockola-frame img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.rockola-frame:hover img {
    transform: scale(1.05);
}

/* Visualizer */
.visualizer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
}

.bar {
    width: 6px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: height 0.2s ease;
}

/* Features */
.features {
    padding: 8rem 0;
    background: #0a0a0a;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Scroll Animation (Optional, simplified) */
.feature-card {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Jukebox Preview */
.jukebox-preview {
    padding: 8rem 0;
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.glass-container {
    background: rgba(15, 15, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.85);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    width: 100%;
    max-width: 400px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    width: 100%;
    outline: none;
}

.song-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.song-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.song-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.song-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.reveal-text {
    animation: fadeIn 0.8s ease-out forwards;
}

/* App Mode (Shared) */
.app-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2a 100%);
    position: relative;
    border-radius: inherit;
    overflow: hidden;
}

.app-preview-frame {
    height: 850px;
    padding: 0 !important;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
    overflow: hidden;
    position: relative;
}

/* Specific behaviors for fullscreen */
#app-shell:fullscreen {
    width: 100vw;
    height: 100vh;
    border: none;
}

#app-shell:fullscreen .app-container {
    border-radius: 0;
}

.app-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 242, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(112, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* App Header */
.app-header {
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--accent-primary); /* More prominent accent */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    position: static;
}

.app-header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-stat {
    font-weight: 800;
    color: var(--accent-primary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    white-space: nowrap;
}

.credits-display {
    color: #ffde00; /* Gold/Yellow for credits as typical in rockolas */
    text-shadow: 0 0 10px rgba(255, 222, 0, 0.3);
}

.btn-icon {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    opacity: 0.7;
}

.btn-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* App Main Content */
.app-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.8rem;
    min-height: 0; /* Critical for inner scrolling */
    overflow: hidden;
}

/* Albums Section */
.albums-section {
    flex-shrink: 0;
    padding-bottom: 0.5rem;
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-primary);
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    width: 100%;
}

.album-card {
    aspect-ratio: 1 / 1; /* Perfectly square as requested */
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Focal Album Style (3rd Album) */
.album-focus {
    border: 3px solid #ffde00 !important;
    transform: scale(1.08);
    z-index: 50;
    box-shadow: 0 0 40px rgba(255, 222, 0, 0.3);
}

.album-focus .album-label {
    color: #ffde00 !important;
    font-weight: 800;
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.album-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.3);
}

.album-card:hover img {
    transform: scale(1.1);
}

/* Label overlay for identity */
.album-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    backdrop-filter: blur(2px);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 15px;
    color: white;
    text-align: center;
}

/* Controls Bar Base */
.app-controls {
    height: 64px;
    flex-shrink: 0;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

/* Navigation Specific Layout */
.navigate-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.album-counter {
    font-weight: 800;
    color: var(--accent-primary);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.nav-buttons-group {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--accent-primary);
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: #ffffff !important; /* Force high contrast white text */
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.ok-btn {
    width: auto;
    padding: 0 15px;
    font-weight: 800;
    font-size: 0.9rem;
    background: rgba(0, 242, 255, 0.2);
    border-color: var(--accent-primary);
}

.playback-controls {
    display: flex;
    gap: 1rem;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

.play-main {
    color: var(--accent-primary);
}

.now-playing-strip {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.progress-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-primary);
}

.song-title-mini {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.volume-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 150px;
}

.vol-slider {
    flex: 1;
    accent-color: var(--accent-primary);
}

/* Media Container (3 Panels) */
.media-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    min-height: 0; /* Critical for fixed layout */
}

.panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.panel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 242, 255, 0.2);
}

.panel-header {
    padding: 10px 15px;
    background: rgba(0, 242, 255, 0.1);
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
}

.panel-content {
    flex: 1;
    padding: 10px;
    position: relative;
    min-height: 0;
}

.scrollable {
    overflow-y: auto;
}

.scrollable::-webkit-scrollbar {
    width: 6px;
}

.scrollable::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Selection Modal */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.rectangular-modal {
    width: 600px;
    background: #111;
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0, 242, 255, 0.2);
    animation: modalSlide 0.4s ease-out;
}

@keyframes modalSlide {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-body {
    display: flex;
    padding: 30px;
    gap: 30px;
    align-items: flex-start;
}

.modal-cover-wrapper {
    width: 180px;
    height: 180px;
}

.modal-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-song-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
}

#modal-artist-name {
    font-size: 2rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    font-weight: 800;
}

#modal-song-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.modal-footer-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #000;
    border-top: 1px solid var(--glass-border);
}

.modal-btn {
    padding: 1.2rem;
    border: none;
    background: transparent;
    color: white;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.opt-standard {
    color: #fff;
}

.opt-vip {
    color: #ffde00; /* Yellow */
}

.opt-vip:hover {
    background: rgba(255, 222, 0, 0.1) !important;
}

.opt-vip-plus {
    color: #ff3366; /* Magenta/Vibrant red */
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.4);
}

.opt-vip-plus:hover {
    background: rgba(255, 51, 102, 0.1) !important;
}

.opt-cancel {
    background: #333 !important;
    color: white;
}

/* Song Item interaction */
.song-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

/* Song Focus (Focal Song in List) */
.song-focus {
    border: 2px solid #ffde00 !important;
    background: rgba(255, 222, 0, 0.1) !important;
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 0 20px rgba(255, 222, 0, 0.2);
}

.song-focus h4 {
    color: #ffde00 !important;
}

.song-focus .song-cover {
    color: #ffde00 !important;
}

.queue-item {
    border-left: 3px solid var(--accent-secondary);
}

.remove-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    margin-left: auto;
    font-size: 1rem;
    padding: 5px;
}

.remove-btn:hover {
    color: #ff4757;
}

/* Player Panel Area */
.player-area {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #111, #000);
    border-radius: 8px;
    margin: 5px;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.video-placeholder span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pulse-ring {
    width: 80px;
    height: 80px;
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: ripple 2s infinite ease-out;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

@keyframes ripple {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* App Footer */
.marquee-footer {
    display: block !important;
    padding: 0 !important;
    line-height: 40px;
}

.footer-notice {
    color: #ffde00; /* Yellow */
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-shadow: 1px 1px 5px rgba(255, 222, 0, 0.4);
}

.footer-status {
    color: #2ecc71; /* Success Green */
    font-weight: 600;
}

/* Hide original site when app is active */
body.app-active {
    overflow: hidden;
}
