:root {
    --site-blue: #2563eb;
    --site-cyan: #06b6d4;
    --site-dark: #0f172a;
    --site-muted: #64748b;
    --site-border: #e2e8f0;
    --site-soft: #f8fafc;
    --site-radius: 1rem;
    --site-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--site-dark);
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    color: #475569;
    font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a.is-active {
    color: var(--site-blue);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: #fff;
    color: var(--site-dark);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem 1rem;
    gap: 0.65rem;
    flex-wrap: wrap;
    color: #475569;
    font-weight: 650;
}

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

.page-main {
    min-height: 72vh;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: radial-gradient(circle at 18% 20%, rgba(125, 211, 252, 0.95), transparent 31%), linear-gradient(135deg, #1d4ed8, #06b6d4 60%, #0f172a);
    color: #fff;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.72));
    pointer-events: none;
}

.hero-bg-glow {
    position: absolute;
    width: 560px;
    height: 560px;
    right: -160px;
    bottom: -180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(4px);
}

.hero-shell {
    position: relative;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 5.8rem 1.25rem 4.2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 3rem;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fef3c7;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-bottom: 1.1rem;
}

.hero-title {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 4.9rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-title span {
    color: #fef08a;
}

.hero-text {
    max-width: 660px;
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.78rem 1.15rem;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
    color: var(--site-blue);
    background: #fff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.button-primary:hover {
    background: #eff6ff;
}

.button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.button-blue {
    color: #fff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.hero-search {
    width: min(100%, 620px);
    display: flex;
    gap: 0.65rem;
    padding: 0.45rem;
    margin-top: 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    color: #fff;
    background: transparent;
    padding: 0.75rem 1rem;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.74);
}

.hero-search button {
    border: none;
    color: var(--site-blue);
    background: #fff;
    padding: 0.72rem 1.2rem;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.hero-showcase {
    position: relative;
    z-index: 2;
}

.hero-frame {
    position: relative;
    min-height: 480px;
    border-radius: 2rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

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

.hero-slide-panel {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
    padding: 1.1rem;
    border-radius: 1.3rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.36), rgba(15, 23, 42, 0.84));
    backdrop-filter: blur(10px);
}

.hero-slide-title {
    margin: 0 0 0.45rem;
    font-size: 1.45rem;
    font-weight: 900;
}

.hero-slide-text {
    margin: 0 0 0.85rem;
    color: rgba(255, 255, 255, 0.86);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

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

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

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.25rem;
}

.section-narrow {
    max-width: 1040px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.section-title {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
    color: var(--site-dark);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-subtitle {
    margin: 0.65rem 0 0;
    color: var(--site-muted);
    max-width: 720px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
}

.movie-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: var(--site-shadow);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.badge,
.rank-badge,
.year-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.badge {
    padding: 0.25rem 0.65rem;
    color: #fff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
}

.rank-badge {
    position: absolute;
    left: 0.8rem;
    top: 0.8rem;
    min-width: 38px;
    height: 30px;
    color: #fff;
    background: rgba(15, 23, 42, 0.84);
    z-index: 2;
}

.year-badge {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 0.25rem 0.65rem;
    color: #fff;
    background: rgba(15, 23, 42, 0.74);
    z-index: 2;
}

.card-body {
    padding: 1rem;
}

.card-title {
    margin: 0;
    color: var(--site-dark);
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: 0.35rem;
    color: var(--site-muted);
    font-size: 0.88rem;
}

.card-desc {
    margin: 0.7rem 0 0;
    color: #475569;
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-top: 0.85rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.56rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 750;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 1.4rem;
    background: #fff;
    border: 1px solid var(--site-border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
}

.category-content {
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.95));
}

.category-content h2,
.category-content h3 {
    margin: 0;
    color: var(--site-dark);
    font-size: 1.35rem;
    font-weight: 900;
}

.category-content p {
    margin: 0.55rem 0 0;
    color: #475569;
}

.filter-panel {
    margin-bottom: 1.6rem;
    padding: 1rem;
    border: 1px solid var(--site-border);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-input {
    flex: 1 1 280px;
    min-height: 46px;
    padding: 0.72rem 1rem;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    outline: none;
    color: var(--site-dark);
    background: #f8fafc;
}

.filter-input:focus {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.filter-pill {
    min-height: 42px;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    color: #475569;
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}

.filter-pill.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
}

.empty-state {
    display: none;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--site-muted);
    border: 1px dashed var(--site-border);
    border-radius: 1.25rem;
    background: #fff;
}

.empty-state.is-visible {
    display: block;
}

.movie-card.is-hidden {
    display: none;
}

.rank-list {
    display: grid;
    gap: 1rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid var(--site-border);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.rank-cover {
    width: 82px;
    height: 108px;
    border-radius: 0.8rem;
    object-fit: cover;
}

.rank-number {
    color: var(--site-blue);
    font-size: 1.35rem;
    font-weight: 900;
}

.detail-hero {
    background: linear-gradient(135deg, #0f172a, #1d4ed8 58%, #06b6d4);
    color: #fff;
}

.detail-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.8rem 1.25rem;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
}

.detail-title {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.detail-line {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.3rem;
}

.detail-meta span {
    padding: 0.4rem 0.72rem;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 750;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1.6rem;
}

.content-card {
    padding: 1.35rem;
    border-radius: 1.25rem;
    border: 1px solid var(--site-border);
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.content-card + .content-card {
    margin-top: 1rem;
}

.content-card h2,
.content-card h3 {
    margin: 0 0 0.8rem;
    color: var(--site-dark);
    font-weight: 900;
}

.content-card p {
    margin: 0;
    color: #334155;
}

.content-card p + p {
    margin-top: 0.8rem;
}

.player-card {
    overflow: hidden;
    border-radius: 1.4rem;
    background: #020617;
    box-shadow: 0 24px 55px rgba(2, 6, 23, 0.28);
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.24);
}

.player-cover[hidden] {
    display: none;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.player-button {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
    font-size: 2rem;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.34);
    cursor: pointer;
}

.player-title-row {
    padding: 1rem 1.15rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.player-title-row h2 {
    margin: 0;
    font-size: 1.1rem;
}

.player-state {
    color: #bfdbfe;
    font-size: 0.9rem;
}

.side-list {
    display: grid;
    gap: 0.85rem;
}

.side-link {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.65rem;
    border-radius: 0.9rem;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-link:hover {
    background: #eff6ff;
    transform: translateX(3px);
}

.side-link img {
    width: 64px;
    height: 84px;
    object-fit: cover;
    border-radius: 0.7rem;
}

.side-link strong {
    display: block;
    color: var(--site-dark);
    line-height: 1.35;
}

.side-link span {
    display: block;
    margin-top: 0.2rem;
    color: var(--site-muted);
    font-size: 0.86rem;
}

.site-footer {
    margin-top: 2rem;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.6rem 1.25rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.footer-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0 0 0.7rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
}

.footer-links a:hover {
    color: #93c5fd;
}

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

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

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

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

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

    .hero-shell {
        padding-top: 4rem;
        gap: 2rem;
    }

    .hero-frame {
        min-height: 420px;
    }

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

    .section-head,
    .footer-shell {
        display: block;
    }

    .footer-links {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .rank-item {
        grid-template-columns: 72px 1fr;
    }

    .rank-number {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        min-height: 64px;
    }

    .brand {
        font-size: 1rem;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .hero-section,
    .hero-shell {
        min-height: auto;
    }

    .hero-search {
        border-radius: 1.2rem;
        flex-direction: column;
    }

    .hero-search button {
        width: 100%;
    }

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

    .section {
        padding: 3rem 1rem;
    }

    .detail-shell {
        padding: 2.6rem 1rem;
    }

    .player-button {
        width: 68px;
        height: 68px;
        font-size: 1.55rem;
    }
}
