:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --pink-dark: #db2777;
    --amber: #f59e0b;
    --blue: #0ea5e9;
    --text: #1f2937;
    --muted: #6b7280;
    --light: #f9fafb;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.55), #ffffff 42%, rgba(253, 242, 248, 0.68));
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.14);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    background: linear-gradient(135deg, #fb923c, #ec4899);
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.28);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-nav-link {
    color: #374151;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    display: flex;
    align-items: center;
    position: relative;
}

.header-search input,
.mobile-search input,
.filter-input,
.filter-select {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 230px;
    height: 40px;
    border-radius: 999px;
    padding: 0 44px 0 16px;
}

.header-search button {
    position: absolute;
    right: 8px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    background: transparent;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.45);
}

.mobile-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.08);
    color: var(--orange);
    cursor: pointer;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px 20px;
    border-top: 1px solid rgba(249, 115, 22, 0.12);
}

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

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.mobile-search input {
    flex: 1;
    height: 42px;
    border-radius: 999px;
    padding: 0 16px;
}

.mobile-search button,
.primary-button,
.secondary-button {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mobile-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    box-shadow: 0 14px 30px rgba(236, 72, 153, 0.25);
}

.mobile-search button {
    padding: 0 20px;
}

.secondary-button {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.mobile-search button:hover {
    transform: translateY(-2px);
}

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

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fce7f3, #fef3c7);
}

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

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

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

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

.hero-inner {
    position: absolute;
    inset: 0;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 680px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    color: #fde68a;
    font-weight: 700;
}

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

.hero-copy p {
    margin: 0 0 26px;
    font-size: clamp(17px, 2vw, 22px);
    color: rgba(255, 255, 255, 0.86);
}

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

.hero-tags {
    margin-bottom: 30px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-tags span {
    padding: 8px 13px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
}

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

.hero-actions a {
    padding: 14px 28px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-block {
    padding: 58px 0;
}

.page-hero {
    padding: 72px 0 46px;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.75), rgba(252, 231, 243, 0.82));
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

.page-hero h1,
.section-heading h2 {
    margin: 0;
    font-weight: 850;
    letter-spacing: -0.035em;
    color: #111827;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.section {
    margin-bottom: 76px;
}

.section.gradient-panel {
    padding: 34px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.9), rgba(252, 231, 243, 0.9));
}

.section.blue-panel {
    padding: 34px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(236, 254, 255, 0.95));
}

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

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(26px, 3vw, 38px);
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-heading a {
    color: var(--orange);
    font-weight: 750;
    white-space: nowrap;
}

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

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

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

.movie-card.is-hidden,
.rank-item.is-hidden {
    display: none;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--soft-shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

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

.movie-cover-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 70%);
    transition: opacity 0.28s ease;
}

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

.movie-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.88);
    color: var(--orange);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s ease, opacity 0.28s ease;
}

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

.movie-duration {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 700;
}

.movie-card-body {
    padding: 18px;
}

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    color: #1f2937;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color 0.2s ease;
}

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

.movie-card-body p {
    min-height: 44px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta-line span {
    min-width: 0;
    white-space: nowrap;
}

.movie-rating {
    color: var(--amber);
    font-weight: 800;
}

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

.category-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card-image {
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card-body {
    padding: 22px;
}

.category-card-body h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-card-body p {
    margin: 0;
    color: var(--muted);
}

.filter-panel {
    margin: 28px 0 34px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--soft-shadow);
}

.filter-input,
.filter-select {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    padding: 0 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 118px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-number {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 20px;
    font-weight: 850;
}

.rank-gold {
    color: #ffffff;
    background: linear-gradient(135deg, #fbbf24, #f97316);
}

.rank-silver {
    color: #ffffff;
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
}

.rank-bronze {
    color: #ffffff;
    background: linear-gradient(135deg, #fdba74, #d97706);
}

.rank-thumb {
    display: block;
    width: 118px;
    height: 74px;
    overflow: hidden;
    border-radius: 13px;
    background: #f3f4f6;
}

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

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

.rank-main strong {
    display: block;
    color: #1f2937;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-main em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.rank-score {
    color: var(--amber);
    font-size: 20px;
    font-weight: 850;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 14px;
}

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

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

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.35);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #020617;
}

.video-start {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    border: none;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.38);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-start:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

.video-shell.is-playing .video-start {
    opacity: 0;
    pointer-events: none;
}

.detail-card,
.side-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-card {
    margin-top: 28px;
    padding: 30px;
}

.detail-card h1 {
    margin: 0 0 18px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    font-weight: 700;
}

.detail-meta .score {
    color: #b45309;
    background: #fffbeb;
}

.detail-tags {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.detail-tags span {
    padding: 6px 12px;
    color: var(--orange-dark);
    background: #fff7ed;
}

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

.detail-section h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.detail-section p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.side-card {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.side-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.info-list {
    display: grid;
    gap: 0;
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-row span:first-child {
    color: var(--muted);
}

.info-row span:last-child {
    font-weight: 750;
    text-align: right;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.related-card {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 12px;
    align-items: center;
    border-radius: 16px;
    padding: 10px;
    background: #fff7ed;
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
    background: #ffedd5;
    transform: translateX(3px);
}

.related-card img {
    width: 104px;
    height: 66px;
    object-fit: cover;
    border-radius: 12px;
}

.related-card strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    color: #1f2937;
}

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

.search-empty {
    display: none;
    padding: 36px;
    border-radius: 20px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.search-empty.is-visible {
    display: block;
}

@media (max-width: 1080px) {
    .desktop-nav {
        gap: 18px;
    }

    .header-search input {
        width: 180px;
    }

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

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

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-slider {
        height: 66vh;
        min-height: 500px;
    }

    .hero-arrow {
        display: none;
    }

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

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

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

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

    .side-card {
        position: static;
    }
}

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

    .logo-text {
        font-size: 19px;
    }

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

    .hero-inner {
        padding: 0 16px;
    }

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

    .hero-actions a {
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 0 16px;
    }

    .page-block {
        padding: 44px 0;
    }

    .section.gradient-panel,
    .section.blue-panel {
        padding: 22px;
        border-radius: 24px;
    }

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

    .rank-item {
        grid-template-columns: 42px 86px 1fr;
    }

    .rank-score {
        grid-column: 3;
        font-size: 16px;
    }

    .rank-thumb {
        width: 86px;
        height: 58px;
    }

    .detail-card {
        padding: 22px;
    }

    .related-card {
        grid-template-columns: 92px 1fr;
    }

    .related-card img {
        width: 92px;
        height: 60px;
    }
}
