:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 12px 30px rgba(244, 63, 94, 0.14);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --max-width: 1180px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: var(--max-width);
    min-height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo,
.footer-logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500), #fb7185);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--gray-700);
    font-weight: 600;
    margin-left: auto;
}

.site-nav a {
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--rose-500);
}

.site-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-search-form input {
    width: 190px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 10px 15px;
    outline: none;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form input:focus {
    border-color: var(--rose-500);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.site-search-form button,
.button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.site-search-form button,
.button-primary {
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.button-light {
    background: var(--white);
    color: var(--rose-500);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
}

.button-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
}

.button:hover,
.site-search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(244, 63, 94, 0.22);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--rose-50);
    margin-left: auto;
    cursor: pointer;
}

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

.hero-slider {
    position: relative;
    height: 540px;
    overflow: hidden;
    margin-bottom: 56px;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 24%), radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.16), transparent 20%), linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.18));
}

.hero-content {
    position: relative;
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 56px;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: var(--white);
    animation: fadeUp 0.7s ease both;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    margin-bottom: 18px;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 0;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.92);
    max-width: 680px;
}

.hero-tags,
.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}

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

.hero-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--rose-100), var(--gray-100));
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 4;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    padding: 0;
    opacity: 0.55;
}

.hero-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: var(--white);
    opacity: 1;
}

.page-container,
.detail-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 64px;
}

.content-section {
    margin-bottom: 64px;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.04em;
}

.section-link {
    color: var(--rose-500);
    font-weight: 800;
    white-space: nowrap;
}

.section-link span {
    font-size: 20px;
}

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

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

.movie-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px rgba(15, 23, 42, 0.13);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rose-100), var(--gray-100));
}

.movie-card-featured .movie-cover {
    aspect-ratio: 16 / 11;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.58));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.movie-badge,
.movie-play {
    position: absolute;
    z-index: 2;
}

.movie-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--rose-600);
    font-size: 12px;
    font-weight: 800;
}

.movie-play {
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.82);
    opacity: 0;
    background: rgba(255, 255, 255, 0.92);
    color: var(--rose-500);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
    padding: 18px;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.movie-info h3 {
    margin: 8px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--rose-500);
}

.movie-info p {
    min-height: 46px;
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.movie-tags span {
    background: var(--rose-50);
    color: var(--rose-600);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile,
.category-panel {
    display: block;
    border-radius: var(--radius-xl);
    padding: 24px;
    background: linear-gradient(135deg, var(--white), var(--rose-50));
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile:hover,
.category-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(244, 63, 94, 0.13);
}

.category-tile strong,
.category-panel strong {
    display: block;
    font-size: 22px;
    margin-bottom: 10px;
}

.category-tile p,
.category-panel p {
    margin: 0 0 16px;
    color: var(--gray-600);
}

.category-tile div,
.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tile span,
.category-samples span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--white);
    color: var(--rose-600);
    font-size: 12px;
    font-weight: 700;
}

.ribbon-section {
    border-radius: 32px;
    padding: 32px;
    background: linear-gradient(135deg, var(--rose-50), #fdf2f8);
}

.horizontal-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.compact-card {
    width: 250px;
    flex: 0 0 auto;
    border-radius: var(--radius-lg);
    padding: 12px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.compact-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--rose-100), var(--gray-100));
}

.compact-card span,
.compact-card small {
    display: block;
}

.compact-card span {
    font-weight: 800;
    line-height: 1.35;
}

.compact-card small {
    color: var(--gray-500);
    margin-top: 3px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.filter-pill {
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    font-weight: 700;
}

.filter-pill.is-active {
    border-color: transparent;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    color: var(--white);
}

.empty-state {
    margin-top: 24px;
    padding: 44px;
    text-align: center;
    border-radius: var(--radius-xl);
    background: var(--white);
    color: var(--gray-600);
    box-shadow: var(--shadow);
}

.page-hero {
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    color: var(--white);
    padding: 54px 0;
    margin-bottom: 48px;
}

.page-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.page-hero h1 {
    margin: 12px 0 8px;
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumbs a {
    color: inherit;
    opacity: 0.82;
}

.breadcrumbs a:hover {
    opacity: 1;
}

.ranking-list {
    display: grid;
    gap: 12px;
    margin-bottom: 52px;
}

.rank-row {
    display: grid;
    grid-template-columns: 56px 72px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.rank-num {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--rose-50);
    color: var(--rose-600);
    font-weight: 900;
}

.rank-row img {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rose-100), var(--gray-100));
}

.rank-title {
    font-weight: 800;
}

.rank-meta {
    color: var(--gray-500);
    font-size: 14px;
}

.detail-page {
    padding-top: 28px;
}

.detail-breadcrumbs {
    color: var(--gray-600);
    margin-bottom: 22px;
}

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

.player-main {
    min-width: 0;
}

.player-shell {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #050505;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #050505;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.72));
    color: var(--white);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--rose-500);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.24);
    font-size: 30px;
}

.player-overlay span:last-child {
    font-size: 18px;
    font-weight: 900;
}

.movie-detail-card,
.side-card {
    margin-top: 22px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
}

.movie-detail-card {
    padding: 28px;
}

.detail-title-line {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.detail-title-line h1 {
    margin: 0 0 8px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.detail-title-line p {
    margin: 0;
    color: var(--gray-600);
    font-size: 17px;
}

.detail-meta {
    margin-top: 18px;
}

.detail-tags span {
    background: var(--rose-50);
    color: var(--rose-600);
}

.movie-detail-card section {
    margin-top: 26px;
}

.movie-detail-card h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

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

.side-card {
    padding: 18px;
}

.poster-card {
    margin-top: 0;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--rose-100), var(--gray-100));
}

.poster-card strong,
.poster-card span {
    display: block;
}

.poster-card strong {
    font-size: 20px;
    line-height: 1.35;
}

.poster-card span {
    color: var(--gray-500);
    margin-top: 4px;
}

.side-recommend {
    display: grid;
    gap: 12px;
}

.side-recommend .compact-card {
    width: 100%;
    box-shadow: none;
    background: var(--gray-50);
}

.side-recommend .compact-card img {
    aspect-ratio: 16 / 9;
}

.detail-related {
    margin-top: 52px;
}

.site-footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    margin-top: 34px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 42px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
}

.footer-inner p {
    max-width: 420px;
    color: var(--gray-600);
    margin: 10px 0 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px 28px;
    color: var(--gray-600);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--rose-500);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 20px 28px;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 280px;
        gap: 32px;
    }

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

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

    .detail-side {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
}

@media (max-width: 820px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 14px;
        padding: 12px 18px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav,
    .site-search-form {
        display: none;
        width: 100%;
    }

    .site-header.is-open .site-nav,
    .site-header.is-open .site-search-form {
        display: flex;
    }

    .site-header.is-open .site-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-left: 0;
    }

    .site-header.is-open .site-search-form input {
        width: 100%;
    }

    .hero-slider {
        height: auto;
        min-height: 680px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 56px;
        padding-bottom: 110px;
    }

    .hero-poster {
        width: min(260px, 76vw);
        margin: 0 auto;
    }

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

    .rank-row {
        grid-template-columns: 46px 64px 1fr;
    }

    .rank-meta {
        grid-column: 3;
    }

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

    .detail-title-line {
        display: block;
    }

    .detail-title-line .button {
        display: inline-block;
        margin-top: 18px;
    }

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

@media (max-width: 560px) {
    .logo,
    .footer-logo {
        font-size: 22px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

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

    .featured-grid,
    .movie-grid,
    .all-grid,
    .category-grid,
    .category-panel-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-pills {
        justify-content: flex-start;
    }

    .ribbon-section {
        padding: 22px;
    }

    .rank-row {
        grid-template-columns: 42px 58px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .rank-row img {
        width: 58px;
        height: 42px;
    }

    .movie-detail-card {
        padding: 22px;
    }

    .player-shell {
        border-radius: 20px;
    }

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