.site-header {
    backdrop-filter: blur(18px);
    background: rgba(15, 23, 42, 0.92);
}

.brand-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #0f172a;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.mobile-menu {
    display: none;
}

.mobile-menu.is-open {
    display: block;
}

.nav-pill {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-pill:hover {
    background: rgba(51, 65, 85, 0.85);
    color: #ffffff;
}

.site-search {
    position: relative;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(28rem, 88vw);
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(51, 65, 85, 0.95);
    border-radius: 1rem;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.75);
    overflow: hidden;
    z-index: 80;
    display: none;
}

.search-suggest.is-open {
    display: block;
}

.search-suggest a,
.search-result-card {
    display: flex;
    gap: 0.8rem;
    padding: 0.85rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.8);
    transition: background 0.2s ease;
}

.search-suggest a:hover,
.search-result-card:hover {
    background: rgba(30, 41, 59, 0.9);
}

.search-suggest img,
.search-result-card img {
    width: 4.25rem;
    height: 5.7rem;
    object-fit: cover;
    border-radius: 0.65rem;
    background: #020617;
    flex: 0 0 auto;
}

.hero-slider {
    background: #020617;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.hero-dot {
    width: 2.25rem;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
    transition: all 0.3s ease;
}

.hero-dot.is-active {
    width: 4rem;
    background: linear-gradient(90deg, #22d3ee, #3b82f6);
}

.movie-card img,
.rank-cover img,
.related-cover img {
    background: #020617;
}

.movie-card {
    min-width: 0;
}

.card-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.28), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .card-hover {
    opacity: 1;
}

.play-badge {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.92);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 0 35px rgba(34, 211, 238, 0.5);
}

.category-tile {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    padding: 1.5rem;
    min-height: 9rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-0.25rem) scale(1.02);
    box-shadow: 0 25px 70px rgba(2, 6, 23, 0.45);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.28), transparent 34%);
    opacity: 0.85;
}

.category-tile > * {
    position: relative;
    z-index: 2;
}

.theme-annual-hot { background: linear-gradient(135deg, #ef4444, #f97316); }
.theme-domestic-drama { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.theme-hot-drama { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.theme-suspense-thriller { background: linear-gradient(135deg, #f43f5e, #991b1b); }
.theme-romance-fantasy { background: linear-gradient(135deg, #ec4899, #fb7185); }
.theme-action-sci-fi { background: linear-gradient(135deg, #3b82f6, #4f46e5); }
.theme-comedy-family { background: linear-gradient(135deg, #f59e0b, #eab308); }
.theme-animation-classic { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.theme-documentary { background: linear-gradient(135deg, #10b981, #059669); }
.theme-hongkong-taiwan { background: linear-gradient(135deg, #f97316, #ef4444); }
.theme-global-cinema { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.theme-new-release { background: linear-gradient(135deg, #10b981, #14b8a6); }

.filter-button {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.95);
    transition: all 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

.movie-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .movie-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.rank-item {
    display: grid;
    grid-template-columns: 3.5rem 6rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(30, 41, 59, 0.9);
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateX(0.25rem);
    background: rgba(51, 65, 85, 0.92);
}

.rank-number {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    color: #fff;
    font-weight: 900;
}

.rank-cover {
    width: 6rem;
    height: 8rem;
    overflow: hidden;
    border-radius: 0.8rem;
    background: #020617;
}

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

.player-box {
    position: relative;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.38));
    color: #fff;
    z-index: 10;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-icon {
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    font-size: 2.2rem;
    line-height: 1;
    box-shadow: 0 0 60px rgba(34, 211, 238, 0.5);
}

.detail-copy p {
    margin-top: 0.85rem;
    color: #d1d5db;
    line-height: 1.9;
}

.related-cover {
    width: 8rem;
    height: 5rem;
    flex: 0 0 auto;
    border-radius: 0.7rem;
    overflow: hidden;
}

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

.hidden-card {
    display: none !important;
}

@media (max-width: 767px) {
    .hero-slider {
        height: 560px;
    }

    .search-suggest {
        left: 0;
        right: auto;
        width: 92vw;
    }

    .rank-item {
        grid-template-columns: 2.8rem 4.5rem 1fr;
        gap: 0.75rem;
    }

    .rank-cover {
        width: 4.5rem;
        height: 6rem;
    }
}
