:root {
    --primary-50: #f0f9f4;
    --primary-100: #dcf0e3;
    --primary-200: #bce0ca;
    --primary-400: #5dab7d;
    --primary-600: #2a724c;
    --primary-700: #225b3e;
    --primary-800: #1d4933;
    --secondary-50: #fdf8f3;
    --secondary-100: #f9ede0;
    --secondary-600: #c96c3a;
    --secondary-700: #a8522b;
    --accent-50: #f5f8fa;
    --accent-100: #e8eef3;
    --accent-600: #647ca3;
    --accent-800: #475d88;
    --night-50: #f4f6f8;
    --night-100: #e3e8ed;
    --night-300: #a5b5c5;
    --night-400: #7991a8;
    --night-700: #3b4c61;
    --night-900: #2e3946;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --radius: 18px;
    --shadow: 0 12px 36px rgba(17, 24, 39, 0.12);
    font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.nav-container {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    box-shadow: 0 8px 20px rgba(42, 114, 76, 0.28);
}

.brand-text {
    font-size: 21px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    font-size: 14px;
    font-weight: 650;
    color: #374151;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-600);
}

.top-search,
.mobile-search,
.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.category-filter-input {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 10px 16px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
    width: 220px;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.category-filter-input:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 4px rgba(42, 114, 76, 0.14);
}

.top-search button,
.mobile-search button,
.hero-search button,
.primary-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    font-weight: 700;
    background: var(--primary-600);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-button:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: #374151;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--border);
    padding: 16px 24px 20px;
    background: #ffffff;
}

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

.mobile-panel nav {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.mobile-nav-link {
    padding: 10px 0;
    color: #374151;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: radial-gradient(circle at 15% 20%, rgba(93, 171, 125, 0.35), transparent 32%), linear-gradient(135deg, #101827, var(--night-900));
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    opacity: 0.78;
}

.hero-image.image-fallback {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 82px;
    width: min(1180px, calc(100% - 48px));
    transform: translateX(-50%);
    color: #ffffff;
}

.hero-kicker,
.page-kicker,
.category-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 6px 13px;
    font-size: 13px;
    font-weight: 800;
    background: var(--primary-600);
    color: #ffffff;
}

.hero-content h1 {
    max-width: 840px;
    margin: 18px 0 16px;
    font-size: clamp(36px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 28px;
    color: #e5e7eb;
    font-size: clamp(17px, 2.4vw, 22px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    transition: background 0.2s ease;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

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

.inner-section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.soft-section {
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.night-section {
    background: var(--night-50);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

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

.section-link {
    color: var(--primary-600);
    font-weight: 800;
    white-space: nowrap;
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover,
.wide-card:hover,
.category-card-large:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
    aspect-ratio: 16 / 9;
}

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

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

.poster-frame.is-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.poster-title {
    display: none;
    position: relative;
    z-index: 1;
    color: var(--primary-800);
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    line-height: 1.25;
}

.poster-frame.is-fallback .poster-title {
    display: block;
}

.poster-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-mask {
    opacity: 1;
}

.duration-badge,
.category-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 4px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.duration-badge {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.78);
}

.category-badge {
    left: 10px;
    top: 10px;
    background: var(--primary-600);
}

.card-content {
    display: grid;
    gap: 7px;
    padding: 16px;
}

.movie-title {
    font-size: 17px;
    font-weight: 850;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
    color: var(--primary-600);
}

.movie-meta,
.movie-desc,
.wide-meta,
.wide-desc {
    color: var(--muted);
    font-size: 13px;
}

.movie-desc,
.wide-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile {
    display: grid;
    gap: 12px;
    min-height: 158px;
    padding: 24px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-700);
}

.category-tile small {
    color: var(--muted);
    line-height: 1.55;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 34px;
    align-items: start;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.wide-poster {
    height: 100%;
}

.wide-body {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 20px 20px 20px 0;
}

.wide-title {
    font-size: 21px;
    font-weight: 900;
}

.ranking-box,
.side-box,
.detail-card {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.ranking-box {
    padding: 22px;
}

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

.ranking-title h2 {
    margin: 0;
    font-size: 24px;
}

.ranking-title a {
    color: var(--primary-600);
    font-weight: 800;
    font-size: 14px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.rank-item:hover {
    background: var(--night-50);
}

.rank-num {
    font-weight: 900;
    font-size: 20px;
    color: var(--secondary-600);
}

.rank-cover {
    border-radius: 12px;
}

.rank-info {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.rank-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.rank-score {
    color: var(--primary-700);
    font-weight: 900;
}

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 260px;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    color: #ffffff;
}

.ranking-hero {
    background: linear-gradient(135deg, var(--secondary-600), var(--primary-800));
}

.search-hero {
    background: linear-gradient(135deg, var(--accent-600), var(--accent-800));
}

.page-hero-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 76px 24px;
}

.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 6vw, 56px);
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.hero-search {
    margin-top: 24px;
    align-items: stretch;
}

.hero-search input {
    min-width: min(460px, 100%);
}

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

.category-card-large {
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card-link {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    min-height: 260px;
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--night-100);
}

.mini-poster {
    border-radius: 0;
}

.category-card-body {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 28px;
}

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

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

.category-card-body span {
    color: var(--primary-600);
    font-weight: 900;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.category-filter-input {
    width: min(460px, 100%);
}

.filter-search-link {
    color: var(--primary-600);
    font-weight: 800;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 46px;
}

.page-link {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: #374151;
    background: #ffffff;
    font-weight: 800;
}

.page-link.is-current {
    color: #ffffff;
    border-color: var(--primary-600);
    background: var(--primary-600);
}

.ranking-page-layout {
    max-width: 980px;
}

.full-ranking {
    padding: 26px;
}

.search-result:not(:empty) {
    margin-bottom: 32px;
}

.detail-main {
    background: var(--night-50);
}

.detail-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 70px;
}

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

.breadcrumb a {
    color: var(--primary-600);
    font-weight: 800;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
    cursor: pointer;
    font-weight: 900;
    font-size: 20px;
    text-align: center;
    padding: 24px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary-600);
    box-shadow: 0 16px 30px rgba(42, 114, 76, 0.35);
}

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

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-meta span,
.detail-meta a {
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--primary-700);
    background: var(--primary-100);
    font-size: 13px;
    font-weight: 800;
}

.one-line {
    margin: 0 0 24px;
    color: var(--secondary-700);
    font-weight: 800;
}

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

.detail-card p {
    color: #374151;
    margin: 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.tag-row span {
    border-radius: 999px;
    padding: 6px 12px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    font-weight: 750;
}

.detail-side {
    position: sticky;
    top: 88px;
}

.side-box {
    padding: 22px;
}

.side-box h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

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

.side-rec-item {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.side-rec-item:hover {
    background: var(--night-50);
}

.side-rec-poster {
    border-radius: 12px;
}

.side-rec-item strong,
.side-rec-item small {
    display: block;
}

.side-rec-item strong {
    line-height: 1.35;
}

.side-rec-item small {
    color: var(--muted);
    margin-top: 4px;
}

.detail-related {
    padding-left: 0;
    padding-right: 0;
}

.site-footer {
    background: var(--night-900);
    color: #ffffff;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 26px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 12px;
}

.footer-main p {
    max-width: 540px;
    color: var(--night-300);
    margin: 0;
}

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

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: var(--night-300);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--night-700);
    color: var(--night-400);
    text-align: center;
    font-size: 14px;
}

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

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

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

    .split-layout,
    .detail-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }
}

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

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

    .hero {
        min-height: 76vh;
    }

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

    .hero-arrow {
        display: none;
    }

    .content-section,
    .inner-section,
    .page-hero-inner,
    .detail-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .content-section,
    .inner-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

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

    .three-col,
    .four-col,
    .category-grid,
    .category-large-grid {
        grid-template-columns: 1fr;
    }

    .wide-card,
    .category-card-link {
        grid-template-columns: 1fr;
    }

    .wide-body,
    .category-card-body {
        padding: 20px;
    }

    .rank-item {
        grid-template-columns: 34px 76px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }

    .horizontal-scroll {
        grid-auto-columns: 78vw;
    }

    .hero-search,
    .mobile-search {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search input,
    .mobile-search input {
        width: 100%;
        min-width: 0;
    }

    .detail-card {
        padding: 22px;
    }
}
