:root {
    --frost-50: #f0f9ff;
    --frost-100: #e0f2fe;
    --frost-500: #0ea5e9;
    --frost-600: #0284c7;
    --frost-700: #0369a1;
    --frost-800: #075985;
    --frost-900: #0c4a6e;
    --ice-400: #22d3ee;
    --ice-500: #06b6d4;
    --ice-600: #0891b2;
    --silver-50: #f8fafc;
    --silver-100: #f1f5f9;
    --silver-200: #e2e8f0;
    --silver-300: #cbd5e1;
    --silver-400: #94a3b8;
    --silver-500: #64748b;
    --silver-700: #334155;
    --silver-800: #1e293b;
    --silver-900: #0f172a;
    --shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
    --soft-shadow: 0 12px 30px rgba(14, 165, 233, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    color: var(--silver-900);
    background: linear-gradient(180deg, var(--silver-50), #ffffff 42%, var(--frost-50));
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--frost-900), var(--frost-800), #164e63);
    box-shadow: 0 8px 26px rgba(8, 47, 73, 0.28);
}

.navbar {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--ice-400), var(--frost-500));
    box-shadow: 0 12px 22px rgba(34, 211, 238, 0.24);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text {
    font-size: 1.22rem;
    background: linear-gradient(90deg, var(--frost-100), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 650;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--frost-100);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    height: 78vh;
    overflow: hidden;
    background: var(--silver-900);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 25%, rgba(34, 211, 238, 0.22), transparent 36%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.12));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1180px;
    color: #ffffff;
}

.hero-content > * {
    max-width: 700px;
}

.hero-kicker,
.detail-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-kicker span,
.hero-kicker a,
.detail-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 18px;
    font-size: clamp(2.3rem, 6vw, 5.4rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0 0 24px;
    color: var(--silver-200);
    font-size: clamp(1rem, 1.8vw, 1.28rem);
    line-height: 1.75;
}

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.84rem;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.38);
}

.movie-tags span {
    color: var(--frost-700);
    background: var(--frost-100);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--frost-600), var(--ice-600));
    box-shadow: var(--soft-shadow);
}

.primary-btn:hover,
.section-more:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.ghost-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    background: rgba(2, 6, 23, 0.48);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
    background: rgba(2, 132, 199, 0.76);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.quick-entry {
    width: min(1180px, calc(100% - 32px));
    margin: -34px auto 0;
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-entry a {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: var(--frost-900);
    font-size: 1.04rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, color 0.25s ease;
}

.quick-entry a:hover {
    color: var(--frost-600);
    transform: translateY(-4px);
}

.page-main,
.content-section,
.search-panel,
.category-section,
.story-section,
.player-section,
.breadcrumb,
.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.content-section,
.search-panel,
.category-section,
.story-section,
.player-section {
    padding: 54px 0;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 440px);
    gap: 22px;
    align-items: center;
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(186, 230, 253, 0.92);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--soft-shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.search-heading h2,
.section-title h2,
.story-section h2 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    letter-spacing: -0.03em;
}

.search-heading p,
.section-title p,
.page-hero p,
.story-section p,
.footer-main p {
    color: var(--silver-500);
    line-height: 1.75;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--silver-200);
    border-radius: 999px;
    padding: 0 48px 0 20px;
    outline: none;
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
    border-color: var(--frost-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.search-box span {
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--frost-600);
    transform: translateY(-50%);
}

.filter-row {
    grid-column: 1 / -1;
}

.filter-chip {
    border: 1px solid var(--frost-100);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--frost-800);
    background: var(--frost-50);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #ffffff;
    background: var(--frost-600);
    transform: translateY(-1px);
}

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

.section-more {
    min-height: 40px;
    color: #ffffff;
    background: var(--frost-600);
}

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

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

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

.movie-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-link:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.55);
    box-shadow: var(--shadow);
}

.movie-thumb {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--silver-100);
}

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

.movie-link:hover .movie-thumb img {
    transform: scale(1.1);
}

.movie-badge,
.rank-num {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(2, 132, 199, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.rank-num {
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.rank-num + .movie-badge {
    left: auto;
    right: 12px;
}

.movie-hover {
    position: absolute;
    inset: auto 14px 14px;
    z-index: 3;
    padding: 10px 12px;
    border-radius: 999px;
    color: #ffffff;
    text-align: center;
    font-weight: 800;
    background: linear-gradient(90deg, var(--frost-600), var(--ice-600));
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-link:hover .movie-hover {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-body p {
    margin: 0 0 12px;
    color: var(--silver-500);
    line-height: 1.58;
    font-size: 0.93rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    margin-bottom: 10px;
    color: var(--frost-700);
    font-weight: 750;
    font-size: 0.88rem;
}

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

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 28px;
    color: #ffffff;
    background: var(--silver-900);
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: transform 0.5s ease, opacity 0.25s ease;
}

.category-card:hover img {
    opacity: 0.58;
    transform: scale(1.08);
}

.category-card div {
    position: absolute;
    inset: auto 22px 22px;
    z-index: 2;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.65;
}

.page-hero {
    min-height: 280px;
    display: flex;
    align-items: center;
    margin-top: 32px;
    padding: 38px;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.34), transparent 34%),
        linear-gradient(135deg, var(--frost-900), var(--frost-700), var(--ice-600));
    box-shadow: var(--shadow);
}

.page-hero.small-hero {
    min-height: 240px;
}

.page-hero span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    color: var(--silver-500);
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(220px, 330px) 1fr;
    gap: 34px;
    align-items: center;
    margin-top: 24px;
    padding: 32px;
    border-radius: 34px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-intro h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.lead {
    margin: 0 0 18px;
    color: var(--silver-700);
    font-size: 1.08rem;
    line-height: 1.85;
}

.detail-tags span {
    color: var(--frost-700);
    background: var(--frost-100);
}

.muted-tags {
    margin-top: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-trigger {
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--frost-600), var(--ice-600));
    box-shadow: 0 18px 40px rgba(8, 145, 178, 0.36);
    cursor: pointer;
    transition: transform 0.25s ease;
}

.play-trigger:hover {
    transform: scale(1.08);
}

.player-overlay strong {
    padding: 0 22px;
    text-align: center;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
}

.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.story-section article {
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.story-section article:nth-child(3) {
    grid-column: 1 / -1;
}

.story-section p {
    margin: 16px 0 0;
    color: var(--silver-700);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.info-grid div {
    padding: 16px;
    border-radius: 18px;
    background: var(--frost-50);
}

.info-grid span {
    display: block;
    color: var(--silver-500);
    font-size: 0.86rem;
}

.info-grid strong {
    display: block;
    margin-top: 6px;
    color: var(--frost-800);
}

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

.no-results {
    display: none;
    margin: 26px 0 0;
    padding: 18px;
    border-radius: 18px;
    color: var(--silver-600);
    text-align: center;
    background: #ffffff;
}

.no-results.is-visible {
    display: block;
}

.site-footer {
    margin-top: 62px;
    color: var(--silver-300);
    background: linear-gradient(180deg, var(--silver-900), #082f49);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 1.2rem;
}

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

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 10px;
}

.site-footer a {
    color: var(--silver-300);
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--ice-400);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    color: var(--silver-400);
    font-size: 0.92rem;
}

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

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

@media (max-width: 820px) {
    .navbar {
        height: auto;
        min-height: 64px;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 0 4px;
    }

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

    .nav-links a {
        padding: 12px;
        border-radius: 12px;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: none;
    }

    .hero-carousel {
        height: 72vh;
    }

    .hero-content {
        padding-top: 24px;
        justify-content: center;
    }

    .hero-control {
        display: none;
    }

    .quick-entry {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .detail-poster {
        max-width: 320px;
    }

    .story-section {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .brand-text {
        font-size: 1.05rem;
    }

    .hero-carousel {
        min-height: 620px;
        height: 78vh;
    }

    .hero-kicker,
    .detail-kicker {
        gap: 7px;
    }

    .hero-content p {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-dots {
        bottom: 20px;
    }

    .quick-entry {
        margin-top: 18px;
        grid-template-columns: 1fr;
    }

    .content-section,
    .search-panel,
    .category-section,
    .story-section,
    .player-section {
        padding: 34px 0;
    }

    .search-panel,
    .page-hero,
    .detail-hero,
    .story-section article {
        padding: 22px;
        border-radius: 24px;
    }

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

    .movie-grid,
    .all-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    .movie-card-body p {
        -webkit-line-clamp: 2;
    }

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

    .play-trigger {
        width: 68px;
        height: 68px;
    }
}
