* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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: 80;
    color: #ffffff;
    background: linear-gradient(90deg, #0891b2, #2563eb 52%, #0d9488);
    box-shadow: 0 18px 40px rgba(8, 145, 178, 0.24);
}

.header-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.logo-mark,
.footer-logo span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #0891b2;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.24);
}

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

.nav-link {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #cffafe;
    transform: translateY(-1px);
}

.header-search,
.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    padding: 11px 44px 11px 18px;
    min-width: 260px;
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.74);
}

.header-search button,
.mobile-search button {
    position: absolute;
    right: 7px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: #0891b2;
    background: #ffffff;
}

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

.mobile-panel {
    display: none;
    padding: 14px 16px 18px;
    background: rgba(14, 116, 144, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-panel.open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mobile-nav-link {
    padding: 10px 0;
    color: #ffffff;
    font-weight: 700;
}

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0891b2, #2563eb 52%, #0f766e);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 32%), linear-gradient(135deg, #0891b2, #1d4ed8 54%, #0f766e);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.26;
    filter: blur(2px) saturate(1.2);
    transform: scale(1.04);
}

.hero-bg::after,
.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.84), rgba(8, 47, 73, 0.55), rgba(13, 148, 136, 0.26));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 64px;
    padding: 68px 0 88px;
}

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

.eyebrow,
.section-heading p,
.page-hero p {
    margin: 0 0 12px;
    color: #06b6d4;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.hero-copy p {
    margin: 0;
    max-width: 660px;
    color: #e0f2fe;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.7;
}

.hero-tags,
.movie-tags,
.tag-cloud,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 28px 0 32px;
}

.hero-tags span,
.tag-cloud span,
.detail-meta span,
.movie-tags span {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    padding: 8px 13px;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero-actions,
.detail-title-row,
.section-heading,
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(8, 145, 178, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(8, 145, 178, 0.28);
}

.btn.primary {
    color: #0891b2;
    background: #ffffff;
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.btn.small {
    min-height: 38px;
    padding: 0 16px;
    color: #0e7490;
    background: #cffafe;
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 36px 90px rgba(2, 6, 23, 0.46);
    transform: rotate(2deg);
}

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

.hero-poster span,
.poster-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 34px;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.hero-poster span::before,
.poster-play::before {
    content: "";
    position: absolute;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    z-index: -1;
}

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

.hero-dot {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.38);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: -48px;
    position: relative;
    z-index: 4;
}

.quick-card,
.detail-content-card,
.side-card,
.ranking-panel,
.category-tile,
.movie-card,
.search-page-form,
.filter-bar,
.detail-poster {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.1);
}

.quick-card {
    padding: 24px;
    backdrop-filter: blur(16px);
}

.quick-card strong {
    display: block;
    color: #0f172a;
    font-size: 22px;
    margin-bottom: 8px;
}

.quick-card span {
    color: #64748b;
    line-height: 1.7;
}

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

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.05em;
}

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

.light-heading h2,
.light-heading a,
.light-heading p {
    color: #ffffff;
}

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.16);
}

.movie-link {
    display: block;
    height: 100%;
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 20% 15%, #67e8f9, transparent 34%), linear-gradient(135deg, #0891b2, #2563eb 55%, #0f766e);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82));
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.poster-play {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
}

.poster-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.poster-badges span,
.rank-badge {
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(8, 145, 178, 0.9);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.poster-badges span:nth-child(2n) {
    background: rgba(37, 99, 235, 0.9);
}

.rank-badge {
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.movie-body {
    padding: 16px;
}

.movie-body h2 {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-body h2 {
    color: #0891b2;
}

.movie-body p {
    min-height: 44px;
    margin: 0 0 12px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.movie-tags {
    margin-top: 12px;
}

.movie-tags span {
    padding: 5px 8px;
    color: #0e7490;
    background: #cffafe;
}

.compact-card .movie-tags {
    display: none;
}

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

.ranking-panel {
    padding: 24px;
    position: sticky;
    top: 92px;
}

.compact-heading {
    margin-bottom: 18px;
}

.compact-heading h2 {
    font-size: 28px;
}

.ranking-list,
.side-related {
    display: grid;
    gap: 13px;
}

.mini-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(90deg, #ecfeff, #eff6ff);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 34px rgba(8, 145, 178, 0.14);
}

.mini-cover {
    height: 58px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

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

.mini-info strong {
    display: block;
    color: #1f2937;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-info em {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
}

.mini-arrow {
    color: #0891b2;
    font-size: 24px;
    font-weight: 900;
}

.category-band {
    margin-top: 82px;
    padding: 72px 0;
    color: #ffffff;
    background: linear-gradient(120deg, #0891b2, #2563eb 52%, #0d9488);
    overflow: hidden;
}

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

.category-pills a {
    padding: 20px;
    border-radius: 18px;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.category-pills a:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-4px);
}

.page-hero {
    padding: 80px 0;
    color: #ffffff;
    background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.24), transparent 34%), linear-gradient(120deg, #0891b2, #2563eb 52%, #0d9488);
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(42px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.07em;
}

.page-hero span {
    display: block;
    max-width: 720px;
    color: #e0f2fe;
    font-size: 19px;
    line-height: 1.75;
}

.category-grid-section {
    padding: 72px 0 0;
}

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

.category-tile {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.16);
}

.category-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 178px;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    overflow: hidden;
}

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

.category-tile-body {
    padding: 20px;
}

.category-tile-body h2 {
    margin: 0 0 10px;
    color: #1f2937;
    font-size: 22px;
}

.category-tile-body p {
    margin: 0 0 16px;
    min-height: 76px;
    color: #64748b;
    line-height: 1.6;
}

.category-tile-body span {
    color: #0891b2;
    font-weight: 900;
}

.filter-bar {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 18px;
}

.filter-bar input,
.filter-bar select,
.search-page-form input {
    min-width: 180px;
    color: #1f2937;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #dbeafe;
}

.filter-bar select {
    padding-right: 36px;
}

.search-page-form {
    display: flex;
    gap: 14px;
    padding: 18px;
    margin-bottom: 18px;
}

.search-page-form input {
    flex: 1;
    border-radius: 18px;
}

.search-page-form button {
    border: 0;
    border-radius: 18px;
    padding: 0 28px;
    color: #ffffff;
    background: linear-gradient(90deg, #0891b2, #2563eb);
    font-weight: 900;
    cursor: pointer;
}

.search-status {
    margin: 14px 0 24px;
    color: #475569;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    padding: 48px 0 0;
    overflow: hidden;
}

.detail-backdrop {
    position: absolute;
    inset: 0 0 auto;
    height: 520px;
    background: linear-gradient(120deg, #0891b2, #2563eb 52%, #0d9488);
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: blur(3px) saturate(1.2);
}

.detail-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: start;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    color: #dff6ff;
    font-size: 14px;
    font-weight: 800;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 36px 90px rgba(2, 6, 23, 0.35);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.52));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding-left: 6px;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(16px);
    font-size: 38px;
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.35);
}

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

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

.detail-title-row {
    align-items: flex-start;
}

.detail-title-row h1 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

.detail-meta {
    margin: 18px 0 18px;
}

.detail-meta span {
    padding: 8px 13px;
    color: #0e7490;
    background: #cffafe;
}

.one-line {
    margin: 0 0 22px;
    color: #334155;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.7;
}

.tag-cloud {
    margin-bottom: 28px;
}

.tag-cloud span {
    padding: 8px 12px;
    color: #1d4ed8;
    background: #dbeafe;
}

.detail-content-card section {
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}

.detail-content-card h2,
.side-card h2 {
    margin: 0 0 12px;
    color: #1f2937;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.detail-content-card p {
    color: #475569;
    line-height: 1.9;
    font-size: 16px;
}

.detail-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 24px;
}

.detail-poster {
    overflow: hidden;
    background: linear-gradient(135deg, #0891b2, #2563eb);
}

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

.side-card {
    padding: 22px;
}

.site-footer {
    margin-top: 82px;
    padding: 54px 0 0;
    color: #cbd5e1;
    background: linear-gradient(180deg, #1e293b, #0f172a);
}

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

.site-footer p {
    max-width: 420px;
    line-height: 1.8;
}

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

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

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

.footer-bottom {
    margin-top: 40px;
    padding: 22px 0;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-content,
    .detail-grid,
    .split-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 32px;
        padding-top: 40px;
    }

    .hero-poster {
        width: min(300px, 80vw);
        margin: 0 auto;
    }

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

    .ranking-panel,
    .detail-side {
        position: static;
    }

    .detail-side {
        grid-row: auto;
    }
}

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

    .logo {
        font-size: 18px;
    }

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

    .hero-actions,
    .detail-title-row,
    .section-heading,
    .search-page-form {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .slim-grid,
    .category-grid,
    .category-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-body {
        padding: 13px;
    }

    .movie-body h2 {
        font-size: 16px;
    }

    .movie-body p {
        font-size: 13px;
    }

    .page-hero {
        padding: 58px 0;
    }

    .filter-bar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .filter-bar input,
    .filter-bar select,
    .search-page-form input {
        width: 100%;
        min-width: 0;
    }

    .detail-content-card,
    .side-card {
        padding: 20px;
    }
}
