
@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ===== RESET ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #000000;
    --surface: #101010;
    --border: #303030;
    --text: #ffffff;
    --muted: #858585;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    padding: 38px 6%;
}

/* ===== TOP BAR ===== */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 70px;
}

.logo {
    font-family: 'Antonio', sans-serif;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: lowercase;
}

/* ===== SEARCH ===== */

.search {
    width: 210px;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.search::placeholder {
    color: var(--muted);
}

.search:focus {
    border-color: #888888;
}

/* ===== LIBRARY ===== */

.library h2 {
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 500;
}

/* ===== SHOW GRID ===== */

.show-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 28px;
    align-items: start;
}




.show-card {
    min-width: 0;
}

/* Temporary poster placeholder */

.poster {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 2 / 3;
    width: 100%;
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--surface);
    color: #777777;
    font-family: 'Antonio', sans-serif;
    font-size: 44px;
    letter-spacing: 2px;
    transition: border-color 0.2s ease;
    overflow: hidden;
}

.show-card:hover .poster {
    border-color: #777777;
}

.show-card h3 {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 500;
}

.show-card p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 12px;
}

/* ===== PLAY BUTTON ===== */

.play-button {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #555555;
    border-radius: 5px;
    background: transparent;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
    display: block;
    text-align: center;
    text-decoration: none;
}

.play-button:hover {
    background: var(--text);
    border-color: var(--text);
    color: var(--background);
}

/* ===== SMALL SCREENS ===== */

@media (max-width: 600px) {
    body {
        padding: 24px 5%;
    }

    .topbar {
        margin-bottom: 45px;
    }

    .logo {
        font-size: 34px;
    }

    .search {
        width: 145px;
    }

    .show-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    }



}


/* ===== GRAVITY FALLS PAGE ===== */

.back-link {
    color: #858585;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #ffffff;
}

.show-page {
    max-width: 850px;
    margin: 0 auto;
    padding-top: 35px;
}

.show-label {
    color: #858585;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.show-page h2 {
    font-family: 'Antonio', sans-serif;
    font-size: 56px;
    font-weight: 500;
    margin-bottom: 16px;
}

.show-description {
    color: #aaaaaa;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 65px;
}

.episode-section {
    border-top: 1px solid #303030;
    padding-top: 25px;
}

.episode-section h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 18px;
}

.episode-section p {
    color: #858585;
    font-size: 13px;
}

@media (max-width: 600px) {

    
.show-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 35px;
}


    }

    .show-page h2 {
        font-size: 64px;
    }

    .show-description {
        margin-bottom: 50px;
    }



/* ===== EPISODE LIST ===== */

.episode-list {
    margin-top: 10px;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 8px;
    border-bottom: 1px solid #303030;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s ease;
}

.episode-item:hover {
    background: #101010;
}

.episode-number {
    color: #858585;
    font-size: 11px;
    min-width: 42px;
}

.episode-name {
    flex: 1;
    font-size: 13px;
}

.episode-arrow {
    color: #858585;
}


.video-player {
    display: block;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #000000;
    border: 1px solid #303030;
    border-radius: 5px;
    margin: 24px 0 18px;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Cleaner episode list */
.episode-list {
    margin-top: 18px;
    border-top: 1px solid #303030;
}

.episode-item {
    padding: 22px 14px;
    gap: 22px;
    border-bottom: 1px solid #303030;
    transition: background 0.2s ease;
}

.episode-item:hover {
    background: #151515;
}

.episode-number {
    font-size: 12px;
    letter-spacing: 1px;
}

.episode-name {
    font-size: 14px;
    transition: color 0.2s ease;
}

.episode-item:hover .episode-name {
    color: #bdbdbd;
}

.episode-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.episode-item:hover .episode-arrow {
    transform: translateX(4px);
}

.episode-item {
    border-radius: 4px;
}

.episode-number {
    font-variant-numeric: tabular-nums;
}

.episode-arrow {
    font-size: 18px;
    color: #aaaaaa;
}


/* Resume watching modal */
.resume-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(5px);
}

.resume-overlay[hidden] {
    display: none;
}

.resume-modal {
    width: 100%;
    max-width: 420px;
    padding: 32px;
    background: #101010;
    border: 1px solid #303030;
    border-radius: 8px;
}

.resume-modal h3 {
    margin: 12px 0;
    font-size: 22px;
    font-weight: 500;
}

.resume-time {
    margin: 0 0 26px;
    color: #858585;
    font-size: 13px;
}

.resume-actions {
    display: flex;
    gap: 12px;
}

.resume-button {
    flex: 1;
    padding: 13px 10px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    background: #ffffff;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.resume-button:hover {
    background: transparent;
    color: #ffffff;
}

.resume-button.secondary {
    border-color: #444444;
    background: transparent;
    color: #aaaaaa;
}

.resume-button.secondary:hover {
    border-color: #ffffff;
    color: #ffffff;
}

@media (max-width: 420px) {
    .resume-modal {
        padding: 24px;
    }

    .resume-actions {
        flex-direction: column;
    }
}
