:root {
            --bg-color: var(--c-bg);
            --card-bg: rgba(255, 255, 255, 0.03);
            --card-border: rgba(255, 255, 255, 0.1);
            --accent-cyan:var(--c-cyan);
            --accent-amber:var(--c-warn);
            --text-main:var(--c-text);
            --text-muted:var(--c-muted);
        }

        /* Light Mode Colors */
        html.light-mode {
            --bg-color:var(--c-text);
            --card-bg: rgba(255, 255, 255, 0.9);
            --card-border: rgba(0, 0, 0, 0.1);
            --text-main:var(--c-bg2);
            --text-muted:var(--c-muted);
        }

        * {
            transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        }

        body {
            margin: 0;
            padding: 0;
            background-color:var(--bg-color);
            color:var(--text-main);
            font-family: 'Outfit', sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Header */
        header {
            padding: 20px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background:var(--card-bg);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--card-border);
            flex-shrink: 0;
            z-index: 100;
        }

        .home-link {
            text-decoration: none;
            color:var(--accent-cyan);
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            font-size: 0.9rem;
        }

        .home-link:hover {
            color:var(--c-text);
            text-shadow: 0 0 10px var(--accent-cyan);
        }

        h1 {
            margin: 0;
            font-size: 1.2rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            font-weight: 700;
        }

        /* Layout */
        .container {
            display: flex;
            flex: 1;
            max-width: 1600px;
            margin: 0 auto;
            padding: 30px 40px;
            gap: 40px;
            align-items: flex-start;
            width: 100%;
            box-sizing: border-box;
        }

        /* Left Panel: Calendar & Filters */
        .sidebar {
            width: 350px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            flex-shrink: 0;
            position: sticky;
            top: 60px;              /* 상단 고정 네비(48px) 아래로 */
            max-height: calc(100vh - 72px);
            overflow-y: auto;
            padding-right: 5px;
        }

        .sidebar::-webkit-scrollbar {
            width: 10px;
        }

        .sidebar::-webkit-scrollbar-track {
            background:var(--c-bg2);
        }

        .sidebar::-webkit-scrollbar-thumb {
            background:var(--c-border2);
            border-radius: 5px;
        }

        .glass-panel {
            background:var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 20px;
            padding: 25px;
            backdrop-filter: blur(10px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            flex-shrink: 0;
        }

        /* Filter Groups */
        .filter-group h3 {
            margin: 0 0 15px 0;
            font-size: 0.8rem;
            color:var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .tag {
            background:rgba(255, 255, 255, 0.05);
            border: 1px solid var(--card-border);
            color:var(--text-muted);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .tag:hover {
            border-color:var(--accent-cyan);
            color:var(--c-text);
            background:rgba(76, 201, 240, 0.1);
        }

        .tag.active {
            background:rgba(76, 201, 240, 0.15);
            border-color:var(--accent-cyan);
            color:var(--accent-cyan);
            box-shadow: 0 0 15px rgba(76, 201, 240, 0.2);
        }

        /* Calendar */
        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .calendar-header h2 {
            margin: 0;
            font-size: 1.1rem;
            font-weight: 500;
        }

        .nav-btn {
            background:none;
            border: none;
            color:var(--text-muted);
            font-size: 1.2rem;
            cursor: pointer;
            transition: color 0.3s;
        }

        .nav-btn:hover {
            color:var(--c-text);
        }

        .calendar-grid-header {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
            text-align: center;
            margin-bottom: 10px;
        }

        .day-name {
            font-size: 0.75rem;
            color:var(--text-muted);
            font-weight: 600;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
            text-align: center;
        }

        .day {
            aspect-ratio: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            font-size: 0.9rem;
            color:var(--text-muted);
        }

        .day:hover {
            background:rgba(255, 255, 255, 0.1);
            color:var(--c-text);
        }

        .day.selected {
            background:var(--accent-amber);
            color:#000;
            font-weight: 700;
            box-shadow: 0 0 15px rgba(255, 158, 0, 0.4);
        }

        .day.has-data::after {
            content: '';
            position: absolute;
            bottom: 6px;
            width: 4px;
            height: 4px;
            background:var(--accent-cyan);
            border-radius: 50%;
            box-shadow: 0 0 5px var(--accent-cyan);
        }

        .day.empty {
            cursor: default;
            pointer-events: none;
        }

        /* Right Panel: Episode List */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
            min-width: 0;
        }

        .list-header {
            font-size: 1rem;
            color:var(--text-muted);
            margin-bottom: 10px;
            flex-shrink: 0;
        }

        .episode-list {
            flex: 1;
            padding-right: 10px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            padding-bottom: 120px;
            min-height: 0;
        }

        .episode-card {
            background:var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 15px;
            padding: 20px;
            display: flex;
            align-items: center;
            gap: 20px;
            transition: all 0.3s;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            flex-shrink: 0;
        }

        .episode-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background:var(--accent-cyan);
            opacity: 0;
            transition: opacity 0.3s;
        }

        .episode-card:hover {
            background:rgba(255, 255, 255, 0.07);
            border-color:rgba(255, 255, 255, 0.3);
            transform: translateX(5px);
        }

        .episode-card:hover::before {
            opacity: 1;
        }

        .episode-card.playing {
            border-color:var(--accent-amber);
            background:rgba(255, 158, 0, 0.05);
        }

        .episode-card.playing::before {
            background:var(--accent-amber);
            opacity: 1;
        }

        .play-icon {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background:rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color:var(--accent-cyan);
            font-size: 1.2rem;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .episode-card:hover .play-icon {
            background:var(--accent-cyan);
            color:#000;
            box-shadow: 0 0 15px rgba(76, 201, 240, 0.4);
        }

        .episode-card.playing .play-icon {
            background:var(--accent-amber);
            color:#000;
            box-shadow: 0 0 15px rgba(255, 158, 0, 0.4);
        }

        .episode-info {
            flex: 1;
            min-width: 0;
        }

        .episode-info h3 {
            margin: 0 0 5px 0;
            font-size: 1.1rem;
            font-weight: 500;
            color:var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .episode-info p {
            margin: 0;
            font-size: 0.85rem;
            color:var(--text-muted);
        }

        .episode-date {
            font-size: 0.75rem;
            color:var(--c-muted);
            margin-top: 5px;
        }

        .article-link {
            display: inline-block;
            margin-left: 10px;
            padding: 2px 8px;
            background:rgba(76, 201, 240, 0.1);
            border: 1px solid var(--accent-cyan);
            border-radius: 4px;
            color:var(--accent-cyan);
            text-decoration: none;
            font-size: 0.75rem;
            transition: all 0.2s;
        }

        .article-link:hover {
            background:var(--accent-cyan);
            color:#000;
        }

        /* Player Bar (Bottom) */
        .player-bar {
            background:var(--card-bg);
            border-top: 1px solid var(--card-border);
            padding: 15px 40px;
            display: flex;
            align-items: center;
            gap: 30px;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            box-sizing: border-box;
            backdrop-filter: blur(20px);
            z-index: 200;
            transform: translateY(100%);
            transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
        }

        .player-bar.active {
            transform: translateY(0);
        }

        .player-controls {
            display: flex;
            align-items: center;
            gap: 20px;
            flex-shrink: 0;
        }

        .btn-control {
            background:none;
            border: none;
            color:var(--c-text);
            cursor: pointer;
            font-size: 1.2rem;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-control:hover {
            color:var(--accent-cyan);
        }

        .btn-play {
            width: 50px;
            height: 50px;
            background:var(--accent-cyan);
            border-radius: 50%;
            color:#000;
            font-size: 1.5rem;
            box-shadow: 0 0 20px rgba(76, 201, 240, 0.4);
            padding-left: 4px;
        }

        .btn-play:hover {
            transform: scale(1.1);
            color:#000;
            background:#fff;
        }

        .track-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-width: 0;
        }

        .track-title {
            font-size: 1rem;
            font-weight: 500;
            margin-bottom: 3px;
            color:var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .track-meta {
            font-size: 0.8rem;
            color:var(--text-muted);
        }

        .progress-container {
            flex: 2;
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 0.8rem;
            color:var(--text-muted);
            min-width: 200px;
        }

        .progress-bar-wrapper {
            flex: 1;
            height: 6px;
            background:rgba(255, 255, 255, 0.1);
            border-radius: 3px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background:var(--accent-amber);
            width: 0%;
            border-radius: 3px;
            position: relative;
            transition: width 0.1s linear;
        }

        .progress-fill::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 10px;
            height: 10px;
            background:#fff;
            border-radius: 50%;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
            opacity: 0;
            transition: opacity 0.2s;
        }

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

        .speed-btn {
            background:rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color:var(--text-muted);
            cursor: pointer;
            font-size: 0.8rem;
            font-family: 'Outfit', sans-serif;
            font-weight: 500;
            padding: 6px 12px;
            border-radius: 20px;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .speed-btn:hover {
            border-color:var(--accent-cyan);
            color:var(--accent-cyan);
        }

        .speed-btn.active {
            background:var(--accent-cyan);
            border-color:var(--accent-cyan);
            color:#000;
            font-weight: 700;
        }

        .visualizer {
            display: flex;
            gap: 4px;
            align-items: flex-end;
            height: 30px;
            width: 60px;
            margin-right: 20px;
            flex-shrink: 0;
        }

        .bar {
            width: 6px;
            background:var(--accent-cyan);
            border-radius: 3px;
            animation: bounce 1s infinite ease-in-out;
        }

        .bar:nth-child(1) {
            animation-delay: 0.0s;
            height: 40%;
        }

        .bar:nth-child(2) {
            animation-delay: 0.1s;
            height: 80%;
        }

        .bar:nth-child(3) {
            animation-delay: 0.2s;
            height: 60%;
        }

        .bar:nth-child(4) {
            animation-delay: 0.3s;
            height: 90%;
        }

        .bar:nth-child(5) {
            animation-delay: 0.4s;
            height: 50%;
        }

        .visualizer.paused .bar {
            animation-play-state: paused;
            height: 10% !important;
            transition: height 0.5s;
            opacity: 0.5;
        }

        @keyframes bounce {

            0%,
            100% {
                height: 20%;
            }

            50% {
                height: 100%;
            }
        }

        .empty-state {
            text-align: center;
            color:var(--text-muted);
            margin-top: 50px;
        }

        .empty-state-icon {
            font-size: 3rem;
            margin-bottom: 10px;
            opacity: 0.3;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {

            html,
            body {
                height: auto !important;
                min-height: 100vh;
                overflow-y: auto !important;
                display: block !important;
                -webkit-overflow-scrolling: touch;
            }

            .container {
                display: block !important;
                padding: 20px;
                padding-bottom: 250px !important;
                /* Space for player bar */
                height: auto !important;
                overflow: visible !important;
            }

            .sidebar {
                width: 100% !important;
                height: auto !important;
                overflow: visible !important;
                /* 데스크톱의 sticky·max-height 를 풀어야 한다 — 세로로 쌓인 모바일에서 사이드바가 화면 위에 붙어
                   아래 목록 머리(모음 버튼)를 덮어 탭이 안 됐다(390x844, 2026-09-26). */
                position: static !important;
                max-height: none !important;
                margin-bottom: 30px;
                padding-bottom: 30px;
                border-bottom: 1px solid var(--card-border);
                flex: none !important;
            }

            .main-content {
                width: 100% !important;
                height: auto !important;
                overflow: visible !important;
                display: block !important;
                flex: none !important;
            }

            .episode-list {
                display: block !important;
                height: auto !important;
                overflow: visible !important;
                padding-bottom: 0 !important;
            }

            header {
                padding: 15px 20px;
            }

            .player-bar {
                padding: 20px;
                flex-direction: column;
                gap: 15px;
                height: auto;
                max-height: 30vh;
                overflow-y: auto;
            }

            .player-controls {
                width: 100%;
                justify-content: center;
            }

            .track-info {
                width: 100%;
                text-align: center;
            }

            .progress-container {
                width: 100%;
            }

            .visualizer {
                display: none;
            }
        }

        /* Theme Toggle Button */
        .theme-toggle {
            background:var(--card-bg);
            border: 2px solid var(--card-border);
            border-radius: 50px;
            padding: 8px 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.8rem;
            color:var(--text-main);
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
        }

        .theme-toggle:hover {
            border-color:var(--accent-cyan);
        }

        .theme-icon {
            font-size: 1rem;
        }

/* 시간대별/일별 모음 듣기 버튼 */
.compile-btn {
    margin-left: 6px;
    padding: 4px 12px;
    border: 1px solid #884a00;
    background:rgba(255, 140, 0, 0.12);
    color:inherit;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.compile-btn:hover {
    background:rgba(255, 140, 0, 0.25);
}
.compile-daily {
    font-weight: 600;
    background:rgba(255, 140, 0, 0.22);
}
.compile-divider {
    opacity: 0.4;
    margin: 0 4px;
}
.list-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

/* ── 팟캐스트 제목 검색 (2026-06-14) ── */
.podcast-search { position: relative; margin-bottom: 16px; }
.podcast-search-input {
    width: 100%; box-sizing: border-box;
    padding: 12px 40px 12px 16px;
    background:var(--card-bg); color:var(--text-main);
    border: 1px solid var(--card-border); border-radius: 999px;
    font-size: 15px; font-family: inherit; outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.podcast-search-input:focus { border-color:var(--accent-cyan); box-shadow: 0 0 0 2px rgba(76,201,240,0.15); }
.podcast-search-input::placeholder { color:var(--text-muted); }
.podcast-search-clear {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background:none; border: none; color:var(--text-muted);
    font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.podcast-search-clear:hover { color:var(--text-main); }
