body.content-site-modal-open {
    overflow: hidden;
}

body.content-site-detail-open {
    overflow: hidden;
}

/* Content Site Netflix-style UI */
.content-site-playlist {
    background: #040404;
    border-radius: 18px;
    padding: 2rem;
    color: #f3f3f7;
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    line-height: 1.5;
}

.content-site-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.content-site-tab-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.content-site-tab-nav button:focus, .content-site-tab-nav button:active {
    outline: none;
}

.content-site-tab-button {
    background: transparent;
    border: none;
    color: #8d8da3;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    padding: 0.4rem 0.2rem;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.content-site-tab-button:hover,
.content-site-tab-button.is-active {
    color: #fff;
    border-color: #e50914;
}

.content-site-tab-panels {
    position: relative;
}

.content-site-panel {
    display: none;
    animation: content-site-fade 0.35s ease;
}

.content-site-panel.is-active {
    display: block;
}

.content-site-search {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.45rem 0.25rem 0.7rem;
    border-radius: 999px;
    position: relative;
    flex: 1 1 280px;
    min-width: 200px;
    flex-wrap: nowrap;
    min-height: 40px;
}

.content-site-search-progress {
    position: absolute;
    bottom: -0.4rem;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 999px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.content-site-search-progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: #e50914;
    animation: content-site-progress 1.2s linear infinite;
}

.content-site-search.is-searching .content-site-search-progress {
    opacity: 1;
}

.content-site-search-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    min-width: 0;
    font-size: 0.92rem;
    outline: none;
    flex: 1 1 180px;
}

.content-site-search-btn {
    background: #e50914;
    border: none;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    transition: background 0.2s ease;
    flex: 0 0 auto;
    min-height: 32px;
}

.content-site-search-btn:hover {
    background: #b50710;
}

.content-site-search-reset {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 0.25rem;
}

.content-site-search-results {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.content-site-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #fff;
}

.content-site-search-close {
    background: transparent;
    border: none;
    color: #ffbebe;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.content-site-panel-search-active .content-site-category-picker,
.content-site-panel-search-active .content-site-category-panels {
    opacity: 0.4;
}

.content-site-category-picker {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 1.25rem;
}

.content-site-category-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.content-site-category-status {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.content-site-category-status-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.74rem;
    color: #9a9ab3;
}

.content-site-category-count {
    font-size: 0.8rem;
    color: #c0c0d4;
    opacity: 0.9;
}

.content-site-category-toggle {
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.5);
    color: #fff;
    border-radius: 999px;
    padding: 0.45rem 1.15rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.content-site-category-toggle:hover {
    background: #e50914;
    border-color: #e50914;
}

.content-site-category-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(229, 9, 20, 0.4), rgba(3, 3, 8, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
}

.content-site-category-modal.is-visible {
    display: flex;
}

.content-site-category-modal-dialog {
    width: min(640px, 100%);
    max-height: 85vh;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(15, 0, 0, 0.9), rgba(38, 4, 6, 0.95));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-site-category-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.content-site-category-modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.content-site-category-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.content-site-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.35rem;
    scrollbar-width: thin;
}

.content-site-category-grid::-webkit-scrollbar {
    width: 6px;
}

.content-site-category-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.content-site-detail-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(229, 9, 20, 0.4), rgba(3, 3, 8, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 2rem 1.5rem;
    align-items: center;
    justify-content: center;
}

.content-site-detail-modal.is-visible {
    display: flex;
}

.content-site-detail-modal-dialog {
    width: min(920px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #050505;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
    position: relative;
    padding-bottom: 2rem;
}

.content-site-detail-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 2;
}

.content-site-detail-hero {
    min-height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    background-color: #0b0b12;
}

.content-site-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 10, 0.05) 0%, rgba(5, 5, 10, 0.85) 60%, rgba(5, 5, 10, 0.95) 100%);
}

.content-site-detail-hero-content {
    position: relative;
    padding: 2rem;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    min-height: 260px;
}

.content-site-detail-hero-panel {
    background: rgba(6, 6, 12, 0.72);
    border-radius: 22px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
}

.content-site-detail-hero h3 {
    margin: 0;
    font-size: 2rem;
    color: #fff;
}

.content-site-detail-meta {
    margin: 0 0 0.75rem;
    color: #e5e5f5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.content-site-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.content-site-detail-tags span {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.content-site-detail-hero-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
}

.content-site-trailer-btn {
    background: linear-gradient(135deg, #e50f1a, #b00610);
    border: none;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 15px 35px rgba(229, 15, 26, 0.4);
}

.content-site-trailer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(229, 15, 26, 0.5);
}

.content-site-detail-body {
    padding: 1.5rem 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-site-detail-status {
    color: #fff;
    font-weight: 600;
}

.content-site-detail-description {
    font-size: 1rem;
    color: #e2e2f0;
    margin: 0;
}

.content-site-detail-section-title {
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: #f6f6ff;
}

.content-site-detail-facts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.content-site-detail-fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.content-site-detail-fact {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.content-site-detail-fact-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}

.content-site-detail-fact-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.content-site-detail-extra p {
    margin: 0.3rem 0;
    color: #d8d8e6;
}

.content-site-detail-trailer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content-site-detail-trailer iframe {
    width: 100%;
    min-height: 300px;
    border: 0;
    border-radius: 18px;
}

.content-site-detail-trailer a {
    color: #fff;
    text-decoration: underline;
}

.content-site-detail-episodes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-site-season {
    border-radius: 18px;
    padding: 1rem 1.25rem;
    background: radial-gradient(circle at top, rgba(229, 9, 20, 0.15), rgba(5, 5, 15, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.content-site-season summary {
    cursor: pointer;
    font-weight: 600;
    position: relative;
    padding-right: 1.5rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.content-site-season-title {
    font-weight: 600;
}

.content-site-season-count {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-left: auto;
}

.content-site-season summary::-webkit-details-marker {
    display: none;
}
.content-site-season summary:active, .content-site-season summary:focus {
    border: none;
    outline: none;
}

.content-site-season summary::after {
    content: '';
    position: absolute;
    right: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.content-site-season[open] summary::after {
    transform: rotate(-135deg);
}

.content-site-season-episodes {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.content-site-episode-card {
    display: flex;
    gap: 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 16px;
    padding: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.content-site-episode-thumb {
    width: 130px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    min-height: 70px;
}

.content-site-episode-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.content-site-episode-number {
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    opacity: 0.75;
    text-transform: uppercase;
}

.content-site-episode-title {
    margin: 0;
    font-weight: 600;
    color: #fff;
}

.content-site-episode-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #ffbebe;
}

.content-site-episode-description {
    margin: 0;
    color: #dcdce9;
    font-size: 0.9rem;
}

.content-site-category-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    color: #c9c9d4;
    padding: 0.5rem 0.85rem;
    border-radius: 14px;
    cursor: pointer;
    white-space: normal;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
    min-height: 44px;
    text-align: left;
}

.content-site-category-button:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.content-site-category-button.is-active {
    background: #e50914;
    color: #fff;
    border-color: transparent;
}

.content-site-category-panel {
    display: none;
}

.content-site-category-panel.is-active {
    display: block;
}

.content-site-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    min-height: 120px;
    position: relative;
    width: 100%;
}

.content-site-search-results .content-site-list {
    grid-template-columns: 1fr;
}

.content-site-list.is-loading .content-site-list-item {
    pointer-events: none;
}

.content-site-list.is-sliding {
    animation-duration: 0.4s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

.content-site-list.is-sliding[data-slide="next"] {
    animation-name: content-site-slide-next;
}

.content-site-list.is-sliding[data-slide="prev"] {
    animation-name: content-site-slide-prev;
}

.content-site-list-item {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    align-items: flex-start;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.content-site-list-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.content-site-list-item.is-skeleton {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
}

.content-site-list-item.is-skeleton .content-site-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content-site-list-item.is-skeleton .content-site-thumb {
    font-size: 0;
}

.content-site-thumb {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
}

.content-site-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-site-item-body {
    flex: 1;
    min-width: 0;
}

.content-site-item-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.content-site-item-meta {
    margin: 0.25rem 0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffbebe;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-site-item-description {
    margin: 0;
    font-size: 0.9rem;
    color: #c7c7d6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.skeleton-block {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 75%);
    background-size: 200% 100%;
    animation: content-site-skeleton 1.3s ease-in-out infinite;
}

.content-site-skeleton-line {
    height: 12px;
    border-radius: 999px;
    width: 100%;
}

.content-site-skeleton-line.is-title {
    height: 16px;
    width: 80%;
    margin-bottom: 0.35rem;
}

.content-site-skeleton-line.is-meta {
    width: 50%;
    margin-bottom: 0.5rem;
}

.content-site-skeleton-line.is-short {
    width: 65%;
}

.content-site-empty {
    margin: 0;
    color: #c7c7d6;
}

.content-site-pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-site-page-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.content-site-page-btn:hover:not(:disabled) {
    background: #e50914;
}

.content-site-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.content-site-page-indicator {
    font-size: 0.9rem;
    color: #c7c7d6;
}

@keyframes content-site-fade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes content-site-slide-next {
    from {
        opacity: 0;
        transform: translateX(25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes content-site-slide-prev {
    from {
        opacity: 0;
        transform: translateX(-25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes content-site-progress {
    0% {
        width: 0%;
        transform: translateX(-100%);
    }
    50% {
        width: 80%;
        transform: translateX(10%);
    }
    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

@keyframes content-site-skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 1024px) {
    .content-site-top-row {
        flex-direction: column;
        align-items: stretch;
    }

    .content-site-tab-nav {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .content-site-search {
        width: 100%;
        flex-wrap: nowrap;
        padding: 0.2rem 0.4rem;
        min-height: 38px;
        border-radius: 14px;
        gap: 0.35rem;
        flex: 0 1 auto;
        min-width: 0;
    }

    .content-site-search-input {
        flex: 1 1 auto;
        font-size: 0.88rem;
    }

    .content-site-search-btn {
        flex: 0 0 auto;
        font-size: 0.78rem;
        padding: 0.25rem 0.75rem;
    }

    .content-site-category-picker {
        padding: 0.75rem;
    }

    .content-site-category-grid {
        max-height: none;
        padding: 0.2rem 0;
        background: transparent;
        gap: 0.5rem;
    }
}

@media (min-width: 768px) {
    .content-site-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1025px) {
    .content-site-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .content-site-playlist {
        padding: 1.25rem;
    }

    .content-site-tab-nav {
        gap: 0.5rem;
    }

    .content-site-list-item {
        flex-direction: column;
    }

    .content-site-thumb {
        width: 56px;
        height: 56px;
    }

    .content-site-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .content-site-item-meta {
        white-space: normal;
    }

    .content-site-search {
        flex-direction: row;
        flex-wrap: nowrap;
        border-radius: 14px;
        padding: 0.2rem 0.55rem;
        gap: 0.35rem;
        align-items: center;
        min-height: 36px;
        flex: 0 1 auto;
        width: 100%;
        min-width: 0;
    }

    .content-site-search-input {
        flex: 1 1 auto;
        font-size: 0.95rem;
    }

    .content-site-search-btn {
        width: auto;
        text-align: center;
        padding: 0.3rem 0.85rem;
        font-size: 0.8rem;
    }

    .content-site-search-reset {
        top: 0.2rem;
        right: 0.3rem;
    }

    .content-site-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        max-height: none;
        padding: 0;
        background: transparent;
    }

    .content-site-detail-modal-dialog {
        border-radius: 18px;
    }

    .content-site-detail-hero-content {
        padding: 1.5rem;
    }

    .content-site-detail-hero h3 {
        font-size: 1.5rem;
    }

    .content-site-detail-body {
        padding: 1rem 1.25rem 0;
    }

    .content-site-detail-trailer iframe {
        min-height: 220px;
    }

    .content-site-episode-card {
        flex-direction: column;
    }

    .content-site-episode-thumb {
        width: 100%;
        min-height: 140px;
    }
}
