:root {
    --green-50: #ecfdf5;
    --green-100: #d1fae5;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-card: 0 16px 42px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius-lg: 18px;
    --radius-md: 12px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: linear-gradient(180deg, var(--gray-50), #ffffff 340px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-600), #065f46);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.28);
    transition: transform 0.22s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 20px;
    line-height: 1.1;
}

.brand-text small {
    margin-top: -1px;
    color: var(--gray-500);
    font-size: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--gray-700);
    font-weight: 600;
}

.nav-links a {
    transition: color 0.18s ease;
}

.nav-links a:hover {
    color: var(--green-600);
}

.mobile-menu-button {
    display: none;
    width: 40px;
    height: 40px;
    padding: 9px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--gray-700);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 10px 20px 18px;
    border-top: 1px solid var(--gray-200);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--gray-700);
    font-weight: 600;
}

.mobile-menu a:hover {
    background: var(--gray-100);
}

.hero {
    position: relative;
    min-height: 64vh;
    overflow: hidden;
    background: #000000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 34%, rgba(16, 185, 129, 0.18), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.46) 52%, rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 64vh;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 52px 20px;
}

.hero-copy {
    max-width: 680px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--green-600);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-meta span {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.primary-button {
    color: #ffffff;
    background: var(--green-600);
    box-shadow: 0 14px 28px rgba(5, 150, 105, 0.28);
}

.primary-button:hover {
    background: var(--green-700);
    transform: translateY(-1px) scale(1.02);
}

.secondary-button {
    color: var(--gray-900);
    background: #ffffff;
    border: 1px solid var(--gray-200);
}

.secondary-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.18s ease, background 0.18s ease;
}

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

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: background 0.18s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.30);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.page-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 42px 20px 72px;
}

.page-title {
    margin-bottom: 28px;
}

.page-title h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 5vw, 48px);
    letter-spacing: -0.03em;
}

.page-title p {
    margin: 0;
    color: var(--gray-600);
    font-size: 17px;
}

.content-section {
    margin: 0 0 62px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.02em;
}

.section-more {
    color: var(--green-600);
    font-weight: 800;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--gray-200);
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 46%);
}

.type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 4px 8px;
    color: #ffffff;
    border-radius: 7px;
    background: var(--green-600);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.poster-meta {
    position: absolute;
    left: 12px;
    bottom: 10px;
    z-index: 2;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 15px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.18s ease;
}

.movie-card:hover .card-body h3 {
    color: var(--green-600);
}

.card-body p {
    display: -webkit-box;
    min-height: 38px;
    margin: 0;
    overflow: hidden;
    color: var(--gray-500);
    font-size: 12px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 26px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at right top, rgba(16, 185, 129, 0.20), transparent 36%),
        linear-gradient(135deg, #ffffff, var(--gray-50));
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.category-tile h2 {
    margin: 0 0 10px;
    font-size: 25px;
}

.category-tile p {
    min-height: 52px;
    margin: 0 0 18px;
    color: var(--gray-600);
}

.category-tile .count {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--green-700);
    background: var(--green-50);
    font-weight: 800;
}

.search-panel {
    padding: 22px;
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-soft);
}

.search-form {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(120px, 0.7fr));
    gap: 12px;
}

.search-form input,
.search-form select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--gray-50);
    color: var(--gray-900);
    font-size: 15px;
    outline: none;
}

.search-form input:focus,
.search-form select:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 88px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: #ffffff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-600), #064e3b);
    font-weight: 900;
}

.rank-cover {
    position: relative;
    overflow: hidden;
    width: 88px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    background: var(--gray-200);
}

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

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--gray-600);
    font-size: 13px;
}

.rank-score {
    color: var(--green-700);
    font-size: 13px;
    font-weight: 800;
}

.detail-hero {
    background: #000000;
    color: #ffffff;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 34px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 42px 20px;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--gray-800);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
}

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

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

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

.detail-one-line {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 18px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px;
}

.tag-row span {
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.meta-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-panel span {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
}

.player-section {
    margin-top: 38px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow-card);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(16, 185, 129, 0.25), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.player-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--green-600);
    box-shadow: 0 18px 46px rgba(5, 150, 105, 0.36);
    font-size: 30px;
    cursor: pointer;
}

.article-block {
    padding: 28px;
    margin: 28px 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.article-block p {
    margin: 0;
    color: var(--gray-700);
}

.horizontal-list {
    display: grid;
    gap: 14px;
}

.horizontal-card {
    box-shadow: none;
    border: 1px solid var(--gray-200);
}

.horizontal-link {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
    min-height: 105px;
}

.horizontal-cover {
    overflow: hidden;
    background: var(--gray-200);
}

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

.horizontal-info {
    padding: 12px 14px 12px 0;
}

.horizontal-info h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.horizontal-info p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta-line {
    color: var(--gray-500);
    font-size: 12px;
}

.alpha-list {
    column-count: 4;
    column-gap: 26px;
}

.alpha-list a {
    display: block;
    break-inside: avoid;
    padding: 8px 0;
    color: var(--gray-700);
    border-bottom: 1px dashed var(--gray-200);
}

.alpha-list a:hover {
    color: var(--green-600);
}

.site-footer {
    margin-top: auto;
    color: var(--gray-300);
    background: var(--gray-900);
}

.footer-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 42px 20px 26px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
}

.footer-brand p {
    max-width: 520px;
    color: var(--gray-400);
}

.footer-logo .brand-text strong {
    color: #ffffff;
}

.footer-logo .brand-text small {
    color: var(--gray-400);
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

.site-footer li {
    margin-bottom: 8px;
}

.site-footer a {
    color: var(--gray-300);
}

.site-footer a:hover {
    color: var(--green-500);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--gray-400);
    text-align: center;
    font-size: 14px;
}

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

    .rank-list {
        grid-template-columns: 1fr;
    }

    .detail-hero-inner {
        grid-template-columns: 240px 1fr;
    }

    .alpha-list {
        column-count: 3;
    }
}

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

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

    .hero,
    .hero-content {
        min-height: 70vh;
    }

    .hero-arrow {
        display: none;
    }

    .page-main {
        padding-top: 30px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

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

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

    .search-form {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        max-width: 240px;
    }

    .rank-item {
        grid-template-columns: 44px 74px 1fr;
        gap: 10px;
    }

    .rank-cover {
        width: 74px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .alpha-list {
        column-count: 1;
    }

    .horizontal-link {
        grid-template-columns: 112px 1fr;
    }
}

@media (max-width: 420px) {
    .hero-copy h1 {
        font-size: 34px;
    }

    .movie-grid {
        gap: 12px;
    }

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