/* ═══════════════════════════════════════════════════════════════════════════
   PodStation - Spotify-Style Podcast Player
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ──────────────────────────────────────────────────────── */
:root {
    --bg-primary: #121212;
    --bg-secondary: #181818;
    --bg-elevated: #282828;
    --bg-highlight: #333333;
    --bg-card-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-subdued: #6a6a6a;
    --accent: #1DB954;
    --accent-hover: #1ed760;
    --accent-glow: rgba(29, 185, 84, 0.3);
    --danger: #e74c3c;
    --danger-hover: #c0392b;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.7);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --player-height: 90px;
    --sidebar-width: 280px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    color: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    outline: none;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--bg-highlight);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-subdued);
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: var(--player-height);
}

/* ─── Header / Navbar ────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: transform var(--transition-normal);
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.navbar-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-title span {
    color: var(--accent);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.nav-link-admin {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
}

.nav-link-admin:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ─── Main Content ───────────────────────────────────────────────────────── */
.main-content {
    flex: 1;
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ─── Section Headers ────────────────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.section-subtitle:hover {
    color: var(--text-primary);
}

/* ─── Hero Banner ────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 60px 40px;
    border-radius: var(--radius-xl);
    margin-bottom: 48px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a3a2a 0%, #0d1f17 40%, var(--bg-secondary) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(29, 185, 84, 0.15);
    border: 1px solid rgba(29, 185, 84, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
}

/* ─── Podcast Grid ───────────────────────────────────────────────────────── */
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* ─── Podcast Card ───────────────────────────────────────────────────────── */
.podcast-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.podcast-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.podcast-card-cover {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-elevated);
    margin-bottom: 16px;
}

.podcast-card-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.podcast-card:hover .podcast-card-cover img {
    transform: scale(1.05);
}

.podcast-card-cover .play-btn-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition-smooth);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.podcast-card:hover .play-btn-overlay {
    opacity: 1;
    transform: translateY(0);
}

.play-btn-overlay svg {
    width: 20px;
    height: 20px;
    fill: #000;
    margin-left: 2px;
}

.podcast-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-highlight));
}

.podcast-card-placeholder svg {
    width: 48px;
    height: 48px;
    fill: var(--text-subdued);
}

.podcast-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podcast-card-author {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.podcast-card-meta {
    font-size: 0.75rem;
    color: var(--text-subdued);
    margin-top: 4px;
}

/* ─── Podcast Detail View ────────────────────────────────────────────────── */
.podcast-detail {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.podcast-detail-header {
    display: flex;
    gap: 32px;
    padding: 40px;
    border-radius: var(--radius-xl);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.podcast-detail-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29, 185, 84, 0.12) 0%, var(--bg-secondary) 60%);
    z-index: 0;
}

.podcast-detail-header>* {
    position: relative;
    z-index: 1;
}

.podcast-detail-cover {
    width: 232px;
    height: 232px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-elevated);
    background: var(--bg-elevated);
}

.podcast-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-detail-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-highlight));
}

.podcast-detail-cover-placeholder svg {
    width: 64px;
    height: 64px;
    fill: var(--text-subdued);
}

.podcast-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

.podcast-detail-type {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.podcast-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.podcast-detail-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 600px;
}

.podcast-detail-author {
    font-size: 0.875rem;
    font-weight: 600;
}

.podcast-detail-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ─── Action Bar ─────────────────────────────────────────────────────────── */
.action-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    margin-bottom: 16px;
}

.btn-play-all {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-play-all:hover {
    transform: scale(1.06);
    background: var(--accent-hover);
}

.btn-play-all svg {
    width: 24px;
    height: 24px;
    fill: #000;
    margin-left: 3px;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    transition: all var(--transition-normal);
}

.btn-back:hover {
    color: var(--text-primary);
    background: var(--bg-highlight);
}

.btn-back svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ─── Episode List ───────────────────────────────────────────────────────── */
.episode-list-header {
    display: grid;
    grid-template-columns: 40px 1fr 120px;
    gap: 16px;
    padding: 0 16px 8px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--text-subdued);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.episode-item {
    display: grid;
    grid-template-columns: 40px 1fr 120px;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    position: relative;
}

.episode-item:hover {
    background: var(--bg-elevated);
}

.episode-item.playing {
    background: rgba(29, 185, 84, 0.08);
}

.episode-number {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.episode-item:hover .episode-number,
.episode-item.playing .episode-number {
    color: var(--accent);
}

.episode-info {
    min-width: 0;
}

.episode-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-item.playing .episode-title {
    color: var(--accent);
}

.episode-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.episode-description.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.episode-description:hover {
    color: var(--text-primary);
}

.episode-desc-toggle {
    font-size: 0.7rem;
    color: var(--accent);
    cursor: pointer;
    margin-top: 4px;
    font-weight: 500;
    display: inline-block;
}

.episode-desc-toggle:hover {
    text-decoration: underline;
}


.episode-duration {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.episode-date {
    font-size: 0.75rem;
    color: var(--text-subdued);
    margin-top: 2px;
}

/* ─── Empty State ────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    fill: var(--text-subdued);
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Player Bar ─────────────────────────────────────────────────────────── */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-height);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 0 16px;
    z-index: 200;
    transition: transform var(--transition-smooth);
}

.player-bar.hidden {
    transform: translateY(100%);
}

.player-bar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

/* Player left: track info */
.player-track {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.player-track-cover {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.player-track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-track-info {
    min-width: 0;
}

.player-track-title {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-track-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Player center: controls */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.player-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.player-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.player-btn-play {
    width: 36px;
    height: 36px;
    background: var(--text-primary);
    color: var(--bg-primary);
}

.player-btn-play:hover {
    transform: scale(1.08);
    background: var(--text-primary);
    color: var(--bg-primary);
}

.player-btn-play svg {
    width: 16px;
    height: 16px;
    fill: var(--bg-primary);
}

/* Player progress bar */
.player-progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 600px;
}

.player-time {
    font-size: 0.7rem;
    color: var(--text-subdued);
    font-variant-numeric: tabular-nums;
    min-width: 40px;
    text-align: center;
}

.player-progress {
    flex: 1;
    height: 4px;
    background: var(--bg-highlight);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.player-progress:hover {
    height: 6px;
}

.player-progress-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    position: relative;
    transition: width 0.1s linear;
}

.player-progress:hover .player-progress-fill {
    background: var(--accent);
}

.player-progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.player-progress:hover .player-progress-fill::after {
    opacity: 1;
}

/* Player right: volume */
.player-extra {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.volume-btn:hover {
    color: var(--text-primary);
}

.volume-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.volume-slider {
    width: 100px;
    height: 4px;
    background: var(--bg-highlight);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-slider:hover {
    height: 6px;
}

.volume-slider-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.volume-slider:hover .volume-slider-fill {
    background: var(--accent);
}

/* ─── Loading ────────────────────────────────────────────────────────────── */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-elevated);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Toast Notifications ────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    box-shadow: var(--shadow-card);
    animation: slideIn 0.3s ease;
    border-left: 3px solid var(--accent);
}

.toast.error {
    border-left-color: var(--danger);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ─── Admin Page ─────────────────────────────────────────────────────────── */
.admin-container {
    max-width: 900px;
    margin: 0 auto;
}

.admin-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border-subtle);
}

.admin-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card h2 svg {
    width: 22px;
    height: 22px;
    fill: var(--accent);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    background: var(--bg-elevated);
    border: 2px dashed var(--bg-highlight);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.form-file-label:hover {
    border-color: var(--accent);
    background: rgba(29, 185, 84, 0.05);
}

.form-file-label svg {
    width: 32px;
    height: 32px;
    fill: var(--text-subdued);
}

.form-file-label span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-file-label .file-name {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.form-file-input {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--bg-elevated);
}

/* Admin podcast list */
.admin-podcast-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: background var(--transition-fast);
}

.admin-podcast-item:hover {
    background: var(--bg-highlight);
}

.admin-podcast-info {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

.admin-podcast-cover {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-primary);
}

.admin-podcast-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-podcast-details {
    min-width: 0;
}

.admin-podcast-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-podcast-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Admin login */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
}

.login-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    border: 1px solid var(--border-subtle);
}

.login-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.login-card .form-input {
    text-align: center;
    font-size: 1rem;
    letter-spacing: 2px;
}

.login-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
    }

    .main-content {
        padding: 20px 16px;
    }

    .hero {
        padding: 32px 24px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .podcast-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .podcast-detail-header {
        flex-direction: column;
        padding: 24px;
        align-items: center;
        text-align: center;
    }

    .podcast-detail-cover {
        width: 180px;
        height: 180px;
    }

    .podcast-detail-title {
        font-size: 1.75rem;
    }

    .podcast-detail-description {
        max-width: 100%;
    }

    .episode-list-header {
        grid-template-columns: 32px 1fr;
    }

    .episode-list-header .episode-duration-header {
        display: none;
    }

    .episode-item {
        grid-template-columns: 32px 1fr;
    }

    .episode-duration {
        display: none;
    }

    .player-bar {
        grid-template-columns: 1fr 1fr;
        height: 70px;
        padding: 0 12px;
    }

    .player-extra {
        display: none;
    }

    .player-progress-container {
        display: none;
    }

    .player-track-cover {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .podcast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .podcast-card {
        padding: 12px;
    }

    .navbar-title {
        font-size: 1.1rem;
    }
}

/* ─── Equalizer Animation ────────────────────────────────────────────────── */
.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.equalizer-bar {
    width: 3px;
    background: var(--accent);
    border-radius: 1px;
    animation: equalize 0.8s ease-in-out infinite;
}

.equalizer-bar:nth-child(1) {
    animation-delay: 0s;
    height: 60%;
}

.equalizer-bar:nth-child(2) {
    animation-delay: 0.2s;
    height: 100%;
}

.equalizer-bar:nth-child(3) {
    animation-delay: 0.4s;
    height: 40%;
}

.equalizer-bar:nth-child(4) {
    animation-delay: 0.1s;
    height: 80%;
}

@keyframes equalize {

    0%,
    100% {
        height: 20%;
    }

    50% {
        height: 100%;
    }
}