:root {
    --cyan: #06b6d4;
    --blue: #2563eb;
    --deep-blue: #1d4ed8;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --card: #ffffff;
    --footer: #111827;
    --radius: 1rem;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #f3f4f6;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    font-size: 1.85rem;
    transition: transform 0.25s ease;
}

.site-logo:hover .logo-mark {
    transform: scale(1.12) rotate(-6deg);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav-link,
.dropdown-trigger {
    color: #ffffff;
    border: 0;
    cursor: pointer;
    opacity: 0.95;
    background: transparent;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.dropdown-trigger:hover {
    color: #cffafe;
    opacity: 1;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    display: grid;
    gap: 0.15rem;
    min-width: 180px;
    padding: 0.55rem;
    color: #1f2937;
    background: #ffffff;
    border-radius: 0.8rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.25s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
}

.dropdown-panel a:hover {
    background: #ecfeff;
    color: #0e7490;
}

.mobile-toggle {
    display: none;
    color: #ffffff;
    border: 0;
    padding: 0.45rem 0.65rem;
    border-radius: 0.65rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

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

.mobile-menu-inner {
    display: grid;
    gap: 0.35rem;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0.75rem 0 1rem;
}

.mobile-menu-inner a {
    padding: 0.55rem 0;
}

.mobile-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 0.8rem;
    padding-top: 0.35rem;
    color: #dff9ff;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: linear-gradient(135deg, #22d3ee, #2563eb 58%, #1d4ed8);
}

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

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

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.16);
    transform: scale(1.06);
    opacity: 0.34;
}

.hero-overlay {
    background: radial-gradient(circle at 80% 45%, rgba(255, 255, 255, 0.18), transparent 26%), linear-gradient(90deg, rgba(8, 47, 73, 0.86), rgba(37, 99, 235, 0.72), rgba(14, 116, 144, 0.62));
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 3rem;
    min-height: 620px;
    color: #ffffff;
}

.hero-copy {
    max-width: 740px;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 1rem;
    padding: 0.45rem 0.8rem;
    color: #cffafe;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.hero-copy h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(2.15rem, 5vw, 4.45rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    font-weight: 800;
}

.hero-summary {
    margin: 0 0 1.35rem;
    color: #ecfeff;
    font-size: 1.1rem;
    line-height: 1.85;
}

.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.6rem;
    color: #0369a1;
    background: #ecfeff;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.55rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.76rem 1.15rem;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(255, 255, 255, 0.22);
}

.btn-outline {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.84);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
    color: #cffafe;
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.75rem;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.36);
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.hero-poster span {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #1d4ed8;
    background: #ffffff;
    border-radius: 50%;
    font-weight: 900;
    box-shadow: 0 15px 28px rgba(15, 23, 42, 0.25);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 4;
    display: flex;
    gap: 0.45rem;
    transform: translateX(-50%);
}

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.22s ease, background 0.22s ease;
}

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

.section {
    padding: 4.5rem 0;
}

.section-tight {
    padding: 3rem 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.55rem;
}

.section-heading h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-title p,
.detail-title p {
    margin: 0.5rem 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.link-more {
    color: #0e7490;
    font-weight: 800;
}

.feature-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

.feature-card,
.category-card,
.info-card,
.search-box,
.player-panel {
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.feature-card {
    padding: 1.35rem;
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover,
.category-card:hover,
.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 0.85rem;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    border-radius: 1rem;
    font-size: 1.5rem;
}

.feature-card h3,
.category-card strong {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
}

.feature-card p,
.category-card em {
    margin: 0;
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
}

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

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

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

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

.movie-year {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.18rem 0.52rem;
    color: #ffffff;
    background: rgba(14, 116, 144, 0.9);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.play-corner {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #2563eb;
    background: #ffffff;
    border-radius: 50%;
    font-size: 0.85rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
}

.movie-card-body {
    padding: 0.95rem;
}

.movie-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    line-height: 1.35;
}

.movie-card h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    margin: 0 0 0.55rem;
    color: #0891b2;
    font-size: 0.82rem;
    font-weight: 700;
}

.movie-line {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0 0 0.75rem;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    min-height: 24px;
    font-size: 0.74rem;
}

.category-card {
    position: relative;
    min-height: 168px;
    overflow: hidden;
    padding: 1.15rem;
    color: #ffffff;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
    transform: scale(1.03);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.72), rgba(37, 99, 235, 0.62));
}

.category-card > * {
    position: relative;
    z-index: 2;
}

.category-icon {
    display: inline-flex;
    margin-bottom: 1.65rem;
    font-size: 1.7rem;
}

.category-card em {
    color: #e0f2fe;
}


.ranking-mini-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.ranking-mini {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem;
    background: #ffffff;
    border-radius: 0.95rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ranking-mini:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.ranking-mini span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    border-radius: 50%;
    font-weight: 900;
}

.ranking-mini strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-mini em {
    color: #0e7490;
    font-style: normal;
    font-weight: 800;
}

.page-hero {
    padding: 4.6rem 0;
    color: #ffffff;
    background: linear-gradient(135deg, #22d3ee, #2563eb 62%, #1e40af);
}

.page-title {
    max-width: 760px;
}

.page-title p {
    color: #ecfeff;
}

.search-box {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0.8rem;
    padding: 1rem;
    margin: -2rem auto 2rem;
    position: relative;
    z-index: 5;
}

.search-box input,
.search-box select {
    width: 100%;
    min-height: 46px;
    padding: 0 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: #ffffff;
    outline: none;
}

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

.no-results {
    display: none;
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border-radius: var(--radius);
}

.no-results.is-visible {
    display: block;
}

.ranking-list {
    display: grid;
    gap: 0.85rem;
}

.ranking-item {
    display: grid;
    grid-template-columns: 64px 92px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    border-radius: 50%;
    font-weight: 900;
}

.ranking-item img {
    width: 92px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.ranking-info h3 {
    margin: 0 0 0.45rem;
    font-size: 1.1rem;
}

.ranking-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.4rem auto;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: #0e7490;
    font-weight: 700;
}

.player-section {
    padding: 1rem 0 3rem;
    background: linear-gradient(180deg, #111827, #1f2937);
}

.player-panel {
    overflow: hidden;
    background: #020617;
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

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

.video-player {
    width: 100%;
    height: 100%;
    background: #000000;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.player-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 0, rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.65) 100%);
}

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

.play-round {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    color: #2563eb;
    background: #ffffff;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.detail-title {
    padding: 1.4rem;
    color: #ffffff;
}

.detail-title h1 {
    color: #ffffff;
}

.detail-title p {
    color: #bfdbfe;
}

.detail-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

.info-card {
    padding: 1.45rem;
}

.info-card h2,
.info-card h3 {
    margin: 0 0 0.9rem;
}

.info-card p {
    color: #374151;
    line-height: 1.85;
}

.meta-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.meta-table div {
    padding: 0.78rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 0.8rem;
}

.meta-table span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.meta-table strong {
    display: block;
    margin-top: 0.22rem;
}

.content-stack {
    display: grid;
    gap: 1.3rem;
}

.site-footer {
    color: #e5e7eb;
    background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
    gap: 2rem;
    padding: 3rem 0;
}

.site-footer h3 {
    margin: 0 0 0.85rem;
    color: #ffffff;
}

.site-footer p,
.site-footer li {
    color: #9ca3af;
    line-height: 1.75;
}

.site-footer ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-logo {
    margin-bottom: 0.85rem;
    color: #ffffff;
    font-size: 1.2rem;
}

.footer-bottom {
    padding: 1rem;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

    .hero-layout {
        grid-template-columns: 1fr 250px;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
    }

    .hero-slider,
    .hero-layout {
        min-height: 680px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 1.6rem;
        padding: 2.5rem 0 5rem;
    }

    .hero-poster {
        width: min(230px, 72vw);
        justify-self: center;
        transform: rotate(0deg);
    }

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

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

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

    .detail-poster {
        max-width: 280px;
    }

    .ranking-item {
        grid-template-columns: 46px 74px minmax(0, 1fr);
    }

    .ranking-item .btn {
        grid-column: 1 / -1;
    }
}

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

    .section {
        padding: 3rem 0;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
    }

    .feature-grid,
    .category-grid,
    .ranking-mini-grid {
        grid-template-columns: 1fr;
    }

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

    .meta-table {
        grid-template-columns: 1fr;
    }
}
