/* ── Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Hind Siliguri', sans-serif; background: #0a0a0a; color: #fff; overflow-x: hidden; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #e50914; border-radius: 4px; }

/* ── Header ── */
.header-gradient {
    background: linear-gradient(180deg, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0.85) 60%, transparent 100%);
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
    padding: 0 2rem; height: 68px;
    display: flex; align-items: center; justify-content: space-between;
}
.header-gradient.scrolled {
    background: rgba(10,10,10,0.96);
    box-shadow: 0 2px 30px rgba(0,0,0,0.9);
}

/* ── Hero Slider ── */
.hero-slider {
    position: relative; width: 100%; height: 75vh; min-height: 500px; overflow: hidden;
}
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center top;
    opacity: 0; transition: opacity 1.2s ease; z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(10,10,10,1) 0%, rgba(10,10,10,0.5) 40%, rgba(10,10,10,0.1) 70%, transparent 100%);
    z-index: 1;
}
.hero-content {
    position: absolute; bottom: 15%; left: 5%; max-width: 650px; z-index: 3;
    animation: fadeUp 1s ease;
}
.hero-content .badge {
    background: #e50914; padding: 4px 14px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; display: inline-block; margin-bottom: 8px;
}
.hero-content h1 {
    font-size: 3.2rem; font-weight: 800; line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}
.hero-content p {
    font-size: 1rem; color: #ccc; margin: 12px 0 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
    max-width: 550px; line-height: 1.6;
}
.hero-content .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-content .actions a,
.hero-content .actions button {
    padding: 10px 32px; border: none; border-radius: 6px;
    font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: all 0.25s ease;
    display: flex; align-items: center; gap: 10px;
    font-family: 'Hind Siliguri', sans-serif; text-decoration: none;
}
.hero-content .actions .btn-play { background: #e50914; color: #fff; }
.hero-content .actions .btn-play:hover { background: #f6121d; transform: scale(1.05); }
.hero-content .actions .btn-more {
    background: rgba(255,255,255,0.15); backdrop-filter: blur(6px); color: #fff;
}
.hero-content .actions .btn-more:hover { background: rgba(255,255,255,0.25); }

.slider-dots {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%); display: flex; gap: 10px; z-index: 5;
}
.slider-dots span {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.3); cursor: pointer;
    transition: all 0.3s ease; border: 2px solid transparent;
}
.slider-dots span.active { background: #e50914; border-color: #fff; transform: scale(1.2); }

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

/* ── Movie Rows ── */
.row-scroll {
    display: flex; gap: 6px; overflow-x: auto;
    padding: 8px 0 16px; scroll-behavior: smooth;
}
.row-scroll::-webkit-scrollbar { height: 4px; }
.row-scroll::-webkit-scrollbar-thumb { background: #e50914; border-radius: 4px; }

.movie-card {
    flex: 0 0 auto; width: 200px; border-radius: 8px; overflow: hidden;
    background: #1a1a1a; transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; position: relative;
}
.movie-card:hover { transform: scale(1.08); z-index: 20; box-shadow: 0 20px 50px rgba(0,0,0,0.9); }
.movie-card img {
    width: 100%; height: 280px; object-fit: cover; display: block;
    transition: filter 0.3s ease;
}
.movie-card:hover img { filter: brightness(0.6); }
.movie-card .card-info { padding: 10px 12px 14px; background: #1a1a1a; }
.movie-card .card-info h4 {
    font-size: 0.9rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.movie-card .card-info .meta {
    font-size: 0.7rem; color: #aaa;
    display: flex; align-items: center; gap: 8px; margin-top: 4px;
}
.movie-card .card-info .meta i { color: #e50914; }
.movie-card .play-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
    background: rgba(0,0,0,0.6); border-radius: 8px;
}
.movie-card:hover .play-overlay { opacity: 1; }
.movie-card .play-overlay i {
    font-size: 3.5rem; color: #fff;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
    transition: transform 0.2s ease;
}
.movie-card .play-overlay i:hover { transform: scale(1.15); color: #e50914; }

/* ── Category Tabs ── */
.category-tab {
    padding: 6px 20px; border-radius: 20px; background: transparent;
    color: #aaa; border: 1px solid #333; cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 0.85rem; font-weight: 500; white-space: nowrap;
    text-decoration: none; display: inline-block;
}
.category-tab:hover { border-color: #e50914; color: #fff; }
.category-tab.active { background: #e50914; border-color: #e50914; color: #fff; }

/* ── Search ── */
.search-wrapper { position: relative; }
.search-wrapper i {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%); color: #888; font-size: 0.9rem;
}
.search-input {
    background: rgba(255,255,255,0.07); border: 1px solid #333;
    border-radius: 6px; padding: 7px 14px 7px 36px;
    color: #fff; font-family: 'Hind Siliguri', sans-serif;
    font-size: 0.85rem; width: 200px;
    transition: all 0.3s ease; outline: none;
}
.search-input:focus {
    border-color: #e50914; background: rgba(255,255,255,0.12); width: 260px;
}
.search-input::placeholder { color: #777; }

.search-results {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #141414; border: 1px solid #333;
    border-radius: 8px; margin-top: 4px;
    max-height: 400px; overflow-y: auto; display: none; z-index: 100;
}
.search-results.active { display: block; }
.search-results .result-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; transition: background 0.2s; cursor: pointer;
}
.search-results .result-item:hover { background: #1a1a1a; }
.search-results .result-item img { width: 36px; height: 50px; object-fit: cover; border-radius: 4px; }
.search-results .result-item .info { flex: 1; min-width: 0; }
.search-results .result-item .info h4 { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results .result-item .info span { font-size: 0.7rem; color: #888; }

/* ── Modal ── */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(12px);
    display: none; align-items: center; justify-content: center;
    padding: 1.5rem; animation: fadeIn 0.4s ease;
}
.modal-backdrop.active { display: flex; }
.modal-content {
    background: #141414; max-width: 1000px; width: 100%;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.95);
    animation: slideUp 0.4s ease;
    max-height: 95vh; display: flex; flex-direction: column;
}
.modal-video-wrapper {
    position: relative; width: 100%; padding-top: 56.25%; background: #000;
}
.modal-video-wrapper video,
.modal-video-wrapper .video-js {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.modal-close-btn {
    position: absolute; top: 16px; right: 20px;
    background: rgba(0,0,0,0.7); border: none; color: #fff;
    width: 44px; height: 44px; border-radius: 50%;
    font-size: 1.4rem; cursor: pointer; transition: background 0.2s;
    z-index: 10; display: flex; align-items: center; justify-content: center;
}
.modal-close-btn:hover { background: #e50914; }
.modal-info { padding: 1.5rem 2rem 2rem; overflow-y: auto; }
.modal-info h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.3rem; }
.modal-info .meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    font-size: 0.85rem; color: #bbb; margin-bottom: 0.8rem;
}
.modal-info .meta i { color: #e50914; width: 18px; }
.modal-info .desc { font-size: 0.95rem; line-height: 1.7; color: #ccc; margin-bottom: 1rem; }
.modal-info .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-info .actions button {
    padding: 10px 28px; border: none; border-radius: 6px;
    font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: all 0.2s; font-family: 'Hind Siliguri', sans-serif;
    display: flex; align-items: center; gap: 10px;
}
.modal-info .actions .btn-play { background: #e50914; color: #fff; }
.modal-info .actions .btn-play:hover { background: #f6121d; }
.modal-info .actions .btn-list { background: rgba(255,255,255,0.1); color: #fff; }
.modal-info .actions .btn-list:hover { background: rgba(255,255,255,0.2); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.animate-slide-down { animation: slideDown 0.3s ease; }

/* ── Footer ── */
.footer-link { color: #888; transition: color 0.2s; font-size: 0.85rem; }
.footer-link:hover { color: #fff; }

/* ── Video.js Custom ── */
.video-js .vjs-big-play-button {
    background: rgba(229,9,20,0.8) !important;
    border-radius: 50% !important; border: none !important;
    width: 70px !important; height: 70px !important;
    line-height: 70px !important; font-size: 2rem !important;
    top: 50% !important; left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
.video-js .vjs-big-play-button:hover { background: #e50914 !important; }
.video-js .vjs-control-bar { background: rgba(0,0,0,0.7) !important; }
.video-js .vjs-progress-holder .vjs-play-progress { background: #e50914 !important; }
.video-js .vjs-volume-level { background: #e50914 !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .header-gradient { padding: 0 1rem; height: 56px; }
    .hero-slider { height: 60vh; min-height: 400px; }
    .hero-content { bottom: 10%; left: 4%; max-width: 90%; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 0.85rem; }
    .hero-content .actions a, .hero-content .actions button {
        padding: 8px 20px; font-size: 0.85rem;
    }
    .movie-card { width: 150px; }
    .movie-card img { height: 210px; }
    .modal-content { max-width: 100%; border-radius: 12px; }
    .modal-info { padding: 1rem 1.2rem 1.5rem; }
    .modal-info h2 { font-size: 1.3rem; }
    .search-input { width: 130px; }
    .search-input:focus { width: 160px; }
    .slider-dots span { width: 10px; height: 10px; }
}
@media (max-width: 480px) {
    .movie-card { width: 120px; }
    .movie-card img { height: 170px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 0.75rem; }
}
