:root {
    --blue: #0096dc;
    --blue-light: #4db8e8;
    --blue-dark: #0077b6;
    --yellow: #ffd700;
    --yellow-dark: #ffc700;
    --cream: #fff9e6;
    --red: #e63946;
    --ink: #172033;
    --muted: #687385;
    --line: #e7edf5;
    --panel: #ffffff;
    --shadow: 0 18px 45px rgba(0, 82, 130, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, var(--cream) 0%, #ffffff 26%, #f5fbff 100%);
}

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue));
    box-shadow: 0 10px 30px rgba(0, 86, 140, 0.22);
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.site-logo__mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-dark);
    background: var(--yellow);
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.08), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.site-logo__text {
    font-size: 22px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--blue-dark);
    background: var(--yellow);
    transform: translateY(-1px);
}

.header-search {
    width: 285px;
    display: flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.header-search input,
.hero-search input,
.search-page-form input,
.list-filter {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    color: var(--ink);
    background: #ffffff;
}

.header-search input {
    min-width: 0;
    padding: 10px 14px;
}

.header-search button,
.hero-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    padding: 10px 17px;
    white-space: nowrap;
    font-weight: 800;
    color: var(--blue-dark);
    background: var(--yellow);
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
}

.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
    gap: 8px;
    flex-wrap: wrap;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 18% 18%, rgba(255, 215, 0, 0.36), transparent 30%), linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 48%, var(--blue-light) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    padding: 78px 0;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    gap: 42px;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    background: var(--yellow);
    opacity: 0.18;
    animation: floatOrb 5s ease-in-out infinite;
}

.hero-orb--one {
    width: 140px;
    height: 140px;
    top: 86px;
    left: 8%;
}

.hero-orb--two {
    width: 220px;
    height: 220px;
    right: 7%;
    bottom: 46px;
    animation-delay: 1.4s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-22px);
    }
}

.eyebrow,
.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 14px;
    font-weight: 800;
    color: var(--blue-dark);
    background: var(--yellow);
}

.hero-copy h2 {
    margin: 24px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero-copy p,
.hero-slide__content p,
.page-hero p,
.section-head p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

.hero-search,
.search-page-form {
    display: flex;
    align-items: center;
    max-width: 620px;
    margin-top: 30px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-search input,
.search-page-form input {
    padding: 15px 18px;
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-category-links a {
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.16);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-category-links a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-stage {
    position: relative;
    min-height: 510px;
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 80px rgba(0, 36, 70, 0.3);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

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

.hero-slide__media {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
}

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

.hero-slide__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 19, 38, 0.86) 0%, rgba(0, 19, 38, 0.2) 55%, rgba(0, 19, 38, 0.08) 100%);
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    align-self: end;
    padding: 38px;
}

.hero-slide__content h1 {
    margin: 16px 0 12px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.06;
}

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

.hero-tags span,
.movie-card__tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--blue-dark);
    background: rgba(255, 215, 0, 0.94);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 11px 19px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: var(--blue-dark);
    background: var(--yellow);
    box-shadow: 0 13px 26px rgba(255, 215, 0, 0.25);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-soft {
    color: var(--blue-dark);
    background: #ffffff;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: 26px;
    bottom: 24px;
    display: flex;
    gap: 8px;
}

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

.hero-dot.active {
    width: 36px;
    background: var(--yellow);
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

.section-blue {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(90deg, rgba(0, 150, 220, 0.12), rgba(255, 215, 0, 0.18));
}

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

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    color: var(--ink);
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.section-more {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 900;
    color: var(--blue-dark);
    background: var(--yellow);
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--panel);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 70px rgba(0, 82, 130, 0.22);
}

.movie-card--compact .poster-frame {
    aspect-ratio: 4 / 3;
}

.poster-frame {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: radial-gradient(circle at 25% 10%, rgba(255, 215, 0, 0.5), transparent 28%), linear-gradient(135deg, var(--blue-dark), var(--blue-light));
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease, opacity 0.2s ease;
}

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

.image-missing {
    display: none;
}

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

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--blue-dark);
    background: var(--yellow);
    font-weight: 900;
    font-size: 13px;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--red);
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(230, 57, 70, 0.34);
}

.movie-card__body {
    display: grid;
    gap: 9px;
    padding: 18px;
}

.movie-card__body strong {
    font-size: 19px;
    line-height: 1.35;
}

.movie-card__line {
    min-height: 46px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.movie-card__meta {
    color: #8a95a6;
    font-size: 13px;
}

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

.category-card,
.category-large {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    min-height: 178px;
    color: #ffffff;
    background: var(--blue-dark);
    box-shadow: var(--shadow);
}

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

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

.category-card span {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: 6px;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0, 27, 50, 0.86), transparent);
}

.category-card strong,
.category-large strong {
    font-size: 22px;
    font-style: normal;
}

.category-card em,
.category-large em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
    gap: 38px;
}

.ranking-list,
.ranking-card-list {
    display: grid;
    gap: 14px;
}

.ranking-row,
.ranking-card {
    display: grid;
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 82, 130, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row {
    grid-template-columns: 38px 86px minmax(0, 1fr) auto;
}

.ranking-row:hover,
.ranking-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 46px rgba(0, 82, 130, 0.18);
}

.ranking-number,
.ranking-card__num {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--red);
    font-weight: 900;
}

.ranking-row img,
.ranking-card img {
    width: 86px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
}

.ranking-main,
.ranking-card__text {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.ranking-main strong,
.ranking-card__text strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-main em,
.ranking-card__text em,
.ranking-card__text span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.ranking-score,
.ranking-card__heat {
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--blue-dark);
    background: rgba(0, 150, 220, 0.12);
    font-weight: 900;
}

.page-main {
    width: 100%;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 18% 30%, rgba(255, 215, 0, 0.25), transparent 28%), linear-gradient(135deg, var(--blue-dark), var(--blue-light));
}

.compact-hero {
    padding: 72px max(16px, calc((100% - 1180px) / 2));
}

.compact-hero h1 {
    max-width: 900px;
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.compact-hero p {
    max-width: 780px;
    margin: 0;
}

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

.category-large {
    display: grid;
    min-height: auto;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.category-large__covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 126px;
    opacity: 0.78;
}

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

.category-large__content {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.category-large__content span {
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--blue-dark);
    background: var(--yellow);
    font-weight: 900;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.list-filter {
    max-width: 480px;
    border: 1px solid var(--line);
    padding: 14px 18px;
    box-shadow: 0 10px 28px rgba(0, 82, 130, 0.08);
}

.filter-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 8px;
}

.filter-links a {
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--blue-dark);
    background: rgba(0, 150, 220, 0.1);
    font-weight: 800;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.pagination a,
.pagination span {
    min-width: 42px;
    border-radius: 999px;
    padding: 10px 14px;
    text-align: center;
    color: var(--blue-dark);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 82, 130, 0.1);
    font-weight: 900;
}

.pagination a.active {
    color: #ffffff;
    background: var(--blue);
}

.ranking-card {
    grid-template-columns: 44px 118px minmax(0, 1fr) auto;
}

.ranking-card img {
    width: 118px;
    height: 86px;
}

.search-page-form {
    margin-top: 28px;
}

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--blue-dark);
    font-weight: 800;
}

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

.player-section {
    margin-top: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #03121f;
    box-shadow: 0 30px 82px rgba(0, 33, 65, 0.3);
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 150, 220, 0.34), rgba(0, 0, 0, 0.62));
    cursor: pointer;
}

.player-play-icon {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-dark);
    background: var(--yellow);
    font-size: 34px;
    box-shadow: 0 18px 40px rgba(255, 215, 0, 0.24);
}

.player-shell.is-playing .player-overlay {
    display: none;
}

.detail-header {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    margin-top: 34px;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-cover {
    aspect-ratio: 3 / 4;
    border-radius: 22px;
}

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
}

.detail-one-line,
.detail-text p {
    color: var(--muted);
    line-height: 1.9;
    font-size: 17px;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--blue-dark);
    background: rgba(0, 150, 220, 0.1);
    font-weight: 800;
}

.detail-tags {
    margin-bottom: 22px;
}

.detail-text {
    margin-top: 28px;
    padding: 32px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-text h2 {
    margin: 0 0 14px;
    color: var(--blue-dark);
    font-size: 28px;
}

.detail-text p + h2 {
    margin-top: 30px;
}

.related-section {
    width: 100%;
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(135deg, #052d4b, #081b2d);
}

.site-footer__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: flex;
    justify-content: space-between;
    gap: 26px;
}

.site-footer p {
    max-width: 620px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 10px;
}

.footer-links a {
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--blue-dark);
    background: var(--yellow);
    font-weight: 900;
}

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

    .hero-inner,
    .split-section,
    .detail-header {
        grid-template-columns: 1fr;
    }

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

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

    .movie-grid--three,
    .movie-grid--four,
    .movie-grid--compact,
    .category-grid,
    .category-large-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

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

    .site-header__inner {
        min-height: 62px;
    }

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

    .hero-stage {
        min-height: 500px;
        border-radius: 24px;
    }

    .hero-slide__content {
        padding: 24px;
    }

    .hero-actions,
    .hero-search,
    .search-page-form,
    .filter-bar,
    .section-head,
    .site-footer__inner {
        align-items: stretch;
        flex-direction: column;
    }

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

    .content-section,
    .compact-hero {
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .movie-grid--three,
    .movie-grid--four,
    .movie-grid--compact,
    .category-grid,
    .category-large-grid {
        grid-template-columns: 1fr;
    }

    .ranking-row,
    .ranking-card {
        grid-template-columns: 34px 78px minmax(0, 1fr);
    }

    .ranking-score,
    .ranking-card__heat {
        display: none;
    }

    .ranking-card img,
    .ranking-row img {
        width: 78px;
        height: 58px;
    }

    .detail-header,
    .detail-text {
        padding: 20px;
        border-radius: 22px;
    }

    .detail-cover {
        max-width: 260px;
    }

    .site-footer__inner,
    .footer-links {
        justify-content: start;
    }
}
