* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111827;
    background: #f9fafb;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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: 80;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.navbar {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 12px 26px rgba(14, 165, 233, 0.32);
}

.logo:hover {
    color: #0284c7;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #0284c7;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #eef7ff;
    color: #0369a1;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

.mobile-menu.is-open {
    display: grid;
    gap: 10px;
}

.mobile-menu a {
    padding: 12px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 700;
    background: #f3f4f6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 54%, #4338ca 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.36), transparent 28%), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.28), transparent 24%), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: auto, auto, 56px 56px, 56px 56px;
}

.hero-inner {
    position: relative;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: 42px;
    padding: 84px 0 110px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #dbeafe;
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: #cffafe;
}

.hero-subtitle {
    max-width: 720px;
    margin: 0 0 32px;
    color: #dbeafe;
    font-size: clamp(18px, 2.2vw, 24px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-search {
    max-width: 640px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.hero-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    border-radius: 12px;
    padding: 13px 15px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.94);
}

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

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

.btn-primary {
    color: #ffffff;
    background: #0284c7;
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.28);
}

.btn-primary:hover {
    background: #0369a1;
}

.btn-light {
    color: #0369a1;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.btn-outline {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.12);
}

.hero-stage {
    position: relative;
    min-height: 440px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(18px) scale(0.985);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-card {
    position: relative;
    height: 440px;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    box-shadow: 0 36px 80px rgba(15, 23, 42, 0.34);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
    transition: transform 0.45s ease;
}

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

.image-hidden {
    opacity: 0 !important;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.88) 0%, rgba(3, 7, 18, 0.22) 55%, rgba(3, 7, 18, 0.05) 100%);
}

.hero-caption {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 24px;
    z-index: 2;
}

.hero-caption h2 {
    margin: 10px 0 8px;
    font-size: 30px;
    line-height: 1.16;
}

.hero-caption p {
    margin: 0 0 16px;
    color: #dbeafe;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #0369a1;
    background: #e0f2fe;
}

.badge.dark {
    color: #ffffff;
    background: rgba(2, 132, 199, 0.86);
}

.badge.soft {
    color: #475569;
    background: #f1f5f9;
}

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

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

.hero-dot.is-active {
    width: 28px;
    background: #ffffff;
}

.stat-strip {
    position: relative;
    z-index: 5;
    margin-top: -58px;
}

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

.stat-card {
    min-height: 112px;
    padding: 22px;
    border-radius: 20px;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
}

.stat-card strong {
    display: block;
    margin-bottom: 5px;
    color: #0f172a;
    font-size: 26px;
}

.stat-card span {
    color: #64748b;
    font-size: 14px;
}

.section {
    padding: 72px 0;
}

.section.gray {
    background: #f3f4f6;
}

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

.section-kicker {
    margin: 0 0 8px;
    color: #0284c7;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.section-desc {
    max-width: 680px;
    margin: 12px 0 0;
    color: #64748b;
    font-size: 17px;
}

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

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

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

.rank-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.poster.tall {
    aspect-ratio: 3 / 4;
}

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.62) 0%, transparent 48%);
}

.poster .badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
}

.poster .poster-meta {
    position: absolute;
    z-index: 2;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.card-title {
    margin: 0 0 9px;
    color: #111827;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 900;
}

.movie-card:hover .card-title {
    color: #0284c7;
}

.card-text {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-card {
    min-height: 190px;
    padding: 24px;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #2563eb);
    box-shadow: 0 18px 42px rgba(2, 132, 199, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #2563eb, #4338ca);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #0891b2, #0284c7);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(37, 99, 235, 0.26);
}

.category-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 20px;
    color: #dbeafe;
}

.list-card {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-card:hover {
    transform: translateX(4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.rank-no {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.list-card h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.list-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #2563eb);
}

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

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

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 18px;
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.input,
.select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    padding: 12px 14px;
    outline: 0;
    background: #ffffff;
    color: #111827;
}

.input:focus,
.select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.13);
}

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

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

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

.panel {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.panel-pad {
    padding: 26px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.28));
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-start {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 22px;
    border: 0;
    border-radius: 999px;
    color: #0369a1;
    background: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.player-start span:first-child {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: #0284c7;
}

.detail-title {
    margin: 0 0 18px;
    color: #111827;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.info-grid {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.info-row strong {
    color: #475569;
}

.info-row span {
    color: #111827;
    font-weight: 800;
    text-align: right;
}

.content-block h2 {
    margin: 26px 0 10px;
    font-size: 22px;
}

.content-block p {
    margin: 0 0 14px;
    color: #374151;
    font-size: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

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

.side-item {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: center;
}

.side-item .poster {
    border-radius: 14px;
}

.side-item h3 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.35;
}

.side-item p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.search-panel {
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.footer {
    color: #cbd5e1;
    background: #111827;
}

.footer .container {
    padding-top: 48px;
    padding-bottom: 34px;
}

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

.footer h3,
.footer .logo {
    color: #ffffff;
}

.footer p,
.footer a {
    color: #94a3b8;
}

.footer a:hover {
    color: #38bdf8;
}

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

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

@media (max-width: 1080px) {
    .hero-inner,
    .detail-layout,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 390px;
    }

    .hero-card {
        height: 390px;
    }

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

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

    .mobile-toggle {
        display: inline-block;
    }

    .hero-inner {
        min-height: auto;
        padding: 58px 0 96px;
    }

    .hero-search,
    .toolbar,
    .search-row {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .navbar,
    .container,
    .mobile-menu {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo {
        font-size: 19px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-stage {
        min-height: 330px;
    }

    .hero-card {
        height: 330px;
        border-radius: 22px;
    }

    .hero-caption {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .hero-caption h2 {
        font-size: 24px;
    }

    .stat-grid,
    .movie-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

    .list-card {
        grid-template-columns: 48px 1fr;
    }

    .list-card .btn {
        grid-column: 1 / -1;
    }

    .panel-pad {
        padding: 20px;
    }
}
