* {
    box-sizing: border-box;
}

:root {
    --sunrise: #ff6916;
    --sunrise-deep: #f0601f;
    --morning: #ff9b45;
    --dawn: #fff9f0;
    --paper: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #efe7dc;
    --soft: #fff3e7;
    --shadow: 0 22px 60px rgba(42, 28, 12, 0.12);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, var(--dawn), #ffffff 34%, #f9fafb 100%);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--sunrise), var(--sunrise-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sunrise), var(--morning));
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(255, 105, 22, 0.28);
    font-size: 15px;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--ink);
    background: var(--soft);
    font-size: 22px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
    color: #374151;
    font-size: 15px;
}

.nav-links a {
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--sunrise);
}

.nav-links a.active::after,
.nav-links a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sunrise), var(--morning));
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.9s ease, transform 1.2s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 72px;
    width: min(1180px, calc(100% - 48px));
    transform: translateX(-50%);
    color: #ffffff;
    animation: fadeIn 0.7s ease both;
}

.hero-content h1,
.hero-content h2 {
    margin: 12px 0 18px;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 900;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.44);
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sunrise);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 13px;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunrise), var(--sunrise-deep));
    box-shadow: 0 16px 36px rgba(255, 105, 22, 0.34);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.01);
}

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

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(16px);
}

.ghost-btn.dark {
    color: var(--sunrise);
    background: #fff4e9;
    border: 1px solid #ffe0c6;
}

.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span,
.detail-tags a,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.52);
    transform: translateY(-50%) scale(1.06);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

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

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

.content-section,
.search-band,
.page-hero,
.detail-layout {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.search-band {
    padding: 70px 0 42px;
}

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

.section-head.centered {
    display: block;
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-head.small {
    align-items: flex-start;
    display: block;
}

.section-head h2,
.page-hero h1,
.detail-info h1,
.detail-text h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.section-head p,
.page-hero p,
.category-overview-card p,
.category-tile p {
    color: var(--muted);
}

.section-head > a,
.text-link {
    color: var(--sunrise);
    font-weight: 900;
}

.global-search {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.global-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 56px;
    border: 1px solid var(--line);
    border-radius: 18px;
    outline: none;
    background: #ffffff;
    color: var(--ink);
    font-size: 16px;
    box-shadow: 0 12px 34px rgba(31, 41, 55, 0.06);
}

.global-search input,
.filter-bar input {
    padding: 0 20px;
}

.filter-bar select {
    padding: 0 16px;
}

.global-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--sunrise);
    box-shadow: 0 0 0 4px rgba(255, 105, 22, 0.12);
}

.global-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.global-search-results.is-open {
    display: block;
}

.global-search-results a {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid #f3eee8;
}

.global-search-results a:hover {
    background: var(--dawn);
}

.global-search-results strong {
    display: block;
    color: var(--ink);
}

.global-search-results span {
    color: var(--muted);
    font-size: 13px;
}

.content-section {
    padding: 44px 0;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid #f0e4d7;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 42px rgba(31, 41, 55, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #ffc99f;
    box-shadow: 0 24px 70px rgba(255, 105, 22, 0.14);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe8d5, #fff9f0);
}

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

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

.card-year {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.card-meta span,
.detail-meta span {
    color: #9a4b1d;
    background: #fff1e4;
}

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.28;
}

.movie-card h3 a:hover,
.ranking-card h2 a:hover {
    color: var(--sunrise);
}

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

.tag-row span,
.detail-tags a {
    color: var(--sunrise-deep);
    background: #fff5ec;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.category-panel,
.rank-panel,
.category-overview-card,
.page-hero,
.detail-layout,
.player-wrap,
.detail-text {
    border: 1px solid #f1e3d6;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.category-panel,
.rank-panel {
    padding: 28px;
}

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

.category-tile {
    min-height: 150px;
    padding: 22px;
    border: 1px solid #ffe0c5;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff8f2, #ffffff);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: #ffc697;
}

.category-tile span,
.category-overview-title {
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
}

.rank-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list a {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 12px;
    border-radius: 16px;
    background: #fff8f0;
}

.rank-list a:hover {
    background: #fff0df;
}

.rank-no {
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunrise), var(--morning));
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-meta {
    overflow: hidden;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
}

.page-hero {
    margin-top: 36px;
    padding: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, #fff8ee, #ffffff 60%, #fff1e5);
}

.soft-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
}

.page-search {
    margin: 0;
}

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

.category-overview-card {
    padding: 28px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.category-samples a {
    color: var(--muted);
    font-weight: 700;
}

.category-samples a:hover {
    color: var(--sunrise);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    margin-bottom: 28px;
}

.ranking-hero {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    color: #ffffff;
    background: #111827;
}

.ranking-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.ranking-hero > div {
    position: relative;
    max-width: 740px;
}

.ranking-hero p {
    color: rgba(255, 255, 255, 0.84);
}

.ranking-list {
    display: grid;
    gap: 18px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border: 1px solid #f0e4d7;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(31, 41, 55, 0.07);
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    background: #fff1e4;
}

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

.ranking-cover span {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunrise), var(--morning));
    font-weight: 900;
}

.ranking-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.ranking-card p {
    color: var(--muted);
}

.detail-layout {
    margin-top: 34px;
    padding: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

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

.player-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    padding: 0;
    background: #111827;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.24));
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sunrise), var(--morning));
    box-shadow: 0 18px 42px rgba(255, 105, 22, 0.42);
    font-size: 34px;
}

.player-mask strong {
    max-width: 90%;
    font-size: clamp(22px, 4vw, 36px);
}

.detail-main {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    margin-top: 30px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    background: #fff1e4;
    box-shadow: 0 16px 38px rgba(31, 41, 55, 0.12);
}

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

.detail-info .lead {
    color: var(--muted);
    font-size: 18px;
}

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

.detail-text {
    margin-top: 24px;
    padding: 28px;
    box-shadow: none;
}

.detail-text p {
    margin-bottom: 0;
    color: #4b5563;
    font-size: 17px;
}

.next-prev {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.next-prev a {
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff4ea;
    color: #9a4b1d;
    font-weight: 900;
}

.next-prev a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunrise), var(--sunrise-deep));
}

.related-section {
    padding-top: 32px;
}

.site-footer {
    margin-top: 60px;
    padding: 38px 0;
    color: #fff7ef;
    background: #111827;
}

.footer-inner {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.68);
}

.footer-links {
    display: flex;
    gap: 18px;
    font-weight: 800;
}

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

.is-filter-hidden {
    display: none !important;
}

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

@media (max-width: 1080px) {
    .nav-links {
        gap: 14px;
        font-size: 14px;
    }

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

    .split-section,
    .soft-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: #ffffff;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 8px 4px;
    }

    .nav-links a::after {
        display: none;
    }

    .hero-carousel {
        height: 76vh;
        min-height: 560px;
    }

    .hero-content {
        bottom: 70px;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

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

    .page-hero {
        padding: 28px;
        display: grid;
    }

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

    .detail-main {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .ranking-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .nav-wrap,
    .content-section,
    .search-band,
    .page-hero,
    .detail-layout,
    .footer-inner {
        width: calc(100% - 28px);
    }

    .brand {
        font-size: 20px;
    }

    .hero-content {
        width: calc(100% - 32px);
    }

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

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

    .section-head,
    .footer-inner,
    .next-prev {
        display: grid;
        grid-template-columns: 1fr;
    }

    .detail-main,
    .ranking-card {
        grid-template-columns: 1fr;
    }

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