:root {
    --cream-50: #fffaf1;
    --cream-100: #f7ecd7;
    --warm-50: #f6f0e7;
    --warm-100: #eadcc6;
    --warm-200: #cabda7;
    --warm-700: #5c4a37;
    --warm-800: #3e3024;
    --warm-900: #211912;
    --tea-400: #8fbf9f;
    --tea-500: #63a97d;
    --tea-600: #3f8f64;
    --tea-700: #2d6f4b;
    --gold: #e3a646;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(54, 42, 26, 0.12);
    --shadow-card: 0 14px 32px rgba(36, 26, 16, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--warm-900);
    background: linear-gradient(180deg, var(--cream-50), #ffffff 34%, var(--warm-50));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(44, 32, 18, 0.08);
}

.header-inner {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark,
.footer-logo span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tea-500), var(--tea-700));
    box-shadow: 0 10px 22px rgba(63, 143, 100, 0.28);
}

.brand-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link,
.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--warm-700);
    font-weight: 650;
    transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--tea-700);
    background: rgba(99, 169, 125, 0.13);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--warm-900);
    background: var(--warm-50);
    font-size: 22px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid rgba(91, 68, 39, 0.08);
}

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

.mobile-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.mobile-category-row a {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--warm-50);
    color: var(--warm-700);
    font-size: 13px;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 30%, rgba(143, 191, 159, 0.36), transparent 28%),
        linear-gradient(90deg, rgba(24, 19, 14, 0.84), rgba(24, 19, 14, 0.44) 48%, rgba(24, 19, 14, 0.16)),
        linear-gradient(180deg, rgba(24, 19, 14, 0.1), rgba(24, 19, 14, 0.72));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    min-height: 70vh;
    margin: 0 auto;
    padding: 92px 24px 88px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 48px;
    align-items: center;
    color: #ffffff;
}

.hero-copy {
    max-width: 740px;
}

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

.hero .eyebrow {
    color: #aee4c0;
}

.hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 13px;
    font-weight: 650;
}

.tag-row span,
.detail-tags span {
    background: rgba(99, 169, 125, 0.13);
    color: var(--tea-700);
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--tea-500), var(--tea-700));
    box-shadow: 0 14px 30px rgba(63, 143, 100, 0.28);
}

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

.btn-ghost {
    color: var(--tea-700);
    background: rgba(99, 169, 125, 0.13);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
}

.hero-side-card {
    padding: 18px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.hero-side-card img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.hero-side-card strong {
    display: block;
    margin-top: 16px;
    font-size: 20px;
}

.hero-side-card span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    width: min(1240px, calc(100% - 48px));
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.hero-arrow-group,
.hero-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    transition: all 0.22s ease;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 999px;
}

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

main {
    min-height: 60vh;
}

.content-wrap,
.page-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-hero {
    position: relative;
    padding: 72px 0 54px;
    background:
        radial-gradient(circle at 18% 12%, rgba(143, 191, 159, 0.24), transparent 28%),
        linear-gradient(135deg, var(--cream-100), #ffffff);
    overflow: hidden;
}

.page-hero h1 {
    max-width: 860px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--warm-700);
    font-size: 18px;
    line-height: 1.8;
}

.section-block {
    padding: 56px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.section-more {
    flex: none;
    color: var(--tea-700);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(36, 26, 16, 0.18);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--warm-100);
}

.movie-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.62));
}

.play-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(63, 143, 100, 0.9);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gold), #c46c32);
    font-weight: 900;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--tea-700);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 8px 0 8px;
    font-size: 20px;
    line-height: 1.3;
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--warm-700);
    font-size: 14px;
    line-height: 1.7;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--warm-700);
    font-size: 13px;
}

.card-foot a {
    color: var(--tea-700);
    font-weight: 800;
}

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

.category-card {
    min-height: 170px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff, var(--cream-100));
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0 0 16px;
    color: var(--warm-700);
    line-height: 1.7;
}

.category-card span {
    color: var(--tea-700);
    font-weight: 800;
}

.rank-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 28px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 62px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(36, 26, 16, 0.08);
}

.rank-row img {
    width: 62px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-num {
    color: var(--gold);
    font-size: 22px;
    font-weight: 950;
}

.rank-info {
    min-width: 0;
}

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

.rank-info em {
    margin-top: 4px;
    color: var(--warm-700);
    font-style: normal;
    font-size: 13px;
}

.rank-weight {
    color: var(--tea-700);
    font-weight: 900;
    white-space: nowrap;
}

.filter-panel {
    margin: 36px 0 8px;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
    gap: 22px;
    align-items: end;
}

.filter-panel h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 150px 180px;
    gap: 12px;
}

.filter-controls label {
    display: grid;
    gap: 6px;
    color: var(--warm-700);
    font-size: 13px;
    font-weight: 800;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(91, 68, 39, 0.14);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--warm-900);
    background: #ffffff;
    outline: none;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--tea-500);
    box-shadow: 0 0 0 4px rgba(99, 169, 125, 0.14);
}

.detail-main {
    padding: 46px 0 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--warm-700);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--tea-700);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-info-card,
.article-card {
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.player-frame {
    position: relative;
    background: #111111;
}

.player-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111111;
    object-fit: contain;
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tea-500), var(--tea-700));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    font-weight: 900;
}

.player-frame.is-playing .play-button {
    opacity: 0;
    pointer-events: none;
}

.player-title-row {
    padding: 22px;
}

.player-title-row h1 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.player-title-row p {
    margin: 0;
    color: var(--warm-700);
    line-height: 1.8;
}

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

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
}

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

.info-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(91, 68, 39, 0.1);
}

.info-list dt {
    color: var(--warm-700);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    text-align: right;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.article-card {
    padding: 24px;
}

.article-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-card p {
    margin: 0;
    color: var(--warm-700);
    line-height: 1.9;
}

.no-result {
    display: none;
    padding: 38px;
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--warm-700);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.no-result.show {
    display: block;
}

.site-footer {
    color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(135deg, var(--warm-900), #312419);
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 46px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 800;
}

.footer-brand p {
    max-width: 460px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.footer-links h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
}

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

@media (max-width: 1080px) {
    .movie-grid,
    .movie-grid.is-compact,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-content,
    .detail-layout,
    .rank-panel,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .hero-side-card {
        display: none;
    }
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .header-inner {
        padding: 0 16px;
    }

    .hero-content {
        padding: 72px 18px 92px;
    }

    .hero-controls {
        width: calc(100% - 36px);
        bottom: 18px;
    }

    .content-wrap,
    .page-hero-inner {
        padding: 0 18px;
    }

    .movie-grid,
    .movie-grid.is-compact,
    .category-grid,
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

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

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

    .rank-row img {
        width: 54px;
        height: 72px;
    }

    .rank-weight {
        grid-column: 3;
        justify-self: start;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .movie-grid.is-compact,
    .category-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 40px;
    }

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