* {
    box-sizing: border-box;
}

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-900: #1e3a8a;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --green-500: #22c55e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
    --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.18);
    --radius: 18px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
}

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: 60;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

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

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.brand-name {
    font-size: 20px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 650;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-700);
    background: var(--blue-50);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--blue-50);
    color: var(--blue-700);
}

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

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

.mobile-panel.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--gray-700);
    background: var(--gray-50);
    font-weight: 650;
}

.mobile-link.active {
    color: var(--blue-700);
    background: var(--blue-50);
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-900) 55%, #0f766e);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.18), transparent 28%), radial-gradient(circle at 86% 24%, rgba(20, 184, 166, 0.35), transparent 30%), linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: auto, auto, 34px 34px, 34px 34px;
}

.hero-slider {
    position: relative;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 86px 24px 74px;
}

.hero-slide {
    display: none;
    align-items: center;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 52px;
}

.hero-slide.is-active {
    display: grid;
}

.hero-copy {
    display: grid;
    gap: 22px;
}

.eyebrow {
    margin: 0;
    color: var(--blue-100);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(38px, 7vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p:not(.eyebrow) {
    max-width: 720px;
    margin: 0;
    color: #dbeafe;
    font-size: clamp(17px, 2.2vw, 22px);
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--blue-700);
    background: var(--blue-50);
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

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

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--blue-700);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.secondary-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.hero-poster {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    box-shadow: var(--shadow-xl);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(17, 24, 39, 0.70);
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 28px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.hero-dot.is-active {
    background: var(--white);
}

.quick-search-panel,
.content-section,
.filter-panel,
.rank-list,
.detail-layout,
.player-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.quick-search-panel {
    padding-top: 48px;
    padding-bottom: 24px;
}

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

.section-heading.center {
    display: block;
    text-align: center;
}

.section-heading h2,
.section-heading h1,
.page-hero h1,
.detail-copy h1,
.detail-main h2,
.detail-side h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow,
.player-section .eyebrow {
    color: var(--blue-600);
}

.section-heading a {
    color: var(--blue-700);
    font-weight: 800;
}

.section-heading.light h2,
.section-heading.light .eyebrow,
.section-heading.light a {
    color: var(--white);
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 760px;
    margin: 24px auto 0;
    padding: 8px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.search-box input,
.filter-panel input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 0 16px;
    color: var(--gray-900);
    background: var(--white);
    outline: none;
}

.search-box input:focus,
.filter-panel input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.search-box button {
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
    font-weight: 800;
}

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

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

.category-card a {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 108px;
    background: linear-gradient(135deg, var(--blue-100), #ccfbf1);
}

.category-thumbs img {
    width: 100%;
    height: 108px;
    object-fit: cover;
}

.category-content {
    padding: 18px;
}

.category-content h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.category-content p {
    margin: 0 0 12px;
    color: var(--gray-600);
    font-size: 14px;
}

.category-content span {
    color: var(--blue-700);
    font-weight: 800;
}

.soft-bg {
    max-width: none;
    background: var(--gray-100);
}

.soft-bg > .section-heading,
.soft-bg > .movie-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.cover-frame {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-100), #ccfbf1);
}

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

.movie-card:hover .cover-frame img {
    transform: scale(1.06);
}

.score-badge,
.play-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.score-badge {
    left: 12px;
}

.play-badge {
    right: 12px;
    background: rgba(37, 99, 235, 0.82);
}

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

.movie-card-body h2 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body h2 a:hover,
.rank-content h2 a:hover {
    color: var(--blue-700);
}

.movie-meta,
.movie-line {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-line {
    display: -webkit-box;
    min-height: 42px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--gray-600);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    margin-top: 12px;
}

.tag-row.large span {
    min-height: 34px;
    font-size: 14px;
}

.gradient-band {
    max-width: none;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--teal-600));
}

.gradient-band > .section-heading,
.gradient-band > .movie-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-band .movie-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.gradient-band .movie-card h2,
.gradient-band .movie-card p,
.gradient-band .movie-card a {
    color: var(--white);
}

.page-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--teal-600));
}

.page-hero > div {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(36px, 7vw, 60px);
}

.page-hero p:not(.eyebrow) {
    max-width: 780px;
    margin: 14px 0 0;
    color: #dbeafe;
    font-size: 18px;
}

.filter-panel {
    display: grid;
    gap: 10px;
    padding-bottom: 16px;
}

.filter-panel label {
    color: var(--gray-700);
    font-weight: 800;
}

.rank-list {
    display: grid;
    gap: 14px;
    padding-top: 24px;
}

.rank-item {
    display: grid;
    grid-template-columns: 64px 138px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
    font-size: 20px;
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: var(--blue-50);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-content h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-content p {
    margin: 0 0 10px;
    color: var(--gray-600);
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 13px;
}

.rank-meta span,
.rank-meta strong {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--gray-100);
}

.rank-meta strong {
    color: var(--blue-700);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.45fr) minmax(0, 0.55fr);
    gap: 44px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    background: var(--blue-50);
    box-shadow: var(--shadow-xl);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
}

.detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.detail-copy h1 {
    font-size: clamp(36px, 6vw, 58px);
}

.detail-copy p:not(.eyebrow) {
    margin: 0;
    color: var(--gray-600);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--blue-700);
}

.player-section {
    padding-top: 24px;
}

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

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    background: rgba(2, 6, 23, 0.22);
}

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

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    color: var(--blue-700);
    background: var(--white);
    font-size: 34px;
    box-shadow: var(--shadow-xl);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding-top: 20px;
}

.detail-main,
.detail-side {
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.detail-main {
    padding: 28px;
}

.detail-main h2,
.detail-side h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 24px;
}

.detail-main p {
    margin: 0 0 24px;
    color: var(--gray-600);
    font-size: 17px;
}

.detail-side {
    padding: 24px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-list li {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 14px;
    background: var(--gray-50);
}

.info-list strong {
    color: var(--gray-500);
    font-size: 13px;
}

.site-footer {
    color: #d1d5db;
    background: var(--gray-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px;
}

.footer-brand {
    color: var(--white);
    font-size: 19px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 17px;
}

.site-footer p {
    margin: 12px 0 0;
    color: #9ca3af;
    font-size: 14px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.site-footer a:hover {
    color: #60a5fa;
}

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

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

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

    .menu-button {
        display: block;
    }

    .hero-slider {
        min-height: auto;
        padding-top: 54px;
    }

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

    .hero-poster,
    .hero-poster img,
    .detail-poster img {
        min-height: 320px;
    }

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

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

    .rank-item {
        grid-template-columns: 48px 104px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 560px) {
    .nav-shell,
    .mobile-panel,
    .quick-search-panel,
    .content-section,
    .filter-panel,
    .rank-list,
    .detail-layout,
    .player-section,
    .detail-hero,
    .page-hero > div {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

    .search-box button {
        min-height: 46px;
    }

    .rank-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .rank-thumb {
        display: none;
    }
}
