:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --orange-50: #fff7ed;
    --orange-500: #f97316;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.08);
    --shadow-xl: 0 22px 55px rgba(17, 24, 39, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--rose-50), var(--orange-50) 48%, #fdf2f8);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(255, 247, 237, 0.96));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #fb7185, var(--orange-500));
    box-shadow: 0 10px 20px rgba(244, 63, 94, 0.25);
}

.brand-text,
.footer-brand {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link,
.mobile-link {
    color: var(--gray-700);
    font-weight: 650;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--rose-500);
}

.top-search,
.mobile-search,
.filter-box {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.top-search input,
.mobile-search input,
.filter-box input {
    width: 250px;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 11px 16px;
    background: transparent;
    color: var(--gray-800);
}

.top-search button,
.mobile-search button,
.filter-box button {
    border: 0;
    padding: 11px 18px;
    color: #fff;
    background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: var(--rose-100);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--rose-600);
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

.mobile-panel.open {
    display: block;
}

.mobile-search {
    margin: 10px 0 14px;
}

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

.mobile-nav {
    display: grid;
    gap: 8px;
}

.mobile-link {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
}

.mobile-link:hover,
.mobile-link.active {
    background: #fff;
}

.hero-slider {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #000;
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42) 50%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(1280px, 100%);
    transform: translateX(-50%);
    padding: 56px 24px 70px;
    color: #fff;
}

.hero-kicker,
.eyebrow,
.category-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 16px;
    color: #fff;
    background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
    max-width: 820px;
    margin: 16px 0;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.08;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: 18px;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.secondary-button,
.section-more,
.page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.primary-button {
    padding: 13px 30px;
    color: #fff;
    background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
    box-shadow: 0 12px 26px rgba(244, 63, 94, 0.32);
}

.secondary-button {
    padding: 12px 24px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover,
.page-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-dot.active {
    width: 34px;
    background: #fff;
}

.main-wrap,
.detail-wrap {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 52px 0;
}

.section-block {
    margin-bottom: 54px;
}

.section-heading,
.page-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.section-heading h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.section-heading p,
.page-hero p,
.detail-title p {
    max-width: 820px;
    margin: 8px 0 0;
    color: var(--gray-600);
}

.section-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
    box-shadow: 0 10px 22px rgba(244, 63, 94, 0.18);
}

.section-more,
.page-button {
    padding: 10px 18px;
    color: var(--rose-600);
    background: #fff;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-100), var(--orange-50));
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
    filter: brightness(0.85);
}

.poster-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    padding: 3px 9px;
    color: #fff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.85);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
    opacity: 0;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 15px;
}

.card-title {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: var(--gray-800);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-title:hover {
    color: var(--rose-600);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    margin: 8px 0;
    color: var(--gray-500);
    font-size: 12px;
}

.card-body p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span,
.meta-pill {
    border-radius: 999px;
    padding: 3px 9px;
    color: var(--rose-600);
    background: var(--rose-100);
    font-size: 12px;
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 24px;
    color: #fff;
    background: var(--gray-900);
    box-shadow: var(--shadow-md);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 0.45s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card div {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    min-height: 220px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 70%);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: #e5e7eb;
    font-size: 14px;
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: 48px 72px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border-radius: 20px;
    padding: 12px;
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.rank-number {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
    font-weight: 900;
}

.rank-item img {
    width: 72px;
    height: 98px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-info {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rank-info strong {
    overflow: hidden;
    color: var(--gray-800);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-info em {
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
    border-radius: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-row button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--gray-700);
    background: #fff;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
}

.chip-row button:hover {
    color: #fff;
    background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
}

.filter-count {
    color: var(--gray-600);
    font-size: 14px;
}

.detail-wrap {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
    gap: 28px;
}

.detail-main,
.detail-side,
.info-card {
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow-xl);
}

.detail-main {
    overflow: hidden;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.22);
    transition: opacity 0.25s ease;
}

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

.player-play-button {
    display: inline-flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
    font-size: 32px;
}

.detail-content,
.detail-side {
    padding: 26px;
}

.detail-title h1 {
    margin-bottom: 12px;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.prose h2,
.detail-side h2 {
    margin: 24px 0 10px;
    color: var(--gray-800);
    font-size: 24px;
}

.prose p {
    margin: 0 0 16px;
    color: var(--gray-600);
}

.side-cover {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--rose-100), var(--orange-50));
}

.side-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.related-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.related-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--gray-50);
}

.related-item:hover {
    background: var(--rose-50);
}

.related-item img {
    width: 72px;
    height: 98px;
    border-radius: 12px;
    object-fit: cover;
}

.related-item strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.related-item span {
    display: block;
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--rose-600);
}

.site-footer {
    color: #fff;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0;
}

.footer-inner p {
    max-width: 680px;
    margin: 14px 0 0;
    color: #d1d5db;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 12px 20px;
}

.footer-links a:hover {
    color: #fb7185;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 24px;
    color: #d1d5db;
    text-align: center;
}

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

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

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-slider {
        height: 560px;
    }

    .hero-content {
        padding: 44px 24px 76px;
    }

    .section-heading,
    .page-hero,
    .footer-inner {
        display: block;
    }

    .section-more {
        margin-top: 16px;
    }

    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rank-grid,
    .detail-wrap {
        grid-template-columns: 1fr;
    }

    .footer-links {
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 62px;
        padding: 0 16px;
    }

    .brand-text {
        font-size: 20px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .main-wrap,
    .detail-wrap,
    .footer-inner {
        width: min(100% - 28px, 1280px);
    }

    .hero-slider {
        height: 520px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-control {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 40px 64px minmax(0, 1fr);
    }

    .rank-item img,
    .related-item img {
        width: 64px;
        height: 88px;
    }

    .card-body {
        padding: 12px;
    }

    .detail-content,
    .detail-side {
        padding: 18px;
    }
}
