:root {
    --doraemon-blue: #0077c8;
    --doraemon-blue-dark: #005eab;
    --doraemon-blue-light: #50b8f5;
    --doraemon-yellow: #ffd447;
    --doraemon-yellow-dark: #f8b90d;
    --doraemon-red: #ef3e42;
    --doraemon-cream: #fff8df;
    --text: #1f2937;
    --muted: #667085;
    --surface: #ffffff;
    --line: #e6edf5;
    --shadow: 0 22px 50px rgba(18, 52, 91, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, rgba(0, 119, 200, 0.98), rgba(80, 184, 245, 0.96));
    box-shadow: 0 12px 28px rgba(0, 94, 171, 0.25);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 74px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--doraemon-blue);
    background: var(--doraemon-yellow);
    border-radius: 999px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

.brand-text {
    display: grid;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 280px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}

.nav-search input {
    width: 100%;
    min-width: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    outline: 0;
    padding-left: 10px;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.nav-search button,
.btn-primary,
.btn-ghost,
.filter-button,
.search-submit {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.btn-primary,
.search-submit {
    color: var(--doraemon-blue);
    background: var(--doraemon-yellow);
    font-weight: 800;
}

.nav-search button {
    padding: 8px 14px;
}

.mobile-toggle {
    display: none;
    color: #ffffff;
    background: transparent;
    border: 0;
    font-size: 28px;
    cursor: pointer;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 14% 12%, rgba(255, 212, 71, 0.35), transparent 22%), linear-gradient(120deg, var(--doraemon-blue-dark), var(--doraemon-blue) 54%, var(--doraemon-blue-light));
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 212, 71, 0.18);
    border-radius: 999px;
    animation: floatBubble 6s ease-in-out infinite;
}

.hero::before {
    top: 48px;
    left: 56px;
}

.hero::after {
    right: 72px;
    bottom: 32px;
    width: 260px;
    height: 260px;
    animation-delay: 1.2s;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 48px;
    align-items: center;
    min-height: 620px;
    padding: 72px 0;
}

.hero-kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--doraemon-blue);
    background: rgba(255, 212, 71, 0.95);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.hero h1 {
    max-width: 860px;
    margin: 22px 0 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero h1 span {
    color: var(--doraemon-yellow);
}

.hero-copy {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 2vw, 24px);
}

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

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    font-weight: 900;
}

.btn-primary:hover,
.search-submit:hover,
.nav-search button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 24px rgba(248, 185, 13, 0.28);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.hero-slider {
    position: relative;
    min-height: 530px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(28px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 530px;
    border-radius: 34px;
    box-shadow: 0 32px 70px rgba(0, 30, 70, 0.4);
    background: rgba(255, 255, 255, 0.16);
}

.hero-poster img {
    width: 100%;
    height: 530px;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(0, 40, 76, 0.92));
}

.hero-poster-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 28px;
}

.hero-poster-content h2 {
    margin: 10px 0 10px;
    font-size: 28px;
    line-height: 1.2;
}

.hero-poster-content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

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

.hero-tags span,
.movie-tags span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--doraemon-blue);
    background: rgba(255, 212, 71, 0.95);
    font-size: 12px;
    font-weight: 800;
}

.slider-dots {
    position: absolute;
    right: 24px;
    bottom: 20px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

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

.slider-dot.is-active {
    width: 28px;
    background: var(--doraemon-yellow);
}

.section {
    padding: 64px 0;
}

.section.alt {
    background: linear-gradient(90deg, rgba(255, 212, 71, 0.9), rgba(248, 185, 13, 0.92));
}

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

.section-title {
    margin: 0;
    color: #182234;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.section-lead {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.section.alt .section-title,
.section.alt .section-lead {
    color: #ffffff;
}

.grid {
    display: grid;
    gap: 24px;
}

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

.movie-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(0, 119, 200, 0.08);
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(16, 55, 92, 0.11);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.movie-card.compact .movie-cover {
    aspect-ratio: 16 / 10;
}

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

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

.cover-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.68));
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: var(--doraemon-blue);
    background: rgba(255, 212, 71, 0.95);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 6px 10px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 119, 200, 0.92);
}

.badge-left {
    left: 12px;
}

.badge-right {
    right: 12px;
    background: rgba(239, 62, 66, 0.94);
}

.movie-body {
    padding: 18px;
}

.movie-body h2 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 54px;
    margin: 0 0 10px;
    color: #172033;
    font-size: 18px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-body h2 a:hover {
    color: var(--doraemon-blue);
}

.movie-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #667085;
    font-size: 13px;
}

.movie-meta span,
.rank-meta span {
    max-width: 100%;
    overflow: hidden;
    padding: 5px 9px;
    background: #f0f7ff;
    border-radius: 999px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 26px rgba(18, 52, 91, 0.1);
}

.rank-cover {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
}

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

.rank-cover span {
    position: absolute;
    top: 8px;
    left: 8px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: var(--doraemon-red);
    border-radius: 999px;
    font-weight: 900;
}

.rank-card h2 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.rank-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    color: #526071;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    position: relative;
    display: grid;
    align-content: end;
    overflow: hidden;
    min-height: 220px;
    padding: 20px;
    color: #ffffff;
    border-radius: 28px;
    box-shadow: 0 16px 38px rgba(16, 55, 92, 0.14);
}

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

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

.category-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 119, 200, 0.12), rgba(0, 42, 84, 0.88));
}

.category-card strong,
.category-card small {
    position: relative;
    z-index: 2;
}

.category-card strong {
    margin-bottom: 8px;
    font-size: 23px;
}

.category-card small {
    color: rgba(255, 255, 255, 0.82);
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(120deg, var(--doraemon-blue-dark), var(--doraemon-blue-light));
    padding: 58px 0;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.15;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.filter-panel,
.search-panel,
.detail-card,
.info-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 14px 32px rgba(16, 55, 92, 0.1);
}

.filter-panel,
.search-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 190px 190px;
    gap: 14px;
    align-items: center;
    margin-bottom: 30px;
    padding: 18px;
}

.filter-panel input,
.filter-panel select,
.search-panel input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    padding: 0 16px;
    background: #f9fbff;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-panel input:focus {
    border-color: var(--doraemon-blue-light);
    box-shadow: 0 0 0 4px rgba(80, 184, 245, 0.16);
}

.search-panel {
    grid-template-columns: minmax(240px, 1fr) auto;
}

.search-submit {
    min-height: 48px;
    padding: 0 26px;
}

.empty-state {
    padding: 36px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border-radius: 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: #526071;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--doraemon-blue);
    font-weight: 700;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.player-card {
    overflow: hidden;
    background: #07182c;
    border-radius: 30px;
    box-shadow: 0 26px 60px rgba(3, 24, 49, 0.28);
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.player-button {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    color: var(--doraemon-blue);
    background: var(--doraemon-yellow);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    font-size: 34px;
    transition: transform 0.2s ease;
}

.player-button:hover {
    transform: scale(1.08);
}

.player-title {
    padding: 24px;
    color: #ffffff;
}

.player-title h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.18;
}

.player-title p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-card h2,
.info-card h2 {
    margin: 0 0 16px;
    color: #172033;
    font-size: 25px;
}

.detail-card p {
    margin: 0 0 18px;
    color: #435268;
    font-size: 16px;
}

.info-card {
    padding: 22px;
}

.info-card + .info-card {
    margin-top: 20px;
}

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

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.info-list dt {
    color: #738096;
}

.info-list dd {
    margin: 0;
    text-align: right;
    font-weight: 700;
}

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

.site-footer {
    margin-top: 64px;
    color: #cbd5e1;
    background: #101828;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 42px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 560px;
    color: #98a2b3;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--doraemon-yellow);
    font-size: 18px;
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.site-footer a:hover {
    color: var(--doraemon-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    text-align: center;
    color: #98a2b3;
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-24px);
    }
}

@media (max-width: 1100px) {
    .hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-slider,
    .hero-poster,
    .hero-poster img {
        min-height: 420px;
        height: 420px;
    }

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

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

@media (max-width: 860px) {
    .nav-wrap {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }

    .main-nav {
        display: none;
        flex-basis: 100%;
        order: 3;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 22px;
        padding: 12px;
    }

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

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-search {
        order: 4;
        width: 100%;
    }

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

    .movie-grid,
    .rank-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel,
    .search-panel {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1200px);
    }

    .brand-text small,
    .nav-search button {
        display: none;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-slider,
    .hero-poster,
    .hero-poster img {
        min-height: 360px;
        height: 360px;
    }

    .hero-poster-content {
        padding: 20px;
    }

    .movie-grid,
    .rank-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

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

    .player-button {
        width: 74px;
        height: 74px;
    }
}
