:root {
    --mountain-50: #f5f3ef;
    --mountain-100: #e8e4d9;
    --mountain-200: #d2c8b7;
    --mountain-300: #b8aa95;
    --mountain-500: #8d7451;
    --mountain-600: #735f43;
    --mountain-700: #5a4a3a;
    --mountain-800: #4a3d32;
    --mountain-900: #3d342c;
    --earth-100: #efe4d3;
    --earth-300: #cfad7b;
    --earth-600: #9a6a35;
    --earth-700: #7d542b;
    --forest-50: #eff6ee;
    --forest-600: #517652;
    --sky-50: #eef7fb;
    --sky-600: #337b91;
    --white: #ffffff;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--mountain-50);
    color: var(--mountain-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.site-nav {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mountain-800);
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--mountain-600);
    color: var(--white);
    font-size: 14px;
    box-shadow: var(--shadow-soft);
}

.nav-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 650;
    color: var(--mountain-700);
    white-space: nowrap;
}

.nav-links a:hover,
.section-link:hover,
.movie-card h3 a:hover,
.rank-info a:hover {
    color: var(--mountain-500);
}

.nav-search {
    display: flex;
    align-items: center;
    min-width: 280px;
    border: 1px solid var(--mountain-200);
    border-radius: 999px;
    background: var(--white);
    overflow: hidden;
}

.nav-search input,
.hero-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 11px 16px;
    background: transparent;
    color: var(--mountain-900);
}

.nav-search button,
.hero-search button {
    border: 0;
    padding: 11px 18px;
    background: var(--mountain-600);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
}

.nav-search button:hover,
.hero-search button:hover,
.primary-button:hover {
    background: var(--mountain-700);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--mountain-100);
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    margin: 5px auto;
    background: var(--mountain-800);
}

.hero-carousel {
    position: relative;
    height: 60vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--mountain-900);
}

.hero-stage,
.hero-slide,
.hero-slide img,
.hero-shade {
    position: absolute;
    inset: 0;
}

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

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

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

.hero-shade {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.05));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    right: 24px;
    bottom: 72px;
    max-width: 760px;
    color: var(--white);
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--earth-300);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

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

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

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

.primary-button {
    padding: 13px 30px;
    background: var(--mountain-600);
    color: var(--white);
    box-shadow: var(--shadow-strong);
}

.ghost-button {
    padding: 12px 26px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    backdrop-filter: blur(6px);
}

.primary-button:hover,
.ghost-button:hover,
.movie-card:hover,
.wide-card:hover,
.category-tile:hover,
.category-large:hover {
    transform: translateY(-4px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.48);
    color: var(--white);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

.hero-dot.active {
    width: 36px;
    background: var(--white);
}

.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--mountain-900);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.section-link {
    padding: 10px 18px;
    color: var(--mountain-600);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

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

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

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

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

.movie-card:hover {
    box-shadow: var(--shadow-medium);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--mountain-200);
}

.poster-link img,
.wide-card img,
.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.64);
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 18px;
}

.compact .card-body {
    padding: 15px;
}

.card-body h3 {
    margin: 0 0 10px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--mountain-900);
    font-size: 18px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--mountain-600);
    font-size: 14px;
    font-weight: 650;
}

.card-meta span,
.rank-meta span,
.detail-meta span {
    border-radius: 8px;
    padding: 4px 8px;
    background: var(--earth-100);
    color: var(--earth-700);
}

.card-body p {
    margin: 12px 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: #6f6254;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-section,
.latest-section {
    max-width: none;
    margin-top: 56px;
    padding: 56px max(24px, calc((100vw - 1280px) / 2 + 24px));
    background: var(--white);
}

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

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

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

.category-tile,
.category-large {
    min-height: 124px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    border-radius: 22px;
    padding: 22px;
    background: linear-gradient(135deg, var(--mountain-800), var(--mountain-500));
    color: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:nth-child(3n),
.category-large:nth-child(3n) {
    background: linear-gradient(135deg, var(--forest-600), var(--mountain-600));
}

.category-tile:nth-child(4n),
.category-large:nth-child(4n) {
    background: linear-gradient(135deg, var(--sky-600), var(--mountain-600));
}

.category-tile span,
.category-large span {
    color: var(--earth-300);
    font-weight: 800;
}

.category-tile strong,
.category-large strong {
    font-size: 18px;
    line-height: 1.35;
}

.category-large {
    min-height: 180px;
}

.category-large strong {
    font-size: 24px;
}

.category-large em {
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    font-weight: 700;
}

.wide-section {
    max-width: none;
    padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding-right: 0;
}

.wide-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 24px 14px 0;
}

.wide-card {
    position: relative;
    width: 310px;
    min-width: 310px;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 16 / 10;
    color: var(--white);
    background: var(--mountain-800);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wide-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
}

.wide-card span,
.wide-card h3,
.wide-card p {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
}

.wide-card span {
    top: 16px;
    width: max-content;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(4px);
}

.wide-card h3 {
    bottom: 44px;
    margin: 0;
    font-size: 20px;
}

.wide-card p {
    bottom: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.page-hero {
    padding: 72px max(24px, calc((100vw - 1280px) / 2 + 24px));
    background: linear-gradient(135deg, var(--mountain-900), var(--mountain-600));
    color: var(--white);
}

.compact-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.1;
}

.compact-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.hero-search {
    display: flex;
    width: min(680px, 100%);
    margin-top: 28px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--white);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 190px 190px;
    gap: 14px;
    margin-bottom: 26px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--mountain-200);
    border-radius: 14px;
    padding: 13px 16px;
    background: var(--white);
    color: var(--mountain-900);
    outline: 0;
}

.filter-bar input:focus,
.filter-bar select:focus,
.nav-search:focus-within,
.hero-search:focus-within {
    box-shadow: 0 0 0 3px rgba(141, 116, 81, 0.22);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 180px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.rank-number {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--mountain-700);
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
}

.rank-cover {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 9;
    background: var(--mountain-200);
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.25;
}

.rank-info p {
    margin: 0 0 12px;
    color: #6f6254;
}

.search-status {
    min-height: 30px;
    margin-bottom: 20px;
    color: var(--mountain-700);
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 24px;
    background: var(--mountain-900);
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    filter: blur(2px);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--mountain-900), rgba(61, 52, 44, 0.62));
}

.detail-layout {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 34px;
    align-items: center;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: var(--shadow-strong);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.52));
    cursor: pointer;
}

.player-overlay span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-left: 5px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mountain-800);
    font-size: 34px;
    box-shadow: var(--shadow-strong);
}

.player-shell.playing .player-overlay {
    display: none;
}

.detail-info {
    color: var(--white);
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 700;
}

.breadcrumbs a:hover {
    color: var(--earth-300);
}

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

.lead {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.detail-meta span {
    background: rgba(255, 255, 255, 0.13);
    color: var(--white);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag-list span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 750;
}

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

.text-panel {
    border-radius: 22px;
    padding: 28px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.text-panel h2 {
    margin: 0 0 14px;
    color: var(--mountain-900);
    font-size: 26px;
}

.text-panel p {
    margin: 0;
    color: #675a4d;
    font-size: 16px;
}

.site-footer {
    margin-top: 72px;
    padding: 48px 24px 28px;
    background: var(--mountain-800);
    color: var(--mountain-100);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.footer-grid p {
    margin: 0;
    color: var(--mountain-200);
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li + li {
    margin-top: 8px;
}

.footer-grid a {
    color: var(--mountain-200);
}

.footer-grid a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1280px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--mountain-300);
    text-align: center;
}

@media (max-width: 1100px) {
    .three-columns,
    .four-columns,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 860px) {
    .site-nav {
        padding: 0 16px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-panel {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow-strong);
    }

    .nav-panel.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .nav-search {
        min-width: 0;
        width: 100%;
    }

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

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 86px;
    }

    .hero-arrow {
        display: none;
    }

    .section-wrap,
    .category-section,
    .latest-section,
    .wide-section {
        padding-left: 18px;
        padding-right: 18px;
    }

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

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

    .rank-row {
        grid-template-columns: 54px 110px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-number {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .rank-info h2 {
        font-size: 17px;
    }

    .rank-info p {
        display: none;
    }

    .detail-content,
    .footer-grid,
    .category-large-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .three-columns,
    .four-columns,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .brand {
        font-size: 19px;
    }

    .hero-actions,
    .hero-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 20px;
    }

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

    .wide-card {
        width: 260px;
        min-width: 260px;
    }

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

    .rank-cover {
        display: none;
    }
}
