* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    color: #e5e7eb;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34rem),
        radial-gradient(circle at 85% 12%, rgba(14, 165, 233, 0.16), transparent 28rem),
        #0f172a;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.38);
    backdrop-filter: blur(18px);
}

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

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

.brand {
    font-size: 22px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #eff6ff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
}

.nav-links a {
    color: #dbeafe;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #60a5fa;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #ffffff;
}

main {
    overflow: hidden;
}

.hero-section {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
}

.hero-topline {
    max-width: 760px;
    margin: 0 0 18px;
}

.hero-topline h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.hero-topline h1 {
    font-size: clamp(34px, 5vw, 62px);
}

.hero-topline p,
.page-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: #bfdbfe;
    font-size: 17px;
}

.hero-slider {
    position: relative;
    min-height: 560px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 30px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.55);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 390px);
    align-items: center;
    gap: 36px;
    padding: clamp(28px, 5vw, 64px);
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 26%, rgba(96, 165, 250, 0.25), transparent 28rem),
        linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.24));
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #93c5fd;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.hero-copy h2 {
    max-width: 760px;
    margin: 16px 0;
    color: #ffffff;
    font-size: clamp(34px, 5.8vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

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

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.tag-list span,
.detail-meta span,
.movie-meta em {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.55);
}

.hero-tags span,
.tag-list span {
    padding: 6px 12px;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.text-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.ghost-button,
.section-link {
    padding: 0 20px;
    color: #dbeafe;
    border: 1px solid rgba(147, 197, 253, 0.32);
    background: rgba(15, 23, 42, 0.48);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    align-self: stretch;
    display: flex;
    align-items: center;
}

.hero-poster img {
    height: min(430px, 60vh);
    object-fit: cover;
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(2, 6, 23, 0.62);
}

.hero-controls {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 24px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-arrow,
.hero-dot {
    pointer-events: auto;
    cursor: pointer;
    border: 1px solid rgba(147, 197, 253, 0.24);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
}

.hero-dot.active {
    width: 28px;
    background: #60a5fa;
}

.content-section,
.page-hero,
.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 44px auto;
}

.page-hero,
.detail-hero {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.88)),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.25), transparent 30rem);
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
}

.page-hero {
    padding: clamp(28px, 5vw, 58px);
}

.page-hero h1 {
    margin-top: 10px;
    font-size: clamp(32px, 5vw, 58px);
}

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

.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(25px, 4vw, 36px);
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: #94a3b8;
}

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

.movie-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    color: #e5e7eb;
    background: rgba(30, 41, 59, 0.84);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.26);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 28px 65px rgba(2, 6, 23, 0.42);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent);
}

.rating-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 28px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.rating-pill {
    right: 10px;
    top: 10px;
    background: rgba(37, 99, 235, 0.88);
}

.rank-badge {
    left: 10px;
    top: 10px;
    background: rgba(14, 165, 233, 0.88);
}

.movie-card-body {
    display: block;
    padding: 16px;
}

.movie-card-body strong {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-line {
    display: -webkit-box;
    min-height: 44px;
    margin-top: 8px;
    overflow: hidden;
    color: #a7b4c6;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.movie-meta em {
    padding: 3px 8px;
    font-size: 12px;
    font-style: normal;
}

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

.category-tile,
.category-overview-card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.86));
    box-shadow: 0 18px 46px rgba(2, 6, 23, 0.24);
}

.category-tile {
    display: block;
    min-height: 210px;
    padding: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.5);
}

.category-tile span,
.category-title-link {
    display: block;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.category-tile strong {
    display: block;
    margin-top: 12px;
    color: #a7b4c6;
    font-size: 14px;
    font-weight: 500;
}

.category-tile em,
.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    color: #93c5fd;
    font-size: 13px;
    font-style: normal;
}

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

.category-overview-card {
    padding: 26px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-overview-card p {
    margin: 10px 0 0;
    color: #a7b4c6;
}

.text-button {
    margin-top: 18px;
    padding: 0 18px;
    color: #bfdbfe;
    border: 1px solid rgba(147, 197, 253, 0.24);
}

.search-panel {
    max-width: 720px;
    margin-top: 24px;
}

.search-panel label {
    display: block;
    margin-bottom: 8px;
    color: #dbeafe;
    font-weight: 700;
}

.search-panel input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(147, 197, 253, 0.28);
    border-radius: 18px;
    outline: none;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
}

.search-panel input:focus {
    border-color: rgba(96, 165, 250, 0.76);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.search-status {
    min-height: 28px;
    margin-bottom: 18px;
    color: #93c5fd;
    font-weight: 700;
}

.detail-hero {
    padding: clamp(20px, 3vw, 34px);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #93c5fd;
    font-size: 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 30px;
    align-items: center;
}

.player-card,
.player-frame {
    position: relative;
}

.player-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.5);
}

.player-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 14px;
    padding: 22px;
    cursor: pointer;
    border: 0;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.66), rgba(15, 23, 42, 0.34));
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.42);
}

.detail-copy h1 {
    margin-top: 12px;
    font-size: clamp(32px, 5vw, 54px);
}

.detail-one-line {
    color: #dbeafe;
    font-size: 18px;
}

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

.detail-meta span {
    padding: 7px 12px;
    font-size: 13px;
}

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

.article-block {
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.74);
}

.article-block h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 24px;
}

.article-block p {
    margin: 0;
    color: #cbd5e1;
    white-space: pre-line;
}

.site-footer {
    margin-top: 70px;
    padding: 44px 0 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #94a3b8;
    background: rgba(2, 6, 23, 0.42);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 28px;
}

.footer-brand,
.site-footer h2 {
    color: #ffffff;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

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

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

.footer-links a:hover,
.category-samples a:hover,
.breadcrumbs a:hover {
    color: #60a5fa;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 14px;
}

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

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

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

    .hero-poster {
        display: none;
    }
}

@media (max-width: 820px) {
    .mobile-menu-button {
        display: block;
    }

    .nav-shell {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-links {
        display: none;
        width: 100%;
        align-items: stretch;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
    }

    .nav-links.open {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .nav-links a {
        padding: 10px 12px;
        border-radius: 12px;
        background: rgba(15, 23, 42, 0.55);
    }

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

    .hero-slide {
        padding: 28px;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .detail-section,
    .footer-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .hero-section,
    .content-section,
    .page-hero,
    .detail-hero,
    .footer-grid,
    .footer-bottom,
    .nav-shell {
        width: min(100% - 20px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .hero-slider,
    .page-hero,
    .detail-hero,
    .player-frame,
    .article-block,
    .movie-card,
    .category-tile,
    .category-overview-card {
        border-radius: 18px;
    }

    .hero-copy h2 {
        font-size: 34px;
    }

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

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

    .movie-card-body strong {
        font-size: 15px;
    }

    .movie-line {
        min-height: 40px;
        font-size: 13px;
    }
}
