@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 {
    --sunrise: #ff6916;
    --sunrise-dark: #f04e0c;
    --morning: #f0601f;
    --dawn: #fff9f0;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --night: #111827;
    --soft: #f9fafb;
    --radius-xl: 1.5rem;
    --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Noto Sans SC", system-ui, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--dawn), #ffffff 26rem, #f9fafb);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
    backdrop-filter: blur(14px);
}

.nav-shell {
    width: min(1280px, calc(100% - 2rem));
    height: 4.5rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: "Noto Serif SC", serif;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.logo-mark {
    width: 2.3rem;
    height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunrise), var(--morning));
    box-shadow: 0 10px 25px rgba(255, 105, 22, 0.28);
}

.logo-text {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    background: linear-gradient(90deg, var(--sunrise), var(--morning));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.menu-button {
    display: none;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 0.8rem;
    background: #f3f4f6;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.3rem;
}

.menu-button span {
    width: 1.1rem;
    height: 2px;
    border-radius: 999px;
    background: #374151;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 34rem;
    overflow: hidden;
    background: #000000;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    left: max(1.25rem, calc((100vw - 1280px) / 2));
    right: max(1.25rem, calc((100vw - 1280px) / 2));
    bottom: 7rem;
    max-width: 46rem;
    color: #ffffff;
    animation: rise 0.7s ease both;
}

.hero-labels,
.detail-meta,
.meta-row,
.hero-actions,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.hero-labels span,
.detail-meta span,
.tag-cloud span,
.type-pill,
.year-pill {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.hero h1,
.page-hero h1,
.detail-info-card h1,
.section-head h2,
.story-card h2 {
    font-family: "Noto Serif SC", serif;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero h1 {
    margin: 1rem 0;
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: 1.05;
    text-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
}

.hero p {
    margin: 0 0 1.7rem;
    color: #e5e7eb;
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.primary-button,
.glass-button,
.global-search-form button,
.section-head a,
.category-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button,
.global-search-form button {
    border: 0;
    padding: 0.88rem 1.55rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunrise), var(--morning));
    box-shadow: 0 14px 32px rgba(255, 105, 22, 0.3);
}

.primary-button:hover,
.global-search-form button:hover,
.category-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(255, 105, 22, 0.34);
}

.glass-button {
    padding: 0.82rem 1.35rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(12px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.34);
    transform: translateY(-50%);
    cursor: pointer;
    backdrop-filter: blur(8px);
    font-size: 2rem;
    z-index: 2;
}

.hero-arrow.prev {
    left: 1.2rem;
}

.hero-arrow.next {
    right: 1.2rem;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    display: flex;
    gap: 0.55rem;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-dot {
    width: 0.75rem;
    height: 0.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 2rem;
    background: var(--sunrise);
}

.search-strip {
    width: min(1180px, calc(100% - 2rem));
    margin: -2.3rem auto 0;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 460px);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.search-strip strong {
    display: block;
    font-size: 1.2rem;
    color: var(--ink);
}

.search-strip span {
    color: var(--muted);
}

.global-search-form {
    display: flex;
    gap: 0.65rem;
}

.global-search-form input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.85rem 1rem;
    color: var(--ink);
    background: #ffffff;
    outline-color: var(--sunrise);
}

.section-shell {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 4.6rem 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.section-head h2,
.section-head h3 {
    margin: 0.2rem 0 0;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.section-head p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    max-width: 56rem;
}

.section-head a {
    padding: 0.65rem 1rem;
    color: var(--sunrise-dark);
    background: #fff7ed;
}

.eyebrow {
    color: var(--sunrise);
    font-weight: 900;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.15rem;
}

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

.poster-card,
.landscape-card,
.rank-card,
.story-card,
.detail-info-card,
.filter-panel,
.category-overview-card {
    background: var(--panel);
    border: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
}

.poster-card,
.landscape-card,
.rank-card {
    overflow: hidden;
    border-radius: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-card:hover,
.landscape-card:hover,
.rank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 46px rgba(17, 24, 39, 0.14);
}

.poster-cover,
.landscape-cover,
.rank-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.poster-cover {
    aspect-ratio: 2 / 3;
}

.landscape-cover {
    aspect-ratio: 16 / 9;
}

.rank-cover {
    width: 8.5rem;
    aspect-ratio: 16 / 10;
    flex: 0 0 auto;
}

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

.poster-card:hover img,
.landscape-card:hover img,
.rank-card:hover img {
    transform: scale(1.08);
}

.type-pill {
    position: absolute;
    left: 0.65rem;
    top: 0.65rem;
    background: var(--sunrise);
}

.year-pill {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    background: rgba(17, 24, 39, 0.72);
}

.poster-body,
.landscape-info,
.rank-info {
    padding: 0.85rem;
}

.movie-title {
    display: block;
    color: var(--ink);
    font-weight: 900;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-title:hover,
.rank-info a:hover {
    color: var(--sunrise-dark);
}

.poster-body p,
.landscape-info p,
.rank-info p {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    margin-top: 0.65rem;
    color: #6b7280;
    font-size: 0.76rem;
}

.landscape-card {
    position: relative;
}

.warm-section {
    background: linear-gradient(90deg, #fef6ee, var(--dawn));
}

.home-channel + .home-channel {
    margin-top: 3.2rem;
}

.compact-head {
    margin-bottom: 1rem;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 12.5rem;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

.dark-section {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
}

.inverted h2,
.inverted p {
    color: #ffffff;
}

.inverted a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ranking-list li {
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.ranking-list li > span,
.rank-number {
    flex: 0 0 auto;
    width: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--sunrise), var(--morning));
}

.rank-card {
    flex: 1;
    min-width: 0;
    display: flex;
}

.rank-info a {
    display: block;
    font-weight: 900;
    line-height: 1.35;
}

.page-hero {
    min-height: 22rem;
    display: flex;
    align-items: center;
    padding: 4rem max(1rem, calc((100vw - 1280px) / 2));
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(255, 105, 22, 0.72), transparent 32%), linear-gradient(135deg, #111827, #1f2937);
}

.small-hero,
.channel-hero,
.rank-hero {
    min-height: 19rem;
}

.page-hero h1 {
    margin: 0.35rem 0 0.8rem;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.page-hero p {
    max-width: 48rem;
    margin: 0;
    color: #e5e7eb;
    line-height: 1.8;
    font-size: 1.05rem;
}

.categories-shell {
    display: grid;
    gap: 1.3rem;
}

.category-overview-card {
    border-radius: 1.25rem;
    padding: 1rem;
}

.category-main {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunrise), var(--morning));
}

.category-main span {
    font-size: 1.25rem;
    font-weight: 900;
}

.category-main strong {
    font-size: 0.92rem;
    font-weight: 700;
    opacity: 0.92;
}

.mini-card-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.filter-panel {
    margin-bottom: 1.4rem;
    border-radius: 1.2rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 12rem 12rem;
    gap: 1rem;
    align-items: end;
}

.filter-panel label {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.82rem;
}

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

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

.full-ranking li > span {
    width: 3rem;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: #111827;
}

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

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

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.76), #111827);
}

.detail-shell {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #ffffff;
    font-weight: 800;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: 1.4rem;
    align-items: stretch;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    min-height: 24rem;
    background: #000000;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.35);
}

.movie-video {
    width: 100%;
    height: 100%;
    min-height: 24rem;
    object-fit: cover;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.68));
    cursor: pointer;
}

.player-card.is-playing .play-overlay {
    display: none;
}

.play-icon {
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.3rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sunrise), var(--morning));
    box-shadow: 0 18px 45px rgba(255, 105, 22, 0.35);
    font-size: 2.1rem;
}

.detail-info-card {
    border-radius: 1.5rem;
    padding: 1rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
}

.detail-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.detail-info-card h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.detail-info-card p {
    color: #e5e7eb;
    line-height: 1.75;
}

.detail-meta span,
.tag-cloud span {
    background: rgba(255, 255, 255, 0.16);
}

.article-shell {
    padding-top: 3rem;
    padding-bottom: 0;
}

.story-card {
    border-radius: 1.5rem;
    padding: clamp(1.2rem, 3vw, 2.2rem);
}

.story-card h2 {
    margin: 0 0 1rem;
    font-size: 1.7rem;
}

.story-card h2 + p {
    margin-top: 0;
}

.story-card p {
    color: #374151;
    line-height: 2;
    font-size: 1.04rem;
}

.story-card p + h2 {
    margin-top: 2rem;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-shell {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.45rem;
    color: #ffffff;
}

.footer-shell p {
    max-width: 28rem;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 0.9rem;
}

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

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

@media (max-width: 1100px) {
    .poster-grid,
    .catalog-grid,
    .compact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .detail-info-card {
        display: grid;
        grid-template-columns: 12rem 1fr;
        gap: 1rem;
    }

    .detail-poster {
        margin-bottom: 0;
    }
}

@media (max-width: 820px) {
    .menu-button {
        display: flex;
    }

    .nav-links {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: 4.5rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding: 1rem;
        border-radius: 1rem;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        padding: 0.8rem;
        border-radius: 0.75rem;
    }

    .hero {
        min-height: 33rem;
        height: 72vh;
    }

    .hero-content {
        bottom: 5rem;
    }

    .hero-arrow {
        display: none;
    }

    .search-strip,
    .filter-panel,
    .footer-shell {
        grid-template-columns: 1fr;
    }

    .global-search-form {
        flex-direction: column;
    }

    .featured-grid,
    .ranking-list,
    .full-ranking,
    .mini-card-row {
        grid-template-columns: 1fr;
    }

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

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

    .detail-info-card {
        display: block;
    }

    .detail-poster {
        max-width: 15rem;
    }

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

@media (max-width: 520px) {
    .nav-shell,
    .section-shell,
    .footer-shell,
    .footer-bottom,
    .search-strip {
        width: min(100% - 1rem, 1280px);
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .poster-grid,
    .catalog-grid,
    .compact-grid {
        gap: 0.75rem;
    }

    .poster-body,
    .landscape-info,
    .rank-info {
        padding: 0.72rem;
    }

    .rank-cover {
        width: 6.8rem;
    }
}
