@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-dark: #0f0f13;
    --bg-card: #1a1a20;
    --gold: #D4AF37;
    --gold-dim: #8a7122;
    --silver: #C0C0C0;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;

    --intensity-low: #2ecc71;
    --intensity-mid: #f1c40f;
    --intensity-high: #e74c3c;
    --intensity-extreme: #8b0000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    text-transform: uppercase;
}

/* Hero Section */
header {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 4rem;
    letter-spacing: 5px;
    text-shadow: 0 0 20px var(--gold-dim);
    margin-bottom: 10px;
}

header p {
    font-size: 1.5rem;
    color: var(--silver);
    letter-spacing: 2px;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Thermometer Section */
.thermometer-section {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.thermometer-label {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: block;
}

.range-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 10px;
    background: linear-gradient(to right, var(--intensity-low), var(--intensity-mid), var(--intensity-high), var(--intensity-extreme));
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
    cursor: pointer;
}

input[type=range]:hover {
    opacity: 1;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.intensity-display {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold);
}

/* Band Grid */
.band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.band-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid #333;
    cursor: pointer;
    position: relative;
}

.band-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
}

.band-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--gold-dim);
}

.band-info {
    padding: 20px;
}

.band-name {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.band-genre {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.band-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    border: 2px solid var(--gold);
    position: relative;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-header {
    position: relative;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.close-btn:hover {
    background: var(--gold);
    color: #000;
}

.modal-body {
    padding: 30px;
    margin-top: -80px;
    /* Pull up over the faded image */
    position: relative;
}

.modal-title {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px #000;
}

.modal-subtitle {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px #000;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.discography-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.album-tag {
    background: #333;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--gold-dim);
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background: #000;
    border-top: 1px solid #333;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .modal-title {
        font-size: 2rem;
    }

    .modal-image {
        height: 200px;
    }
}