:root {
    --night-950: #0a1929;
    --night-900: #102a43;
    --night-800: #243b53;
    --night-700: #334e68;
    --night-600: #486581;
    --harbor-900: #06312d;
    --harbor-800: #0b4b47;
    --harbor-700: #0e625f;
    --harbor-600: #157f7b;
    --harbor-500: #1a9995;
    --harbor-400: #26b3af;
    --harbor-300: #5eead4;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --text-main: #ffffff;
    --text-soft: #d1d5db;
    --text-muted: #9ca3af;
    --border-soft: rgba(51, 78, 104, 0.5);
    --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--night-950);
    color: var(--text-main);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    min-height: 68vh;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 42, 67, 0.95);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--harbor-500), var(--harbor-800));
    box-shadow: 0 0 26px rgba(38, 179, 175, 0.3);
    font-family: "Noto Serif SC", Georgia, serif;
    font-weight: 700;
}

.brand-text {
    color: white;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: 18px;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.main-nav a,
.footer-links a {
    color: var(--text-soft);
    transition: color 0.2s ease;
}

.main-nav a:hover,
.footer-links a:hover {
    color: white;
}

.nav-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-search input,
.filter-area input,
.filter-area select {
    color: white;
    background: var(--night-800);
    border: 1px solid var(--night-600);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 190px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px 0 0 10px;
}

.nav-search button {
    height: 36px;
    padding: 0 14px;
    color: white;
    background: var(--harbor-600);
    border: 1px solid var(--harbor-600);
    border-radius: 0 10px 10px 0;
}

.nav-search input:focus,
.filter-area input:focus,
.filter-area select:focus {
    border-color: var(--harbor-500);
    box-shadow: 0 0 0 3px rgba(26, 153, 149, 0.18);
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--night-950);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
}

.hero-bg span {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(38, 179, 175, 0.22), transparent 32%),
        linear-gradient(to top, var(--night-950) 2%, rgba(10, 25, 41, 0.74) 48%, rgba(10, 25, 41, 0.16) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 70vh;
    margin: 0 auto;
    padding-bottom: 72px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 16px;
}

.hero-kicker {
    margin: 0;
    color: var(--harbor-400);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1,
.detail-card h1 {
    margin: 0;
    max-width: 760px;
    color: white;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: clamp(36px, 6vw, 60px);
    line-height: 1.08;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 26px;
    border-radius: 12px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    background: var(--harbor-600);
    color: white;
}

.primary-button:hover {
    background: var(--harbor-500);
    transform: translateY(-2px) scale(1.02);
}

.ghost-button {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(16, 42, 67, 0.38);
}

.ghost-button:hover {
    border-color: var(--harbor-400);
    background: rgba(11, 75, 71, 0.36);
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 40px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #6b7280;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.home-sections,
.page-content {
    padding: 64px 0;
}

.section-block {
    margin-bottom: 78px;
}

.section-heading {
    margin-bottom: 28px;
    padding-left: 18px;
    border-left: 4px solid var(--harbor-500);
}

.section-heading-amber {
    border-left-color: var(--amber-500);
}

.section-heading h2 {
    margin: 0;
    color: white;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: 28px;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.panel-block {
    padding: 32px;
    border-radius: 24px;
    background: rgba(36, 59, 83, 0.5);
    border: 1px solid var(--border-soft);
}

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

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

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

.movie-card {
    display: block;
    min-width: 0;
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: var(--night-800);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.play-symbol {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%) scale(0.86);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: rgba(21, 127, 123, 0.88);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.type-chip,
.rank-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 8px;
    color: white;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
}

.rank-badge {
    left: 10px;
    right: auto;
    background: rgba(245, 158, 11, 0.86);
}

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

.movie-card:hover .poster-shade,
.movie-card:hover .play-symbol {
    opacity: 1;
}

.movie-card:hover .play-symbol {
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    display: block;
    padding-top: 12px;
}

.card-body strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: white;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.card-body span,
.card-body em {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.55;
}

.card-body em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card:hover .card-body strong,
.line-card:hover strong,
.category-card:hover strong {
    color: var(--harbor-400);
}

.movie-card-compact {
    width: 280px;
    flex: 0 0 280px;
}

.horizontal-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.horizontal-row::-webkit-scrollbar {
    display: none;
}

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

.feature-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    background: var(--night-800);
    box-shadow: var(--shadow-card);
}

.feature-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 42, 67, 0.95), rgba(16, 42, 67, 0.02));
}

.feature-content {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
}

.feature-content strong {
    display: block;
    color: white;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: 25px;
    margin-bottom: 8px;
}

.feature-content em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-soft);
    font-style: normal;
    line-height: 1.6;
}

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

.line-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(36, 59, 83, 0.3);
    transition: background 0.2s ease;
}

.line-card:hover {
    background: rgba(36, 59, 83, 0.82);
}

.line-card img {
    width: 150px;
    height: 92px;
    flex: 0 0 150px;
    border-radius: 12px;
    object-fit: cover;
}

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

.line-info strong,
.line-info em,
.line-info span {
    display: block;
}

.line-info strong {
    color: white;
    font-size: 17px;
    transition: color 0.2s ease;
}

.line-info em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 6px;
    color: var(--text-soft);
    font-style: normal;
    line-height: 1.6;
}

.line-info span {
    margin-top: 8px;
    color: #6b7280;
    font-size: 13px;
}

.line-rank {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: var(--amber-400);
    font-weight: 800;
}

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

.category-card {
    display: block;
    min-height: 150px;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--night-800), var(--night-900));
    border: 1px solid var(--border-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--harbor-600);
    background: linear-gradient(135deg, var(--harbor-900), var(--night-800));
}

.category-card-amber:hover {
    border-color: var(--amber-500);
    background: linear-gradient(135deg, rgba(120, 53, 15, 0.68), var(--night-800));
}

.category-card strong,
.category-card span,
.category-card em {
    display: block;
}

.category-card strong {
    color: white;
    font-size: 19px;
    margin-bottom: 10px;
}

.category-card span {
    color: var(--text-muted);
    line-height: 1.65;
}

.category-card em {
    margin-top: 14px;
    color: var(--harbor-300);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(38, 179, 175, 0.18), transparent 34%),
        linear-gradient(135deg, var(--night-900), var(--night-950));
}

.small-hero .container {
    padding: 76px 0 64px;
}

.page-hero h1 {
    margin: 8px 0 12px;
}

.filter-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(36, 59, 83, 0.45);
    border: 1px solid var(--border-soft);
}

.filter-area input {
    width: min(420px, 100%);
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
}

.filter-area select {
    height: 44px;
    min-width: 142px;
    padding: 0 12px;
    border-radius: 12px;
}

.result-count {
    color: var(--text-muted);
    font-size: 14px;
}

.detail-top {
    padding: 38px 0 72px;
}

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

.detail-main {
    min-width: 0;
}

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

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

.play-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    color: white;
    background: black;
    overflow: hidden;
}

.play-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
}

.play-cover span {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(38, 179, 175, 0.2), rgba(0, 0, 0, 0.7));
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(21, 127, 123, 0.92);
    color: white;
    font-size: 30px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.play-cover.is-hidden {
    display: none;
}

.detail-card,
.side-card {
    margin-top: 24px;
    padding: 28px;
    border-radius: 22px;
    background: rgba(36, 59, 83, 0.48);
    border: 1px solid var(--border-soft);
}

.detail-card h1 {
    font-size: clamp(30px, 4vw, 44px);
    margin: 10px 0 16px;
}

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

.detail-meta a,
.detail-meta span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--harbor-300);
    background: rgba(6, 49, 45, 0.55);
    font-size: 13px;
}

.detail-card h2,
.side-card h2 {
    margin: 26px 0 10px;
    color: white;
    font-family: "Noto Serif SC", Georgia, serif;
    font-size: 24px;
}

.side-card h2 {
    margin-top: 0;
}

.detail-card p {
    color: var(--text-soft);
    line-height: 1.9;
}

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

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

.side-grid {
    display: grid;
    gap: 18px;
}

.side-grid .movie-card-compact {
    width: 100%;
}

.site-footer {
    border-top: 1px solid var(--border-soft);
    background: var(--night-900);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.footer-brand p {
    max-width: 520px;
    margin: 14px 0 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1024px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

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

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

    .side-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .container,
    .header-inner,
    .hero-content,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

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

    .main-nav {
        gap: 18px;
        font-size: 14px;
    }

    .nav-search {
        width: 100%;
    }

    .nav-search input {
        width: 100%;
    }

    .hero,
    .hero-content {
        min-height: 68vh;
        height: 68vh;
    }

    .hero-content {
        padding-bottom: 64px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-dots {
        right: 18px;
        bottom: 24px;
    }

    .home-sections,
    .page-content {
        padding: 42px 0;
    }

    .section-block {
        margin-bottom: 52px;
    }

    .panel-block {
        padding: 22px;
    }

    .movie-grid-4,
    .movie-grid-3,
    .category-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .line-card {
        align-items: flex-start;
    }

    .line-card img {
        width: 118px;
        height: 74px;
        flex-basis: 118px;
    }

    .line-rank {
        display: none;
    }

    .small-hero .container {
        padding: 54px 0 46px;
    }

    .filter-area {
        align-items: stretch;
    }

    .filter-area input,
    .filter-area select {
        width: 100%;
    }

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

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin-top: 24px;
    }
}
