/* ===========================
   CORE HEADER
=========================== */
.f21-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent !important;
    z-index: 9999;
    padding: 0;
}

.f21-logo {
    width: 95px;
}

.f21-nav-link {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 30px 28px;
    position: relative;
}

.f21-nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #22bfe6;
    transition: width 0.3s ease;
}

.f21-nav-link:hover {
    color: #fff;
    background: rgba(14, 44, 77, 0.25);
}

.f21-nav-link:hover::before {
    width: 100%;
}


.f21-user-dropdown {
    position: absolute;
    right: 0;
    top: 90%;
    background: #111827;
    min-width: 220px;
    border-radius: 10px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .2s ease-out;
    z-index: 9999;
}

.f21-user-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.f21-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.f21-user-item {
    color: white;
    padding: 10px 16px;
    display: flex;
    align-items: center;
}

.f21-user-item:hover {
    background: #1f2937;
}

.f21-user-divider {
    height: 1px;
    background: #333;
    margin: 6px 0;
}

/* ===========================
   DESKTOP SEARCH MODAL
=========================== */
.f21-desktop-search-btn {
    color: #fff;
    font-size: 22px;
}

.f21-desktop-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    /* background: rgba(0, 0, 0, 0.75); */
    /* backdrop-filter: blur(8px); */
    z-index: 999999;
    justify-content: center;
    align-items: center;
    height: 400px;
    margin-top: 40px;
}

.f21-desktop-search-overlay.open {
    display: flex;
}

.f21-desktop-search-box {
    width: 100%;
    max-width: 100%;
    background: #0d1220;
    padding: 35px;
    border-radius: 16px;
    position: relative;
}

.f21-desktop-search-close {
    position: absolute;
    right: 0;
    top: 0;
    background: #00a7ff;
    border: none;
    color: #fff;
    font-size: 28px;
    padding: 5px;
    border-bottom-left-radius: 3px;
}

.f21-desktop-search-input {
    background: #1b1d36;
    color: #fff;
    border: none;
    border-radius: 8px;
    height: 52px;
    padding-left: 15px;
}

.f21-select {
    background: #1b1d36;
    color: #fff;
    border: 1px solid #222;
}

.f21-search-btn {
    background: #00a7ff;
    border-radius: 50px;
    padding: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

/* ===========================
   MOBILE UI
=========================== */
@media (max-width: 768px) {

    .f21-nav,
    .f21-user-menu {
        display: none !important;
    }

    .f21-mobile-avatar {
        display: block !important;
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }

    .f21-mobile-toggle {
        background: none;
        color: #fff;
        border: none;
        font-size: 28px;
    }

    /* Mobile panel */
    .f21-mobile-panel {
        position: fixed;
        inset: 0;
        background: #0d0f1f;
        transform: translateX(100%);
        transition: .35s ease;
        padding: 20px;
        overflow-y: auto;
        z-index: 99999;
        display: block !important;
    }

    .f21-mobile-panel.open {
        transform: translateX(0);
    }

    .f21-mobile-close {
        border: none;
        background: none;
        color: #fff;
        font-size: 32px;
    }

    /* MOBILE SEARCH BOX — FIX: HIDE BY DEFAULT */
    .f21-mobile-search-box {
        display: none;
        margin-top: 20px;
        position: relative;
    }

    .f21-mobile-panel .f21-mobile-search-box {
        display: block;
    }

    .f21-mobile-search-input {
        background: #1b1d36;
        border: none;
        height: 45px;
        border-radius: 6px;
        color: #fff;
        padding-left: 12px;
    }

    .f21-mobile-search-icon {
        position: absolute;
        right: 12px;
        top: 10px;
        color: #aaa;
        font-size: 20px;
    }

    /* Filters */
    .f21-mobile-filter-toggle {
        color: #00a7ff;
        margin-top: 15px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
    }

    .f21-mobile-filters {
        display: none;
        margin-top: 15px;
    }

    .f21-mobile-filters.open {
        display: block;
    }

    .f21-filter-label {
        color: #fff;
        margin-bottom: 5px;
        margin-top: 10px;
    }
}

.f21-username {
    color: #fff;
}

.f21-user-btn i {
    color: #fff;
}

.btn:first-child:active {
    border: none !important;
}

.f21-user-btn {
    border: none !important;
}

.hero-slider {
    width: 100%;
    height: 90vh;
    position: relative;
    overflow: hidden;
}

/* Wrapper */
.hero-slide-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Background image */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text */
.hero-content {
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    z-index: 5;
}

.hero-content h1 {
    font-size: 58px;
    font-weight: 800;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.85;
}

/* Arrows */
.hero-prev,
.hero-next {
    width: 50px;
    height: 50px;
}

.hero-arrow {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    backdrop-filter: blur(3px);
}

.hero-prev:hover .hero-arrow,
.hero-next:hover .hero-arrow {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Remove default Bootstrap arrow background */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 20px 20px;
    background-position: center;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-slider {
        height: 65vh;
    }

    .hero-content {
        left: 20px;
        bottom: 40px;
        top: auto;
        transform: none;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-prev,
    .hero-next {
        width: 38px;
        height: 38px;
    }
}

.carousel-control-next,
.carousel-control-prev {
    top: 50%;
    color: #8f8f8f;
}

.blurss {
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    margin-top: 70px;
    margin-bottom: 5px;
    padding: 20px 0px 0px 0px;
    background-color: transparent;
    background-image: linear-gradient(180deg, #141414 0%, #000000 100%);
}

/* Modal background */
.rating-modal {
    background: #1a1a22;
    border-radius: 12px;
    padding: 25px 30px;
    color: white;
}

/* Separator line */
.modal-separator {
    border-color: #303038;
    opacity: 0.4;
}

/* Stars */
.rating-stars i {
    font-size: 26px;
    color: #3f3f45;
    cursor: pointer;
    margin-right: 3px;
    transition: .2s;
}

.rating-stars i.active {
    color: #0db7ff;
}

/* Spoiler checkbox (dark) */
.checkbox-dark {
    background-color: transparent;
    border-color: #555;
}

.checkbox-dark:checked {
    background-color: #0db7ff;
    border-color: #0db7ff;
}

/* Textarea */
.review-textarea {
    background: #2a2a31;
    border: 1px solid #3a3a42;
    color: white;
    border-radius: 6px;
}

.review-textarea::placeholder {
    color: #999;
}

/* Submit button */
.submit-btn {
    background: #0db7ff;
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: .2s;
}

.submit-btn:hover {
    background: #10c3ff;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 80vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
}

.hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.hero-play-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.hero-play-btn i {
    font-size: 35px;
    color: white;
}

/* ===================== DETAILS ===================== */
.details-section {
    background: #0d0d0f;
    color: white;
    padding-top: 40px;
}

.thumbnail-img {
    width: 140px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
}

.action-btn {
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    transition: .2s;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-btn.play {
    background: #0db7ff;
}

.action-btn.play:hover {
    background: #10c3ff;
}

.action-btn.list,
.action-btn.share-toggle {
    background: #1c1c1f;
    border: 1px solid #2a2a2d;
    color: white;
}

.action-btn.list:hover,
.action-btn.share-toggle:hover {
    background: #2a2a2d;
}

hr.custom-hr {
    border-color: #292929;
    opacity: .4;
}

/* ===================== SHARE MENU ===================== */
.share-wrapper {
    position: relative;
    display: inline-block;
}

.share-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: #1c1c21;
    border-radius: 10px;
    border: 1px solid #2a2a30;
    padding: 8px 10px;
    min-width: 190px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 20;
}

.share-menu.show {
    display: block;
}

.share-menu-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #9b9ba3;
    margin-bottom: 6px;
}

.share-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e2e2ea;
    font-size: 14px;
    padding: 5px 6px;
    border-radius: 6px;
    text-decoration: none;
}

.share-menu a:hover {
    background: #26262f;
}

.share-menu i {
    font-size: 18px;
}

/* ===================== MODAL ===================== */
.rating-modal {
    background: #1b1c22 !important;
    border-radius: 16px;
    padding: 30px 35px;
    color: #fff;
    border: 1px solid #2a2b31;
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.6);
}

.modal-separator {
    border-color: #2f3037;
    opacity: 0.3;
}

.rating-stars .star {
    font-size: 26px;
    color: #3f3f45;
    cursor: pointer;
    margin-right: 3px;
    transition: .2s;
}

/* only clicked star is active */
.rating-stars .star.active {
    color: #0db7ff !important;
}

.review-textarea {
    background: #2a2b32 !important;
    border: 1px solid #3a3b43 !important;
    color: #e3e3e8 !important;
    border-radius: 6px;
}

.checkbox-dark {
    border-color: #666 !important;
    background: transparent !important;
}

.checkbox-dark:checked {
    background-color: #0db7ff !important;
    border-color: #0db7ff !important;
}

.submit-btn {
    background: #0db7ff !important;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
}

.submit-btn:hover {
    background: #11c6ff !important;
}

        /* ================= LEFT SIDEBAR ================= */
        .profile-sidebar {
            background: #1b1c22;
            border-radius: 8px;
            overflow: hidden;
        }

        .profile-img-box {
            height: 240px;
            background: linear-gradient(to bottom, #3b3b3c, #1b1c22);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .profile-img-box img {
            width: 130px;
            height: 130px;
            border-radius: 50%;
            object-fit: cover;
        }

        .edit-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 12px;
            background: #0db7ff;
            color: white;
            padding: 4px 10px;
            border-radius: 4px;
        }

        .profile-name {
            padding: 20px 0;
            text-align: center;
            background: #121216;
            font-weight: bold;
            font-size: 20px;
            color: white;
        }

        .profile-stats {
            padding: 15px;
            background: #1b1c22;
            border-top: 1px solid #2a2c31;
            color: #b7b7c3;
        }

        .stats-box {
            display: flex;
            background: #15151a;
            border: 1px solid #2a2c31;
            border-radius: 6px;
            overflow: hidden;
        }

        .stats-item {
            flex: 1;
            text-align: center;
            padding: 12px;
            border-right: 1px solid #2a2a2f;
            color: white;
        }

        .stats-item:last-child {
            border-right: none;
        }

        .stats-label {
            font-size: 13px;
            color: #9b9ba5;
        }

        .member-since {
            margin-top: 20px;
            padding: 15px;
            background: #121216;
            color: #cacad3;
        }

        /* ================= RIGHT CONTENT ================= */
        .profile-tabs {
            display: flex;
            border-bottom: 2px solid #1b1c22;
            margin-bottom: 25px;
        }

        .profile-tab {
            flex: 1;
            text-align: center;
            padding: 14px 0;
            font-size: 16px;
            font-weight: 600;
            color: #9b9ba5;
            cursor: pointer;
            border-bottom: 3px solid transparent;
        }

        .profile-tab.active {
            color: white;
            border-bottom: 3px solid #0db7ff;
        }

        /* WATCHLIST GRID */
        .item-card {
            background: #15151a;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #26262d;
            transition: .2s;
        }

        .item-card img {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }

        .item-info {
            padding: 12px;
        }

        .item-title {
            font-weight: 600;
            font-size: 16px;
            color: white;
        }

        .star-rating i {
            color: #0db7ff;
            font-size: 18px;
        }

        /* REVIEWS LIST */
        .review-box {
            background: #15151a;
            border: 1px solid #26262d;
            border-radius: 8px;
            padding: 18px;
            margin-bottom: 20px;
        }

        .review-title {
            font-size: 17px;
            font-weight: 600;
            color: #0db7ff;
        }

        .review-meta {
            font-size: 13px;
            color: #8d8d96;
            margin-bottom: 8px;
        }

        .review-text {
            color: #d3d3dc;
            font-size: 14px;
            margin-top: 5px;
        }