html {
    scroll-behavior: smooth; /* This makes the jumping stop! */
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: #0a0a0a;
    color: #f5f5f5;
    margin: 0;
}

header {
    height: 40vh;
    background: linear-gradient(45deg, #1a1a1a, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 2px solid #333;
}

h1 { font-size: 3.5rem; color: #ff9800; letter-spacing: -1px; }

.main-layout {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
}

.sidebar {
    flex: 1;
    position: sticky;
    top: 50px;
    height: fit-content;
}

.sidebar ul { list-style: none; padding: 0; }
.sidebar a {
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 12px 0;
    transition: 0.3s;
}

.sidebar a:hover { color: #ff9800; transform: translateX(5px); }

.content { flex: 3; padding-left: 60px; }

.genre-section { margin-bottom: 100px; }

.tag {
    background: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #ff9800;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.card {
    background: #161616;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #222;
    transition: 0.3s;
}

.card:hover {
    border-color: #ff9800;
    transform: translateY(-5px);
    background: #1f1f1f;
}

.video-grid {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 30px;
}

.video-grid iframe {
    position: absolute;
    width: 100%; height: 100%;
}

@media (max-width: 768px) {
    .main-layout { flex-direction: column; }
    .content { padding-left: 0; }
    .detail-grid { grid-template-columns: 1fr; }
}
blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: #ff9800;
    border-left: 3px solid #ff9800;
    padding: 20px;
    margin: 40px 0;
    background: #161616;
    border-radius: 0 10px 10px 0;
}

#science h2 {
    background: linear-gradient(to right, #ff9800, #ff5722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Animation for sections as they appear */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.genre-section {
    animation: fadeInUp 1s ease-out forwards;
    /* This ensures they don't look weird before the animation starts */
}

/* Glossary Styling */
.glossary-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.term {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    flex: 1 1 250px;
    border-left: 3px solid #ff9800;
}

.word {
    font-weight: bold;
    color: #ff9800;
    display: block;
    margin-bottom: 5px;
}
.instrument-list {
    background: rgba(255, 152, 0, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.instrument-list p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    border-bottom: 1px solid #222;
    padding-bottom: 5px;
}

.instrument-list strong {
    color: #ff9800;
}