/* static/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000000;
    color: #FFFFFF;
}

a {
    color: #CE052D;
    text-decoration: none;
}

button, input, select {
    font-family: inherit;
    background: #252323;
    color: #FFFFFF;
    border: 1px solid #484848;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover, input[type="submit"]:hover {
    background: #CE052D;
}

/* Header */
.header {
    background-color: #252323;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header img {
    height: 40px;
}

.nav-links a {
    margin-left: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    margin-right: 10px;
    width: 200px;
}

/* Sidebar */
.sidebar {
    background-color: #252323;
    width: 60px;
    height: 100vh;
    position: fixed;
    top: 60px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.sidebar img {
    width: 40px;
    margin-bottom: 20px;
    cursor: pointer;
}

/* Content */
.content-box {
    margin-left: 60px;
    margin-top: 60px;
    padding: 20px;
}

/* Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.carousel {
    width: 100%;
    position: relative;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
}

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

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

/* Tags */
.tags-container {
    display: flex;
    overflow-x: auto;
    margin-bottom: 20px;
}

.tags {
    display: flex;
}

.tag {
    background: #484848;
    padding: 8px 16px;
    margin-right: 10px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
}

.tag:hover {
    background: #CE052D;
}

/* Content Rows */
.content-row {
    margin-bottom: 20px;
}

.content-row h2 {
    margin-bottom: 10px;
}

.content-items {
    display: flex;
    overflow-x: auto;
}

.content-item {
    min-width: 150px;
    margin-right: 10px;
    cursor: pointer;
}

.content-item img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    border-radius: 5px;
}

.content-item h3 {
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}

/* Movie Detail */
.movie-detail-container, .series-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.poster-section {
    position: relative;
    width: 100%;
    height: 50vh;
    background: #484848;
}

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

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.8));
}

.movie-info, .series-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: flex-end;
}

.thumbnail-container {
    display: flex;
    align-items: center;
}

.thumbnail-container img {
    width: 150px;
    height: 225px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 20px;
}

.movie-meta, .series-meta {
    color: #ECD4FF;
}

.movie-meta h2, .series-meta h2 {
    color: #FFFFFF;
    font-size: 24px;
    margin-bottom: 10px;
}

.meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.meta-row .icon {
    margin-right: 5px;
}

.action-buttons {
    margin-left: 20px;
}

.action-buttons button {
    margin-right: 10px;
}

.action-buttons button:first-child {
    background: #CE052D;
}

.overview-section, .seasons-section {
    margin-top: 20px;
}

.overview-section h3, .seasons-section h3 {
    color: #FFFFFF;
    margin-bottom: 10px;
}

.overview-section p {
    color: #CDCDCD;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.overview-section p.expanded {
    max-height: none;
}

#toggle-description {
    color: #CE052D;
    cursor: pointer;
}

.season-container {
    background: #252323;
    border-radius: 5px;
    margin-bottom: 10px;
}

.season-title {
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.season-content {
    display: none;
    padding: 10px;
}

.season-content.active {
    display: block;
}

.episode-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #484848;
}

.episode-info h4 {
    color: #FFFFFF;
}

.episode-info p {
    color: #ECD4FF;
    font-size: 14px;
}

.episode-actions span {
    cursor: pointer;
    margin-left: 10px;
    color: #CE052D;
}

/* Ad Container */
.ad-container {
    background: #252323;
    padding: 10px;
    border-radius: 5px;
    max-width: 728px;
    margin-left: auto;
    margin-right: auto;
}

.adsbygoogle {
    display: block;
    margin: 0 auto;
}

/* Error */
.error {
    color: #CE052D;
    text-align: center;
    margin: 20px 0;
}

/* Footer */
.footer {
    background-color: #252323;
    padding: 20px;
    text-align: center;
}

.footer-links a {
    margin: 0 10px;
}

.footer p {
    margin-top: 10px;
    color: #ECD4FF;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 10px;
    }

    .nav-links a {
        margin-left: 10px;
        margin-right: 10px;
    }

    .search-bar input {
        width: 100%;
    }

    .sidebar {
        width: 100%;
        height: 60px;
        top: auto;
        bottom: 0;
        flex-direction: row;
        justify-content: space-around;
        padding: 10px 0;
    }

    .sidebar img {
        width: 30px;
        margin-bottom: 0;
    }

    .content-box {
        margin-left: 0;
        margin-bottom: 60px;
        padding: 10px;
    }

    .carousel-item img {
        height: 40vh;
    }

    .thumbnail-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .thumbnail-container img {
        width: 100px;
        height: 150px;
    }

    .movie-meta h2, .series-meta h2 {
        font-size: 18px;
    }

    .action-buttons {
        margin-left: 0;
        margin-top: 10px;
        display: flex;
        flex-direction: column;
    }

    .action-buttons button {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .ad-container {
        max-width: 100%;
        padding: 5px;
    }

    .adsbygoogle {
        width: 100% !important;
        height: auto !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .content-box {
        margin-left: 60px;
        padding: 15px;
    }

    .thumbnail-container img {
        width: 120px;
        height: 180px;
    }

    .movie-meta h2, .series-meta h2 {
        font-size: 20px;
    }

    .ad-container {
        max-width: 468px;
    }
}