/* ============================================
   Preview Night — Site Styles
   ============================================ */

/* --- Base / Variables --- */
:root {
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --color-text: #1a1a1a;
    --color-muted: #555;
    --color-light: #666;
    --color-btn: #2c2c2c;
    --color-btn-hover: #444;
    --max-width: 900px;
}

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

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: #fff;
}

a { color: var(--color-text); }
a:hover { color: var(--color-muted); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.25;
    text-align: center;
    margin-bottom: 16px;
}

h2 {
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--color-muted);
    text-align: center;
    margin-bottom: 24px;
}

/* --- Layout --- */
.content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.page-main {
    padding-top: 32px;
}

/* --- Header --- */
.site-header { padding: 20px 24px; }

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-decoration: none;
    color: var(--color-text);
}
.logo-img {
    height: 24px;
    width: auto;
}

.header-nav { display: flex; gap: 20px; }

.header-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: none;
}
.header-link:hover { color: var(--color-text); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    background-color: var(--color-btn);
    color: #fff;
    border-radius: 6px;
    padding: 10px 24px;
    transition: background-color 0.2s ease;
}
.btn:hover {
    background-color: var(--color-btn-hover);
    color: #fff;
}

.btn-small {
    font-size: 13px;
    padding: 6px 16px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* --- Dividers --- */
.divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 32px 0;
}

/* --- Footer --- */
.site-footer {
    padding: 24px;
    font-size: 0.85rem;
    color: var(--color-light);
}
.site-footer a { color: var(--color-light); }

/* --- Page Subtitle --- */
.page-subtitle {
    font-size: 0.95rem;
    color: var(--color-muted);
    text-align: center;
    margin-bottom: 24px;
}

/* --- Filters --- */
.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filters select {
    font-family: var(--font-main);
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
}
.filters select:focus {
    outline: 2px solid var(--color-btn);
    outline-offset: 1px;
}

/* --- Section Headings --- */
.section-heading {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

/* --- Hero Image --- */
.hero-image {
    margin-bottom: 32px;
}

.hero-image img {
    width: 100%;
    border-radius: 4px;
}

/* --- Coming Up Section --- */
.coming-up-list {
    margin-bottom: 32px;
    padding-left: 16px;
}

.coming-up-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.coming-up-item:last-child { border-bottom: none; }

.coming-up-title {
    font-weight: 600;
    font-size: 1rem;
}

.coming-up-title a { text-decoration: none; }
.coming-up-title a:hover { text-decoration: underline; }

.coming-up-meta {
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* --- Show List --- */
.show-list { margin-bottom: 48px; }

.show-item {
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    display: grid;
    grid-template-columns: 90px 40px 1fr auto;
    gap: 16px;
    align-items: baseline;
}

.show-item:last-child { border-bottom: none; }

.show-date {
    font-size: 0.9rem;
    color: var(--color-muted);
    white-space: nowrap;
}

/* --- Show Thumbnails --- */
.show-thumbnail {
    width: 40px;
    align-self: center;
}
.show-thumbnail img {
    width: 40px;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.show-info { min-width: 0; }

.show-title {
    font-weight: 600;
    font-size: 1rem;
}

.show-title a { text-decoration: none; }
.show-title a:hover { text-decoration: underline; }

.show-venue {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.show-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f0f0f0;
    color: var(--color-muted);
    white-space: nowrap;
}

/* --- Closing Tags --- */
.tag-closing,
.tag-closing-urgent {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.tag-closing {
    background: #f0f0f0;
    color: var(--color-muted);
}

.tag-closing-urgent {
    background: #fdecea;
    color: #c0392b;
}

/* --- Linked Titles --- */
.link-icon {
    font-size: 0.75em;
    color: #2a4a6b;
    margin-left: 3px;
}

/* --- No Results --- */
.no-results {
    padding: 32px 0;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* --- Recommended Shows Grid --- */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.rec-card {
    display: flex;
    flex-direction: column;
}

.rec-cover { margin-bottom: 12px; }

.rec-cover img {
    width: 100%;
    max-width: 220px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.rec-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.rec-title a { text-decoration: none; }
.rec-title a:hover { text-decoration: underline; }

.rec-venue {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.rec-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.rec-closing {
    margin-top: 6px;
}

/* --- Book Shared --- */
.book-bestseller {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.book-title {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: var(--color-muted);
}

/* --- Compact Book Cards --- */
.compact-books {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
}

.compact-book {
    flex: 1;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.compact-book img {
    width: 120px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.compact-book-info {
    flex: 1;
}

/* --- Book Intro --- */
.book-intro {
    text-align: center;
    margin-bottom: 40px;
}

.book-intro h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.book-intro ul {
    list-style: none;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.book-intro li {
    margin-bottom: 4px;
}

/* --- Logo --- */
.home-logo {
    max-width: 400px;
    margin: 0 auto;
}

/* --- Privacy --- */
.privacy { margin-bottom: 48px; }
.privacy p { margin-bottom: 16px; }
.privacy ul { list-style: disc; padding-left: 28px; margin-bottom: 16px; }
.privacy li { margin-bottom: 8px; }

/* --- Mobile --- */
@media (max-width: 640px) {
    h1 { font-size: 1.5rem; }

    .header-nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .show-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .show-thumbnail { display: none; }
    .show-date { order: 2; }
    .show-info { order: 1; }
    .show-tags {
        order: 3;
        justify-content: flex-start;
        margin-top: 4px;
    }

    .coming-up-item {
        flex-direction: column;
        gap: 2px;
    }

    .rec-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .rec-cover img { max-width: 180px; }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .compact-books {
        flex-direction: column;
        gap: 24px;
    }
    .compact-book img { width: 100px; }

    .home-logo { max-width: 280px; }
}