@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700;900&family=Noto+Serif+SC:wght@600;700;900&display=swap");

:root {
    --dawn-50: #fff9f0;
    --dawn-100: #fff2dc;
    --morning-50: #fff7ed;
    --morning-500: #f0601f;
    --sunrise-100: #ffe8d5;
    --sunrise-400: #ff883c;
    --sunrise-500: #ff6916;
    --sunrise-600: #f04e0c;
    --sunrise-700: #c73a0c;
    --ink-900: #111827;
    --ink-800: #1f2937;
    --ink-700: #374151;
    --ink-600: #4b5563;
    --ink-500: #6b7280;
    --line: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink-900);
    background: linear-gradient(180deg, var(--dawn-50) 0%, #ffffff 42%, #f9fafb 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    width: min(100% - 32px, var(--container));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--ink-900);
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
    box-shadow: 0 10px 22px rgba(255, 105, 22, 0.35);
}

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

.desktop-nav a,
.mobile-nav a {
    color: var(--ink-700);
    font-weight: 700;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--sunrise-600);
}

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

.top-search input,
.mobile-search input,
.intro-search input,
.search-page-form input,
.filter-panel input {
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 16px;
    color: var(--ink-800);
    background: #ffffff;
    outline: none;
    box-shadow: inset 0 0 0 1px transparent;
}

.top-search input:focus,
.mobile-search input:focus,
.intro-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus {
    border-color: var(--sunrise-500);
    box-shadow: 0 0 0 4px rgba(255, 105, 22, 0.12);
}

.top-search button,
.mobile-search button,
.intro-search button,
.search-page-form button {
    border: none;
    border-radius: 999px;
    padding: 11px 18px;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    background: var(--sunrise-500);
    transition: transform 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.intro-search button:hover,
.search-page-form button:hover {
    background: var(--sunrise-600);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 22px;
    background: var(--sunrise-100);
    color: var(--sunrise-700);
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--container));
    margin: 0 auto 16px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.mobile-nav.is-open {
    display: grid;
    gap: 14px;
}

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

.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;
    opacity: 0.85;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 38%, rgba(255, 105, 22, 0.34), transparent 32%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - var(--container)) / 2));
    right: 24px;
    bottom: 86px;
    max-width: 720px;
    color: #ffffff;
    animation: fadeUp 0.8s ease both;
}

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

.hero-content .eyebrow {
    color: var(--sunrise-400);
}

.hero-content h1,
.page-hero h1 {
    margin: 0;
    font-family: "Noto Serif SC", serif;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
    box-shadow: 0 12px 25px rgba(255, 105, 22, 0.3);
}

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

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

.ghost-button.dark {
    color: var(--ink-800);
    border-color: var(--line);
    background: #ffffff;
}

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

.hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--sunrise-500);
}

.site-intro,
.content-section,
.detail-layout,
.player-wrap,
.footer-grid {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-intro {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: center;
    margin-top: -54px;
    position: relative;
    z-index: 5;
    padding: 34px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.site-intro h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    font-family: "Noto Serif SC", serif;
}

.site-intro p {
    margin: 12px 0 0;
    color: var(--ink-600);
    line-height: 1.8;
}

.intro-search {
    justify-content: flex-end;
}

.intro-search input {
    flex: 1;
    min-width: 0;
}

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

.section-heading,
.rail-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.section-heading h2,
.rail-heading h3 {
    margin: 0;
    font-family: "Noto Serif SC", serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
}

.section-heading.on-dark h2,
.section-heading.on-dark .section-more {
    color: #ffffff;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 15px;
    color: var(--sunrise-600);
    background: var(--sunrise-100);
}

.section-more,
.rail-heading a {
    margin-left: auto;
    color: var(--sunrise-600);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.75);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.movie-card-large .poster-shell {
    aspect-ratio: 16 / 10;
}

.poster-shell {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ink-900), var(--sunrise-700));
}

.poster-shell img,
.aside-card img,
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-shell img,
.category-card:hover img {
    transform: scale(1.05);
}

.poster-shell::after,
.category-card a::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
    pointer-events: none;
}

.poster-fallback {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    padding: 22px;
    color: #ffffff;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, #111827, #c73a0c);
}

.poster-shell.is-missing img,
.aside-card.is-missing img,
.category-card.is-missing img {
    display: none;
}

.poster-shell.is-missing .poster-fallback,
.aside-card.is-missing .poster-fallback,
.category-card.is-missing .poster-fallback {
    display: grid;
}

.poster-badge,
.poster-index {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: var(--sunrise-500);
}

.poster-index {
    right: 12px;
    bottom: 12px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.42);
}

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

.movie-meta-line,
.detail-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta-line span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 10px;
    color: var(--ink-700);
    font-size: 12px;
    font-weight: 800;
    background: #f3f4f6;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

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

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

.tag-row span {
    color: var(--sunrise-700);
    background: var(--sunrise-100);
}

.category-rail-list {
    display: grid;
    gap: 46px;
}

.category-rail {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rail-heading h3 {
    font-size: 26px;
}

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

.ranking-band {
    margin-top: 72px;
    padding: 72px max(16px, calc((100vw - var(--container)) / 2));
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 105, 22, 0.24), transparent 36%),
        linear-gradient(135deg, #111827, #1f2937);
}

.rank-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.rank-list.light {
    grid-template-columns: 1fr;
}

.rank-item a {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-list.light .rank-item a {
    border-color: var(--line);
    color: var(--ink-900);
    background: #ffffff;
}

.rank-item a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
}

.rank-item strong {
    color: var(--sunrise-400);
    font-size: 20px;
}

.rank-item span {
    font-weight: 900;
}

.rank-item em {
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
    font-style: normal;
}

.rank-list.light .rank-item em {
    color: var(--ink-500);
}

.page-hero {
    padding: 84px max(16px, calc((100vw - var(--container)) / 2));
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 105, 22, 0.28), transparent 34%),
        linear-gradient(135deg, #111827, #374151);
}

.small-hero {
    min-height: 340px;
    display: grid;
    align-content: center;
}

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

.category-card {
    min-height: 260px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.category-card a {
    position: relative;
    display: block;
    height: 100%;
    min-height: 260px;
    color: #ffffff;
    background: var(--ink-900);
}

.category-card div {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 24px;
}

.category-card h2 {
    margin: 0 0 8px;
    font-family: "Noto Serif SC", serif;
    font-size: 30px;
}

.category-card p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

.filter-panel,
.search-page-form {
    margin-bottom: 28px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-panel input {
    flex: 1;
}

.filter-panel span,
.search-status {
    color: var(--ink-500);
    font-size: 14px;
}

.search-page-form input {
    flex: 1;
}

.search-status {
    margin: 12px 0 28px;
}

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

.rank-column {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-column h2 {
    margin: 0 0 18px;
    font-family: "Noto Serif SC", serif;
}

.player-section {
    background: #000000;
}

.player-wrap {
    padding: 24px 0;
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.video-frame video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: none;
    color: #ffffff;
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 105, 22, 0.26), transparent 30%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
}

.video-frame.is-playing .play-overlay {
    display: none;
}

.play-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    padding-left: 5px;
    font-size: 34px;
    background: var(--sunrise-500);
    box-shadow: 0 20px 40px rgba(255, 105, 22, 0.32);
}

.play-overlay strong {
    font-size: 24px;
}

.play-overlay em {
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    padding: 12px 14px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
}

.player-message.is-visible {
    display: block;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    padding-top: 48px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--ink-500);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--sunrise-600);
    font-weight: 800;
}

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

.detail-card {
    padding: clamp(24px, 4vw, 42px);
}

.detail-card h1 {
    margin: 0 0 18px;
    font-family: "Noto Serif SC", serif;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
}

.detail-card h2 {
    margin: 30px 0 12px;
    font-size: 24px;
}

.detail-card p {
    margin: 0;
    color: var(--ink-700);
    font-size: 17px;
    line-height: 1.95;
    white-space: pre-line;
}

.detail-card .one-line {
    margin: 22px 0 0;
    padding: 18px 20px;
    border-left: 4px solid var(--sunrise-500);
    border-radius: 12px;
    color: var(--ink-800);
    background: var(--dawn-50);
    font-style: italic;
}

.detail-meta span {
    min-height: 34px;
    padding: 0 14px;
    font-size: 14px;
}

.large-tags span {
    min-height: 34px;
    padding: 0 14px;
    font-size: 14px;
}

.aside-card {
    position: relative;
    overflow: hidden;
    padding: 18px;
}

.sticky-card {
    position: sticky;
    top: 96px;
}

.aside-card img,
.aside-card .poster-fallback {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
}

.aside-card h2 {
    margin: 18px 0;
    font-size: 22px;
}

.aside-card .primary-button,
.aside-card .ghost-button {
    margin-top: 10px;
}

.site-footer {
    margin-top: 84px;
    padding: 56px 0 28px;
    color: rgba(255, 255, 255, 0.76);
    background: #111827;
}

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

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer p {
    margin: 0;
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.76);
}

.site-footer a:hover {
    color: var(--sunrise-400);
}

.copyright {
    width: min(100% - 32px, var(--container));
    margin: 32px auto 0 !important;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .detail-aside {
        order: -1;
    }

    .sticky-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .nav-wrap {
        min-height: 66px;
    }

    .site-logo {
        font-size: 18px;
    }

    .hero-carousel {
        min-height: 610px;
        height: 74vh;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 82px;
    }

    .hero-arrow {
        display: none;
    }

    .site-intro {
        grid-template-columns: 1fr;
        margin-top: -30px;
        padding: 24px;
    }

    .intro-search,
    .search-page-form,
    .filter-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .movie-grid.all-grid,
    .rail-scroll,
    .category-grid,
    .rank-list,
    .rank-columns,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .category-rail {
        padding: 18px;
    }

    .rank-item a {
        grid-template-columns: 40px 1fr;
    }

    .rank-item em {
        grid-column: 2;
    }

    .page-hero {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .player-wrap {
        width: 100%;
        padding: 0;
    }

    .video-frame {
        border-radius: 0;
    }
}
