* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: #f8fafc;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #0f172a, #1e293b);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

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

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

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 15px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

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

.header-search input,
.mobile-search input {
    width: 220px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.55);
    outline: none;
    padding: 10px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: #94a3b8;
}

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.filter-clear,
.ranking-watch,
.text-link {
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button,
.filter-clear,
.ranking-watch {
    color: #ffffff;
    background: #2563eb;
    padding: 10px 18px;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover,
.filter-clear:hover,
.ranking-watch:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px;
    background: #0f172a;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e293b 52%, #334155);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.1));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text {
    max-width: 720px;
    padding-top: 42px;
}

.hero-tags,
.hero-small-tags,
.tag-row,
.detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.hero-small-tags span,
.tag-row span,
.detail-tags a,
.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span:first-child,
.pill {
    color: #ffffff;
    background: #2563eb;
}

.hero-tags span:not(:first-child),
.hero-small-tags span,
.pill.glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-text h1 {
    margin: 18px 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -1.5px;
}

.hero-text p {
    max-width: 660px;
    margin: 0 0 28px;
    color: #e5e7eb;
    font-size: clamp(18px, 2vw, 25px);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background-color 0.2s ease;
}

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

.hero-thumbs {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 64px;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    transform: translateX(-50%);
}

.hero-thumb {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
}

.hero-thumb.active,
.hero-thumb:hover {
    border-color: rgba(96, 165, 250, 0.9);
    background: rgba(37, 99, 235, 0.34);
}

.hero-thumb img {
    width: 54px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
}

.hero-thumb span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.page-section {
    padding: 64px 0;
}

.section-white {
    background: #ffffff;
}

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

.section-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2,
.prose-card h2,
.content-card h2,
.info-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
}

.section-more,
.text-link {
    color: #2563eb;
    font-weight: 800;
}

.section-more:hover,
.text-link:hover {
    color: #1d4ed8;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111827;
}

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

.movie-card:hover .movie-poster img,
.movie-card:hover .compact-poster img,
.ranking-row:hover .ranking-poster img {
    transform: scale(1.08);
}

.poster-region,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-region {
    right: 12px;
    background: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

.rank-badge {
    left: 12px;
    background: #ef4444;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.3);
}

.poster-play,
.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #2563eb;
    background: #ffffff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.poster-play {
    width: 58px;
    height: 58px;
    font-size: 24px;
}

.play-dot {
    width: 38px;
    height: 38px;
    font-size: 17px;
}

.movie-card:hover .poster-play,
.movie-card:hover .play-dot {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h3,
.compact-info h3,
.ranking-info h2 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.compact-info h3 a:hover,
.ranking-info h2 a:hover {
    color: #2563eb;
}

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

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

.movie-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    color: #1d4ed8;
    background: #eff6ff;
}

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

.category-tile {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #0f172a, #2563eb);
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px rgba(37, 99, 235, 0.28);
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile small {
    color: rgba(255, 255, 255, 0.78);
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.ranking-panel,
.info-card,
.content-card,
.player-card,
.prose-card,
.filter-panel,
.category-overview-card {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

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

.ranking-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-weight: 900;
    color: #0f172a;
}

.ranking-head a {
    color: #2563eb;
    font-size: 14px;
}

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

.movie-card-compact {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 14px;
    align-items: center;
    border-radius: 16px;
    padding: 10px;
}

.compact-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

.compact-info h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.compact-info p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
}

.sub-hero {
    color: #ffffff;
    background: linear-gradient(90deg, #0f172a, #1e293b);
    padding: 64px 0;
}

.sub-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.12;
}

.sub-hero p {
    max-width: 780px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 14px;
}

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

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 20px;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 24px;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: #64748b;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-cover-stack img {
    width: 100%;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    background: #111827;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(140px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    padding: 20px;
    margin-bottom: 26px;
}

.filter-field label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.filter-field input,
.filter-field select {
    width: 100%;
    height: 46px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    padding: 0 14px;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-clear {
    height: 46px;
}

.filter-empty {
    margin-bottom: 22px;
    border-radius: 16px;
    color: #64748b;
    background: #ffffff;
    padding: 28px;
    text-align: center;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 180px 58px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.ranking-poster {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.ranking-number {
    font-size: 34px;
    font-weight: 900;
    color: #2563eb;
    text-align: center;
}

.ranking-info p {
    margin: 7px 0 10px;
    color: #64748b;
}

.ranking-watch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
}

.detail-hero {
    position: relative;
    min-height: 420px;
    color: #ffffff;
    background-position: center;
    background-size: cover;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.2));
}

.detail-hero-content {
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.detail-title-block h1 {
    max-width: 900px;
    margin: 18px 0;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1.08;
}

.detail-title-block p {
    max-width: 780px;
    margin: 0;
    color: #e5e7eb;
    font-size: 19px;
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
}

.player-card {
    padding: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.24), rgba(0, 0, 0, 0.72));
}

.player-overlay[hidden] {
    display: none;
}

.big-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: #2563eb;
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
    max-width: 82%;
    text-align: center;
    font-size: 22px;
}

.content-card,
.info-card,
.prose-card {
    padding: 28px;
}

.content-card h2,
.info-card h2,
.prose-card h2 {
    margin-bottom: 14px;
    font-size: 24px;
}

.content-card p,
.prose-card p {
    margin: 0 0 12px;
    color: #334155;
    font-size: 16px;
}

.detail-tags a {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.info-card dl {
    margin: 0;
}

.info-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.info-card dl div:last-child {
    border-bottom: 0;
}

.info-card dt {
    color: #64748b;
}

.info-card dd {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
    text-align: right;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.feature-grid div {
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    padding: 20px;
}

.feature-grid strong,
.feature-grid span {
    display: block;
}

.feature-grid strong {
    color: #0f172a;
    font-size: 18px;
}

.feature-grid span {
    margin-top: 6px;
    color: #64748b;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 34px;
}

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

.site-footer p {
    margin: 14px 0 0;
    color: #94a3b8;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-bottom {
    margin-top: 42px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 22px 16px;
    text-align: center;
    color: #64748b;
}

@media (max-width: 1180px) {
    .header-search {
        display: none;
    }

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

    .hero-thumbs {
        display: none;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .two-column-section,
    .detail-layout,
    .footer-grid,
    .category-overview-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

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

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

    .filter-search-field,
    .filter-clear {
        grid-column: 1 / -1;
    }
}

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

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

    .hero-carousel {
        height: 560px;
    }

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

    .hero-control {
        display: none;
    }

    .hero-dots {
        bottom: 18px;
    }

    .page-section {
        padding: 44px 0;
    }

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

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

    .ranking-row {
        grid-template-columns: 116px 42px minmax(0, 1fr);
    }

    .ranking-watch {
        grid-column: 1 / -1;
    }

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

    .movie-card-compact {
        grid-template-columns: 110px 1fr;
    }

    .detail-hero,
    .detail-hero-content {
        min-height: 360px;
    }
}
