* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;700&display=swap');

body {
    font-family: 'Caveat', cursive;
    color: #333;
}

/* Header Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: #4b4b4b;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero-quiz {
    background-image: url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 40px;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.playlist-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 90px;
    background: linear-gradient(180deg, #eef9f7 0%, #dff2ee 100%);
}

.playlist-wrapper {
    width: 100%;
    max-width: 1100px;
    text-align: center;
}

.playlist-title {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    color: #1f7a6e;
    margin-bottom: 12px;
}

.playlist-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #4d6864;
    margin-bottom: 36px;
}

.playlist-card {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(42, 155, 142, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.playlist-card-header {
    margin-bottom: 22px;
}

.playlist-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2a9b8e, #238076);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.playlist-card-header h3 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    color: #1d6b62;
    margin-bottom: 10px;
}

.playlist-card-header p {
    font-size: 1.2rem;
    color: #56716d;
    max-width: 620px;
    margin: 0 auto;
}

.playlist-embed {
    display: block;
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #dcefeb;
}

.playlist-embed iframe {
    display: block;
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 22px;
}

.playlist-link {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2a9b8e, #1f7a6e);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.playlist-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(42, 155, 142, 0.24);
}

.playlist-api-panel {
    margin-top: 28px;
    text-align: left;
    padding-top: 24px;
    border-top: 1px solid rgba(42, 155, 142, 0.18);
}

.playlist-api-heading h4 {
    font-size: 1.9rem;
    color: #1d6b62;
    margin-bottom: 8px;
}

.playlist-api-heading p {
    font-size: 1.1rem;
    color: #56716d;
    margin-bottom: 18px;
}

.playlist-status {
    padding: 14px 18px;
    border-radius: 16px;
    background: #edf8f5;
    color: #1f7a6e;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.playlist-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.playlist-video-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 10px 26px rgba(42, 155, 142, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.playlist-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(42, 155, 142, 0.18);
}

.playlist-video-card.is-active {
    border-color: #2a9b8e;
    box-shadow: 0 16px 32px rgba(42, 155, 142, 0.22);
}

.playlist-video-card:focus-visible {
    outline: 3px solid rgba(42, 155, 142, 0.35);
    outline-offset: 4px;
}

.playlist-video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #dcefeb;
}

.playlist-video-body {
    padding: 14px 16px 18px;
}

.playlist-video-index {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #238076;
}

.playlist-video-title {
    font-size: 1.15rem;
    line-height: 1.35;
    color: #1d6b62;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .playlist-section {
        padding: 40px 16px 70px;
    }

    .playlist-card {
        padding: 20px;
        border-radius: 22px;
    }

    .playlist-api-heading h4 {
        font-size: 1.6rem;
    }

    .playlist-embed {
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }

    .logo-text {
        font-size: 14px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .playlist-title {
        font-size: 2.1rem;
    }

    .playlist-subtitle,
    .playlist-card-header p {
        font-size: 1.05rem;
    }

    .playlist-embed {
        min-height: 260px;
    }

}
