:root {
    --primary-color: #e0bd67;
    --secondary-color: #9e7b38;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --text-color: #ffffff;
    --text-shadow: 0 0 10px rgba(224, 189, 103, 0.6);
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    --gold-gradient: linear-gradient(135deg, #e0bd67, #9e7b38);
}

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

body {
    font-family: 'Marcellus', serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: url('images/middle-earth-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Ring Animation */
.ring-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.ring {
    width: 60vh;
    height: 60vh;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--primary-color), inset 0 0 30px var(--primary-color);
    opacity: 0.12;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.1;
    }
    50% {
        transform: scale(1);
        opacity: 0.2;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.1;
    }
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 2rem;
    animation: fadeInUp 1s ease-out;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: var(--text-shadow), 0 0 20px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background: var(--gold-gradient);
    margin: 0.5rem auto 0;
    box-shadow: 0 0 10px var(--primary-color);
}

.subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-color);
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Audio Player Styles */
.audio-player {
    background-color: rgba(16, 16, 16, 0.8);
    border: 1px solid rgba(224, 189, 103, 0.5);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.1s;
    animation-fill-mode: both;
    backdrop-filter: blur(10px);
}

.audio-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-gradient);
}

.audio-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.7rem;
}

.audio-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: var(--text-shadow), 0 0 10px rgba(0, 0, 0, 0.8);
}

.audio-icon {
    color: var(--primary-color);
    font-size: 1rem;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(224, 189, 103, 0.15);
    border: 1px solid rgba(224, 189, 103, 0.4);
    animation: rotate 10s linear infinite;
}

/* Progress Bar Styles */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.7rem;
    gap: 8px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(224, 189, 103, 0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
    box-shadow: 0 0 8px rgba(224, 189, 103, 0.5);
}

.progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar:hover .progress::after {
    opacity: 1;
}

.time {
    font-family: 'Marcellus', serif;
    font-size: 0.75rem;
    color: var(--primary-color);
    width: 35px;
    text-align: center;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Visualizer Styles */
.visualizer-container {
    width: 100%;
    height: 40px;
    margin: 0.6rem 0;
}

.visualizer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 10px;
    gap: 8px;
}

.visualizer .bar {
    width: 12px;
    height: 5%;
    background: var(--gold-gradient);
    border-radius: 2px;
    transition: height 0.1s ease;
    box-shadow: 0 0 5px rgba(224, 189, 103, 0.3);
}

.visualizer.active .bar {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px var(--primary-color);
    }
    to {
        box-shadow: 0 0 15px var(--primary-color);
    }
}

.visualizer .bar:nth-child(1) { animation-delay: 0.1s; }
.visualizer .bar:nth-child(2) { animation-delay: 0.2s; }
.visualizer .bar:nth-child(3) { animation-delay: 0.3s; }
.visualizer .bar:nth-child(4) { animation-delay: 0.4s; }
.visualizer .bar:nth-child(5) { animation-delay: 0.5s; }
.visualizer .bar:nth-child(6) { animation-delay: 0.6s; }
.visualizer .bar:nth-child(7) { animation-delay: 0.7s; }
.visualizer .bar:nth-child(8) { animation-delay: 0.8s; }

/* Hide the default audio controls */
audio {
    width: 100%;
    margin-bottom: 1rem;
    display: none;
}

.audio-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.6rem;
}

.audio-btn {
    background: var(--gold-gradient);
    color: var(--darker-bg);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.audio-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.volume-container i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(224, 189, 103, 0.3);
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

/* Download Section Styles */
.download-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.download-item {
    background-color: rgba(16, 16, 16, 0.75);
    border: 1px solid rgba(224, 189, 103, 0.5);
    border-radius: 8px;
    padding: 1.8rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: var(--box-shadow);
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.download-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
    border-color: rgba(201, 169, 89, 0.6);
}

.download-item:hover::before {
    transform: scaleX(1);
}

.download-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(224, 189, 103, 0.15);
    border: 1px solid rgba(224, 189, 103, 0.4);
}

.download-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.download-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.download-info p {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
}

.download-btn {
    display: inline-block;
    background: var(--gold-gradient);
    color: #000000;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    padding: 0.8rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin: 0;
    text-align: center;
    min-width: 180px;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}

.download-btn:hover::before {
    left: 100%;
}

/* Footer Styles */
footer {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.95;
    padding: 1.5rem;
    margin-top: 2rem;
    background-color: rgba(16, 16, 16, 0.75);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(224, 189, 103, 0.3);
    box-shadow: var(--box-shadow);
}

footer p {
    margin-bottom: 0.5rem;
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .download-section {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1rem;
    }
    
    .audio-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .audio-title {
        font-size: 1rem;
    }
    
    .visualizer .bar {
        width: 8px;
    }
    
    .visualizer {
        gap: 5px;
    }
    
    .time {
        font-size: 0.7rem;
        width: 30px;
    }
    
    .progress-bar {
        height: 4px;
    }
    
    .download-info h3 {
        font-size: 1.4rem;
    }
    
    .download-info p {
        font-size: 0.95rem;
    }
    
    .download-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

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

    .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .volume-container {
        gap: 0.4rem;
    }
    
    input[type="range"] {
        width: 60px;
    }
    
    .visualizer .bar {
        width: 7px;
    }
    
    .visualizer {
        gap: 3px;
    }
    
    .time {
        font-size: 0.65rem;
        width: 28px;
    }
    
    .progress-container {
        gap: 4px;
    }
    
    .progress-bar {
        height: 3px;
    }
    
    .download-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
        width: 80%;
        min-width: unset;
    }
    
    .download-item {
        padding: 1.5rem 1.2rem;
    }
    
    .download-info h3 {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }
    
    .download-info p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .download-icon {
        height: 50px;
        width: 50px;
        font-size: 1.7rem;
        margin-bottom: 1.2rem;
    }
}

/* Modern Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-item:nth-child(2) {
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

.download-item:nth-child(3) {
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

.download-item:nth-child(4) {
    animation: fadeInUp 1s ease-out 0.8s;
    animation-fill-mode: both;
} 