:root {
    --rose: #e11d48;
    --rose-dark: #be123c;
    --amber: #d97706;
    --emerald: #059669;
    --gray-950: #111827;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(17, 24, 39, 0.10);
    --shadow-card: 0 12px 35px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #fff1f2 0%, #fffbeb 48%, #ecfdf5 100%);
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #ffe4e6, #fef3c7, #d1fae5);
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.82);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    box-shadow: 0 12px 22px rgba(225, 29, 72, 0.28);
}

.brand-text,
.footer-brand,
.section-heading h2,
.page-title-card h1,
.detail-info h1 {
    background: linear-gradient(90deg, var(--rose), var(--amber), var(--emerald));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link,
.mobile-nav-link {
    padding: 9px 13px;
    border-radius: 12px;
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.header-search {
    width: 240px;
}

.header-search input,
.mobile-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    outline: none;
    background: #fff;
    color: var(--gray-900);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
    padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.14);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: var(--gray-700);
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 16px;
    grid-template-columns: 1fr;
    gap: 8px;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--gray-950);
}

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

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

.hero-slide > img {
    position: absolute;
    inset: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.10));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 1180px;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.8;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    margin-bottom: 16px;
    color: #fbbf24;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-meta {
    margin-bottom: 34px;
    color: #fff;
}

.hero-meta span,
.hero-meta a,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.search-panel button,
.full-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-panel button,
.full-link {
    color: #fff;
    background: linear-gradient(90deg, var(--rose), var(--amber));
    box-shadow: 0 16px 30px rgba(225, 29, 72, 0.25);
}

.primary-button:hover,
.search-panel button:hover,
.full-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 40px rgba(225, 29, 72, 0.32);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.page-wrap,
.search-panel {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.search-panel {
    margin-top: -54px;
    position: relative;
    z-index: 6;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 22px;
    align-items: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.search-panel h2,
.section-heading h2,
.page-title-card h1 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.search-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-panel input {
    padding: 13px 18px;
}

.inner-page {
    padding-top: 34px;
}

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

.section-heading {
    margin-bottom: 28px;
}

.split-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.compact-heading h2 {
    font-size: 28px;
}

.text-link {
    color: var(--rose);
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 48px rgba(17, 24, 39, 0.18);
}

.card-link {
    display: block;
    height: 100%;
}

.card-poster {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-poster img {
    transition: transform 0.45s ease;
}

.movie-card:hover .card-poster img {
    transform: scale(1.08);
}

.duration-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.78);
    backdrop-filter: blur(8px);
}

.duration-badge {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, var(--rose), var(--amber));
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 9px;
    font-size: 19px;
    line-height: 1.35;
    color: var(--gray-900);
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: var(--rose);
}

.card-body p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
}

.compact-card .card-body p {
    min-height: 42px;
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-tags span,
.detail-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--rose);
    background: #fff1f2;
    font-size: 12px;
    font-weight: 750;
}

.card-meta {
    margin-top: 14px;
    color: var(--gray-500);
    font-size: 12px;
    justify-content: space-between;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    gap: 28px;
    align-items: start;
}

.category-grid,
.category-panels {
    display: grid;
    gap: 18px;
}

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

.category-tile,
.category-panel,
.ranking-card,
.page-title-card,
.detail-hero,
.player-section,
.detail-content {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.category-tile {
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 251, 235, 0.96), rgba(236, 253, 245, 0.96));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.category-tile span {
    display: block;
    margin-bottom: 9px;
    font-size: 22px;
    font-weight: 850;
    color: var(--gray-900);
}

.category-tile p,
.category-panel p,
.page-title-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.8;
}

.ranking-card {
    padding: 24px;
}

.rank-row,
.wide-rank-row {
    display: grid;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-row:hover,
.wide-rank-row:hover {
    background: #fff1f2;
    transform: translateX(4px);
}

.rank-index {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    font-weight: 850;
}

.rank-row img,
.wide-rank-row img {
    border-radius: 12px;
    aspect-ratio: 1 / 1;
}

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

.rank-views,
.wide-rank-row small {
    color: var(--gray-500);
    font-size: 12px;
}

.full-link {
    width: 100%;
    margin-top: 18px;
}

.page-title-card {
    padding: 42px;
    overflow: hidden;
    position: relative;
}

.page-title-card::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -80px;
    top: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.18), transparent 65%);
}

.category-panel {
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) 1fr;
    gap: 24px;
    align-items: center;
}

.category-panel h2 {
    margin: 6px 0 10px;
    font-size: 32px;
}

.small-button {
    margin-top: 18px;
    min-height: 38px;
    padding: 9px 16px;
}

.small-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.small-card {
    display: grid;
    gap: 8px;
    color: var(--gray-900);
    font-weight: 750;
    font-size: 13px;
}

.small-card img {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.10);
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 14px;
    margin-bottom: 24px;
}

.large-filter {
    grid-template-columns: 1fr 200px 160px;
}

.filter-bar input,
.filter-bar select {
    padding: 13px 18px;
}

.filter-status {
    min-height: 22px;
    color: var(--gray-600);
    font-weight: 700;
}

.wide-rank-list {
    display: grid;
    gap: 12px;
}

.wide-rank-row {
    grid-template-columns: 50px 74px minmax(0, 1fr) 120px 110px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.wide-rank-row > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--amber));
}

.wide-rank-row em {
    color: var(--rose);
    font-style: normal;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--gray-600);
    font-weight: 700;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    padding: 30px;
    overflow: hidden;
}

.detail-cover {
    margin: 0;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    margin: 10px 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.detail-one-line {
    margin: 0 0 20px;
    color: var(--gray-700);
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta {
    margin-bottom: 20px;
}

.detail-meta span {
    color: var(--gray-700);
    background: #f9fafb;
}

.detail-tags {
    margin-bottom: 26px;
}

.player-section {
    margin: 34px 0 0;
    padding: 26px;
}

.player-section h2,
.detail-content h2 {
    margin: 0 0 18px;
    font-size: 28px;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.video-player video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    align-content: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.74));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-player.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    background: linear-gradient(135deg, var(--rose), var(--amber));
    box-shadow: 0 18px 36px rgba(225, 29, 72, 0.35);
}

.player-cover strong {
    font-size: 22px;
}

.detail-content {
    padding: 30px;
}

.detail-content p {
    color: var(--gray-700);
    line-height: 2;
    font-size: 16px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.info-list div {
    padding: 16px;
    border-radius: 18px;
    background: #f9fafb;
}

.info-list dt {
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 8px;
}

.info-list dd {
    margin: 0;
    font-weight: 800;
}

.site-footer {
    margin-top: 80px;
    color: #fff;
    background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-inner {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 34px;
}

.footer-inner p {
    max-width: 620px;
    color: #d1d5db;
    line-height: 1.8;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #fff;
    background: rgba(225, 29, 72, 0.42);
}

.footer-bottom {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 26px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

@media (max-width: 1080px) {
    .header-search {
        display: none;
    }

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

    .two-column-section,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 360px;
    }

    .info-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .mobile-nav.open {
        display: grid;
    }

    .hero {
        height: 560px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

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

    .search-panel,
    .footer-inner,
    .category-panel,
    .large-filter,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .search-panel form {
        grid-template-columns: 1fr;
    }

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

    .wide-rank-row {
        grid-template-columns: 42px 62px 1fr;
    }

    .wide-rank-row em,
    .wide-rank-row small {
        display: none;
    }

    .small-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .page-wrap,
    .search-panel,
    .footer-inner,
    .footer-bottom,
    .hero-content {
        width: calc(100% - 28px);
    }

    .header-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

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

    .hero {
        height: 520px;
    }

    .hero-meta {
        gap: 8px;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .three-grid,
    .four-grid,
    .category-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

    .page-title-card,
    .detail-hero,
    .player-section,
    .detail-content,
    .category-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .detail-cover {
        max-width: none;
    }
}
