* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    margin: 0;
    padding: 0;
    background: #141414;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}
#search-section {
    display: none;
}
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #141414;
}

.center {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.search {
    position: relative;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-align: center;
}

.search::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: transparent;
    transition: background 0.3s ease;
    z-index: -1;
}

.search:hover::before {
    background: rgba(255, 255, 255, 0.05);
}

.search::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.search:hover::after,
.search:focus-within::after {
    width: 100%;
}

.list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    list-style: none;
    color: white;
    opacity: 1;
    max-width: 600px;
    visibility: visible;
    transition: opacity 0.4s ease, max-width 0.4s ease, visibility 0.4s ease, gap 0.4s ease;
    overflow: hidden;
    white-space: nowrap;
}

.list.hidden {
    opacity: 0;
    max-width: 0;
    visibility: hidden;
    pointer-events: none;
    gap: 0;
}

.center li a {
    text-decoration: none;
    color: aliceblue;
    padding: 8px 16px;
    border-radius: 30px;
    border: solid 1px rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.6);
    display: inline-block;
    transition: all 0.3s ease;

}

.center li a:hover {
    background-color: white;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.logo {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.header-avatar:hover {
    transform: scale(1.08);
    border-color: #812424;
}

.profile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.profile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.profile {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    width: 360px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.profile-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.profile-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.profile-header #close-profile {
    font-size: 20px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
}

.profile-header #close-profile:hover {
    color: white;
}

.profile-img-container {
    position: relative;
    margin-bottom: 16px;
}

.profile-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.edit-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #e50914;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    border: 2px solid #1f1f1f;
    transition: transform 0.2s ease;
}

.edit-badge:hover {
    transform: scale(1.1);
}

.profile-info {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
}

.profile-label {
    font-size: 11px;
    color: #8e8686;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.profile-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #d1d1d1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.menu-item i:first-child {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.menu-item p {
    font-size: 15px;
    font-weight: 500;
}

.menu-item i:last-child {
    margin-left: auto;
    margin-right: 15px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-item.logout:hover {
    background: rgba(229, 9, 20, 0.15);
    color: #e50914;
}

.toggle {
    margin-left: 30px;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.toggle:hover {
    color: #e50914;
    transform: scale(1.1);
}

#input {
    width: 0;
    opacity: 0;
    padding: 10px 0px 18px 16px;
    border: 1px solid transparent;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    outline: none;
    text-align: center;
    align-items: center;
    font-size: 14px;
    margin-left: 0;
    border-radius: 25px;
    transition: width 0.4s ease, opacity 0.3s ease, padding 0.3s ease, margin-left 0.3s ease, border-color 0.3s ease;
    pointer-events: none;
}

#input.active {
    width: 320px;
    opacity: 1;
    padding: 6px 0px 17px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-left: 10px;
    pointer-events: auto;
}

#input:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(20, 20, 20, 0.8);
}

#input:focus {
    border-color: #fff9f9;
    box-shadow: 0 0 8px rgba(234, 227, 227, 0.4);
}

#input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

#input:focus::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#search {
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

#search:hover {
    color: #f9f9f9;
    transform: scale(1.1);
}

/* Side Section Sidebar */
.side-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #1a1a1a;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6);
}

.side-section.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.side-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-header h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #e50914;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.side-header #close-side {
    font-size: 20px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.side-header #close-side:hover {
    color: white;
    transform: scale(1.15);
}

.side-section h2 {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 8px;
    padding-left: 16px;
}

.side-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #d1d1d1;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.side-list li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.side-list li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.video1 {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.big-video {
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
}

.video-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.video-track {
    display: flex;
    transition: transform 0.6s ease;
    gap: 20px;
    width: max-content;
}

.video-slide {
    position: relative;
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.videos {
    border-radius: 30px;
    width: 100%;
    max-width: 100%;
    height: 76vh;
    object-fit: cover;
    z-index: 0;
    display: block;
    margin: 0 auto;
}

.first-text {
    position: absolute;
    bottom: 50px;
    left: 50px;
    right: 50px;
    max-width: 720px;
    text-align: left;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.first-text h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.first-para {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.second-para {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.third-para {
    width: 100%;
    max-width: 30rem;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.first-text span {
    color: red;
    font-weight: bold;
    font-size: 1.8rem;
    margin-right: 5px;
}

.first-text button {
    padding: 14px 20px;
    border-radius: 26px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.first-text button:hover {
    background: rgba(255, 251, 251, 0.989);
    color: black;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s ease, color 0.3s ease;
}

.carousel-control.prev {
    left: 16px;
}

.carousel-control.next {
    right: 16px;
}

.carousel-control:hover {
    background: rgba(255, 251, 251, 0.989);
    color: black;
}

.carousel-control:disabled {
    opacity: 0.4;
    cursor: default;
}

@media (max-width: 768px) {
    .list {
        display: none;
    }

    .center {
        gap: 10px;
    }

    #input.active {
        width: 180px;
    }

    .toggle {
        margin-left: 10px;
    }

    .top {
        padding: 10px 15px;
    }

    .big-video {
        border-radius: 20px;
        width: 100%;
    }

    .videos {
        height: 60vh;
        border-radius: 0;
    }

    .first-text {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .first-text h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .first-para,
    .second-para,
    .third-para {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
    }

    .carousel-control.prev {
        left: 10px;
    }

    .carousel-control.next {
        right: 10px;
    }

    .side-section {
        width: 240px;
    }

    .first-text button {
        padding: 10px 15px;
        font-size: 14px;
    }

}

.trending {
    width: 100%;
    margin-top: 1.5rem;
    padding: 10px 15px;
}

.trending-header {
    display: flex;
    margin: 0px 15px 10px;
}

.more-btn {
    margin-left: auto;
    padding: 8px 20px;
    border-radius: 26px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid #fff;
}

.more-btn:hover {
    background: rgba(255, 251, 251, 0.989);
    color: black;
}

.trending-header h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
}

.trending-now {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    padding: 0 20px 20px;
    scroll-behavior: smooth;
}
.movie-trailer{
    margin-top:15px
}
.trailer-thumbnail{
    position:relative;cursor:pointer
}
.trailer-thumbnail img{
    width:100%;display:block;border-radius:10px
}
.trailer-play{
    position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:55px;height:55px;border:0;border-radius:50%;background:rgba(0,0,0,.8);color:#fff;font-size:22px;cursor:pointer
}
.trailer-play:hover{
    background:#fff;color:#000
}
.movie-trailer iframe{
    display:block;border-radius:10px
}

.trending-now::-webkit-scrollbar {
    display: none;
}

.trending-now {
    scrollbar-width: none;
}

.movie-card {
    min-width: 160px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.movie-card:hover {
    transform: scale(1.08);
    z-index: 10;
}

.movie-poster {
    width: 200px;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    border-radius: 20px;
}

.about-movie {
    display: none;
    margin-top: 10px;
}

.movie-card:hover .about-movie {
    display: block;
}

.movie-poster:hover {
    border-radius: 10px;
}

.movie-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.movie-rating {
    color: #ffd700;
    margin-bottom: 10px;
}

.movie-info {
    padding: 8px 18px;
    border: 1px solid #fff;
    border-radius: 30px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: .3s;
}

.movie-info:hover {
    background: #fff;
    color: #000;
}

.more {
    margin-top: 10px;
    color: #bdbdbd;
    font-size: 14px;
}

.movie-info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1200;
}

.movie-info-overlay.active {
    opacity: 1;
    visibility: visible;
}

.movie-info-modal {
    width: min(90%, 420px);
    background: #1f1f1f;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    color: white;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    position: relative;
}

.movie-info-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.movie-info-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: #fff;
}

.movie-info-text {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #d0d0d0;
}

@media (max-width: 768px) {
    .trending-header {
        margin: 0px 20px 15px;
    }

    .trending-header h2 {
        font-size: 22px;
    }

    .trending-now {
        padding: 0 20px 20px;
        gap: 1rem;
    }

    .movie-card {
        min-width: 140px;
    }

    .movie-title {
        font-size: 16px;
    }

    .movie-info {
        padding: 6px 14px;
        font-size: 12px;
    }

    .more {
        font-size: 12px;
    }
}

.foot {
    background-color: #000;
    padding: 2rem 0;
}

.bottom-footer {
    width: 100%;
    padding: 2rem 5rem;
    border-top: 1px solid #303030;
}

.head-part {
    padding: 10px;
    gap: 0.5rem;
}

.list2 {
    display: flex;
    justify-content: space-evenly;
    gap: 5.5rem;
}

.list2 ul a {
    color: #757575;
    font-size: 0.85rem;
    line-height: 1.5;
}

.list2 ul a:hover {
    text-decoration: underline;
    cursor: pointer;
    color: #fff;
}

.list2 ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bottom-footer p {
    color: #757575;
    font-size: 0.85rem;
    line-height: 1.5;
}

.bottom-foot {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    background-color: #000;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .list2 {
        gap: 2.4rem;
        flex-direction: column;
    }

    .bottom-footer {
        padding: 1rem 2rem;
    }
}
