:root {
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --orange-500: #f97316;
    --amber-500: #f59e0b;
    --blue-500: #3b82f6;
    --cyan-500: #06b6d4;
    --emerald-500: #10b981;
    --yellow-500: #eab308;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.10), 0 4px 6px -4px rgb(0 0 0 / 0.10);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--gray-800);
    background: linear-gradient(180deg, #fff1f2 0%, #fff7ed 320px, var(--gray-50) 760px);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1280px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255 / 0.90);
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.08);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 20px;
}

.brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
    box-shadow: 0 0 28px rgb(244 63 94 / 0.38);
}

.brand-text {
    background: linear-gradient(90deg, var(--rose-500), var(--orange-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 700;
    color: var(--gray-700);
}

.main-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
    color: var(--rose-500);
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(280px, 26vw);
}

.header-search input,
.filter-input,
.search-page-form input {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--gray-800);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    padding: 10px 18px 10px 42px;
}

.header-search input:focus,
.filter-input:focus,
.search-page-form input:focus {
    border-color: var(--rose-500);
    box-shadow: 0 0 0 4px rgb(244 63 94 / 0.16);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--gray-100);
    color: var(--gray-800);
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-200);
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(120deg, var(--rose-500), #ec4899 42%, var(--orange-500));
}

.hero::after {
    position: absolute;
    right: -160px;
    bottom: -220px;
    width: 520px;
    height: 520px;
    content: "";
    border-radius: 999px;
    background: rgb(255 255 255 / 0.12);
    filter: blur(8px);
}

.hero-slider {
    position: relative;
    min-height: 600px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    transform: scale(1.06);
}

.hero-bg::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(90deg, rgb(17 24 39 / 0.78), rgb(244 63 94 / 0.42), rgb(249 115 22 / 0.36));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 600px;
    align-items: center;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.68fr);
    gap: 48px;
    padding-block: 80px 120px;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.16);
    color: rgb(255 255 255 / 0.92);
    font-weight: 800;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 0;
    color: rgb(255 255 255 / 0.9);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--rose-500);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: #fff1f2;
    box-shadow: var(--shadow-xl);
}

.btn-ghost {
    color: var(--white);
    border-color: rgb(255 255 255 / 0.28);
    background: rgb(255 255 255 / 0.14);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0.06));
    box-shadow: var(--shadow-2xl);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    opacity: 0.82;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-poster-meta {
    position: absolute;
    inset: auto 0 0 0;
    padding: 24px;
    background: linear-gradient(0deg, rgb(0 0 0 / 0.78), transparent);
}

.hero-wave {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    height: 130px;
    background: linear-gradient(0deg, #fff7ed 0%, rgb(255 247 237 / 0));
}

.hero-dots {
    position: absolute;
    z-index: 5;
    bottom: 38px;
    left: 50%;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--white);
}

.hero-feature-grid {
    position: relative;
    z-index: 10;
    margin-top: -72px;
    margin-bottom: 72px;
}

.feature-grid,
.movie-grid,
.category-grid,
.related-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.section {
    margin-bottom: 76px;
}

.band-section {
    padding-block: 64px;
    margin-bottom: 76px;
    background: var(--white);
}

.soft-section {
    padding-block: 64px;
    background: linear-gradient(135deg, #fff1f2, #fff7ed);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title h2,
.page-title h1 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    line-height: 1.2;
}

.section-title p,
.page-title p {
    margin: 4px 0 0;
    color: var(--gray-600);
}

.icon-box {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    flex: none;
    border-radius: 16px;
    color: var(--white);
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
    box-shadow: 0 12px 26px rgb(244 63 94 / 0.22);
}

.icon-box.orange {
    background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
}

.icon-box.blue {
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
}

.icon-box.gold {
    background: linear-gradient(135deg, var(--yellow-500), var(--orange-500));
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rose-500);
    font-weight: 800;
}

.movie-card,
.feature-card,
.category-card,
.rank-card,
.detail-card {
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.feature-card:hover,
.category-card:hover,
.rank-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
}

.movie-cover,
.feature-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
}

.movie-cover {
    aspect-ratio: 3 / 4;
}

.movie-cover img,
.feature-card img,
.category-card img,
.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

.movie-card:hover .movie-cover img,
.feature-card:hover img,
.category-card:hover img,
.rank-card:hover img {
    transform: scale(1.08);
}

.movie-cover::after,
.feature-card::after,
.category-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.12) 55%, transparent);
}

.movie-badge,
.movie-score,
.feature-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.movie-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    color: var(--white);
    background: var(--rose-500);
    font-size: 0.76rem;
}

.movie-score {
    right: 12px;
    bottom: 12px;
    padding: 4px 9px;
    color: var(--white);
    background: rgb(0 0 0 / 0.56);
    font-size: 0.82rem;
}

.movie-body {
    padding: 18px;
}

.movie-body h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--gray-500);
    font-size: 0.88rem;
}

.movie-desc {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--rose-600);
    background: #ffe4e6;
    font-size: 0.78rem;
    font-weight: 800;
}

.feature-card {
    height: 260px;
    color: var(--white);
}

.feature-card img {
    position: absolute;
    inset: 0;
}

.feature-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 22px;
}

.feature-content h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.feature-content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: rgb(255 255 255 / 0.86);
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.feature-badge {
    z-index: 3;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    color: var(--white);
    background: var(--rose-500);
    font-size: 0.78rem;
}

.category-card {
    position: relative;
    min-height: 180px;
    padding: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
}

.category-card img {
    position: absolute;
    inset: 0;
    opacity: 0.24;
}

.category-card-content {
    position: relative;
    z-index: 2;
    display: grid;
    height: 100%;
    align-content: end;
}

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

.category-card p {
    margin: 0;
    color: rgb(255 255 255 / 0.86);
    font-size: 0.92rem;
}

.ranking-list {
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.rank-card {
    display: grid;
    grid-template-columns: 58px 112px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 18px;
    box-shadow: none;
}

.rank-card:hover {
    background: var(--gray-50);
}

.rank-number {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 999px;
    color: var(--gray-600);
    background: var(--gray-100);
    font-size: 1.05rem;
    font-weight: 900;
}

.rank-number.top-1 {
    color: var(--white);
    background: linear-gradient(135deg, #facc15, #f97316);
}

.rank-number.top-2 {
    color: var(--white);
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
}

.rank-number.top-3 {
    color: var(--white);
    background: linear-gradient(135deg, #fdba74, #f59e0b);
}

.rank-thumb {
    overflow: hidden;
    width: 112px;
    height: 72px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
}

.rank-info h3 {
    margin: 0 0 5px;
    font-size: 1.02rem;
}

.rank-info p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 0.9rem;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.rank-hot {
    color: var(--rose-500);
    font-weight: 900;
    white-space: nowrap;
}

.page-hero {
    padding: 70px 0 42px;
}

.page-title {
    display: grid;
    gap: 12px;
    max-width: 860px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.92rem;
}

.breadcrumbs a {
    color: var(--rose-500);
    font-weight: 800;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    margin: 28px 0;
    padding: 18px;
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.filter-input,
.filter-select {
    min-height: 46px;
    padding: 0 16px;
}

.filter-select {
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    color: var(--gray-700);
    outline: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.86fr);
    gap: 28px;
    align-items: start;
}

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow-2xl);
    aspect-ratio: 16 / 9;
}

.main-video {
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgb(244 63 94 / 0.16), rgb(0 0 0 / 0.68));
    text-align: center;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ui {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.play-circle {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    color: var(--rose-500);
    background: var(--white);
    box-shadow: 0 18px 45px rgb(0 0 0 / 0.26);
    font-size: 2rem;
}

.play-ui strong {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
}

.play-ui small {
    max-width: 680px;
    color: rgb(255 255 255 / 0.84);
    font-size: 1rem;
}

.detail-card {
    padding: 24px;
}

.detail-card h2,
.detail-card h3 {
    margin: 0 0 14px;
}

.detail-card p {
    margin: 0 0 14px;
    color: var(--gray-700);
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-meta-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    color: var(--gray-600);
}

.detail-meta-list span {
    color: var(--gray-900);
    font-weight: 900;
}

.article-section {
    margin-top: 28px;
}

.article-section h2 {
    margin: 0 0 14px;
    font-size: 1.5rem;
}

.article-section p {
    margin: 0 0 18px;
    color: var(--gray-700);
    font-size: 1.03rem;
}

.search-page-form {
    display: flex;
    gap: 12px;
    max-width: 760px;
    margin-top: 28px;
}

.search-page-form input {
    min-height: 52px;
    padding: 0 18px;
}

.search-page-form button {
    min-width: 120px;
    border: 0;
}

.search-empty {
    padding: 36px;
    border-radius: var(--radius-2xl);
    background: var(--white);
    color: var(--gray-600);
    box-shadow: var(--shadow-lg);
}

.footer {
    margin-top: 88px;
    color: var(--white);
    background: linear-gradient(90deg, var(--gray-900), var(--gray-800));
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1fr;
    gap: 36px;
    padding-block: 46px;
}

.footer h2,
.footer h3 {
    margin: 0 0 14px;
}

.footer p,
.footer a {
    color: rgb(255 255 255 / 0.68);
}

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

.footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom {
    padding: 18px 0 26px;
    border-top: 1px solid rgb(255 255 255 / 0.10);
    color: rgb(255 255 255 / 0.56);
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .feature-grid,
    .movie-grid,
    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .main-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-block: 72px 118px;
    }

    .hero-poster {
        min-height: 280px;
    }

    .hero-poster img {
        min-height: 280px;
    }

    .feature-grid,
    .movie-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 48px 86px 1fr;
    }

    .rank-hot {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .brand {
        font-size: 1.25rem;
    }

    .hero {
        min-height: 620px;
    }

    .hero-slider {
        min-height: 620px;
    }

    .hero-content {
        min-height: 620px;
        gap: 24px;
    }

    .feature-grid,
    .movie-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-card {
        grid-template-columns: 44px 74px 1fr;
        gap: 12px;
    }

    .rank-thumb {
        width: 74px;
        height: 56px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .search-page-form {
        flex-direction: column;
    }
}
