/* Main content and layout */
.main-content {
    flex: 3;
    display: flex;
    flex-direction: column;
}

.comments-section {
    margin-top: 20px;
    background: #1a1c23;
    border-radius: 1rem;
    padding: 20px;
    margin-right: 20px;
}

.comments-section .row {
    display: flex;
    gap: 20px;
}

#w-info {
    display: flex;
    flex-direction: row;
    background: #1a1c23;
    padding: 0;
    border-radius: 1.5rem;
    position: relative;
}

/* Rating box styling */
#w-info .rating-box {
    position: absolute;
    right: 0;
    top: 0;
    background: #2d323e;
    text-align: center;
    padding: 1rem;
    border-radius: 0 1rem 0 1rem;
}

/* Action bar inside the rating box */
.action-bar {
    height: 5px;
    background: #444;
    border-radius: 5px;
    margin: 10px 0;
}

.action-bar > span {
    display: block;
    height: 100%;
    background: #ffc107; /* Customize the color as needed */
    border-radius: 5px;
}

.action-btns {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.action-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    fill: #6c757d;
    transition: fill 0.3s;
}

.action-btn.active svg {
    fill: #ffc107; /* Color when active */
}

.action-btn span {
    font-size: 0.9rem;
    color: #e9ecef;
}

/* Item poster section */
#w-info .item-poster > img {
    border-radius: 1rem 0 0 1rem;
    max-width: 280px;
    width: 280px;
    object-fit: cover;
}

/* Info section */
#w-info .info {
    margin-left: 1.4rem;
    padding: 1rem 0;
    color: #ccc;
}
#w-info .info .name {
    font-size: 1.7rem;
    font-weight: 600;
    color: #e9ecef;
    line-height: 2.2rem;
    margin: 1rem 200px 1rem 0;
}
#w-info .info .meta > span + span {
    margin-left: 0.5rem;
}

#w-info .info .meta .quality,
#w-info .info .meta .rating {
    border-color: #6c757d;
    background: #6c757d;
    height: 1.2rem;
    font-size: 0.9rem;
    padding: 0 0.2rem;
    border-radius: 0.5rem;
}

#w-info .info .w-desc {
    margin-bottom: 1rem;
}

#w-info .info .detail {
    font-size: 0.9rem;
}

#w-info .info .detail > div {
    display: flex;
    line-height: 1.8rem;
}

#w-info .info .detail > div > div {
    width: 120px;
    flex-shrink: 0;
}

/* Tags */
#w-info .info .detail > div.tags h2,
#w-info .info .detail > div.tags h3 {
    display: inline;
    font-weight: 400;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

/* Sidebar */
.related-movies-sidebar {
    flex: 1;
    background-color: #1a1c23;
    padding: 15px;
    border-radius: 8px;
}

.sidebar-items-you-may-like {
    font-size: 1.5em;
    color: #ff5733;
    margin-bottom: 20px;
}

.related-movie-item {
    display: flex;
    gap: 10px;
    background-color: #2b2b3c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.related-movie-item:hover {
    background-color: #333348;
}

.related-movie-poster img {
    width: 60px;
    height: 90px;
    border-radius: 5px;
    object-fit: cover;
}

.related-movie-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    margin-left: 15px;
}

.movie-meta {
    display: flex;
    gap: 5px;
    font-size: 0.9em;
    color: #aaa;
}

.movie-quality {
    background-color: #444;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.75em;
}

.movie-title {
    color: #fff;
    margin-top: 5px;
    font-size: 12px;
}

.movie-rating {
    color: #ffc107;
}

/* Media queries */
@media (max-width: 1399.98px) {
    #w-info .item-poster > img {
        max-width: 200px;
    }
}

@media (max-width: 991.98px) {
    #w-info {
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.2rem;
}

    #w-info .rating-box {
        left: 0;
        margin: 1rem auto;
        width: 200px;
        z-index: 2;
        border-radius: 1.5rem;
    }

    #w-info .item-poster {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        z-index: 1;
    }

    #w-info .item-poster:before {
        position: absolute;
        content: "";
        display: block;
        width: 100%;
        height: 100%;
        background: rgba(30, 33, 41, 0.75);
    }

    #w-info .item-poster > img {
        max-width: unset;
        width: 100%;
    }

    #w-info .info {
        margin-left: 0;
        padding: 9rem 1.5rem 1.5rem;
        z-index: 1;
    }

    #w-info .info .name {
        margin: 1rem 0;
    }
}

@media (max-width: 767.98px) {
    #w-info .item-poster::after {
        box-shadow: 1px 0 200px 200px #242832;
    }

    .comments-section {
        margin-right: 0;
    }

    .related-movies-sidebar {
        margin-top: 20px;
        width: 100%;
    }
}

/* Button Group Styling */
    .button-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
} /* Space between the buttons */

/* Trailer Button Styling */
.btn-trailer {
    background-color: #2d323e; /* White background */
    color: #fafafa; /* Black text */
    border-radius: 50px; /* Rounded button */
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-trailer:hover {
    background-color: #c62828; /* Slightly darker on hover */
}
.btn-watchlist {
    background-color: rgb(var(--color-gray-800) / var(--tw-bg-opacity));
    color: rgb(var(--color-gray-300) / var(--tw-text-opacity));
    border-radius: 0.5rem;
    padding: 13px 20px;
    font-size: .875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-watchlist:hover {
    background-color: #c62828; /* White background on hover */
}

/* player css */
/* Flex container to align the main player and sidebar */
.aside-wrapper.swap {
    display: flex;
    gap: 1rem; /* Space between the player and sidebar */
}

/* Main player area */
.aside-wrapper.swap .main {
    flex: 3; /* Adjust the width as needed */
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

#movie-player {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#movie-player .movie-player-wrap {
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
    background: #000;
}

#movie-player .movie-player-wrap .player-bg {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#movie-player .movie-player-wrap #player {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

#movie-player .movie-player-wrap #player iframe {
    display: none;
    border: none;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #000 url(https://lookmovie.stream/img/loading.gif) no-repeat center;
}

#movie-player .btn-play {
    opacity: 0;
    width: 6rem;
    height: 6rem;
    background: #1e2129;
    border-radius: 50%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
}

#movie-player .btn-play i {
    display: flex;
    align-items: center;
}

#movie-player .btn-play i:after {
    content: "\ea63";
    font-family: unicons-line;
    margin: 0 auto;
    color: #fff;
    font-size: 4rem;
    transition: opacity 0.2s, transform 0.2s;
    font-style: normal;
}

#movie-player .btn-play:hover {
    transform: scale(1.1);
}

#movie-player .message {
    z-index: 2;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    color: #fff;
    border-radius: 1.5rem;
    width: 15rem;
    text-align: center;
}

#movie-player .message > i {
    font-size: 1.5rem;
}

#movie-player.playable .btn-play {
    opacity: 1;
}

/* Sidebar */
.aside-wrapper.swap .sidebar {
    flex: 1; /* Adjust the width as needed */
    background: #1e2129;
    padding: 1rem;
    border-radius: 1.5rem;
    margin-bottom: 1.5rem;
}
}

/* Server Options and Notice */
#movie-clouds {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 0 -0.2rem 1.2rem;
}

#movie-clouds .movie-cloud-notice {
    color: #b2b1ad;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

#movie-clouds .movie-clouds-wrap {
    justify-content: center;
    flex-wrap: wrap;
    overflow-y: auto;
}

#movie-clouds .movie-clouds-wrap .movie-cloud {
    cursor: pointer;
    padding: 0.2rem;
    float: left;
    width: 50%;
}

#movie-clouds .movie-clouds-wrap .movie-cloud > div {
    border-radius: 1.5rem;
    background: #242832;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    color: #e9ecef;
    border: 1px solid #242832;
    padding: 0.5rem 0.7rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#movie-clouds .movie-clouds-wrap .movie-cloud > div span:first-child {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 300;
    margin-right: 0.4rem;
    color: #6c757d;
}

#movie-clouds .movie-clouds-wrap .movie-cloud > div span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
}

#movie-clouds .movie-clouds-wrap .movie-cloud.active > div,
#movie-clouds .movie-clouds-wrap .movie-cloud:hover > div {
     background: linear-gradient(90deg, #101010 0, rgb(251 191 36) 100%);
    color: #fff;
}

#movie-clouds .movie-clouds-wrap .movie-cloud.active > div span:first-child,
#movie-clouds .movie-clouds-wrap .movie-cloud:hover > div span:first-child {
    color: #e9ecef;
}


/* Movie Episode Section */
#movie-episode {
    width: 100%;
    background: #242832;
    border-radius: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

#movie-episode .episode-top {
    margin: 0.8rem 1rem;
}

#movie-episode .episode-top .label {
    color: #6c757d;
    background: #1e2129;
    border-radius: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
}

#movie-episode .episode-top .dropdown .dropdown-toggle {
    color: #6c757d;
    background: #1e2129;
    border-radius: 1.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem;
}

#movie-episode .episode-top .dropdown .dropdown-toggle:hover {
    color: #e9ecef;
    background: var(--primary);
}

#movie-episode .episode-top .dropdown .dropdown-menu {
    left: 0;
    right: 0;
    margin: auto;
    max-width: 13rem;
    padding: 0.3rem;
    max-height: 200px;
    overflow: auto;
}

#movie-episode .episode-range {
    position: relative;
    flex: 1;
}

#movie-episode .episode-range .episodes {
    position: absolute;
    height: 100%;
    overflow-y: auto;
    left: 1rem;
    right: 1rem;
}

#movie-episode .episode-range .episodes > div {
    float: left;
    width: 100%;
    padding: 0.15rem 0;
}

#movie-episode .episode-range .episodes > div > a {
    border-radius: 1.5rem;
    background: #1a1c23;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    color: #b2b1ad;
    display: inline-flex;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#movie-episode .episode-range .episodes > div > a span {
    font-weight: 200;
}

#movie-episode .episode-range .episodes > div > a span:first-child {
    font-weight: 500;
    margin-right: 0.2rem;
}

#movie-episode .episode-range .episodes > div > a.active,
#movie-episode .episode-range .episodes > div > a:hover {
    background: linear-gradient(90deg, var(--secondary) 0, var(--primary) 100%);
    color: #e9ecef;
}

#movie-episode .episode-bottom {
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#movie-episode .episode-bottom form {
    display: flex;
}

#movie-episode .episode-bottom form .form-control {
    margin: 0 0.5rem;
    background: #1e2129;
    width: 3rem;
    text-align: center;
}

/* Managers Section */
#movie-managers {
    position: relative;
    display: flex;
    width: 100%;
    padding: 0.5rem;
    background: #242832;
    border-radius: 0 0 1.5rem 1.5rem;
}

#movie-managers .movie-managers-wrap {
    display: flex;
    justify-content: space-around;
}

#movie-managers .movie-managers-wrap .movie-manager {
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    align-items: center;
    transition: color 0.2s, background 0.2s;
    justify-content: center;
    background: #242832;
    border-radius: 1.5rem;
    margin: 0.1rem;
    font-size: 0.9rem;
    color: #b2b1ad;
}

#movie-managers .movie-managers-wrap .movie-manager i {
    margin-right: 0.25rem;
}

#movie-managers .movie-managers-wrap .movie-manager:hover {
    color: #e9ecef;
    background: var(--primary);
}
.movie-managers-wrap {
    display: flex;
    flex-wrap: nowrap;
    gap: 1px; /* Adds spacing between buttons */
}

.movie-managers-wrap .movie-manager {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: #242832;
    border-radius: 0.5rem;
    margin: 0;
    color: #e9ecef;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 1rem;
    border: 1px solid #3a3f47;
    white-space: nowrap; /* Prevents text wrapping */
}

.movie-managers-wrap .movie-manager:hover {
    background: var(--primary);
    color: #fff;
}

.movie-managers-wrap .btn-svg .icon {
    margin-right: 0.5rem;
}

.movie-managers-wrap .btn-follow {
    background: #1e2129;
    border: 1px solid #3a3f47;
    border-radius: 0.5rem;
}

.movie-managers-wrap .btn-follow.active {
    background: var(--secondary);
    color: #fff;
}

.movie-managers-wrap .btn-svg {
    display: inline-flex;
    align-items: center;
}

.movie-managers-wrap .trailer {
    flex: 1; /* Adjust the size similar to other buttons */
    max-width: 150px; /* Set a max-width to match the look of other buttons */
    padding: 0.5rem 1rem; /* Adjust padding to maintain consistent button height */
    text-align: center;
    white-space: nowrap; /* Prevents button text from stretching */
}
@media (max-width: 768px) {
    .aside-wrapper.swap {
        flex-direction: column; /* Stack the main player and sidebar vertically */
    }
    .aside-wrapper.swap .main {

    margin-bottom: 0; */
}

    .main {
        width: 100%; /* Full width for the main player */
    }

    .sidebar {
        width: 100%; /* Full width for the sidebar */
        margin-bottom: 1.5rem;
    }
#movie-managers .movie-managers-wrap .movie-manager {
    padding: 0.1rem 0.3rem;
    justify-content: center;
    margin: 0.1rem;
    font-size: 0.7rem;
}
.btn-svg.save {
        display: none;
}

#movie-clouds .movie-clouds-wrap .movie-cloud > div span:last-child {
    font-size: 0.7rem;
    font-weight: 500;
    color: #e9ecef;
}
#movie-clouds .movie-clouds-wrap .movie-cloud > div span:first-child {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 300;
    color: #6c757d;
}
}
@media (max-width: 640px) {
    #you-may-like-section {
        margin-top: 1rem; /* Adjust as needed */
        margin-bottom: 1rem; /* Adjust as needed */
    }
}

@media (max-width: 1199.98px) {
     .aside-wrapper.swap {
        flex-direction: column;
    }
}
