*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.site-nav {
    width: min(1180px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.brand-mark {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    font-size: 13px;
    background: linear-gradient(135deg, #059669, #06b6d4);
    box-shadow: 0 10px 22px rgba(5, 150, 105, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    font-weight: 650;
}

.nav-link {
    color: #374151;
    transition: color 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #111827;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.mobile-panel.is-open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #374151;
    background: #ffffff;
    font-weight: 650;
}

.mobile-link.active {
    color: #047857;
    background: #ecfdf5;
}

.hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #059669, #0f766e 55%, #0891b2);
}

.hero-track,
.hero-slide {
    min-height: 500px;
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: overlay;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.16));
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(720px, 100%);
    color: #ffffff;
}

.hero-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-pill {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.eyebrow {
    margin-bottom: 12px;
    color: #047857;
    background: #d1fae5;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(40px, 7vw, 64px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 26px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-light {
    color: #047857;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #059669, #0f766e);
    box-shadow: 0 14px 28px rgba(5, 150, 105, 0.22);
}

.btn.full {
    width: 100%;
    margin-top: 18px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.45);
}

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

.section {
    padding: 72px 0;
}

.section-white {
    background: #ffffff;
}

.section-soft {
    background: linear-gradient(135deg, #f8fafc, #f3f4f6);
}

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

.section-heading.centered {
    text-align: center;
    margin-bottom: 42px;
}

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

.section-heading h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 900;
}

.section-heading p,
.page-hero p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

.text-link {
    color: #047857;
    font-weight: 800;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b, #0f766e, #0891b2);
}

.movie-media img,
.category-image img,
.rank-thumb img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.34s ease, opacity 0.2s ease;
}

.movie-media img.is-empty,
.category-image img.is-empty,
.rank-thumb img.is-empty,
.hero-slide img.is-empty {
    opacity: 0;
}

.movie-card:hover .movie-media img,
.category-tile:hover .category-image img {
    transform: scale(1.08);
}

.movie-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 38px;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    transition: background 0.24s ease, opacity 0.24s ease;
}

.movie-card:hover .movie-play {
    opacity: 1;
    background: rgba(0, 0, 0, 0.32);
}

.movie-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #047857;
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.movie-content {
    display: grid;
    gap: 9px;
    padding: 18px;
}

.movie-content strong {
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover .movie-content strong {
    color: #059669;
}

.movie-content span {
    min-height: 44px;
    color: #6b7280;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-content em {
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
}

.movie-card-compact .movie-content {
    padding: 14px;
}

.movie-card-compact .movie-content strong {
    font-size: 15px;
}

.movie-card-compact .movie-content span {
    min-height: 40px;
    font-size: 13px;
}

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

.category-tile {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(5, 150, 105, 0.12);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(5, 150, 105, 0.35);
}

.category-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #065f46, #0f766e, #06b6d4);
}

.category-name {
    font-weight: 900;
    color: #111827;
}

.category-desc {
    color: #6b7280;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
    border-radius: 22px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-row {
    display: grid;
    grid-template-columns: 40px 62px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(5, 150, 105, 0.28);
}

.rank-number {
    color: #059669;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    width: 62px;
    height: 62px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #064e3b, #0891b2);
}

.rank-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.rank-copy strong {
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy small {
    overflow: hidden;
    color: #6b7280;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-arrow {
    color: #059669;
    font-size: 13px;
    font-weight: 800;
}

.page-hero {
    padding: 70px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #059669, #0f766e 58%, #0891b2);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 6vw, 54px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

.category-card-large {
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.category-card-head h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.category-card-head p {
    margin: 0 0 18px;
    color: #6b7280;
}

.category-card-large ul {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.category-card-large li a {
    color: #374151;
}

.category-card-large li a:hover {
    color: #059669;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.category-tab {
    padding: 10px 15px;
    border-radius: 999px;
    color: #374151;
    background: #f3f4f6;
    font-weight: 750;
}

.category-tab.active,
.category-tab:hover {
    color: #ffffff;
    background: #059669;
}

.search-box {
    margin-bottom: 28px;
}

.search-box input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    outline: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.search-box input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.search-box.large input {
    height: 60px;
    font-size: 18px;
}

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

.rank-container {
    max-width: 960px;
}

.rank-list-large .rank-row {
    grid-template-columns: 58px 76px minmax(0, 1fr) auto;
    padding: 14px;
}

.rank-list-large .rank-thumb {
    width: 76px;
    height: 76px;
}

.rank-list-large .rank-copy strong {
    font-size: 17px;
}

.detail-page {
    padding: 32px 0 78px;
    background: #f9fafb;
}

.detail-container {
    max-width: 980px;
}

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

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

.detail-card,
.related-section {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #020617;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.64));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #047857;
    font-size: 32px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.overlay-title {
    max-width: min(760px, calc(100% - 32px));
    overflow: hidden;
    font-size: 24px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overlay-subtitle {
    font-size: 15px;
    font-weight: 800;
    opacity: 0.88;
}

.detail-body {
    padding: 34px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.meta-line a {
    color: #047857;
}

.detail-body h1 {
    margin: 0 0 18px;
    color: #111827;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.lead {
    margin: 0 0 28px;
    padding-left: 18px;
    border-left: 4px solid #10b981;
    color: #374151;
    font-size: 19px;
    font-weight: 650;
}

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

.article-section h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.article-section p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.info-grid div {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.info-grid strong {
    color: #111827;
    font-size: 13px;
}

.info-grid span {
    color: #4b5563;
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span {
    padding: 7px 11px;
    border-radius: 999px;
    color: #374151;
    background: #f3f4f6;
    font-size: 13px;
    font-weight: 700;
}

.related-section {
    margin-top: 28px;
    padding: 30px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr;
    gap: 36px;
}

.brand-footer {
    color: #ffffff;
    font-size: 22px;
}

.footer-brand p {
    max-width: 520px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 14px;
}

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

.footer-links ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #34d399;
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
}

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

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

    .featured-grid,
    .compact-grid,
    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .container,
    .site-nav,
    .mobile-panel,
    .footer-inner,
    .copyright {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        font-size: 20px;
    }

    .hero,
    .hero-track,
    .hero-slide,
    .hero-inner {
        min-height: 560px;
    }

    .hero-copy {
        padding-top: 24px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 48px 0;
    }

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

    .featured-grid,
    .compact-grid,
    .listing-grid,
    .category-grid,
    .category-large-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .detail-body,
    .related-section {
        padding: 22px;
    }

    .rank-row,
    .rank-list-large .rank-row {
        grid-template-columns: 42px 58px minmax(0, 1fr);
    }

    .rank-arrow {
        display: none;
    }

    .overlay-title {
        font-size: 18px;
    }
}
