:root {
    --bg-dark: #0a0806;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #b8860b;
    --text-main: #f0e6d2;
    --text-muted: #a89f91;
    --card-bg: rgba(20, 15, 10, 0.7);
    --card-border: rgba(212, 175, 55, 0.3);
    --active-bg: rgba(139, 35, 35, 0.4);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background Hero */
.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 8, 6, 0.3) 0%, rgba(10, 8, 6, 0.8) 50%, rgba(10, 8, 6, 1) 100%);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
    z-index: 10;
}

.logo-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--gold-light);
    font-weight: 600;
    font-style: italic;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.logo-subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
}

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

.nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
    padding-bottom: 5px;
}

.nav a:hover, .nav a.active {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-radio {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.btn-radio i {
    font-size: 1.2rem;
}

.btn-radio span {
    font-size: 0.7rem;
    opacity: 0.8;
}

.btn-radio:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--text-main);
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 4rem;
    position: relative;
    z-index: 10;
}

.hero-text {
    text-align: center;
    margin-bottom: 3rem;
}

.subheading {
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.main-heading {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 400;
    color: var(--gold-light);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Cards Section */
.content-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: auto;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.card-header {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.05);
}

/* Playlist Card */
.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
    background: var(--active-bg);
    border-left: 3px solid var(--gold);
}

.track-num {
    font-size: 0.9rem;
    color: var(--text-muted);
    width: 30px;
}

.play-btn {
    background: white;
    color: black;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-right: 10px;
}

.track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

.track-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.track-author {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.track-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Audio Wave Animation */
.track-wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 15px;
}

.track-wave .bar {
    width: 3px;
    background: var(--gold-light);
    border-radius: 3px;
    animation: wave 1s infinite ease-in-out;
}

.track-wave .bar:nth-child(1) { height: 5px; animation-delay: 0.1s; }
.track-wave .bar:nth-child(2) { height: 10px; animation-delay: 0.2s; }
.track-wave .bar:nth-child(3) { height: 15px; animation-delay: 0.3s; }
.track-wave .bar:nth-child(4) { height: 10px; animation-delay: 0.4s; }
.track-wave .bar:nth-child(5) { height: 5px; animation-delay: 0.5s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* Music Card */
.music-content {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.music-text {
    flex: 1;
}

.music-logo h2 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 5px;
}

.music-logo p {
    font-size: 1.2rem;
    letter-spacing: 8px;
    color: var(--text-muted);
    margin-top: 5px;
    margin-left: 12px;
}

.separator {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 1rem 0;
}

.music-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.music-image {
    perspective: 1000px;
    width: 140px;
    margin-right: 20px;
}

.book-cover {
    position: relative;
    transform: rotateY(-25deg) rotateX(5deg);
    transform-style: preserve-3d;
    box-shadow: 
        -5px 10px 20px rgba(0,0,0,0.8),
        inset 4px 0 10px rgba(0,0,0,0.2);
    border-radius: 2px 5px 5px 2px;
    transition: transform 0.4s ease;
}

.book-cover:hover {
    transform: rotateY(-15deg) rotateX(0deg) scale(1.05);
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 1%;
    left: 100%;
    width: 25px;
    height: 98%;
    background: linear-gradient(to right, #e3cba8, #fff8e7 20%, #d4b895);
    transform-origin: left;
    transform: rotateY(90deg);
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.book-cover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 1%;
    width: 98%;
    height: 25px;
    background: linear-gradient(to bottom, #d4b895, #a68b6a);
    transform-origin: top;
    transform: rotateX(-90deg);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.book-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px 5px 5px 2px;
    filter: sepia(0.3) brightness(0.9) contrast(1.1) saturate(1.1);
}

.overlay-blend {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.15), rgba(10, 8, 6, 0.5));
    pointer-events: none;
    mix-blend-mode: multiply;
    border-radius: 2px 5px 5px 2px;
    z-index: 2;
    box-shadow: inset 6px 0 10px -2px rgba(0,0,0,0.6);
}

/* Custom Audio Player */
.custom-audio-player {
    margin-top: 1.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.ctrl-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.ctrl-btn:hover {
    color: var(--gold);
}

.play-pause-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.play-pause-btn:hover {
    background: var(--gold-light);
    transform: scale(1.1);
    color: black;
}

.player-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 35px;
}

.progress-bar-bg {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%; /* simulated progress */
    background: var(--gold);
    border-radius: 2px;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -3px;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* Clip Card */
.clip-content {
    margin-bottom: 1.5rem;
    flex: 1;
}

.clip-thumbnail {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    aspect-ratio: 16/9;
}

.clip-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.clip-thumbnail:hover img {
    transform: scale(1.05);
}

.play-video-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.clip-thumbnail:hover .play-video-btn {
    background: var(--gold);
    border-color: var(--gold);
    color: black;
    transform: translate(-50%, -50%) scale(1.1);
}

.clip-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.clip-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-around;
    padding: 2rem 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-item i {
    font-size: 1.5rem;
    color: var(--gold-dark);
}

.footer-text h4 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gold-light);
    margin-bottom: 3px;
}

.footer-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Story Page Styles */
.story-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 3rem 4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.story-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--gold-light);
    text-align: center;
    margin-bottom: 1rem;
    font-style: italic;
    font-weight: 400;
}

.separator-center {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 2.5rem auto;
}

.story-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.story-paragraph:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .clip-card {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
    }
    .main-content {
        padding: 2rem;
    }
    .main-heading {
        font-size: 3.5rem;
    }
    .content-cards {
        grid-template-columns: 1fr;
    }
    .clip-card {
        grid-column: span 1;
    }
    .footer {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem;
    }
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .main-content {
        padding: 1.5rem;
    }
    .main-heading {
        font-size: 2.8rem;
    }
    .logo-title {
        font-size: 2.8rem;
    }
    
    /* Music Card Flex Adjustments */
    .music-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .music-logo h2 {
        font-size: 3.5rem;
    }
    .music-logo p {
        margin-left: 0;
        font-size: 1rem;
    }
    .separator {
        margin: 1rem auto;
    }
    .music-image {
        margin-right: 0;
        margin-top: 1rem;
    }
    
    /* Story Page */
    .story-container {
        padding: 2rem 1.5rem;
    }
    .story-title {
        font-size: 2rem;
    }
    .separator-center {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }
    .main-content {
        padding: 1rem;
    }
    .main-heading {
        font-size: 2.2rem;
    }
    .logo-title {
        font-size: 2.2rem;
    }
    .card {
        padding: 1rem;
    }
    .music-logo h2 {
        font-size: 2.8rem;
    }
    .player-controls {
        gap: 1rem;
    }
}
