:root {
    --primary: #d89410;
    --primary-dark: #b6790d;
    --primary-light: #fef3e2;
    --accent: #f95c16;
    --secondary: #2f344c;
    --secondary-soft: #f5f7fa;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --hover-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fffaf2 0%, #f7f8fb 46%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
    max-width: 1200px;
    min-height: 66px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 30px rgba(249, 92, 22, 0.28);
    transition: transform 0.2s ease;
}

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

.brand-text {
    background: linear-gradient(90deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #374151;
    font-weight: 600;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 700;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 10px 20px 18px;
    background: #ffffff;
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #374151;
    font-weight: 600;
}

.mobile-nav a:hover {
    background: var(--primary-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 630px;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.96) 0%, rgba(17, 24, 39, 0.78) 42%, rgba(17, 24, 39, 0.28) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 88px 20px 78px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.65fr);
    gap: 42px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    color: #fde68a;
    font-weight: 700;
}

.hero-title {
    margin: 18px 0 14px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.03;
    letter-spacing: -0.04em;
    font-weight: 900;
}

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

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 30px;
}

.hero-tags span,
.tag-row span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 11px;
    background: rgba(216, 148, 16, 0.12);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(249, 92, 22, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(249, 92, 22, 0.34);
}

.button.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.button.light {
    color: var(--primary-dark);
    background: var(--primary-light);
    box-shadow: none;
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    transform: perspective(900px) rotateY(-6deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: linear-gradient(135deg, #2f344c, #d89410);
}

.hero-poster-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

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

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

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

.section {
    padding: 58px 0;
}

.section.compact {
    padding: 34px 0;
}

.section-head {
    margin-bottom: 26px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.section-kicker {
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.section-title {
    margin: 4px 0 0;
    color: var(--secondary);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-desc {
    max-width: 720px;
    color: var(--muted);
}

.filter-panel {
    margin: 0 0 26px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px 160px 160px auto;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(12px);
}

.filter-panel input,
.filter-panel select {
    min-height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 13px;
    color: #374151;
    background: #ffffff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(216, 148, 16, 0.15);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(216, 148, 16, 0.35);
    box-shadow: var(--hover-shadow);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #2f344c, #d89410);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
}

.score-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-meta {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 12px;
}

.movie-card h3 {
    margin: 0 0 8px;
    min-height: 44px;
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-line {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #4b5563;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

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

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

.category-card {
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h3 {
    margin: 0 0 10px;
    color: var(--secondary);
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 88px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.rank-num {
    color: var(--primary-dark);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 88px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, #2f344c, #d89410);
}

.rank-info h3 {
    margin: 0 0 6px;
    color: var(--secondary);
    font-size: 18px;
    font-weight: 900;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
}

.breadcrumb {
    padding: 24px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-dark);
    font-weight: 700;
}

.detail-hero {
    padding: 34px 0 58px;
}

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

.player-card,
.detail-card,
.related-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.player-wrap {
    position: relative;
    background: #000000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
    cursor: pointer;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 42px rgba(249, 92, 22, 0.32);
    font-size: 34px;
    line-height: 1;
}

.player-caption,
.detail-content {
    padding: 24px;
}

.detail-title {
    margin: 0 0 14px;
    color: var(--secondary);
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.lead {
    color: #374151;
    font-size: 18px;
    font-weight: 650;
}

.content-block {
    margin-top: 24px;
}

.content-block h2,
.content-block h3 {
    margin: 0 0 10px;
    color: var(--secondary);
    font-size: 22px;
    font-weight: 900;
}

.content-block p {
    margin: 0;
    color: #374151;
}

.side-poster {
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #2f344c, #d89410);
    box-shadow: var(--shadow);
}

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

.related-card {
    margin-top: 22px;
    padding: 20px;
}

.related-card h2 {
    margin: 0 0 16px;
    color: var(--secondary);
    font-size: 22px;
    font-weight: 900;
}

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

.related-list a {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.related-list a:hover {
    background: var(--primary-light);
}

.related-list img {
    width: 58px;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(135deg, #2f344c, #d89410);
}

.related-list strong {
    display: block;
    color: var(--secondary);
    line-height: 1.35;
}

.related-list span {
    color: var(--muted);
    font-size: 13px;
}

.no-results {
    display: none;
    padding: 30px;
    border: 1px dashed #d1d5db;
    border-radius: 22px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

.site-footer {
    margin-top: 40px;
    padding: 38px 20px;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(135deg, var(--secondary), #111827);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner strong {
    color: #ffffff;
    font-size: 20px;
}

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

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

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

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

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

    .mobile-nav.is-open {
        display: block;
    }

    .hero-slider {
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 68px 20px 82px;
    }

    .hero-poster {
        max-width: 320px;
        transform: none;
    }

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

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

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

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

    .side-poster {
        max-width: 320px;
    }

    .rank-item {
        grid-template-columns: 40px 70px minmax(0, 1fr);
    }

    .rank-item .button {
        grid-column: 2 / 4;
    }

    .rank-item img {
        width: 70px;
    }
}

@media (max-width: 620px) {
    .nav-wrap {
        padding: 0 14px;
    }

    .brand {
        font-size: 19px;
    }

    .container {
        padding: 0 14px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

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

    .movie-card h3 {
        font-size: 15px;
    }

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

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-caption,
    .detail-content {
        padding: 18px;
    }
}
