/* CROSSMAP MOVIE LAYOUT STYLES (V3.6 - CLICKABLE STREAMING BUTTONS) */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@400;600;700;800&display=swap');


/* ==========================================================================
   BASE CONTAINER
   ========================================================================== */

.rt-container {
    font-family: 'Lora', serif;
    max-width: 100%;
    margin-bottom: 40px;
    color: #333;
}

.rt-container h1,
.rt-container h2,
.rt-container h3,
.rt-container h4,
.rt-container .toc-btn,
.rt-container .rt-section-subtitle,
.rt-container .wtw-platform-name,
.rt-container .guide-label,
.rt-container .cast-name,
.rt-container .vid-card-title,
.rt-container .review-title,
.rt-container .review-submit-btn,
.rt-container .comm-user-name,
.rt-container .empty-review-text {
    font-family: 'Montserrat', sans-serif;
}


/* ==========================================================================
   TABLE OF CONTENTS NAV
   ========================================================================== */

.toc-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.toc-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 12px;
    padding-right: 50px;
    white-space: nowrap;
    flex: 1;
}

.toc-container::-webkit-scrollbar {
    display: none;
}

.rt-container .toc-btn {
    background: #f8f8f8;
    color: #444;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: 1px solid #eaeaea;
}

.rt-container .toc-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.toc-arrow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 60%);
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #111;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}

.toc-wrapper:hover .toc-arrow {
    opacity: 1;
}

.toc-separator {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 20px 0 40px;
}


/* ==========================================================================
   SECTIONS
   ========================================================================== */

.rt-section {
    margin-bottom: 50px;
}

.rt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.rt-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #111;
    letter-spacing: -0.5px;
}

.rt-container .rt-section-subtitle {
    font-size: 0.75rem;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}


/* ==========================================================================
   STREAMING PLATFORMS (WITH OFFICIAL APP ICONS)
   ========================================================================== */

.wtw-providers {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rt-container a.wtw-provider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    text-decoration: none !important;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.rt-container a.wtw-provider:hover {
    transform: translateY(-4px);
}

/* Icon container — uniform height, adaptable width, TMDB-style rounded corners */
.rt-container .wtw-circle {
    height: 54px;
    width: auto;
    min-width: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #eaeaea;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 0;
}

.rt-container .wtw-circle img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    display: block;
}

.rt-container a.wtw-provider:hover .wtw-circle {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    border-color: currentColor;
}

.rt-container .wtw-platform-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
    max-width: 80px;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.rt-container a.wtw-provider:hover .wtw-platform-name {
    color: #111;
}

.rt-container .wtw-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}


/* ==========================================================================
   EXPANDABLE CONTENT RATING GUIDE (ACCORDION)
   ========================================================================== */

.content-guide-box {
    background: transparent;
    padding: 0;
}

.guide-grid {
    display: flex;
    flex-direction: column;
    max-width: 550px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.guide-row {
    border-bottom: 1px solid #f0f0f0;
    display: block;
    width: 100%;
}

.guide-row:last-child {
    border-bottom: none;
}

/* Force Astra to drop its button styles */
.rt-container button.guide-row-header,
.rt-container div.guide-row-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 18px 20px !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: none !important;
    text-align: left !important;
    margin: 0 !important;
    appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Override the Astra blue hover/click */
.rt-container .guide-row.has-content button.guide-row-header:hover,
.rt-container .guide-row.has-content button.guide-row-header:focus,
.rt-container .guide-row.has-content button.guide-row-header:active {
    background-color: #f4f5f7 !important;
    background: #f4f5f7 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
}

.rt-container .guide-header-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    flex: 1 1 auto !important;
    min-width: 0;
}

.rt-container .guide-label {
    font-weight: 700 !important;
    color: #222 !important;
    font-size: 0.95rem !important;
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

.rt-container .guide-header-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-left: 20px;
    flex-shrink: 0 !important;
}

.rt-container .guide-chevron {
    width: 20px;
    height: 20px;
    color: #888;
    transition: transform 0.3s ease;
}

.rt-container .guide-row.is-open .guide-chevron {
    transform: rotate(90deg);
}

.rt-container .guide-row-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    background: #fafafa;
}

.rt-container .guide-row.is-open .guide-row-content {
    grid-template-rows: 1fr;
}

.rt-container .guide-row-inner {
    overflow: hidden;
    min-height: 0;
    padding: 0 20px;
}

.rt-container .guide-row-inner>*:first-child {
    margin-top: 15px;
}

.rt-container .guide-row-inner>*:last-child {
    margin-bottom: 25px;
}

.rt-container .guide-row-inner p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 10px 0;
}


/* ==========================================================================
   SMART COLORED BADGES (HIGH CONTRAST OVERRIDES)
   ========================================================================== */

.rt-container .guide-badge {
    font-weight: 800 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-width: 100px !important;
    text-align: center !important;
    border: 1px solid transparent !important;
    white-space: nowrap !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* Theme: Warnings (Violence, Profanity, Explicit) */
.rt-container .theme-warning.intensity-0 {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}

.rt-container .theme-warning.intensity-1 {
    background-color: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}

.rt-container .theme-warning.intensity-2 {
    background-color: #f59e0b !important;
    color: #ffffff !important;
    border-color: #d97706 !important;
}

.rt-container .theme-warning.intensity-3 {
    background-color: #ea580c !important;
    color: #ffffff !important;
    border-color: #c2410c !important;
}

.rt-container .theme-warning.intensity-4 {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    border-color: #b91c1c !important;
}

.rt-container .theme-warning.intensity-5 {
    background-color: #991b1b !important;
    color: #ffffff !important;
    border-color: #7f1d1d !important;
}

/* Theme: Faith (Christian Content) */
.rt-container .theme-faith.intensity-0 {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}

.rt-container .theme-faith.intensity-1 {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #bae6fd !important;
}

.rt-container .theme-faith.intensity-2 {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

.rt-container .theme-faith.intensity-3 {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0369a1 !important;
}

.rt-container .theme-faith.intensity-4 {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    border-color: #1e40af !important;
}

.rt-container .theme-faith.intensity-5 {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
    border-color: #172554 !important;
}


/* ==========================================================================
   CAST & CREW
   ========================================================================== */

.cast-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
}

.cast-card {
    flex: 0 0 140px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    border: 1px solid #eaeaea;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cast-card:hover {
    transform: translateY(-3px);
    border-color: #ccc;
}

.cast-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.cast-info {
    padding: 12px 10px;
    text-align: left;
    background: #fff;
}

.rt-container .cast-real-name {
    font-weight: 700;
    color: #111;
    font-size: 0.85rem;
    margin-bottom: 3px;
    font-family: 'Montserrat', sans-serif;
}

.rt-container .cast-role {
    font-size: 0.75rem;
    color: #0056b3;
    font-family: 'Montserrat', sans-serif;
}


/* ==========================================================================
   VIDEOS
   ========================================================================== */

.vid-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.vid-card {
    width: 220px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eaeaea;
    transition: transform 0.2s;
    cursor: pointer;
}

.vid-card:hover {
    transform: translateY(-3px);
    border-color: #ccc;
}

.vid-thumb {
    width: 100%;
    height: 124px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.vid-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%);
}

.vid-play {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.rt-container .vid-time {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.8);
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
}

.vid-info {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #eaeaea;
}

.rt-container .vid-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   PHOTOS
   ========================================================================== */

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.photo-card {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #eaeaea;
    transition: transform 0.2s;
    aspect-ratio: 16 / 9;
}

.photo-card:hover {
    transform: translateY(-3px);
    border-color: #ccc;
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.empty-review-msg {
    background: #fffafa;
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px dashed #f5c2c4;
    margin-bottom: 20px;
}

.empty-img-wrapper {
    display: inline-block;
    margin: 0 auto 15px auto;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 70%);
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 70%);
}

.empty-review-img {
    height: 220px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.rt-container .empty-review-text {
    font-weight: 700;
    color: #e50914;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}


/* ==========================================================================
   REVIEWS — SUBSECTION HEADERS
   ========================================================================== */

.sub-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 40px;
}

.sub-section-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    color: #111;
}


/* ==========================================================================
   COMMUNITY REVIEWS
   ========================================================================== */

.comm-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.comm-review-card {
    background: #fbfbfb;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.comm-review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.rt-container .comm-user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e50914;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
}

.comm-user-info {
    display: flex;
    flex-direction: column;
}

.rt-container .comm-user-name {
    font-weight: 700;
    color: #111;
    font-size: 0.95rem;
}

.rt-container .comm-date {
    color: #888;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    margin-top: 2px;
}

.comm-stars {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.comm-body {
    color: #444;
    line-height: 1.6;
    font-size: 0.9rem;
    flex: 1;
}


/* ==========================================================================
   CRITICS REVIEWS SLIDER
   ========================================================================== */

.critics-slider-wrapper {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    width: 100%;
}

.critics-reviews-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 15px;
    width: 100%;
    align-items: stretch;
}

.critics-reviews-container::-webkit-scrollbar {
    display: none;
}

.critic-card {
    flex: 0 0 320px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: auto;
}

.critics-scroll-btn {
    position: absolute;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eaeaea;
    color: #111;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.critics-scroll-btn:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.critics-scroll-left {
    left: -15px;
}

.critics-scroll-right {
    right: -15px;
}


/* ==========================================================================
   MY RATING / REVIEW FORM
   ========================================================================== */

.my-rating-section {
    margin-top: 50px;
    border-top: 1px solid #eaeaea;
    padding-top: 30px;
}

.review-box {
    padding: 35px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    background: #fff;
}

.rt-container .review-title {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #111;
}

.star-rating-form {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 20px;
}

.star-rating-form input {
    display: none;
}

.star-rating-form label {
    font-size: 2.5rem;
    color: #eee;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.star-rating-form label:hover,
.star-rating-form label:hover~label,
.star-rating-form input:checked~label {
    color: #ffc107;
}

.review-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #333;
}

.review-textarea:focus {
    outline: none;
    border-color: #111;
}

.rt-container .review-submit-btn {
    background: #e50914;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.rt-container .review-submit-btn:hover {
    background: #111;
}

.rt-container .login-prompt {
    background: #f8f8f8;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #eaeaea;
    font-family: 'Montserrat', sans-serif;
}


/* ==========================================================================
   RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 768px) {
    .guide-grid {
        max-width: 100%;
    }

    .vid-card {
        width: 100%;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .comm-reviews-grid {
        grid-template-columns: 1fr;
    }

    .critic-card {
        flex: 0 0 280px;
    }

    .critics-scroll-left {
        left: 0;
    }

    .critics-scroll-right {
        right: 0;
    }
}

/* ==========================================================================
   TAG-BASED RATING STYLES
   ========================================================================== */

.tag-rating-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.review-tag-checkbox {
    display: none;
}

.review-tag-label {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.review-tag-label:hover {
    background-color: #e2e8f0;
    color: #334155;
}

.review-tag-checkbox:checked + .review-tag-label {
    background-color: #e50914;
    color: #ffffff;
    border-color: #e50914;
    box-shadow: 0 4px 6px rgba(229, 9, 20, 0.2);
}

.comm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.comm-tag-badge {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}