/*
Theme Name: 38. Rose Noir
Description: Modern dark theme with pink accents
Version: 1.0.0
*/

/* === Original CSS below === */

/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    --tw-bg-opacity: 1;
    --color-pink: #ec4899;
    --color-dark-bg: rgb(17 24 39 / var(--tw-bg-opacity, 1));
    --color-card-bg: rgb(18 18 18 / var(--tw-bg-opacity, 1));
    --color-footer-bottom: rgb(0 0 0 / var(--tw-bg-opacity, 1));
    --color-text-muted: #9ca3af;
    --color-white: #ffffff;
    --color-gray: #6b7280;
}

/* ========================================
   GLOBAL STYLES (Desktop-first)
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--color-dark-bg);
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.header__logo {
    flex-shrink: 0;
}

.header__logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Navigation */
.header__nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 30px;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__nav-item {
    position: relative;
}

.header__nav-link {
    color: var(--color-gray);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.header__nav-link:hover {
    color: var(--color-pink);
}

.header__nav-link.active {
    color: var(--color-pink);
}

/* Navigation Dropdown */
.header__nav-link--dropdown {
    display: flex;
    align-items: center;
}

.header__nav-link--dropdown svg {
    fill: currentColor;
    transition: transform 0.3s ease;
}

.header__nav-item--dropdown.open .header__nav-link--dropdown svg {
    transform: rotate(180deg);
}

.header__dropdown {
    position: absolute;
    transform: translateX(-50%);
    min-width: 180px;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

/* Dropdown shown via .open class only (click-based) */
.header__nav-item--dropdown.open .header__dropdown {
    opacity: 1;
    visibility: visible;
}

.header__dropdown-item {
    border-bottom: 1px solid #f0f0f0;
}

.header__dropdown-item:last-child {
    border-bottom: none;
}

.header__dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--color-gray);
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header__dropdown-link:hover {
    background-color: #f9f9f9;
    color: var(--color-pink);
}

/* Search Button */
.header__search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.header__search-btn:hover {
    opacity: 0.7;
}

.header__search-btn svg {
    fill: #000000;
}

/* Menu Toggle Button (Hidden on Desktop) */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header__menu-bar {
    width: 22px;
    height: 2px;
    background-color: #000000;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Menu Toggle Active State */
.header__menu-toggle.active .header__menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle.active .header__menu-bar:nth-child(2) {
    opacity: 0;
}

.header__menu-toggle.active .header__menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu (Hidden on Desktop) */
.header__mobile-menu {
    display: none;
    max-height: 0;
    overflow: hidden;
    background-color: var(--color-white);
    transition: max-height 0.3s ease;
}

.header__mobile-menu.active {
    max-height: 300px;
}

.header__mobile-list {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 40px 20px;
}

.header__mobile-item {
    border-bottom: 1px solid #e5e7eb;
}

.header__mobile-item:last-child {
    border-bottom: none;
}

.header__mobile-link {
    display: block;
    padding: 15px 0;
    color: var(--color-gray);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header__mobile-link:hover,
.header__mobile-link.active {
    color: var(--color-pink);
}

/* Search Expand */
.header__search-expand {
    max-height: 0;
    overflow: hidden;
    background-color: var(--color-white);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.header__search-expand.active {
    max-height: 400px;
    overflow: visible;
}

.header__search-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__search-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.header__search-input {
    width: 100%;
    height: 45px;
    padding: 0 50px 0 15px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 15px;
    color: #1f2937;
    outline: none;
    transition: border-color 0.3s ease;
}

.header__search-input::placeholder {
    color: var(--color-text-muted);
}

.header__search-input:focus {
    border-color: var(--color-pink);
}

.header__search-submit {
    position: absolute;
    right: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-pink);
}

/* Autocomplete Dropdown */
.header__autocomplete {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.header__autocomplete.active {
    display: block;
}

.header__autocomplete-list {
    padding: 8px 0;
    margin: 0;
    list-style: none;
}

.header__autocomplete-list:empty {
    padding: 0;
}

.header__autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.header__autocomplete-item:hover {
    background-color: #f3f4f6;
}

.header__autocomplete-icon {
    fill: var(--color-text-muted);
    flex-shrink: 0;
}

.header__autocomplete-text {
    font-size: 14px;
    color: #1f2937;
}

.header__autocomplete-text strong {
    color: var(--color-pink);
    font-weight: 600;
}

.header__autocomplete-empty {
    padding: 20px 15px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 30px 0 30px;
}

/* ========================================
   SECTION HEADER
   ======================================== */

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.section-header__icon {
    fill: var(--color-pink);
}

.section-header__title {
    color: var(--color-white);
    font-size: 24px;
    font-weight: 600;
}

/* ========================================
   MOVIE GRID
   ======================================== */

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Movie Card */
.movie-card {
    background-color: var(--color-card-bg);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(252, 68, 169, .5);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Poster */
.movie-card__poster {
    display: block;
    position: relative;
    aspect-ratio: var(--fv-thumb-aspect-ratio);
    overflow: hidden;
}

.movie-card__poster img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-card__poster img {
    transform: scale(1.05);
}

/* Ribbon */
.movie-card__ribbon {
    position: absolute;
    top: 10px;
    left: 0;
    background-color: var(--color-pink);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 0 3px 3px 0;
}

/* Duration */
.movie-card__duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid rgba(252, 68, 169, .5);

}

/* Data Wrapper */
.movie-card__data {
    padding: 15px;
}

.movie-card__title {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.movie-card__views {
    color: var(--color-text-muted);
    font-size: 12px;
}

/* ========================================
   LOAD MORE BUTTON
   ======================================== */

.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-load-more {
    background-color: var(--color-pink);
    color: var(--color-white);
    border: none;
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-load-more:hover {
    background-color: #db2777;
    transform: translateY(-2px);
}

/* ========================================
   CATEGORY SECTION
   ======================================== */

.category-section {
    margin-top: 50px;
    background-color: var(--color-footer-bottom);
    /* Full width background trick */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 40px calc(50vw - 50%);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(30 41 59 / 1);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--color-pink);
}

.category-card__info {
    flex: 1;
}

.category-card__name {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-card__count {
    color: var(--color-text-muted);
    font-size: 13px;
}

.category-card__badge {
    background-color: transparent;
    color: var(--color-pink);
    font-size: 14px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid var(--color-pink);
    flex-shrink: 0;
    margin-left: 10px;
}

/* ========================================
   VIDEO PAGE
   ======================================== */

.video-page {
    padding: 30px 40px;
    background-color: rgb(0 0 0 / 1);
}

.video-page__container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Video Player */
.video-player-section {
    min-width: 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Video Info */
.video-info {
    margin-top: 20px;
}

.video-info__title {
    color: var(--color-white);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.video-info__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.video-info__views,
.video-info__date,
.video-info__duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.video-info__views svg,
.video-info__duration svg {
    fill: var(--color-text-muted);
}

.video-info__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.video-info__tag {
    padding: 6px 14px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-info__tag svg {
    fill: currentColor;
}

.video-info__tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.video-info__tag--author {
    background-color: rgba(236, 72, 153, 0.3);
    color: var(--color-pink);
}

.video-info__tag--author:hover {
    background-color: var(--color-pink);
    color: var(--color-white);
}

.video-info__tag--category {
    background-color: rgba(234, 179, 8, 0.3);
    color: #fbbf24;
}

.video-info__tag--category:hover {
    background-color: #fbbf24;
    color: #000;
}

.video-info__tag--keyword {
    background-color: rgba(236, 72, 153, 0.3);
    color: var(--color-pink);
}

.video-info__tag--keyword:hover {
    background-color: var(--color-pink);
    color: var(--color-white);
}

/* Description Box */
.video-info__desc-box {
    background-color: var(--color-card-bg);
    border: 1px solid rgba(252, 68, 169, .5);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.video-info__desc-label {
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.video-info__desc-content {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.video-info__desc-content a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.video-info__desc-content a:hover {
    color: var(--color-pink);
}

.video-info__like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: transparent;
    border: 1px solid var(--color-pink);
    border-radius: 20px;
    color: var(--color-pink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.video-info__like-btn:hover {
    background-color: rgba(236, 72, 153, 0.2);
}

.video-info__like-btn.liked {
    background-color: var(--color-pink);
    color: var(--color-white);
}

.video-info__like-btn.liked:hover {
    background-color: #db2777;
}

.video-info__like-btn svg {
    fill: currentColor;
}

/* Server Selection */
.video-servers {
    margin: 20px 0;
    padding: 20px;
    background-color: var(--color-card-bg);
    border-radius: 8px;
    border: 1px solid rgba(252, 68, 169, .5);
}

.video-servers__title {
    color: var(--color-white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.video-servers__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.video-servers__btn {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-servers__btn:hover {
    background-color: rgba(236, 72, 153, 0.3);
    border-color: var(--color-pink);
}

.video-servers__btn.active {
    background-color: var(--color-pink);
    border-color: var(--color-pink);
}

/* Suggested Section */
.video-suggested {
    margin-top: 30px;
}

.video-suggested__title {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-pink);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.btn-back-to-top:hover {
    background-color: #db2777;
    transform: translateY(-3px);
}

.btn-back-to-top svg {
    fill: var(--color-white);
    margin-bottom: 2px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background-color: var(--color-dark-bg);
    padding: 50px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer__about {
    max-width: 100%;
}

.footer__logo {
    color: var(--color-pink);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer__description {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Backlinks List */
.footer__backlinks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.footer__backlinks li {
    display: block;
}

.footer__backlinks a {
    color: var(--color-text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__backlinks a:hover {
    color: var(--color-pink);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--color-pink);
    color: var(--color-white);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.pagination__arrow:hover {
    background-color: #db2777;
    transform: translateY(-2px);
}

.pagination__arrow--disabled {
    background-color: #374151;
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background-color: transparent;
    border: 1px solid #4b5563;
    color: var(--color-text-muted);
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination__num:hover {
    border-color: var(--color-pink);
    color: var(--color-pink);
}

.pagination__num--active {
    background-color: var(--color-pink);
    border-color: var(--color-pink);
    color: var(--color-white);
}

.pagination__dots {
    color: var(--color-text-muted);
    font-size: 14px;
    padding: 0 5px;
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */

.footer-bottom {
    background-color: var(--color-footer-bottom);
    padding: 20px 40px;
    text-align: center;
}

.footer-bottom__seo {
    color: var(--color-text-muted);
    font-size: 13px;
    padding: 15px 20px 0;
}

.footer-bottom__row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 20px;
}

.footer-bottom__copyright {
    color: var(--color-text-muted);
    font-size: 13px;
}

.footer-bottom .dmca-badge {
    display: inline-flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-bottom .dmca-badge:hover {
    opacity: 1;
}

.footer-bottom .dmca-badge img {
    height: 20px;
    width: auto;
}

/* ========================================
   RESPONSIVE - 1024px
   ======================================== */

@media (max-width: 1024px) {
    .header__container {
        padding: 0 30px;
    }

    .header__search-container {
        padding: 0 30px 18px;
    }

    .header__nav-list {
        gap: 25px;
    }

    .header__nav-link {
        font-size: 15px;
    }

    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .footer {
        padding: 40px 30px;
    }

}

/* ========================================
   RESPONSIVE - 768px
   ======================================== */

@media (max-width: 768px) {
    .header__container {
        padding: 0 20px;
        height: 60px;
    }

    .header__dropdown {
        left: 15%;
    }

    /* Hide desktop nav, show mobile toggle */
    .header__nav {
        display: none;
    }

    .header__search-btn {
        margin-left: auto;
    }

    .header__menu-toggle {
        display: flex;
    }

    .header__mobile-menu {
        display: block;
    }

    .header__mobile-list {
        padding: 10px 20px 20px;
    }

    .header__search-container {
        padding: 0 20px 15px;
    }

    .header__search-wrapper {
        width: 100%;
    }

    .header__search-input {
        height: 42px;
        font-size: 14px;
        padding-right: 60px;
    }

    .header__search-submit {
        font-size: 13px;
        padding: 8px 10px;
    }

    .header__logo img {
        height: 35px;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .section-header__title {
        font-size: 20px;
    }

    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 15px;
    }

    .category-card__name {
        font-size: 14px;
    }

    .category-card__count {
        font-size: 12px;
    }

    /* Video Page Responsive */
    .video-page {
        padding: 20px;
    }

    .video-info__title {
        font-size: 18px;
    }

    .video-info__meta {
        gap: 15px;
    }

    .category-card__badge {
        font-size: 12px;
        padding: 4px 8px;
    }

    .movie-card__title {
        font-size: 13px;
    }

    .btn-load-more {
        padding: 12px 35px;
        font-size: 14px;
    }

    .btn-back-to-top {
        width: 45px;
        height: 45px;
        bottom: 25px;
        right: 25px;
    }

    .footer {
        padding: 35px 20px;
    }

    .footer__logo {
        font-size: 24px;
    }

}

/* ========================================
   RESPONSIVE - 425px
   ======================================== */

@media (max-width: 425px) {
    .header__container {
        padding: 0 15px;
        height: 55px;
    }

    .header__dropdown {
        left: 25%;
    }

    .header__mobile-list {
        padding: 10px 15px 20px;
    }

    .header__search-container {
        padding: 0 15px 12px;
        gap: 10px;
    }

    .header__search-input {
        height: 38px;
        font-size: 13px;
        padding-right: 55px;
    }

    .header__search-submit {
        font-size: 12px;
        padding: 6px 8px;
        right: 3px;
    }

    .header__logo img {
        height: 30px;
    }

    .section-header {
        margin-bottom: 20px;
        gap: 10px;
    }

    .section-header__icon {
        width: 20px;
        height: 20px;
    }

    .section-header__title {
        font-size: 18px;
    }

    .movie-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }

    .movie-card__ribbon {
        font-size: 10px;
        padding: 3px 8px;
    }

    .movie-card__duration {
        font-size: 10px;
        padding: 2px 6px;
    }

    .movie-card__data {
        padding: 12px;
    }

    .movie-card__title {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .movie-card__views {
        font-size: 11px;
    }

    .btn-load-more {
        padding: 10px 30px;
        font-size: 13px;
    }

    .btn-back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    .btn-back-to-top svg {
        width: 16px;
        height: 16px;
    }

    .footer {
        padding: 30px 15px;
    }

    .footer__logo {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .footer__description {
        font-size: 13px;
    }

    .footer__backlinks {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        padding: 12px 15px;
    }

    .footer-bottom__copyright {
        font-size: 12px;
    }
}

/* ========================================
   NEXTJS COMPATIBILITY
   ======================================== */

.movie-section {
    margin-bottom: 30px;
}

.movie-card__title a {
    color: var(--color-white);
    text-decoration: none;
}

.movie-card__views {
    display: flex;
    align-items: center;
    gap: 6px;
}

.movie-card__views svg {
    fill: currentColor;
    flex-shrink: 0;
}

.btn-load-more {
    display: inline-block;
    text-decoration: none;
}

.player-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Dropdown - click-based open state (Next.js uses React state, not CSS :hover) */
.header__nav-item--dropdown.open .header__dropdown {
    opacity: 1;
    visibility: visible;
}

/* 3-column dropdown for >10 items */
.header__dropdown:has(li:nth-child(11)) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-width: 520px;
    left: -200%;
    transform: translateX(-50%);
}

.header__dropdown:has(li:nth-child(11)) .header__dropdown-item {
    border-bottom: none;
    border-right: 1px solid #f0f0f0;
}

.header__dropdown:has(li:nth-child(11)) .header__dropdown-item:nth-child(3n) {
    border-right: none;
}


@media (max-width: 768px) {
    .header__dropdown:has(li:nth-child(11)) {
        grid-template-columns: repeat(2, 1fr);
        min-width: 100%;
        left: 50%;
    }
}


/* visually-hidden utility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}