html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: #f0f9ff;
    color: #1f2937;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, #0ea5e9, #3b82f6, #06b6d4);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.24);
}
.site-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.03em;
    flex: 0 0 auto;
}
.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #2563eb;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    transition: transform 0.2s ease;
}
.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-4deg);
}
.brand-name {
    font-size: 21px;
    white-space: nowrap;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: 8px;
}
.nav-links a,
.nav-dropdown > a {
    color: #ffffff;
    font-weight: 650;
    transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-dropdown > a:hover {
    color: #fef08a;
}
.nav-dropdown {
    position: relative;
}
.dropdown-panel {
    position: absolute;
    left: 0;
    top: 34px;
    width: 220px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}
.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-panel a {
    display: block;
    color: #374151;
    padding: 10px 12px;
    border-radius: 10px;
}
.dropdown-panel a:hover {
    background: #e0f2fe;
    color: #0369a1;
}
.nav-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-search input,
.filter-input,
.filter-select,
.hero-search input {
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    padding: 12px 16px;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.12);
}
.nav-search input {
    width: 230px;
}
.nav-search button,
.hero-search button,
.primary-button,
.secondary-button,
.player-overlay button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.nav-search button {
    padding: 11px 18px;
    background: #ffffff;
    color: #2563eb;
}
.nav-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.hero-search button:hover,
.player-overlay button:hover {
    transform: translateY(-1px) scale(1.02);
}
.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 24px;
    width: 44px;
    height: 44px;
}
.mobile-menu {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}
.mobile-menu a {
    display: block;
    color: #ffffff;
    padding: 10px 0;
    font-weight: 700;
}
.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(120deg, #06b6d4 0%, #3b82f6 52%, #0ea5e9 100%);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.25), transparent 34%), radial-gradient(circle at 84% 30%, rgba(14, 165, 233, 0.45), transparent 36%), linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.36));
}
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    background: linear-gradient(0deg, #f0f9ff, rgba(240, 249, 255, 0));
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 640px;
    margin: 0 auto;
    padding: 72px 24px 108px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: 52px;
}
.hero-slide {
    display: none;
}
.hero-slide.active {
    display: block;
    animation: fadeUp 0.6s ease both;
}
.hero-kicker,
.section-kicker,
.badge-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ecfeff;
    font-weight: 750;
    backdrop-filter: blur(12px);
}
.hero h1 {
    margin: 18px 0 16px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
}
.hero p {
    max-width: 680px;
    color: #cffafe;
    font-size: 20px;
    line-height: 1.85;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 26px;
}
.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}
.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(14px);
}
.hero-search {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    max-width: 560px;
}
.hero-search input {
    flex: 1;
    border-radius: 18px;
    padding: 16px 18px;
}
.hero-search button {
    padding: 0 22px;
    background: #facc15;
    color: #0f172a;
}
.hero-stage {
    position: relative;
}
.hero-poster {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    min-height: 460px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
    transform: rotate(1deg);
}
.hero-poster img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}
.hero-poster-info {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    backdrop-filter: blur(18px);
}
.hero-poster-info strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}
.hero-poster-info span {
    color: #bae6fd;
}
.hero-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 22px;
}
.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}
.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-size: 22px;
}
.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
}
.hero-dot.active {
    width: 28px;
    background: #ffffff;
}
.main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}
.page-hero {
    background: linear-gradient(135deg, #0ea5e9, #2563eb 55%, #06b6d4);
    color: #ffffff;
    border-radius: 30px;
    padding: 48px;
    margin-bottom: 36px;
    box-shadow: 0 24px 70px rgba(37, 99, 235, 0.24);
}
.page-hero h1 {
    margin: 14px 0;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
}
.page-hero p {
    max-width: 880px;
    color: #dff7ff;
    font-size: 18px;
    line-height: 1.85;
}
.section {
    margin: 0 0 58px;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 32px;
    color: #1f2937;
    font-weight: 900;
}
.section-title span {
    color: #f59e0b;
}
.section-desc {
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.7;
}
.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.movie-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 58px rgba(14, 165, 233, 0.18);
}
.poster-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}
.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.movie-card:hover .poster-link img {
    transform: scale(1.06);
}
.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 45%, rgba(15, 23, 42, 0.62));
}
.play-dot {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    color: #2563eb;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.2);
}
.rank-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #facc15, #fb923c);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}
.movie-card-body {
    padding: 18px;
}
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #0284c7;
    font-size: 13px;
    font-weight: 750;
}
.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #e0f2fe;
}
.movie-card h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 850;
}
.movie-card h3 a:hover {
    color: #0284c7;
}
.movie-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.72;
    font-size: 14px;
}
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #e0f2fe);
    box-shadow: 0 14px 36px rgba(14, 165, 233, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(37, 99, 235, 0.16);
}
.category-card::after {
    content: "";
    position: absolute;
    width: 112px;
    height: 112px;
    right: -28px;
    bottom: -28px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.18);
}
.category-card h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
}
.category-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.75;
}
.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin: 0 0 26px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.filter-input {
    min-width: 260px;
    flex: 1;
    border-radius: 16px;
    background: #f8fafc;
}
.filter-select {
    border-radius: 16px;
    background: #f8fafc;
}
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.86fr);
    gap: 32px;
}
.player-card,
.content-card,
.side-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}
.player-shell {
    position: relative;
    background: #000000;
    aspect-ratio: 16 / 9;
}
.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}
.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.48));
    z-index: 4;
}
.player-overlay.is-hidden {
    display: none;
}
.player-overlay button {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #2563eb;
    font-size: 34px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}
.content-card {
    margin-top: 24px;
    padding: 28px;
}
.content-card h1 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
}
.breadcrumb {
    color: #0284c7;
    font-size: 14px;
    margin: 0 0 18px;
}
.info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 22px;
}
.info-strip span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 750;
    font-size: 13px;
}
.content-card h2,
.side-card h2 {
    margin: 28px 0 14px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}
.content-card p {
    color: #475569;
    line-height: 1.9;
    font-size: 16px;
}
.side-card {
    padding: 22px;
}
.side-list {
    display: grid;
    gap: 16px;
}
.side-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}
.side-item img {
    width: 120px;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    object-fit: cover;
}
.side-item strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
}
.side-item span {
    display: block;
    color: #64748b;
    margin-top: 7px;
    font-size: 13px;
}
.search-results-note {
    color: #64748b;
    margin: 0 0 20px;
}
.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 46px 24px 24px;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 32px;
}
.footer-brand {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 12px;
}
.footer-inner p {
    color: #9ca3af;
    line-height: 1.8;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-content: start;
}
.footer-links a {
    color: #d1d5db;
}
.footer-links a:hover {
    color: #67e8f9;
}
.footer-copy {
    max-width: 1280px;
    margin: 30px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 14px;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 1100px) {
    .movie-grid,
    .movie-grid.three,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .hero-stage {
        max-width: 620px;
    }
}
@media (max-width: 820px) {
    .site-nav {
        min-height: 66px;
        padding: 0 16px;
    }
    .nav-links,
    .nav-search {
        display: none;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-menu.is-open {
        display: block;
    }
    .brand-name {
        font-size: 18px;
    }
    .hero-inner {
        padding: 52px 18px 90px;
        min-height: auto;
    }
    .hero-poster img {
        height: 380px;
    }
    .hero-search {
        flex-direction: column;
    }
    .hero-search button {
        min-height: 50px;
    }
    .main {
        padding: 34px 16px 56px;
    }
    .page-hero {
        padding: 32px 22px;
        border-radius: 24px;
    }
    .movie-grid,
    .movie-grid.three,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .section-head {
        align-items: start;
        flex-direction: column;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 540px) {
    .movie-grid,
    .movie-grid.three,
    .category-grid {
        grid-template-columns: 1fr;
    }
    .side-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }
    .side-item img {
        width: 96px;
    }
    .content-card {
        padding: 22px;
    }
}
