/* ======================================
   沙雕即时互动剧 — 剧本选择大厅
   ====================================== */

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

:root {
    --gold: #d4a853;
    --gold-light: #f0d68a;
    --gold-dark: #a07830;
    --bg-dark: #0d0805;
    --bg-card: rgba(30, 20, 14, 0.95);
    --text-light: #f5e6d0;
    --text-dim: #a89080;
    --red-accent: #c0392b;
}

body {
    font-family: 'Noto Serif SC', 'PingFang SC', serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(212, 168, 83, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(192, 57, 43, 0.04) 0%, transparent 60%);
}

/* === 大厅容器 === */
.lobby-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 30px 80px;
}

/* === 头部 === */
.lobby-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.lobby-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3.5rem;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212, 168, 83, 0.4), 0 4px 8px rgba(0,0,0,0.6);
    margin-bottom: 12px;
    letter-spacing: 0.08em;
}

.lobby-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    letter-spacing: 0.3em;
}

/* === 剧本卡片网格 === */
.drama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.loading-hint, .empty-hint {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-dim);
    font-size: 1.1rem;
    padding: 60px 0;
}

/* === 剧本卡片 === */
.drama-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s ease;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out both;
    position: relative;
}

.drama-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(212, 168, 83, 0.15), 0 0 60px rgba(212, 168, 83, 0.06);
}

/* === 封面 === */
.card-cover {
    width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: #1a120e;
    position: relative;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(13, 8, 5, 0.85) 100%);
}

/* === 信息区 === */
.card-info {
    padding: 20px 22px 14px;
    flex: 1;
}

.card-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 10px;
    letter-spacing: 0.15em;
}

.card-desc {
    font-size: 0.85rem;
    color: rgba(168, 144, 128, 0.8);
    line-height: 1.5;
}

/* === 播放按钮 === */
.card-play {
    padding: 14px 22px;
    text-align: center;
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold-light);
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.1), rgba(160, 120, 48, 0.2));
    border-top: 1px solid rgba(212, 168, 83, 0.15);
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
}

.drama-card:hover .card-play {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.25), rgba(160, 120, 48, 0.35));
    color: #fff;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === 响应式 === */
@media (max-width: 600px) {
    .lobby-title {
        font-size: 2.2rem;
    }

    .lobby-container {
        padding: 40px 16px 60px;
    }

    .drama-grid {
        grid-template-columns: 1fr;
    }
}
