/* =====================================================
   FILM.CSS
   Page-specific styles for film.asp
   ===================================================== */


/* ===================== HERO ===================== */
.hero {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 0 60px 80px;
}

.hero-content {
    max-width: 720px;
}

.hero-content h1 {
    font-size: 52px;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.meta {
    font-size: 14px;
    color: var(--muted, #aaa);
    margin-bottom: 14px;
    line-height: 1.4;
}

.meta-link {
    color: var(--muted, #aaa);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}

.meta-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.filmmaker-link {
    color: var(--muted, #aaa);
    text-decoration: none;
    border-bottom: 1px dotted var(--muted, #aaa);
    transition: color .2s, border-color .2s;
    cursor: pointer;
}

.filmmaker-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* ===========================
   Film Tags
=========================== */

.tags {
    margin: 10px 0px 10px 0px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    /* tag chip */
    .tags .tag {
        display: inline-block;
        padding: 6px 14px;
        font-size: 13px;
        font-weight: 500;
        color: #fff;
        text-decoration: none;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 10px;
        backdrop-filter: blur(4px);
        transition: all .18s ease;
    }

        /* hover */
        .tags .tag:hover {
            background: #d4af37; /* FOA gold */
            border-color: #d4af37;
            color: #000;
            transform: translateY(-1px);
        }

        /* active click */
        .tags .tag:active {
            transform: scale(.96);
        }

.hero-content > p {
    color: var(--muted2, #ccc);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 0 18px 0;
    font-size: 15px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.watch-btn {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform .2s ease;
}

.watch-btn:hover { transform: scale(1.04); }

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent, #d60000);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.donate-btn:hover {
    background: #b30000;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 12px 30px rgba(214,0,0,0.35);
}

/* ===========================
   Vote Button
   =========================== */

.vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    padding: 12px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    border: 1px solid #ffd54a;
    background: linear-gradient(135deg,#ffd54a,#ffb300);
    color: #111;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}

    .vote-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,.35), 0 0 12px rgba(255,213,74,.6);
        background: linear-gradient(135deg,#ffe27a,#ffc72c);
    }

    .vote-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(0,0,0,.3);
    }

    .vote-btn:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(255,213,74,.5), 0 0 0 4px rgba(0,0,0,.6);
    }

.vote-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-right: 6px;
    flex-shrink: 0;
}


/* ===================== CONTENT PANEL ===================== */
.content {
    max-width: 1040px;
    margin: -34px auto 48px;
    padding: 34px 60px 54px;
    background: var(--panel, rgba(255,255,255,0.02));
    border-radius: 16px;
    backdrop-filter: blur(12px);
}


/* ===================== TABS ===================== */
.tab-bar {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--line, #222);
    margin-bottom: 26px;
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 15px;
    font-weight: 700;
    padding: 0 0 12px 0;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: color .15s;
}

.tab-btn:hover  { color: #bbb; }
.tab-btn.active { color: #fff; }

.tab-indicator {
    position: absolute;
    bottom: -1px;
    height: 3px;
    background: #fff;
    transition: left .25s ease, width .25s ease;
    border-radius: 3px;
}

.tab-content {
    display: none;
    animation: fadeUp .35s ease;
    color: var(--muted2, #ccc);
    line-height: 1.7;
}

.tab-content.active { display: block; }

.tab-content > p { margin: 0 0 16px 0; }

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


/* ===================== FILM DETAILS TAB ===================== */
.film-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 40px;
    margin-top: 18px;
}

.film-details-grid .item {
    padding: 10px 0;
    border-bottom: 1px solid var(--line, #222);
    font-size: 14px;
    color: #ccc;
}

.film-details-grid strong {
    color: #fff;
    font-weight: 700;
}

.detail-link {
    color: var(--muted2, #ccc);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.25);
    transition: color .2s, border-color .2s;
}

.detail-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}


/* ===================== TRANSCRIPT TAB ===================== */
.transcript-text {
    max-width: 760px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted2, #ccc);
}

.transcript-text p        { margin: 0 0 18px 0; }
.transcript-text strong   { color: #fff; }


/* ===================== COMMENTS TAB ===================== */
.comments-section { max-width: 700px; }

.comment-form {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #444, #666);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #ddd;
}

.comment-input-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-input {
    width: 100%;
    min-height: 72px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--line, #222);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color .2s;
}

.comment-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
}

.comment-input::placeholder { color: #555; }

.comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.comment-submit {
    padding: 9px 22px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .2s, transform .15s;
}

.comment-submit:hover:not(:disabled) { transform: scale(1.03); }

.comment-submit:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

.comment-count {
    font-size: 13px;
    color: #555;
    margin-bottom: 18px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line, #222);
    animation: fadeUp .3s ease;
}

.comment-item:first-child { padding-top: 0; }

.comment-body { flex: 1; }

.comment-author {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.comment-time {
    font-size: 12px;
    color: #555;
    margin-left: 10px;
}

.comment-text {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--muted2, #ccc);
    line-height: 1.55;
}


/* ===================== RELATED FILMS ===================== */
.related {
    width: 100%;
    padding: 10px 0 60px;
}

.related-inner { padding: 0 60px; }

.related-inner h3 {
    margin: 0 0 18px 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.carousel-wrapper { position: relative; }

.carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar { display: none; }

/* Related card */
.card {
    position: relative;
    min-width: 240px;
    width: 240px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    transform: translateZ(0);
    transition: transform .22s ease;
    background: #111;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover { transform: scale(1.06); }

.card .poster,
.card .preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.card .poster { object-fit: cover; }
.card .preview { display: none; background: #000; }

.tooltip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 12px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.05));
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.card:hover .tooltip { opacity: 1; }

.tooltip strong {
    display: block;
    font-size: 14px;
    color: #fff;
}

.tooltip span {
    display: block;
    font-size: 12px;
    color: #cfcfcf;
    margin-top: 3px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background .2s;
}

.carousel-btn:hover { background: rgba(0,0,0,0.85); }
.carousel-btn.left  { left: -18px; }
.carousel-btn.right { right: -18px; }
.carousel-btn:active { transform: translateY(-50%) scale(0.97); }


/* ===================== VIDEO MODAL ===================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 5000;
    padding: 20px;
    animation: modalFadeIn .2s ease;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
}

.modal.active { display: flex; }

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-inner {
    width: min(1100px, 92vw);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, transform .15s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.08);
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal .frame-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.modal iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.modal-hint {
    text-align: center;
    font-size: 12px;
    color: #444;
    margin: 0;
}

.modal-hint kbd {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    font-family: inherit;
    color: #666;
}


/* ===================== FLOATING DONATE ===================== */
.floating-donate {
    position: fixed;
    right: 22px;
    bottom: 22px;
    background: var(--accent, #d60000);
    color: #fff;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    z-index: 1200;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.floating-donate:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 18px 40px rgba(214,0,0,0.4);
    background: #b30000;
}


/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
    .hero              { padding: 0 20px 46px; min-height: 72vh; }
    .hero-content h1   { font-size: 36px; }
    .content           { padding: 26px 20px 44px; margin: -22px 12px 40px; }
    .related-inner     { padding: 0 20px; }
    .carousel-btn      { display: none; }
}

@media (max-width: 640px) {
    .hero-content h1        { font-size: 32px; }
    .film-details-grid      { grid-template-columns: 1fr; }
    .card                   { min-width: 190px; width: 190px; }
    .comment-form           { flex-direction: column; }
}

@media (hover: none) {
    .card:hover       { transform: none; }
    .card:hover .tooltip { opacity: 1; }
}




/* ===========================
   VOTE MODAL
=========================== */

.vote-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.vote-card {
    width: 440px;
    max-width: 92%;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(20,20,20,.95);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 40px 90px rgba(0,0,0,.7);
    color: #eee;
}

/* HEADER */

.vote-header {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.vote-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.vote-close {
    border: none;
    background: none;
    font-size: 26px;
    color: #aaa;
    cursor: pointer;
}

    .vote-close:hover {
        color: #fff;
    }

/* BODY */

.vote-body {
    padding: 16px 30px 32px;
}

.vote-film {
    text-align: center;
    margin-bottom: 22px;
}

.vote-film-title {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #d4af37;
}

.vote-film-meta {
    font-size: 13px;
    color: #aaa;
}

/* FORM */

.vote-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .vote-form input,
    .vote-form select {
        width: 100%;
        padding: 14px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,.12);
        background: rgba(255,255,255,.05);
        color: #fff;
        font-size: 15px;
    }

        .vote-form select option {
            color: #000;
            background: #fff;
        }

        .vote-form input:focus,
        .vote-form select:focus {
            outline: none;
            border-color: #d4af37;
        }

/* first/last row */

.name-row {
    display: flex;
    gap: 10px;
}

    .name-row input {
        flex: 1;
    }

/* submit */

.vote-submit {
    margin-top: 4px;
    padding: 15px;
    border-radius: 8px;
    border: none;
    background: #d4af37;
    color: #000;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

    .vote-submit:hover {
        background: #e3c25c;
    }

.vote-note {
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* Turnstile hidden initially */

.cf-turnstile {
    display: none;
    justify-content: center;
}

/* mobile */

@media(max-width:500px) {

    .name-row {
        flex-direction: column;
    }
}

.youtube-facade {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    cursor: pointer;
    background: #000;
}

    .youtube-facade img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.6);
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.yt-play-btn {
    transition: transform .2s ease, background .2s;
}

.youtube-facade:hover .yt-play-btn {
    transform: translate(-50%,-50%) scale(1.1);
    background: rgba(0,0,0,.8);
}