.ott-main {
    width: 100%;
    max-width: 1200px;
    padding: clamp(6rem, 10vw, 8rem) 1.5rem 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}

.ott-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-tabs {
    display: flex;
    gap: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6px;
    border-radius: 100px;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 24px;
    border-radius: 100px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.stream-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stream-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 37, 99, 235), 0.2);
}

.language-tabs-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.language-tabs-container::-webkit-scrollbar { display: none; }

.language-tabs {
    display: flex;
    gap: 10px;
    width: max-content;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 37, 99, 235), 0.2);
}

.platform-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.platform-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.platform-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 37, 99, 235), 0.2);
}


.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 2rem;
    width: 100%;
}

.movie-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    flex-shrink: 0; /* Fix for horizontal scroll squeezing */
}

.movie-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 15px 30px -10px rgba(var(--primary-rgb, 37, 99, 235), 0.2);
}

.poster-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    width: 100%;
    background: #1a1a1a;
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    padding: 4px;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.movie-card-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.movie-card-title {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 600px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Horizontal Carousel */
.horizontal-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    padding-top: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.horizontal-carousel::-webkit-scrollbar {
    height: 6px;
}
.horizontal-carousel::-webkit-scrollbar-track {
    background: transparent;
}
.horizontal-carousel::-webkit-scrollbar-thumb {
    background-color: var(--glass-border);
    border-radius: 10px;
}

.horizontal-carousel .movie-card {
    flex: 0 0 220px;
}

/* Master Stream Container */
.master-stream-container {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.master-stream-container::-webkit-scrollbar {
    display: none;
}

.stream-track {
    display: flex;
    width: fit-content;
}

.stream-segment {
    width: 100vw;
    max-width: 1200px; /* Match ott-main max-width */
    flex-shrink: 0;
    scroll-snap-align: start;
    padding-right: 1.5rem;
}

.segment-label {
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.next-segment-card {
    transition: all 0.4s ease;
    border-style: dashed;
}

.next-segment-card:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.05);
}



/* Search Bar */
.search-container {
    margin-top: 1.5rem;
    position: relative;
    width: 100%;
    max-width: 500px;
    z-index: 9999; /* Ensures dropdown floats above all page content */
}

#ottSearch {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 14px 20px 14px 48px;
    border-radius: 100px;
    color: var(--text-main);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#ottSearch:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb, 37, 99, 235), 0.15);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    z-index: 500;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: none;
}

.search-dropdown::-webkit-scrollbar { display: none; }

.search-dropdown.active {
    display: flex;
    animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: background 0.15s ease;
}

.search-result-item + .search-result-item {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.search-result-item:hover {
    background: rgba(255,255,255,0.06);
}

.search-result-thumb {
    width: 28px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0.85;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-main);
    line-height: 1.3;
}

.search-result-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-arrow {
    color: var(--text-muted);
    opacity: 0.4;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.search-no-results {
    padding: 1rem 1.2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Featured Section */
.featured-section {
    width: 100%;
    margin-bottom: 4rem;
    border-radius: 24px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.featured-content {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    width: 100%;
    padding: 3rem 2rem;
    color: white;
    z-index: 2;
}

.featured-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.featured-desc {
    max-width: 600px;
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.featured-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7);
    transition: opacity 0.8s ease-in-out;
}

.hero-dot-container {
    position: absolute;
    bottom: 20px;
    left: 2rem;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.hero-dot {
    width: 20px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: var(--primary);
    width: 40px;
    box-shadow: 0 0 10px rgba(var(--primary-rgb, 37, 99, 235), 0.5);
}

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

.hero-fade-in {
    animation: heroContentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal Details */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none; /* Controlled by JS: 'flex' */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    overflow-y: auto; /* Allow scrolling if modal is tall */
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    max-width: 900px;
    width: 100%;
    max-height: 90vh; /* Don't go off screen */
    border-radius: 32px;
    position: relative;
    overflow-y: auto; /* Internal scroll if content is long */
    animation: modalIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

@keyframes modalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .modal-body { grid-template-columns: 1fr; }
    .featured-section { min-height: 300px; }
}

.modal-poster {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

/* Rumor Badge */
.rumor-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.8), rgba(219, 39, 119, 0.8));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    z-index: 2;
}

/* Skeleton Loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--glass-bg) 25%, var(--glass-border) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
}

.skeleton-card {
    height: 400px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* Fix for horizontal scroll squeezing */
    flex: 0 0 240px; /* Fix for horizontal scroll squeezing */
}

.skeleton-poster {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 16px 16px 0 0;
}

.skeleton-text {
    height: 1rem;
    margin: 1rem;
    width: 60%;
    border-radius: 4px;
}

.skeleton-text-short {
    height: 0.8rem;
    margin: 0 1rem 1rem 1rem;
    width: 40%;
    border-radius: 4px;
}

.region-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.region-select:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}



/* Mobile Responsive Overrides */
@media (max-width: 600px) {
    .ott-main {
        padding: clamp(5rem, 15vw, 7rem) 1rem 3rem 1rem;
    }
    
    .ott-header {
        margin-bottom: 2rem;
    }

    .category-tabs {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 4px;
        scrollbar-width: none;
    }
    .category-tabs::-webkit-scrollbar { display: none; }
    
    .tab-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .featured-section {
        min-height: 320px;
        margin-bottom: 2.5rem;
    }

    .featured-content {
        padding: 2rem 1.25rem;
    }

    .featured-title {
        font-size: 1.8rem;
    }

    .featured-desc {
        font-size: 0.95rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .movie-grid {
        gap: 1rem;
    }

    .movie-card-info {
        padding: 0.75rem;
    }

    .movie-card-title {
        font-size: 0.9rem;
    }

    .movie-card-date {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .horizontal-carousel {
        gap: 1rem;
    }
    
    .horizontal-carousel .movie-card {
        flex: 0 0 160px;
    }
}

@media (max-width: 400px) {
    .featured-title {
        font-size: 1.5rem;
    }
    
    .horizontal-carousel .movie-card {
        flex: 0 0 140px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}
