/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f2f2f7;
    color: #1c1c1e;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}

/* Overlay – efek sangat tipis */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.02);
    pointer-events: none;
    z-index: 1;
}

/* ===== CONTAINER FULL WIDTH ===== */
.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 20px 30px;
    position: relative;
    z-index: 2;
}

/* ===== HEADER DENGAN JUDUL DI TENGAH DAN DIPERBESAR ===== */
header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0 15px;  /* padding atas/bawah ditambah */
}

header h1 {
    font-size: 48px;          /* diperbesar dari 32px menjadi 48px */
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(145deg, #000000, #2c2c2e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin: 0;
    white-space: nowrap;
}

.menu-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.menu-btn {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(60,60,67,0.1);
    border-radius: 30px;
    width: 48px;              /* sedikit lebih besar */
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007aff;
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.menu-btn:hover {
    background: rgba(255,255,255,1);
    border-color: rgba(60,60,67,0.2);
}

.dropdown-menu {
    position: absolute;
    top: 55px;                /* sedikit turun karena tombol lebih besar */
    right: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border: 1px solid rgba(60,60,67,0.1);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.2s;
    z-index: 20;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 14px 18px;
    color: #007aff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid rgba(60,60,67,0.05);
    transition: 0.1s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(0,122,255,0.1);
}

/* ===== GREETING & TIME – JARAK DITAMBAH AGAR TIDAK TERTIMPA DROPDOWN ===== */
.greeting-time {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 14px 18px;
    border-radius: 30px;
    margin: 80px 0 30px;       /* margin-top diperbesar jadi 80px */
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.greeting {
    font-size: 22px;           /* sedikit diperbesar */
    font-weight: 600;
    color: #1c1c1e;
}

.time-date {
    display: flex;
    gap: 10px;
    color: #3a3a3c;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0,0,0,0.02);
    padding: 6px 14px;
    border-radius: 40px;
    border: 1px solid rgba(60,60,67,0.05);
}

/* ===== CAROUSEL ===== */
.carousel-container {
    position: relative;
    margin-top: 20px;
}

.podcast-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding: 10px 30px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-padding: 0 20px;
}

.podcast-carousel::-webkit-scrollbar {
    display: none;
}

/* Card podcast – DIPERBESAR */
.podcast-card {
    flex: 0 0 340px;
    scroll-snap-align: center;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 16px 32px -12px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.02);
    transition: 0.2s;
}

.podcast-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 36px -10px rgba(0,122,255,0.25);
}

/* Cover lebih besar */
.podcast-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e5e5ea;       /* warna latar sementara jika gambar gagal */
    border-bottom: 1px solid rgba(60,60,67,0.05);
}

/* Fallback jika gambar benar-benar tidak ada (tetap tampil) */
.podcast-cover[src=""],
.podcast-cover:not([src]) {
    content: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' width=\'400\' height=\'225\' viewBox=\'0 0 400 225\'%3E%3Crect width=\'400\' height=\'225\' fill=\'%23dddddd\'/%3E%3Ctext x=\'50%25\' y=\'50%25\' dominant-baseline=\'middle\' text-anchor=\'middle\' font-family=\'Arial\' font-size=\'18\' fill=\'%23333\'%3ENo Cover%3C/text%3E%3C/svg%3E');
}

/* Konten card */
.podcast-content {
    padding: 20px 18px 22px;
}

.podcast-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    color: #000;
}

.podcast-content p {
    font-size: 16px;
    color: #3a3a3c;
    margin-bottom: 20px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-actions {
    display: flex;
    gap: 14px;
}

.btn {
    flex: 1;
    padding: 14px 0;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    background: #007aff;
    color: white;
    box-shadow: 0 2px 8px rgba(0,122,255,0.25);
}

.btn-primary {
    background: #007aff;
}

.btn-secondary {
    background: #f2f2f7;
    color: #007aff;
    border: 1px solid rgba(0,122,255,0.2);
    box-shadow: none;
}

.btn-secondary:hover {
    background: #e5e5ea;
}

/* Dots carousel */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 10px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #c6c6c8;
    border-radius: 20px;
    transition: 0.2s;
    cursor: pointer;
}

.dot.active {
    width: 24px;
    background: #007aff;
}

/* Loading & empty message */
.loading, .empty-message {
    text-align: center;
    padding: 50px 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border-radius: 36px;
    font-size: 18px;
    color: #3a3a3c;
    border: 1px solid rgba(255,255,255,0.8);
    width: 100%;
}

/* Fade-in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsif untuk layar kecil */
@media (max-width: 600px) {
    .container {
        padding: 0 16px 20px;
    }
    
    header h1 {
        font-size: 36px;        /* tetap besar tapi proporsional */
    }
    
    .greeting-time {
        margin-top: 60px;       /* jarak tetap aman */
    }
    
    .greeting-time {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .time-date {
        width: 100%;
        justify-content: space-between;
    }
    
    .podcast-card {
        flex: 0 0 280px;
    }
    
    .podcast-cover {
        height: 160px;
    }
}

@media (max-width: 400px) {
    header h1 {
        font-size: 28px;        /* lebih kecil di layar sangat sempit */
    }
    
    .menu-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}