/* © WatchJunk */
/* coded by nya & suzunay */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --accent: #00a3ff;
    --accent-hover: #0084d1;
    --accent-glow: rgba(0,163,255,0.3);
    --accent-soft: rgba(0,163,255,0.08);
    --spotify: #1db954;
    --spotify-hover: #1ed760;
    --bg-dark: #07090c;
    --bg-panel: #0f1218;
    --bg-item: #161b22;
    --border: rgba(0,163,255,0.1);
    --border-hover: rgba(0,163,255,0.3);
    --text-primary: #ffffff;
    --text-secondary: #b0b8c8;
    --text-muted: #6b7280;
    --gold: #f59e0b;
    --gold-soft: rgba(245,158,11,0.08);
    --gold-border: rgba(245,158,11,0.15);
    --danger: #ef4444;
    --success: #22c55e;
    --radius: 14px;
    --radius-sm: 10px;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.podcast-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 10rem;
}

/* ── Hero ── */
.hero-section {
    padding: 4rem 0 3rem;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: var(--bg-panel);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.hero-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 0% 50%, rgba(0,163,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-logo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: 0 8px 12px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.hero-description strong { color: var(--accent); font-weight: 700; }

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-stat i {
    color: var(--accent);
    font-size: 0.75rem;
}

.hero-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-social-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-1px);
}

/* ── Section Titles ── */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section-title i {
    font-size: 0.85rem;
    color: var(--accent);
}

.section-title .title-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-left: auto;
}

/* ── Highlights Grid ── */
.highlights-section {
    margin-bottom: 3.5rem;
}

.highlights-section .section-title i { color: var(--gold); }

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.highlight-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-panel);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 14px rgba(0,0,0,0.4);
}

/* First highlight card spans 2 columns */
.highlight-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.highlight-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--bg-item);
}

.highlight-card:first-child .highlight-thumb {
    height: 100%;
    position: absolute;
    inset: 0;
}

.highlight-card:not(:first-child) .highlight-thumb {
    aspect-ratio: 16 / 9;
}

.highlight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlight-card:hover .highlight-thumb img {
    transform: scale(1.06);
}

.highlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7,9,12,0.92) 0%, rgba(7,9,12,0.3) 40%, transparent 70%);
    pointer-events: none;
}

.highlight-card:first-child .highlight-overlay {
    background: linear-gradient(to top, rgba(7,9,12,0.95) 0%, rgba(7,9,12,0.4) 50%, transparent 80%);
}

.highlight-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    z-index: 2;
}

.highlight-card:first-child .highlight-content {
    padding: 2rem;
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: rgba(245,158,11,0.85);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.highlight-card:first-child .highlight-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
}

.highlight-ep {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.3rem;
}

.highlight-card:first-child .highlight-ep {
    font-size: 0.75rem;
}

.highlight-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.highlight-card:first-child .highlight-title {
    font-size: 1.25rem;
    font-weight: 800;
    -webkit-line-clamp: 3;
    margin-bottom: 0.65rem;
}

.highlight-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
}

.highlight-meta i { font-size: 0.65rem; }

.highlight-card:first-child .highlight-meta {
    font-size: 0.8rem;
    gap: 1rem;
}

.highlight-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.highlight-card:not(:first-child) .highlight-actions { display: none; }

/* Highlight buttons – use hj-btn system, keep minimal overrides */
.hl-play-btn {
    border-radius: 999px;
}

.hl-play-btn i { font-size: 0.65rem; }

.hl-spotify-btn {
    text-decoration: none;
    border-radius: 999px;
}

.hl-spotify-btn i { font-size: 0.85rem; }

/* ── Episodes Section ── */
.episodes-section {
    margin-bottom: 3rem;
}

/* ── Podcast Cards Grid ── */
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.podcast-card {
    background: var(--bg-panel);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.podcast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 12px rgba(0,0,0,0.4);
}

.podcast-card.is-favorite:hover {
    box-shadow: 0 12px 12px rgba(0,0,0,0.4);
}

/* Card Image */
.card-image-wrap {
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.podcast-card:hover .card-image {
    transform: scale(1.04);
}

.card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--bg-panel) 0%, transparent 100%);
    pointer-events: none;
}

.card-duration-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-episode-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,163,255,0.85);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Card Content */
.card-content {
    padding: 1rem 1.15rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.card-date i { font-size: 0.65rem; }

.card-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.card-description {
    display: none !important;
}

@media(min-width:768px) {
    .card-description {
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: var(--text-secondary);
        font-size: 0.82rem;
        line-height: 1.55;
    }
}

.card-description a { color: var(--accent); text-decoration: none; }
.card-description a:hover { text-decoration: underline; }

.card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Buttons – use hj-btn system, keep minimal overrides */
.btn-spotify {
    text-decoration: none;
    border-radius: 999px;
}

.btn-spotify i { font-size: 0.85rem; }

.btn-play {
    border-radius: 999px;
}

.btn-play i { font-size: 0.65rem; }

.btn-play.playing {
    background: var(--accent-hover);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ── Audio Player ── */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(12,14,20,0.97) 0%, rgba(8,10,14,0.99) 100%);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 -8px 12px rgba(0,0,0,0.6);
}

.audio-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,163,255,0.3) 50%, transparent 100%);
}

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

.player-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

.now-playing-section {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    flex: 0 0 22%;
    max-width: 300px;
}

.now-playing-image {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-item);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.now-playing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.now-playing-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.now-playing-artist {
    font-size: 11px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.player-controls-wrapper {
    flex: 1;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
}

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

.control-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.control-btn:hover { color: #fff; transform: scale(1.1); }
.control-btn svg { width: 18px; height: 18px; }

.control-btn.play-btn {
    width: 42px;
    height: 42px;
    background: #fff;
    border-radius: 50%;
    color: #0a0c10;
    transition: all 0.15s ease;
    padding: 0;
}

.control-btn.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 8px rgba(255,255,255,0.15);
}

.control-btn.play-btn svg { width: 18px; height: 18px; }
.control-btn.play-btn #playIcon { margin-left: 2px; }

/* Progress */
.progress-section { display: flex; align-items: center; gap: 10px; width: 100%; }

.time-display {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    min-width: 38px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: height 0.15s ease;
}

.progress-bar:hover { height: 6px; }

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

.progress-bar:hover .progress-fill {
    background: linear-gradient(90deg, var(--accent), #33b5ff);
}

.progress-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 6px rgba(0,0,0,0.4);
    transition: transform 0.15s ease;
}

.progress-bar:hover .progress-thumb { transform: translateY(-50%) scale(1); }

/* Additional Controls */
.additional-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 20%;
    justify-content: flex-end;
}

.control-btn-small {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 8px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.control-btn-small:hover { color: #fff; background: rgba(255,255,255,0.06); }
.control-btn-small svg { width: 16px; height: 16px; }

.speed-text {
    font-size: 11px;
    font-weight: 700;
    min-width: 24px;
    letter-spacing: -0.02em;
}

.volume-wrapper { display: flex; align-items: center; gap: 6px; }
.volume-slider-wrapper { width: 90px; }

.volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: transform 0.15s ease;
}

.volume-slider:hover::-webkit-slider-thumb { transform: scale(1.2); }

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Speed Menu */
.speed-menu {
    position: fixed;
    bottom: 90px;
    right: 100px;
    background: rgba(18,22,30,0.98);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 6px 0;
    box-shadow: 0 12px 16px rgba(0,0,0,0.6);
    display: none;
    min-width: 200px;
}

.speed-menu.active { display: block; }

.speed-menu-header {
    padding: 12px 16px 8px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.speed-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    transition: all 0.15s ease;
    font-family: var(--font);
    font-weight: 500;
}

.speed-option:hover { background: rgba(255,255,255,0.04); color: #fff; }
.speed-option.active { color: var(--accent); font-weight: 700; }

/* ── Description Modal ── */
.desc-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    padding: 20px;
}

.desc-modal-content {
    max-width: 700px;
    margin: 5vh auto;
    border-radius: var(--radius);
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.desc-modal-header {
    background: linear-gradient(135deg, rgba(0,163,255,0.15), transparent);
    background-color: var(--bg-item);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desc-modal-title { font-size: 15px; font-weight: 600; margin: 0; }

.desc-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.desc-modal-close:hover { color: #fff; }

.desc-modal-body {
    padding: 28px;
    background-color: var(--bg-item);
    color: #e2e8f0;
    line-height: 1.75;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
    font-size: 15px;
}

.desc-modal-body p { margin: 0 0 1rem; }
.desc-modal-body a { color: #33b5ff; text-decoration: none; }
.desc-modal-body a:hover { text-decoration: underline; }

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i { font-size: 3rem; opacity: 0.3; margin-bottom: 1rem; display: block; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* ── Responsive ── */
@media(max-width: 1100px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .highlight-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
    .highlight-card:first-child .highlight-thumb {
        position: relative;
        height: auto;
        aspect-ratio: 21 / 9;
    }
}

@media(max-width: 768px) {
    .podcast-page { padding: 0 1rem 10rem; }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .hero-logo { width: 100px; height: 100px; border-radius: 16px; }
    .hero-title { font-size: 1.5rem; }
    .hero-description { font-size: 0.88rem; }
    .hero-meta { justify-content: center; }

    .highlights-grid {
        grid-template-columns: 1fr;
    }
    .highlight-card:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }
    .highlight-card:first-child .highlight-thumb {
        position: relative;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .highlight-card:first-child .highlight-title { font-size: 1rem; }
    .highlight-card:first-child .highlight-content { padding: 1.25rem; }
    .highlight-card:not(:first-child) .highlight-actions { display: flex; }

    .podcast-grid { grid-template-columns: 1fr; gap: 1rem; }
    .card-image { height: 200px; }

    .audio-player { height: 130px; }
    .player-wrapper { flex-direction: column; padding: 10px 16px; gap: 4px; }
    .now-playing-section { width: 100%; flex: initial; max-width: none; gap: 10px; }
    .now-playing-image { width: 40px; height: 40px; border-radius: 8px; }
    .now-playing-title { font-size: 12px; }
    .player-controls-wrapper { width: 100%; max-width: none; gap: 4px; }
    .player-controls { gap: 14px; }
    .control-btn.play-btn { width: 36px; height: 36px; }
    .control-btn.play-btn svg { width: 16px; height: 16px; }
    .additional-controls { width: 100%; justify-content: center; flex: initial; gap: 4px; }
    .volume-slider-wrapper { display: none; }
    .control-btn-small#queueBtn, .close-player-btn { display: none; }
    .speed-menu { right: 20px; bottom: 140px; }
}

@media(min-width: 992px) {
    .card-image { height: 240px; }
}

@media(min-width: 1400px) {
    .card-image { height: 260px; }
}

/* Focus */
.control-btn:focus-visible,
.control-btn-small:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,163,255,0.4);
    border-radius: 50%;
}
