/* Spotify 风格播客网站样式 */

/* CSS 变量 */
:root {
    --bg-primary: #121212;
    --bg-secondary: #181818;
    --bg-tertiary: #282828;
    --bg-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #1db954;
    --accent-hover: #1ed760;
    --border: #282828;
    --player-height: 90px;
    --nav-height: 64px;

    /* 报纸印刷风格字体变量 */
    --font-serif: 'Noto Serif SC', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

/* 报纸印刷风格字体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

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

/* 滚动条 */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 顶部导航 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 32px;
    height: 32px;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* 主内容区 */
.main-content {
    padding-top: var(--nav-height);
    padding-bottom: var(--player-height);
    min-height: 100vh;
}

/* 英雄区域 */
.hero-section {
    position: relative;
    padding: 48px 32px;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    background-size: cover;
    background-position: center;
    filter: blur(60px);
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    gap: 32px;
    padding-top: 32px;
}

.hero-cover {
    position: relative;
    flex-shrink: 0;
}

.cover-art {
    width: 232px;
    height: 232px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cover-episode {
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.play-button-large {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(29, 185, 84, 0.3);
    transition: all 0.2s;
    z-index: 10;
}

.play-button-large:hover {
    transform: scale(1.05);
    background: var(--accent-hover);
}

.hero-info {
    flex: 1;
    padding-bottom: 16px;
}

.content-type {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 600px;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.meta-separator {
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--accent);
    color: black;
    border: none;
    border-radius: 500px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 500px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    transform: scale(1.02);
}

/* Episode 网格区 */
.episodes-section {
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.episode-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.episode-card:hover {
    background: var(--bg-tertiary);
}

.card-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-episode-num {
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.card-play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.episode-card:hover .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-play-btn:hover {
    transform: scale(1.1) !important;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* About 区域 */
.about-section {
    padding: 48px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content-with-avatar {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.host-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.host-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-tertiary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.host-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.host-info {
    text-align: center;
}

.host-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.host-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.host-voice {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 播放器 */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-height);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.player-left {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.player-cover {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.mini-cover {
    font-size: 10px;
    color: var(--text-secondary);
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-title {
    font-size: 14px;
    font-weight: 600;
}

.player-author {
    font-size: 12px;
    color: var(--text-secondary);
}

.player-like {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}

.player-like:hover {
    opacity: 1;
    color: var(--accent);
}

.player-center {
    flex: 0 1 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 722px;
}

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

.control-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: var(--text-primary);
}

.control-btn.play-pause {
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    color: black;
    border-radius: 50%;
}

.control-btn.play-pause:hover {
    transform: scale(1.1);
}

.player-progress {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-current,
.time-total {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 35px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

.progress-bar:hover .progress-fill {
    background: var(--accent);
}

.player-right {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 180px;
}

.volume-bar {
    width: 93px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    cursor: pointer;
}

.volume-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    width: 70%;
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 32px;
    }

    .cover-art {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-actions {
        justify-content: center;
        margin-top: 24px;
    }

    .player-left,
    .player-right {
        flex: 0 0 auto;
    }

    .player-center {
        flex: 1;
    }

    .player-info {
        display: none;
    }

    .volume-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-content-with-avatar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .host-avatar {
        width: 150px;
        height: 150px;
    }

    .about-text {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 0 16px;
    }

    .brand-text {
        display: none;
    }

    .hero-section {
        padding: 32px 16px;
    }

    .cover-art {
        width: 160px;
        height: 160px;
    }

    .hero-title {
        font-size: 24px;
    }

    .episodes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .episodes-section {
        padding: 24px 16px;
    }

    .host-avatar {
        width: 120px;
        height: 120px;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.episode-card {
    animation: fadeIn 0.5s ease backwards;
}

.episode-card:nth-child(1) { animation-delay: 0.1s; }
.episode-card:nth-child(2) { animation-delay: 0.2s; }
.episode-card:nth-child(3) { animation-delay: 0.3s; }
.episode-card:nth-child(4) { animation-delay: 0.4s; }

/* ========== TAB 导航样式 ========== */
.tab-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 12px;
    width: fit-content;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.tab-btn.active {
    background: var(--accent);
    color: #000;
}

.tab-icon {
    font-size: 18px;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.tab-btn.active .tab-count {
    background: rgba(0, 0, 0, 0.2);
}

/* TAB 内容区域 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 卡片类型标签 */
.card-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    z-index: 2;
}

.empty-msg {
    color: var(--text-secondary);
    font-size: 16px;
    text-align: center;
    padding: 48px;
    grid-column: 1 / -1;
}

/* 响应式 TAB */
@media (max-width: 768px) {
    .tab-nav {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }
}
