html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: linear-gradient(135deg, #ecfeff 0%, #ffffff 46%, #fdf2f8 100%);
    -webkit-font-smoothing: antialiased;
}

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: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 12px 22px rgba(14, 165, 233, 0.35);
    font-size: 15px;
}

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

.nav-link,
.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: #475569;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #0891b2;
    background: #ecfeff;
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    width: min(310px, 32vw);
    padding: 4px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.header-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 9px 12px;
    color: #0f172a;
    background: transparent;
}

.header-search button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.header-search button {
    padding: 9px 16px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
}

.secondary-button {
    color: #0e7490;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #ecfeff;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: #0891b2;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

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

.hero-slider {
    position: relative;
    min-height: clamp(520px, 62vw, 660px);
    overflow: hidden;
    color: #ffffff;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
}

.hero-slide.active .hero-backdrop {
    animation: heroZoom 7s ease both;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 26%, rgba(6, 182, 212, 0.34), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.56) 50%, rgba(15, 23, 42, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: clamp(520px, 62vw, 660px);
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(720px, 100%);
    padding: 96px 0 110px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 20px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(15, 23, 42, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
}

.hero-copy p {
    max-width: 700px;
    margin: 0 0 28px;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-tags span,
.movie-tags span,
.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-meta span {
    color: #cffafe;
    background: rgba(8, 145, 178, 0.22);
    border: 1px solid rgba(103, 232, 249, 0.26);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.quick-categories,
.content-section,
.page-section,
.detail-section {
    padding: 44px 0;
}

.quick-categories .chip-row,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-chip {
    color: #334155;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    transform: translateY(-2px);
}

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

.section-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e293b;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-title::before {
    content: "";
    width: 8px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #06b6d4, #2563eb);
}

.section-heading a {
    color: #0891b2;
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 52px rgba(15, 23, 42, 0.14);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.movie-card-large .movie-cover {
    aspect-ratio: 16 / 9;
}

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

.movie-card:hover .movie-cover img {
    transform: scale(1.08);
    filter: saturate(1.06) contrast(1.04);
}

.movie-year,
.rank-badge,
.watch-pill {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
}

.movie-year {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
}

.rank-badge {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
}

.watch-pill {
    left: 50%;
    bottom: 14px;
    padding: 9px 14px;
    color: #ffffff;
    background: rgba(8, 145, 178, 0.92);
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.28);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .watch-pill {
    opacity: 1;
    transform: translate(-50%, 0);
}

.movie-info {
    padding: 18px;
}

.movie-meta-line,
.movie-card-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.movie-info h3 {
    margin: 8px 0 8px;
    color: #111827;
    font-size: 20px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: #0891b2;
}

.movie-info p {
    display: -webkit-box;
    margin: 0 0 14px;
    min-height: 46px;
    color: #64748b;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-tags span,
.detail-tags span {
    color: #0e7490;
    background: #ecfeff;
}

.movie-card-bottom {
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.feature-band {
    padding: 50px 0;
    background: linear-gradient(90deg, #cffafe, #dbeafe, #fce7f3);
}

.page-hero {
    padding: 66px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 25%),
        linear-gradient(135deg, #0891b2, #2563eb 70%, #7c3aed);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #dffafe;
    font-size: 18px;
    line-height: 1.8;
}

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

.category-card {
    min-height: 180px;
    padding: 24px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(3n + 2) {
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #ec4899, #ef4444);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 54px rgba(37, 99, 235, 0.24);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.category-card span {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
    font-weight: 900;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 30px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.search-panel input {
    width: 100%;
    border: 1px solid #bae6fd;
    outline: none;
    border-radius: 18px;
    padding: 14px 16px;
    color: #0f172a;
    background: #f8fafc;
}

.search-panel input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.search-panel button {
    border: 0;
    border-radius: 18px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    font-weight: 900;
    cursor: pointer;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 64px 132px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.rank-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-size: 20px;
    font-weight: 900;
}

.rank-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
}

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

.rank-main h2,
.rank-main h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 22px;
}

.rank-main p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.rank-heat {
    color: #0891b2;
    font-weight: 900;
    white-space: nowrap;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #64748b;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #0891b2;
}

.player-panel,
.detail-card,
.review-card,
.sidebar-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
}

.player-panel {
    overflow: hidden;
    background: #020617;
}

.movie-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.movie-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.player-layer.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 20px 45px rgba(8, 145, 178, 0.42);
    font-size: 32px;
}

.player-status {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fee2e2;
    text-align: center;
    font-weight: 700;
}

.detail-card,
.review-card,
.sidebar-card {
    padding: 26px;
    margin-top: 22px;
}

.detail-card h1 {
    margin: 0 0 14px;
    color: #111827;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    color: #64748b;
    font-weight: 800;
}

.detail-card h2,
.review-card h2,
.sidebar-card h2 {
    margin: 24px 0 12px;
    color: #1e293b;
    font-size: 24px;
}

.detail-card h2:first-child,
.review-card h2:first-child,
.sidebar-card h2:first-child {
    margin-top: 0;
}

.detail-card p,
.review-card p {
    color: #475569;
    line-height: 1.9;
    font-size: 17px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    color: #475569;
    line-height: 1.7;
}

.info-grid strong {
    color: #0f172a;
}

.sidebar {
    position: sticky;
    top: 96px;
}

.sidebar .movie-card {
    margin-bottom: 18px;
}

.site-footer {
    margin-top: 60px;
    color: #e2e8f0;
    background: linear-gradient(135deg, #0f172a, #172554 55%, #111827);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 34px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 12px;
}

.site-footer p {
    max-width: 520px;
    color: #cbd5e1;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

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

.site-footer a:hover {
    color: #67e8f9;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

@keyframes heroZoom {
    from {
        transform: scale(1.04);
    }
    to {
        transform: scale(1.1);
    }
}

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

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

    .sidebar {
        position: static;
    }
}

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

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

    .site-header-inner {
        min-height: 66px;
    }

    .hero-copy {
        padding-top: 86px;
    }

    .rank-row {
        grid-template-columns: 48px 98px 1fr;
    }

    .rank-heat {
        grid-column: 2 / -1;
    }

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

@media (max-width: 640px) {
    .container,
    .site-header-inner,
    .mobile-nav,
    .hero-content,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .site-logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
        border-radius: 12px;
    }

    .hero-slider,
    .hero-content {
        min-height: 560px;
    }

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

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

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

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

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

    .rank-row {
        grid-template-columns: 42px 1fr;
    }

    .rank-thumb {
        grid-column: 1 / -1;
    }

    .rank-heat {
        grid-column: 1 / -1;
    }

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