:root {
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --blue-dark: #1e3a8a;
    --slate: #0f172a;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
    color: var(--text);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.96), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #22d3ee, #2563eb);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
    font-weight: 900;
}

.logo-title {
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-subtitle {
    margin-top: 3px;
    color: #67e8f9;
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #e5e7eb;
    font-weight: 650;
}

.site-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    color: #22d3ee;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
}

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

.mobile-nav a {
    color: #e5e7eb;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #0f172a 46%, #0e7490);
}

.hero-glow {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background: radial-gradient(circle at 18% 22%, rgba(34, 211, 238, 0.65), transparent 32%), radial-gradient(circle at 76% 34%, rgba(37, 99, 235, 0.54), transparent 34%);
    animation: glowPulse 7s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.28;
        transform: scale(1);
    }
    50% {
        opacity: 0.42;
        transform: scale(1.04);
    }
}

.hero-slider {
    position: relative;
    min-height: 620px;
}

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

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    filter: saturate(1.16) contrast(1.06);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.72) 52%, rgba(14, 116, 144, 0.56) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 48px;
    padding: 68px 0 110px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 750;
    margin-bottom: 20px;
}

.hero h1 {
    color: #ffffff;
    margin: 0;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1 span {
    display: block;
    color: #67e8f9;
}

.hero p {
    color: #d1d5db;
    font-size: 20px;
    line-height: 1.8;
    max-width: 760px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 30px;
}

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.hero-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
}

.button-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.button-light {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.button:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    min-height: 500px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
}

.hero-poster-title {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    color: #ffffff;
    font-weight: 900;
    font-size: 24px;
}

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

.hero-dot {
    border: 0;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.active {
    width: 34px;
    background: #22d3ee;
}

.hero-bottom-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, #ffffff);
    z-index: 3;
}

.hero-quick {
    position: relative;
    z-index: 5;
    margin-top: -76px;
}

.section {
    padding: 54px 0;
}

.section-soft {
    border-radius: 34px;
    padding: 38px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.section-warm {
    border-radius: 34px;
    padding: 38px;
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

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

.section-link {
    color: #2563eb;
    font-weight: 800;
    white-space: nowrap;
}

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

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.card-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #1e3a8a, #0e7490);
}

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

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(15, 23, 42, 0.34);
    transition: opacity 0.24s ease;
}

.movie-card:hover .card-cover::after {
    opacity: 1;
}

.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    background: rgba(255, 255, 255, 0.92);
    color: #2563eb;
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
    font-weight: 900;
}

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

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    color: #ffffff;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.card-body {
    padding: 14px;
}

.card-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.35;
    min-height: 43px;
    font-weight: 800;
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 13px;
}

.card-summary {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 62px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.rank-index {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.rank-cover {
    width: 92px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a, #0e7490);
}

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

.rank-title {
    margin: 0 0 7px;
    font-size: 18px;
    font-weight: 850;
}

.rank-desc {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-score {
    color: #f59e0b;
    font-weight: 900;
}

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

.category-card {
    display: block;
    min-height: 210px;
    padding: 28px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a, #0f172a 58%, #0e7490);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -40px;
    bottom: -60px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.2);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 52px rgba(15, 23, 42, 0.22);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 12px;
    font-size: 28px;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 0 0 28px;
    color: #dbeafe;
    line-height: 1.75;
}

.category-card span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    font-weight: 850;
    color: #67e8f9;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a, #0f172a 55%, #0e7490);
    padding: 76px 0;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.24), transparent 32%);
}

.page-hero .site-container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #bae6fd;
    font-size: 14px;
    margin-bottom: 20px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 14px;
    color: #0f172a;
    font: inherit;
    outline: none;
    background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.detail-main {
    padding: 48px 0 10px;
}

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

.player-card {
    background: #0f172a;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.62));
}

.play-layer.hidden {
    display: none;
}

.play-button {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.94);
    color: #2563eb;
    font-size: 34px;
    cursor: pointer;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.player-title {
    padding: 22px 24px 24px;
    color: #ffffff;
}

.player-title h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 42px);
}

.player-title p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.75;
}

.detail-side {
    position: sticky;
    top: 104px;
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.detail-side img {
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #1e3a8a, #0e7490);
}

.meta-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
}

.meta-item strong {
    color: #0f172a;
}

.content-card {
    background: #ffffff;
    border-radius: 26px;
    padding: 30px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    margin-top: 28px;
}

.content-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.content-card p {
    color: #334155;
    line-height: 1.9;
    font-size: 17px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 750;
    font-size: 13px;
}

.site-footer {
    margin-top: 70px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

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

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

.site-footer p,
.site-footer a {
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 22px 0;
    color: #64748b;
    font-size: 14px;
}

.empty-state {
    display: none;
    padding: 30px;
    border-radius: 24px;
    background: #ffffff;
    color: #64748b;
    text-align: center;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.empty-state.show {
    display: block;
}

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

    .hero-content {
        grid-template-columns: 1fr 300px;
    }

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

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

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

    .header-inner {
        min-height: 68px;
    }

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

    .hero,
    .hero-slider,
    .hero-content {
        min-height: 700px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 46px 0 120px;
        gap: 28px;
    }

    .hero-poster {
        display: none;
    }

    .hero p {
        font-size: 17px;
    }

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

    .section-soft,
    .section-warm {
        padding: 22px;
        border-radius: 24px;
    }

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

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

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

    .detail-side {
        position: static;
    }

    .ranking-row {
        grid-template-columns: 46px 74px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
    }

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

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

@media (max-width: 520px) {
    .site-container {
        width: min(100% - 22px, 1180px);
    }

    .movie-grid,
    .movie-grid.grid-4,
    .movie-grid.grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .ranking-row {
        gap: 12px;
        padding: 12px;
    }

    .rank-cover {
        width: 74px;
        height: 54px;
    }

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