* {
    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", sans-serif;
    color: #111827;
    background: #f8fafc;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1180px;
    height: 72px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    box-shadow: 0 12px 22px rgba(20, 184, 166, 0.28);
}

.brand-text {
    font-size: 1.25rem;
    background: linear-gradient(135deg, #0f766e, #0891b2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #475569;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0d9488;
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 300px;
}

.top-search input,
.large-search input,
.local-tools input {
    width: 100%;
    border: 1px solid #dbe4ea;
    border-radius: 999px;
    padding: 12px 16px;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.large-search input:focus,
.local-tools input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.top-search button,
.large-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    color: #ffffff;
    background: #0d9488;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button:hover,
.large-search button:hover,
.primary-button:hover {
    background: #0f766e;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #0f172a;
}

.hero-carousel {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #134e4a, #164e63);
}

.hero-track {
    position: relative;
    min-height: 590px;
}

.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 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    transform: scale(1.03);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(20, 184, 166, 0.42), transparent 32%),
        linear-gradient(90deg, rgba(6, 78, 59, 0.9), rgba(15, 23, 42, 0.7) 56%, rgba(15, 23, 42, 0.35));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 590px;
    padding: 96px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 14px;
    color: #ffffff;
    background: rgba(20, 184, 166, 0.92);
    font-size: 0.88rem;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.eyebrow {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
}

.hero-content h1 {
    max-width: 780px;
    margin: 18px 0 12px;
    font-size: clamp(2.45rem, 5vw, 4.7rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content h2 {
    max-width: 760px;
    margin: 0 0 18px;
    color: #ccfbf1;
    font-size: clamp(1.3rem, 2.4vw, 2.05rem);
    line-height: 1.25;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #d1d5db;
    font-size: 1.1rem;
}

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

.hero-meta span,
.detail-meta span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 650;
}

.detail-meta span,
.tag-row span,
.detail-tags span {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 750;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: #0d9488;
    box-shadow: 0 14px 28px rgba(13, 148, 136, 0.28);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.1);
}

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

.section-more {
    color: #0f766e;
    background: #ecfeff;
}

.section-more:hover {
    color: #ffffff;
    background: #0d9488;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
}

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

.category-strip {
    margin-top: -34px;
    position: relative;
    z-index: 10;
    padding: 0 20px 26px;
}

.category-strip-shell {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.category-chip,
.category-card a {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.category-card a:hover,
.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.13);
}

.category-chip img,
.category-card img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    background: #e2e8f0;
}

.category-chip span,
.category-card h2 {
    color: #0f172a;
    font-weight: 800;
}

.search-panel,
.content-section,
.ranking-preview,
.page-shell,
.detail-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 66px 20px;
}

.search-panel-inner,
.text-card {
    border-radius: 28px;
    padding: 42px;
    background: linear-gradient(135deg, #ffffff, #ecfeff);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.search-panel h2,
.section-heading h2,
.ranking-copy h2,
.page-heading h1,
.detail-article h1,
.compact-ranking h2 {
    margin: 12px 0;
    color: #0f172a;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.search-panel p,
.section-heading p,
.ranking-copy p,
.page-heading p,
.text-card p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 1.04rem;
}

.large-search {
    display: flex;
    gap: 12px;
    max-width: 760px;
    margin-top: 28px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e2e8f0;
}

.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-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(13, 148, 136, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

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

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

.movie-card h3 a:hover {
    color: #0d9488;
}

.movie-card p {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0 0 12px;
    overflow: hidden;
    color: #64748b;
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 0.82rem;
}

.tag-row {
    margin-top: 10px;
    gap: 6px;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 0.76rem;
}

.ranking-preview {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 28px;
    align-items: start;
}

.ranking-copy {
    position: sticky;
    top: 96px;
    border-radius: 28px;
    padding: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #164e63);
    box-shadow: 0 18px 42px rgba(15, 118, 110, 0.22);
}

.ranking-copy h2,
.ranking-copy p {
    color: #ffffff;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 44px 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border-radius: 16px;
    padding: 10px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, color 0.2s ease;
}

.ranking-row:hover {
    color: #0d9488;
    transform: translateX(4px);
}

.ranking-number {
    color: #0d9488;
    font-weight: 900;
    text-align: center;
}

.ranking-row img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    background: #e2e8f0;
}

.ranking-title {
    overflow: hidden;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-info {
    color: #64748b;
    font-size: 0.9rem;
}

.page-heading {
    margin-bottom: 34px;
}

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

.category-card a {
    min-height: 150px;
    align-items: stretch;
    padding: 18px;
}

.category-card img {
    width: 112px;
    height: 112px;
}

.category-card h2 {
    margin: 6px 0 8px;
    font-size: 1.3rem;
}

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

.local-tools {
    max-width: 760px;
    margin: 0 0 28px;
}

.large-local-tools {
    max-width: 920px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: #64748b;
    font-size: 0.96rem;
}

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

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

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(13, 148, 136, 0.38), rgba(0, 0, 0, 0.32));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding-left: 6px;
    background: rgba(13, 148, 136, 0.94);
    box-shadow: 0 18px 38px rgba(13, 148, 136, 0.38);
    font-size: 2.1rem;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-message {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 4;
    max-width: 80%;
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    transform: translateX(-50%);
}

.detail-article,
.info-card {
    margin-top: 24px;
    border-radius: 24px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-article h1 {
    margin-top: 0;
}

.detail-lead {
    color: #0f766e;
    font-size: 1.15rem;
    font-weight: 700;
}

.detail-tags {
    margin: 18px 0 26px;
}

.detail-article h2,
.info-card h2,
.related-section h2 {
    margin: 24px 0 10px;
    color: #0f172a;
    font-size: 1.35rem;
}

.detail-article p {
    color: #475569;
}

.detail-poster {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #e2e8f0;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.info-card dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

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

.info-card dd {
    margin: 0;
    color: #0f172a;
}

.related-list-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-list-card li + li {
    border-top: 1px solid #edf2f7;
}

.related-list-card a {
    display: block;
    padding: 12px 0;
    font-weight: 800;
}

.related-list-card a:hover {
    color: #0d9488;
}

.related-list-card span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
}

.compact .movie-card-body {
    padding: 13px;
}

.compact .poster-play {
    width: 46px;
    height: 46px;
}

.compact-ranking {
    margin-top: 44px;
}

.compact-ranking h2 {
    font-size: 1.8rem;
}

.text-page {
    max-width: 920px;
}

.text-card p + p {
    margin-top: 16px;
}

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 20px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 38px;
}

.footer-logo .brand-text {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p {
    max-width: 440px;
    color: #94a3b8;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
}

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

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #5eead4;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 18px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.92rem;
}

[data-card].is-hidden {
    display: none;
}

@media (max-width: 1060px) {
    .top-search {
        min-width: 240px;
    }

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

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

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

    .ranking-copy {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-shell {
        height: auto;
        min-height: 68px;
        align-items: flex-start;
        padding-top: 14px;
        padding-bottom: 14px;
    }

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

    .nav-panel {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        border-radius: 20px;
        padding: 18px;
        background: #ffffff;
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    }

    .nav-panel.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .top-search {
        min-width: 0;
    }

    .hero-carousel,
    .hero-track,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding: 88px 20px 86px;
    }

    .large-search,
    .section-heading {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .ranking-info {
        display: none;
    }
}

@media (max-width: 620px) {
    .category-strip-shell,
    .movie-grid,
    .all-movies-grid,
    .ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-panel,
    .content-section,
    .ranking-preview,
    .page-shell,
    .detail-shell {
        padding: 46px 14px;
    }

    .search-panel-inner,
    .text-card,
    .detail-article,
    .info-card {
        padding: 22px;
    }

    .category-chip {
        gap: 10px;
    }

    .category-chip img {
        width: 46px;
        height: 46px;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

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