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

:root {
    --bg: #1a1a2e;
    --card: #16213e;
    --text: #e0e0e0;
    --accent: #ff6d00;
    --muted: #888;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 60px;
}

header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #333;
}

header h1 {
    font-size: 18px;
    font-weight: 600;
}

#date-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 12px 16px;
    scrollbar-width: none;
}

#date-scroll::-webkit-scrollbar { display: none; }

.date-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid #444;
    border-radius: 20px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.date-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

#content {
    padding: 16px;
}

.view.hidden { display: none; }

.loading {
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

.seance-card {
    background: var(--card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
}

.seance-card:active { transform: scale(0.98); }

.seance-time {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    min-width: 60px;
}

.seance-info { flex: 1; }

.seance-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.seance-meta {
    font-size: 13px;
    color: var(--muted);
}

.seance-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

#filter-bar {
    display: flex;
    gap: 8px;
    padding: 0 16px 8px;
}

.filter-btn {
    padding: 6px 14px;
    border: 1px solid #444;
    border-radius: 16px;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* Film card */
.film-poster {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 16px;
    display: block;
}

.film-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.film-meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
}

.film-description {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.film-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.film-info-grid dt { color: var(--muted); }
.film-info-grid dd { color: var(--text); }

.trailer-container {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}

.trailer-container video {
    width: 100%;
    border-radius: 12px;
}

.buy-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
}

.back-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text);
    border: 1px solid #444;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 8px;
}

/* Bottom menu */
#bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: var(--card);
    border-top: 1px solid #333;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.menu-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.menu-btn.active {
    color: var(--accent);
}