/* Hero Carousel */
.hero-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: calc(100vh - clamp(110px, 12vh, 150px));
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        90deg,
        rgba(8, 8, 8, 0.72) 0%,
        rgba(8, 8, 8, 0.52) 32%,
        rgba(8, 8, 8, 0.2) 55%,
        rgba(8, 8, 8, 0) 78%
    );
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 61%;
    left: clamp(1rem, 4.8vw, 4rem);
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: min(680px, calc(100% - 2rem));
}

.hero-manifesto {
    font-family: "Smooch Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: left;
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    line-height: 0.9;
    letter-spacing: 0.03em;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

.hero-manifesto-main {
    display: block;
    max-width: 14ch;
}

.hero-manifesto-sub {
    display: block;
    font-size: clamp(1.05rem, 1.65vw, 1.55rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.88);
}

.carousel-track {
    position: relative;
    height: 100%;
    z-index: 1;
}

.film-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.film-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.slide-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.);
}

.film-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0) 60%,
        rgba(10, 10, 10, 0.35) 80%,
        rgba(10, 10, 10, 0.7) 92%,
        #0D0D0D 100%
    );
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: min(600px, 100%);
    margin-left: auto;
    margin-right: 0;
    padding: 2rem;
    color: #fff;
    animation: fadeInUp 1s ease;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
}


.slide-title-line {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.slide-title {
    font-size: 1rem;
    color: #b0b0b0;
}

.carousel-cta {
    position: static;
    transform: none;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f04030, #ff6b4a);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 3;
}

.carousel-apps {
    position: static;
    transform: none;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    z-index: 1;
    padding-bottom: 0;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e6e6e6;
    font-size: 0.82rem;
    text-decoration: none;
    background: rgba(12, 12, 12, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.app-badge svg {
    width: 16px;
    height: 16px;
}

.app-badge:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(12, 12, 12, 0.6);
}

.coming-soon-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2100;
}

.coming-soon-modal.is-open {
    display: flex;
}

.coming-soon-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.coming-soon-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #111111;
    color: #ffffff;
    padding: 1.25rem 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.45);
}

.coming-soon-modal__dialog h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.coming-soon-modal__close {
    margin-top: 1rem;
    min-height: 44px;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.coming-soon-modal__close:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.carousel-cta:hover {
    background: #ff0004c6;
}

@media (max-width: 720px) {
    .carousel-apps {
        flex-direction: row;
        gap: 0.6rem;
        flex-wrap: nowrap;
    }
}

/* Home Sections */
.content-section {
    padding: 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-subtitle {
    color: #808080;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.community-spoiler-warning {
    width: 100%;
    background: #0D0D0D;
    color: #cfcfcf;
    font-size: 1.0rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 0.35rem 1rem;
}

.community-feed {
    padding: 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.home-community-feed .community-updates-page {
    padding: 0;
    max-width: none;
}

.home-community-feed .community-updates-header {
    margin-bottom: 1.2rem;
}

.home-community-feed .community-updates-header h1 {
    margin: 0;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.home-community-feed .author-name {
    color: inherit;
    text-decoration: none;
}

.home-community-feed .author-name:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

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

    .trivia-form {
        grid-template-columns: 1fr;
    }

}



/* Cards */
.insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.2rem;
}

.insight-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.insight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.insight-movie {
    font-size: 0.85rem;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.insight-votes {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #F04030;
    font-size: 0.9rem;
}

.insight-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
}

.insight-preview {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.insight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #808080;
}

/* Daily Trivia */
.daily-trivia {
    padding: 2rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.trivia-meta {
    color: #808080;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trivia-card {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.6rem 2rem;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.trivia-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #ffffff;
}

.trivia-question-meta {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: #9a9a9a;
    text-transform: uppercase;
}

.trivia-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.trivia-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.trivia-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.trivia-option input {
    accent-color: #F04030;
}

.trivia-submit {
    grid-column: 1 / -1;
    margin-top: 0.2rem;
    width: fit-content;
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.trivia-submit:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.trivia-feedback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 2rem;
    text-align: center;
    color: #ffffff;
    font-size: 1rem;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.trivia-feedback .trivia-feedback-main {
    display: block;
    width: 100%;
    text-align: center;
}

.trivia-feedback .trivia-streak-line {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0;
    color: #f0f0f0;
    font-weight: 700;
}

.trivia-card.show-feedback .trivia-feedback {
    opacity: 1;
    pointer-events: auto;
}

.trivia-login-lock {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: rgba(8, 8, 8, 0.45);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    z-index: 4;
}

html:not(.auth-logged-in) .trivia-login-lock {
    display: flex;
}

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

@media (max-width: 1024px) {
    .hero-carousel {
        height: calc(100vh - 120px);
        height: calc(100dvh - 120px);
        min-height: 520px;
    }

    .hero-overlay {
        left: clamp(1rem, 4vw, 2rem);
        width: min(620px, calc(100% - 2rem));
        gap: 0.9rem;
    }

    .hero-manifesto {
        gap: 0.6rem;
        font-size: clamp(2.2rem, 7.2vw, 4.2rem);
        letter-spacing: 0.02em;
    }

    .hero-manifesto-sub {
        font-size: clamp(0.95rem, 2vw, 1.25rem);
    }

    .film-slide {
        padding: 0 1rem;
    }

    .slide-content {
        padding: 1rem;
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-carousel {
        height: clamp(520px, 72dvh, 780px);
    }

    .carousel-track,
    .film-slide,
    .slide-background {
        height: 100%;
    }

    .carousel-cta.signup-btn {
        width: auto;
        min-width: 0;
        max-width: none;
        display: inline-flex;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.5rem;
        letter-spacing: -0.4px;
    }

    .trivia-meta {
        font-size: 0.78rem;
        letter-spacing: 0.08em;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .hero-carousel {
        height: clamp(380px, 68dvh, 500px);
        min-height: 380px;
    }

    .hero-overlay {
        left: 1rem;
        width: calc(100% - 2rem);
        top: 68%;
        gap: 0.8rem;
    }

    .hero-manifesto {
        padding: 0;
        gap: 0.55rem;
        width: 100%;
        max-width: none;
        font-size: clamp(1.7rem, 9.8vw, 2.55rem);
        line-height: 0.92;
    }

    .hero-manifesto-sub {
        font-size: clamp(0.86rem, 4.5vw, 1.05rem);
        letter-spacing: 0.07em;
    }

    .slide-content {
        position: absolute;
        left: 1rem;
        right: 1rem;
        bottom: 0.95rem;
        justify-content: flex-end;
        text-align: center;
        align-items: center;
        padding: 0;
        height: auto;
    }

    .slide-title-line {
        align-self: center;
        justify-content: center;
        margin-bottom: 0;
        width: 100%;
        max-width: 100%;
    }

    .slide-title {
        display: block;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.15;
    }

    .slide-background {
        background-position: center center;
    }

    .film-slide::before {
        background: linear-gradient(
            to bottom,
            rgba(10, 10, 10, 0.15) 50%,
            rgba(10, 10, 10, 0.45) 74%,
            rgba(10, 10, 10, 0.75) 90%,
            #0D0D0D 100%
        );
    }

    .carousel-cta {
        width: auto;
        max-width: calc(100% - 2rem);
        padding: 0.66rem 1.15rem;
        font-size: 0.82rem;
        box-sizing: border-box;
    }

    .carousel-apps {
        width: auto;
        max-width: calc(100% - 2rem);
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .app-badge {
        white-space: nowrap;
        flex: 0 0 auto;
        padding: 0.38rem 0.68rem;
        font-size: 0.76rem;
    }

    .app-badge svg {
        width: 14px;
        height: 14px;
    }

    .trivia-card {
        padding: 1rem;
    }

    .trivia-option {
        min-height: 44px;
    }

    .community-spoiler-warning {
        margin-top: 2.2rem;
    }

}

@media (max-width: 414px) {
    .section-header h2 {
        font-size: 1.5rem;
    }

    .trivia-meta {
        font-size: 0.74rem;
    }

    .hero-carousel {
        height: clamp(360px, 64dvh, 460px);
        min-height: 360px;
    }

    .hero-overlay {
        top: 72%;
    }

    .hero-manifesto {
        gap: 0.45rem;
        font-size: clamp(1.5rem, 9vw, 2.15rem);
    }

    .slide-title {
        font-size: 0.82rem;
    }

    .slide-content {
        left: 1rem;
        right: 1rem;
        bottom: 0.55rem;
    }

    .carousel-cta {
        padding: 0.6rem 1.02rem;
        font-size: 0.78rem;
    }

    .community-spoiler-warning {
        margin-top: 2.8rem;
    }
}
