:root {
    --cyan: #0891b2;
    --blue: #2563eb;
    --teal: #0d9488;
    --deep: #0f172a;
    --slate: #334155;
    --muted: #64748b;
    --soft: #f0fdfa;
    --card: #ffffff;
    --line: rgba(15, 23, 42, 0.08);
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--deep);
    background: linear-gradient(180deg, #ecfeff 0%, #eff6ff 44%, #f0fdfa 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
    box-shadow: 0 12px 32px rgba(14, 116, 144, 0.22);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 18px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--blue);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
}

.brand-text {
    white-space: nowrap;
    font-size: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 600;
}

.main-nav a,
.mobile-nav a {
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
    color: #cffafe;
    transform: translateY(-1px);
}

.nav-search,
.mobile-search,
.large-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.large-search input {
    width: 230px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    outline: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 10px 16px;
    backdrop-filter: blur(14px);
}

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

.nav-search button,
.mobile-search button,
.large-search button,
.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.mobile-search button,
.large-search button,
.primary-button {
    color: var(--blue);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

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

.primary-button:hover,
.ghost-button:hover,
.nav-search button:hover,
.mobile-search button:hover,
.large-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    background: rgba(14, 116, 144, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav.is-open {
    display: grid;
    gap: 12px;
}

.mobile-search input {
    width: 100%;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: var(--deep);
}

.hero-stage {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
    pointer-events: none;
}

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

.hero-slide::before,
.detail-hero::before,
.sub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.18), transparent 28%),
        radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.16), transparent 24%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 48px;
    padding: 90px 0 150px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #06b6d4;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.sub-hero .eyebrow,
.detail-copy .eyebrow {
    color: #cffafe;
}

.hero-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    font-weight: 900;
    text-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #e0f2fe;
    font-size: 20px;
    line-height: 1.8;
}

.hero-tags,
.mini-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-meta span {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

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

.hero-poster {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    z-index: 5;
    right: 34px;
    top: 50%;
    display: grid;
    gap: 12px;
    transform: translateY(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

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

.hero-thumbs {
    position: absolute;
    z-index: 6;
    right: 0;
    bottom: 26px;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.hero-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    opacity: 0.72;
}

.hero-thumb.is-active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.18);
}

.hero-thumb img {
    width: 48px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-thumb span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

.section-block {
    padding: 58px 0;
}

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

.section-heading h2,
.filter-panel h2,
.text-panel h2 {
    margin: 0;
    color: var(--deep);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
}

.section-heading a,
.text-link {
    color: var(--cyan);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

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

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

.rank-badge {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    display: grid;
    min-width: 34px;
    height: 34px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.35);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #475569;
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mini-tags span {
    border-radius: 999px;
    padding: 4px 8px;
    color: #0e7490;
    background: #cffafe;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card,
.category-overview-card,
.text-panel,
.filter-panel,
.top-rank-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

.category-card {
    position: relative;
    min-height: 220px;
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    filter: saturate(1.05) brightness(0.78);
}

.category-card div {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 22px;
    color: #ffffff;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.86));
}

.category-card span,
.category-overview-card h2,
.top-rank-card h2 {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p,
.category-overview-card p,
.top-rank-card p {
    margin: 0;
    line-height: 1.7;
}

.category-overview-card {
    padding: 22px;
}

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

.category-samples a {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: var(--slate);
    font-weight: 800;
}

.category-samples img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.category-samples span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sub-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue), var(--teal));
}

.sub-hero .container {
    position: relative;
    z-index: 2;
    padding: 78px 0;
}

.sub-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 900;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: #e0f2fe;
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.filter-panel {
    padding: 22px;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-controls input,
.filter-controls select {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--slate);
    background: #ffffff;
    outline: none;
}

.empty-state {
    margin-top: 18px;
    padding: 28px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 20px;
}

.top-rank-card {
    position: relative;
    min-height: 360px;
    color: #ffffff;
}

.top-rank-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    filter: brightness(0.68);
}

.top-rank-card div {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 26px;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.92));
}

.top-rank-card span {
    display: inline-flex;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 6px 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
}

.detail-hero {
    background-position: center;
    background-size: cover;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 62px 0 72px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    gap: 44px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

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

.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
}

.detail-one-line {
    max-width: 820px;
    margin: 22px 0 0;
    color: #e0f2fe;
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags {
    margin-top: 22px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    background: #020617;
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.24);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    color: var(--blue);
    background: #ffffff;
    border-radius: 999px;
    font-size: 32px;
    box-shadow: 0 16px 44px rgba(255, 255, 255, 0.22);
}

.play-overlay strong {
    font-size: 22px;
}

.video-frame.is-playing .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.text-panel {
    padding: 28px;
}

.text-panel p {
    margin: 16px 0 0;
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
}

.site-footer {
    margin-top: 44px;
    color: #ffffff;
    background: linear-gradient(180deg, #1e293b, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 36px;
    padding: 46px 0;
}

.footer-grid p,
.footer-grid li {
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 900;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

.large-search {
    max-width: 680px;
    margin-top: 28px;
}

.large-search input {
    flex: 1;
    width: auto;
    min-height: 54px;
}

.large-search button {
    min-height: 54px;
    padding: 0 28px;
}

@media (max-width: 1180px) {
    .main-nav {
        gap: 12px;
        font-size: 14px;
    }

    .nav-search input {
        width: 180px;
    }

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

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

    .mobile-menu-button {
        display: block;
    }

    .hero-stage {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 68px 0 180px;
    }

    .hero-poster {
        width: min(260px, 80vw);
        transform: none;
    }

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

    .hero-thumb:nth-child(n + 5) {
        display: none;
    }

    .movie-grid,
    .all-movie-grid,
    .category-grid,
    .category-overview-grid,
    .top-rank-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-poster {
        width: min(280px, 72vw);
    }

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

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

    .brand-text {
        font-size: 18px;
    }

    .hero-stage {
        min-height: 780px;
    }

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

    .hero-copy p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-controls {
        top: auto;
        right: 18px;
        bottom: 120px;
        display: flex;
        transform: none;
    }

    .hero-dot.is-active {
        width: 34px;
        height: 12px;
    }

    .hero-thumbs {
        grid-template-columns: 1fr;
    }

    .hero-thumb:nth-child(n + 3) {
        display: none;
    }

    .movie-grid,
    .all-movie-grid,
    .category-grid,
    .category-overview-grid,
    .top-rank-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-overview-grid,
    .top-rank-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .filter-controls,
    .filter-controls input,
    .filter-controls select,
    .large-search,
    .large-search input,
    .large-search button {
        width: 100%;
    }

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

    .movie-card h3 {
        font-size: 15px;
    }
}
