:root {
    --site-blue: #0096dc;
    --site-blue-dark: #0077b6;
    --site-blue-light: #4db8e8;
    --site-red: #e63946;
    --site-yellow: #ffd700;
    --site-yellow-dark: #ffc700;
    --site-cream: #fff9e6;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-soft: #f3f8ff;
    --bg-card: #ffffff;
    --shadow-soft: 0 18px 45px rgba(0, 58, 96, 0.13);
    --shadow-hover: 0 26px 60px rgba(0, 58, 96, 0.22);
    --radius-large: 28px;
    --radius-medium: 20px;
    --radius-small: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main);
    background: linear-gradient(180deg, #eef9ff 0%, #ffffff 38%, #fff9e6 100%);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(0, 150, 220, 0.12);
    box-shadow: 0 10px 30px rgba(0, 75, 120, 0.08);
    backdrop-filter: blur(18px);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: var(--site-blue-dark);
    letter-spacing: 0.02em;
}

.logo::before,
.footer-logo::before {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0 18%, var(--site-yellow) 19% 42%, var(--site-red) 43% 58%, var(--site-blue) 59% 100%);
    box-shadow: 0 10px 20px rgba(0, 150, 220, 0.24);
}

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

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-blue), var(--site-blue-light));
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--site-blue);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.mobile-nav .nav-link {
    display: block;
    margin: 4px 0;
}

.mobile-category-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
}

.mobile-category-row a,
.quick-links a,
.category-samples a,
.footer-links a {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(0, 150, 220, 0.08);
    color: var(--site-blue-dark);
    font-weight: 700;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    color: #ffffff;
    background: var(--site-blue-dark);
}

.hero-slide {
    display: none;
    min-height: 680px;
    background-image: linear-gradient(90deg, rgba(0, 28, 56, 0.88), rgba(0, 92, 140, 0.58), rgba(0, 0, 0, 0.35)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    display: block;
    animation: heroFade 0.6s ease both;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: scale(1.015);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.35), transparent 25%), radial-gradient(circle at 20% 82%, rgba(77, 184, 232, 0.32), transparent 28%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 48px;
    align-items: center;
    padding: 80px 0;
}

.hero-text {
    max-width: 760px;
}

.hero-kicker,
.section-heading span,
.page-hero span,
.category-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 215, 0, 0.95);
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
}

.hero-text h1,
.hero-text h2 {
    margin: 22px 0 10px;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 16px 38px rgba(0, 0, 0, 0.25);
}

.hero-text strong {
    display: block;
    margin-bottom: 16px;
    font-size: clamp(24px, 4vw, 42px);
    color: var(--site-yellow);
}

.hero-text p {
    max-width: 660px;
    margin: 0 0 28px;
    font-size: clamp(17px, 2.3vw, 23px);
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.detail-info-card .primary-button,
.page-hero .primary-button {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.ghost-button,
.home-search button,
.rank-watch,
.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.primary-button,
.home-search button,
.rank-watch {
    color: #1f2937;
    background: linear-gradient(135deg, var(--site-yellow), var(--site-yellow-dark));
    box-shadow: 0 14px 26px rgba(255, 199, 0, 0.28);
}

.ghost-button,
.filter-pill {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.home-search button:hover,
.rank-watch:hover,
.filter-pill:hover,
.filter-pill.is-active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.filter-pill.is-active,
.filter-pill:hover {
    color: #ffffff;
    background: var(--site-blue);
}

.hero-poster {
    position: relative;
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-radius: 34px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: rotate(2deg);
}

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

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

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

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

.search-band,
.section-block,
.category-preview {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.search-band {
    position: relative;
    z-index: 5;
    margin-top: -56px;
    padding: 22px;
    border-radius: var(--radius-large);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.home-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(0, 150, 220, 0.16);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--text-main);
    background: #ffffff;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--site-blue);
    box-shadow: 0 0 0 4px rgba(0, 150, 220, 0.14);
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.section-block,
.category-preview {
    padding: 68px 0 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-info-card h1,
.detail-main-text h2,
.detail-table-card h2 {
    margin: 10px 0 0;
    color: var(--text-main);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

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

.slim-heading h2 {
    font-size: clamp(24px, 3vw, 34px);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-medium);
    background: var(--bg-card);
    box-shadow: 0 12px 30px rgba(0, 78, 126, 0.09);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--site-blue), var(--site-yellow));
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
    transition: transform 0.32s ease, opacity 0.32s ease;
}

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

.poster-mask {
    position: absolute;
    inset: auto 14px 14px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.62);
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-mask {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    background: var(--site-yellow);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

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

.movie-card-title {
    display: block;
    min-height: 48px;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
}

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

.movie-line {
    min-height: 42px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--site-blue-dark);
    background: rgba(0, 150, 220, 0.09);
    font-size: 12px;
    font-weight: 800;
}

.accent-section {
    margin-top: 58px;
    padding: 58px 28px 36px;
    border-radius: var(--radius-large);
    background: linear-gradient(135deg, rgba(0, 150, 220, 0.09), rgba(255, 215, 0, 0.18));
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

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

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

.category-card a {
    display: block;
    min-height: 190px;
    padding: 22px;
    border-radius: var(--radius-medium);
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(0, 88, 140, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2 {
    margin: 14px 0 8px;
    font-size: 24px;
    color: var(--text-main);
}

.category-card p {
    margin: 0;
    color: var(--text-muted);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: var(--radius-large);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.side-list {
    display: grid;
    gap: 14px;
}

.side-movie {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(0, 150, 220, 0.06);
}

.side-movie img {
    width: 74px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.side-movie strong,
.side-movie em {
    display: block;
}

.side-movie strong {
    color: var(--text-main);
    font-weight: 900;
}

.side-movie em {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
    font-style: normal;
}

.page-hero,
.detail-hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 52px;
    overflow: hidden;
    border-radius: var(--radius-large);
    background: linear-gradient(135deg, #e4f6ff, #fff9e6);
    box-shadow: var(--shadow-soft);
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.page-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--text-muted);
    font-size: 18px;
}

.ranking-hero {
    color: #ffffff;
    background-image: linear-gradient(90deg, rgba(0, 34, 62, 0.86), rgba(0, 119, 182, 0.62)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.ranking-hero h1,
.ranking-hero p {
    color: #ffffff;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--radius-medium);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 78, 126, 0.08);
}

.filter-panel input {
    flex: 1 1 280px;
}

.filter-panel select {
    flex: 0 1 180px;
}

.filter-panel .filter-pill {
    color: var(--site-blue-dark);
    background: rgba(0, 150, 220, 0.08);
    border: 0;
}

.filter-panel .filter-pill.is-active,
.filter-panel .filter-pill:hover {
    color: #ffffff;
    background: var(--site-blue);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 86px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-medium);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 78, 126, 0.08);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 18px;
    color: #1f2937;
    background: var(--site-yellow);
    font-weight: 900;
}

.rank-cover img {
    width: 86px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
}

.rank-title {
    color: var(--text-main);
    font-size: 20px;
    font-weight: 900;
}

.rank-row p,
.rank-row span {
    display: block;
    margin: 4px 0 0;
    color: var(--text-muted);
}

.detail-hero {
    padding: 26px;
    background: linear-gradient(135deg, rgba(0, 150, 220, 0.16), rgba(255, 215, 0, 0.18));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 24px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    border-radius: var(--radius-large);
    background: #050b13;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: #000000;
    object-fit: contain;
}

.play-button {
    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, 0, 0, 0.15), rgba(0, 0, 0, 0.52));
    cursor: pointer;
    z-index: 3;
}

.play-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: #1f2937;
    background: var(--site-yellow);
    font-size: 34px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.play-button b {
    font-size: 18px;
}

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

.detail-info-card {
    display: grid;
    gap: 18px;
    padding: 20px;
    border-radius: var(--radius-large);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-info-card img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 22px;
}

.detail-info-card span {
    color: var(--site-blue-dark);
    font-weight: 900;
}

.detail-info-card p {
    color: var(--text-muted);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.detail-main-text,
.detail-table-card {
    padding: 30px;
    border-radius: var(--radius-large);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 78, 126, 0.08);
}

.detail-main-text h2,
.detail-table-card h2 {
    font-size: 28px;
}

.detail-main-text p {
    color: #374151;
    font-size: 17px;
}

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

.large-tags span {
    font-size: 14px;
    padding: 6px 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

th,
td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 150, 220, 0.12);
    text-align: left;
    vertical-align: top;
}

th {
    width: 76px;
    color: var(--site-blue-dark);
}

td {
    color: var(--text-muted);
}

.prev-next {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.prev-next a {
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--site-blue-dark);
    background: rgba(0, 150, 220, 0.08);
    font-weight: 800;
}

.site-footer {
    margin-top: 80px;
    padding: 44px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #005f91, #0096dc);
}

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

.footer-logo {
    color: #ffffff;
}

.footer-inner p {
    color: rgba(255, 255, 255, 0.82);
}

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

.footer-links a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.is-hidden {
    display: none !important;
}

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

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

    .two-column-section,
    .detail-content,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: flex;
    }

    .hero-slider,
    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 58px 0 86px;
    }

    .hero-poster {
        max-width: 320px;
        transform: none;
    }

    .page-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 34px;
    }

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

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

    .rank-row {
        grid-template-columns: 48px 76px minmax(0, 1fr);
    }

    .rank-watch {
        grid-column: 2 / -1;
        width: fit-content;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .site-header-inner {
        width: min(100% - 20px, 1180px);
    }

    .logo {
        font-size: 20px;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: 42px;
    }

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

    .section-heading {
        display: block;
    }

    .movie-grid,
    .compact-grid,
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero,
    .page-hero,
    .detail-main-text,
    .detail-table-card {
        padding: 22px;
    }

    .player-shell,
    .movie-video {
        min-height: 240px;
    }
}
