* {
    box-sizing: border-box;
}

:root {
    --pudding-50: #fff9f3;
    --pudding-100: #f9ead7;
    --pudding-500: #f0ad67;
    --pudding-600: #d98935;
    --moonlight-50: #f0f3fb;
    --moonlight-100: #e3e9f7;
    --moonlight-500: #8193cf;
    --moonlight-600: #6578bb;
    --moonlight-700: #4f61a5;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(101, 120, 187, 0.16);
    --soft-gradient: linear-gradient(135deg, #fff9f3 0%, #fefdfb 42%, #e3e9f7 100%);
    --moonlight-gradient: linear-gradient(135deg, #fefdfb 0%, #f0f3fb 100%);
    --pudding-gradient: linear-gradient(135deg, #fff9f3 0%, #e3e9f7 100%);
    --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
    --shadow-soft-lg: 0 20px 55px -22px rgba(31, 41, 55, 0.32);
    --radius-soft: 1.25rem;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, var(--pudding-50), #ffffff 36%, var(--moonlight-50));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.site-logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: var(--moonlight-700);
    background: var(--moonlight-gradient);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.site-logo-text,
.footer-logo span:last-child {
    font-size: 22px;
    background: linear-gradient(90deg, var(--pudding-600), var(--moonlight-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.nav-link,
.mobile-nav-link {
    color: #4b5563;
    font-weight: 650;
    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(--moonlight-600);
}

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

.header-search input,
.mobile-search input,
.filter-row input,
.filter-row select {
    width: 240px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    padding: 10px 16px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-row input:focus,
.filter-row select:focus {
    border-color: var(--moonlight-500);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(101, 120, 187, 0.12);
}

.header-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--moonlight-600);
    padding: 10px 16px;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--pudding-50);
    color: var(--ink);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 20px;
    border-top: 1px solid var(--line);
}

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

.mobile-nav-link {
    display: block;
    padding: 10px 0;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.mobile-search input {
    width: 100%;
}

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

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
    transform: scale(1.03);
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 249, 243, 0.96) 0%, rgba(255, 249, 243, 0.82) 36%, rgba(31, 41, 55, 0.34) 72%, rgba(31, 41, 55, 0.72) 100%),
        radial-gradient(circle at 20% 20%, rgba(129, 147, 207, 0.28), transparent 34%);
}

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

.hero-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    padding: 8px 15px;
    color: var(--moonlight-700);
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero-content h1 {
    max-width: 760px;
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 660px;
    margin: 0;
    color: #4b5563;
    font-size: 19px;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-meta span,
.detail-meta span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    padding: 8px 12px;
    color: #4b5563;
    font-weight: 650;
}

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

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--moonlight-600);
    padding: 13px 24px;
    box-shadow: 0 14px 30px -18px var(--moonlight-700);
}

.ghost-button {
    color: var(--moonlight-700);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(101, 120, 187, 0.2);
    padding: 12px 22px;
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

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

.hero-dot {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--moonlight-600);
}

.overlap-feature {
    position: relative;
    z-index: 5;
    margin-top: -90px;
}

.feature-grid,
.movie-grid,
.category-grid,
.editor-grid,
.category-overview-grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

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

.section-heading h2,
.center-heading h2,
.table-card h2,
.detail-content-card h2,
.detail-side-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.section-kicker,
.center-heading p,
.page-hero p,
.player-title-row p,
.detail-kicker {
    margin: 0 0 8px;
    color: var(--moonlight-600);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.section-more {
    color: var(--moonlight-700);
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(101, 120, 187, 0.12);
    border-radius: var(--radius-soft);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(101, 120, 187, 0.28);
    box-shadow: var(--shadow-soft-lg);
}

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

.movie-card-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--pudding-gradient);
}

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

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

.movie-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(17, 24, 39, 0.52));
}

.movie-year,
.movie-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
}

.movie-year {
    top: 12px;
    left: 12px;
    background: rgba(31, 41, 55, 0.72);
    padding: 5px 10px;
    font-size: 13px;
}

.movie-play {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(101, 120, 187, 0.92);
}

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

.movie-card-title {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-line {
    min-height: 46px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.movie-card-meta {
    color: #6b7280;
    font-size: 13px;
    font-weight: 650;
}

.movie-card-tags,
.detail-tags,
.genre-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.movie-card-tags span,
.detail-tags span,
.genre-list span {
    border-radius: 999px;
    background: var(--moonlight-50);
    color: var(--moonlight-700);
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
}

.category-band {
    margin-top: 64px;
    padding: 64px 0;
    background: var(--soft-gradient);
}

.center-heading {
    margin-bottom: 32px;
    text-align: center;
}

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

.category-tile,
.category-overview-card,
.table-card,
.hot-ranking-card,
.detail-content-card,
.detail-side-card,
.player-card,
.filter-panel {
    border: 1px solid rgba(101, 120, 187, 0.12);
    border-radius: var(--radius-soft);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 12px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile span {
    font-size: 32px;
}

.category-tile strong {
    font-size: 17px;
}

.category-tile em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

.hot-ranking-card {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.ranking-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.ranking-card-head span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--pudding-gradient);
    font-size: 24px;
}

.ranking-card-head p,
.ranking-card-head h2 {
    margin: 0;
}

.ranking-card-head p {
    color: var(--moonlight-600);
    font-weight: 800;
}

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

.ranking-link {
    display: grid;
    grid-template-columns: 42px 64px 1fr;
    gap: 12px;
    align-items: center;
}

.ranking-number {
    color: var(--pudding-600);
    font-size: 22px;
    font-weight: 900;
}

.ranking-link img {
    width: 64px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-info strong,
.ranking-info em {
    display: block;
}

.ranking-info strong {
    color: var(--ink);
    font-size: 14px;
}

.ranking-info em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

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

.editor-card {
    display: grid;
    grid-template-columns: 46% 1fr;
    overflow: hidden;
    border-radius: var(--radius-soft);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.editor-card img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
}

.editor-card div {
    padding: 24px;
}

.editor-card span {
    color: var(--moonlight-600);
    font-weight: 800;
}

.editor-card h3 {
    margin: 10px 0;
    font-size: 24px;
}

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

.editor-card em {
    color: #6b7280;
    font-style: normal;
    font-weight: 700;
}

.page-hero {
    padding: 72px 0;
    background: var(--moonlight-gradient);
}

.page-hero .container {
    position: relative;
}

.page-hero h1 {
    max-width: 900px;
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.page-hero span {
    display: block;
    max-width: 780px;
    color: var(--muted);
    font-size: 18px;
}

.category-hero,
.ranking-hero,
.search-hero {
    background: var(--pudding-gradient);
}

.filter-panel {
    margin-top: -32px;
    padding: 20px;
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 14px;
}

.filter-row label {
    display: grid;
    gap: 8px;
    color: #4b5563;
    font-weight: 800;
}

.filter-row input,
.filter-row select {
    width: 100%;
    border-radius: 16px;
}

.filter-count {
    margin: 14px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.is-hidden-card {
    display: none;
}

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

.category-overview-card {
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-main-link {
    display: block;
}

.category-icon {
    font-size: 34px;
}

.category-overview-card h2 {
    margin: 10px 0;
    font-size: 27px;
}

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

.category-overview-card strong {
    color: var(--moonlight-700);
}

.category-mini-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.category-mini-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    background: var(--moonlight-50);
    padding: 8px;
    font-weight: 750;
}

.category-mini-list img {
    width: 60px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.table-card {
    padding: 24px;
}

.table-card h2 {
    margin-bottom: 18px;
}

.table-wrap {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.ranking-table th,
.ranking-table td {
    border-bottom: 1px solid rgba(101, 120, 187, 0.12);
    padding: 12px 10px;
    text-align: left;
}

.ranking-table th {
    color: var(--moonlight-700);
    background: var(--moonlight-50);
}

.ranking-table a {
    color: var(--ink);
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 58px;
    background: #111827;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    filter: blur(10px);
    transform: scale(1.04);
}

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

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(31, 41, 55, 0.54));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

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

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft-lg);
}

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

.detail-info {
    color: #ffffff;
}

.detail-kicker {
    color: #dfe6ff;
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.08;
}

.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.player-section {
    padding-top: 54px;
}

.player-card {
    overflow: hidden;
    padding: 24px;
}

.player-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.player-title-row h2 {
    margin: 0;
    font-size: 28px;
}

.player-title-row a {
    color: var(--moonlight-700);
    font-weight: 800;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-soft);
    background: #020617;
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.72));
    cursor: pointer;
}

.player-overlay.is-hidden {
    display: none;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--moonlight-600);
    box-shadow: 0 18px 42px -14px rgba(0, 0, 0, 0.7);
    font-size: 34px;
    padding-left: 5px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    padding-top: 36px;
}

.detail-content-card,
.detail-side-card {
    padding: 28px;
}

.detail-content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-content-card p {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 17px;
}

.detail-side-card dl {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.detail-side-card dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-side-card dd {
    margin: 0;
    color: var(--ink);
}

.site-footer {
    margin-top: 72px;
    padding: 46px 0;
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
    gap: 32px;
}

.footer-brand p,
.footer-column a {
    color: var(--muted);
}

.footer-column h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

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

    .site-header-inner {
        height: 66px;
    }

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

    .feature-grid,
    .movie-grid.four-cols,
    .movie-grid.three-cols,
    .category-grid,
    .editor-grid,
    .two-column-section,
    .detail-content-grid,
    .category-overview-grid,
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-column-section,
    .detail-content-grid {
        display: grid;
    }

    .hot-ranking-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .hero-carousel {
        min-height: 590px;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(255, 249, 243, 0.96), rgba(31, 41, 55, 0.48));
    }

    .hero-content {
        justify-content: end;
        padding-bottom: 94px;
    }

    .hero-content p,
    .detail-one-line {
        font-size: 16px;
    }

    .overlap-feature {
        margin-top: 28px;
    }

    .feature-grid,
    .movie-grid.four-cols,
    .movie-grid.three-cols,
    .category-grid,
    .editor-grid,
    .two-column-section,
    .detail-content-grid,
    .category-overview-grid,
    .footer-inner,
    .detail-layout,
    .filter-row {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .player-title-row {
        align-items: start;
        flex-direction: column;
    }

    .editor-card {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 250px;
    }

    .player-card,
    .detail-content-card,
    .detail-side-card,
    .table-card,
    .hot-ranking-card {
        padding: 18px;
    }

    .mobile-search {
        flex-direction: column;
    }
}
