﻿@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg: #161828;
    /* Very Dark Blue */
    --surface: #1e213a;
    --accent-1: #0CE4E4;
    /* Bright Turquoise */
    --accent-2: #FF026D;
    /* Deep Pink */
    --accent-3: #FFB702;
    /* Gold */
    --text: #FFFFFF;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.03);
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(12, 228, 228, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 2, 109, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

header {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(22, 24, 40, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    /* Shorter than 100vh so the catalog isn't pushed below the fold */
    height: 60vh;
    min-height: 340px;
    /* Full screen height for maximum impact */
    display: flex;
    align-items: flex-end;
    /* Push text to the bottom to lead into the library */
    justify-content: center;
    text-align: center;
    padding: 0 5% 3rem;
    position: relative;
    overflow: hidden;
    /* Gradient fallback so the hero never renders as an empty black box
       if the background video is missing or fails to load */
    background: linear-gradient(160deg, #1a1f3d 0%, #0d1020 55%, #000 100%);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 1;
    /* Fully visible cinematic video */
}

/* If the video can't load, hide it and let the gradient show through */
.hero-video:error,
.hero-video[src=""] {
    display: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Stronger scrim so text stays legible over bright footage */
    height: 70%;
    background: linear-gradient(to top, var(--bg) 12%, rgba(10,10,15,0.75) 45%, transparent 100%);
    z-index: 2;
    /* Gradient to help text blend into the next section */
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-content h1 {
    font-family: var(--font-head);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-1);
    color: var(--bg);
    text-decoration: none;
    font-weight: 800;
    font-family: var(--font-head);
    border-radius: 5px;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(12, 228, 228, 0.3);
}

/* Tracklist Section */
.section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-head {
    margin-bottom: 4rem;
    text-align: center;
}

.section-head h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-head .line {
    width: 60px;
    height: 4px;
    background: var(--accent-2);
    margin: 0 auto;
}

/* Track List View */
.track-list {
    background: var(--surface);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.track-item {
    display: flex;
    align-items: center;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
    cursor: default;
}

.track-item:last-child {
    border-bottom: none;
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.track-num {
    width: 40px;
    font-family: var(--font-head);
    color: var(--text-dim);
    font-size: 0.9rem;
}

.track-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.track-cover {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
}

.track-details .title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
}

.track-details .artist {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.track-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    cursor: pointer;
    transition: 0.3s;
}

.play-btn:hover {
    background: var(--accent-1);
    color: var(--bg);
}

.buy-btn {
    background: var(--accent-2);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.buy-btn:hover {
    background: #fff;
    color: var(--accent-2);
}

/* Floating Player */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 33, 58, 0.95);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--accent-1);
    padding: 15px 5%;
    display: none;
    align-items: center;
    gap: 2rem;
    z-index: 2000;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.player-bar.active {
    display: flex;
}

.p-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 250px;
}

.p-info img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

.p-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.p-artist {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.p-controls {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.p-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.p-fill {
    position: absolute;
    left: 0;
    height: 100%;
    background: var(--accent-1);
    border-radius: 3px;
}

.p-main-btn {
    font-size: 1.5rem;
    color: var(--accent-1);
    cursor: pointer;
    transition: 0.2s;
}

.p-main-btn:hover {
    transform: scale(1.2);
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 3000;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: var(--surface);
    z-index: 3100;
    padding: 3rem 2rem;
    transform: translateX(100%);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

body.cart-open .cart-drawer {
    transform: translateX(0);
}

body.cart-open .cart-overlay {
    display: block;
}

.cart-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-2);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Redemption Section Styling */
.redemption-box {
    background: var(--surface);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    margin-top: 8rem;
}

.code-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    padding: 15px 25px;
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-head);
    font-size: 1rem;
    width: 300px;
    text-align: center;
    margin-right: 15px;
}

.code-input:focus {
    border-color: var(--accent-1);
    outline: none;
}
/* Tracks whose media file has not been uploaded yet */
.track-item.is-missing { opacity: 0.45; }
.play-btn.is-unavailable {
    cursor: not-allowed;
    border-color: var(--text-dim, #6b7280);
    color: var(--text-dim, #6b7280);
    background: transparent;
}
.unavailable-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim, #6b7280);
    white-space: nowrap;
}