* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #111827;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 42%, #fff1f2 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 52%, #f43f5e 100%);
    box-shadow: 0 18px 40px rgba(127, 29, 29, 0.18);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
    animation: pulseGlow 2s ease-in-out infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #ffffff;
    font-weight: 650;
}

.nav-links a {
    opacity: 0.95;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
    color: #fef3c7;
    opacity: 1;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 8px 12px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(180deg, #d97706 0%, #ea580c 100%);
}

.mobile-panel a {
    display: block;
    padding: 12px 24px;
    color: #ffffff;
    font-weight: 650;
}

.mobile-panel a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.48) 42%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.26;
    background-image: radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.18) 2px, transparent 0), linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%);
    background-size: 42px 42px, 80px 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
}

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

.eyebrow {
    margin: 0 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.eyebrow-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 20px #f59e0b;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-desc {
    margin: 0 0 26px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 750;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    box-shadow: 0 15px 34px rgba(249, 115, 22, 0.32);
}

.btn-soft {
    color: #92400e;
    background: #fffbeb;
    box-shadow: inset 0 0 0 1px #fde68a;
}

.btn-dark {
    color: #ffffff;
    background: #111827;
}

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

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

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

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 22px;
}

.wrap-tight {
    padding-top: 32px;
}

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

.section-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111827;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.section-title::before {
    content: "";
    width: 8px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f59e0b, #f97316);
}

.section-lead {
    margin: 8px 0 0;
    max-width: 760px;
    color: #6b7280;
    line-height: 1.8;
}

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

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

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 55px rgba(15, 23, 42, 0.16);
}

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

.poster-link img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-link img,
.rank-item:hover .rank-poster img,
.related-card:hover img {
    transform: scale(1.1);
}

.poster-fade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
    transition: opacity 0.24s ease;
}

.movie-card:hover .poster-fade,
.related-card:hover .poster-fade {
    opacity: 1;
}

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

.card-badge {
    top: 12px;
    right: 12px;
    background: #f59e0b;
}

.score-badge {
    left: 12px;
    bottom: 12px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0 0 9px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 800;
}

.card-title a:hover {
    color: #d97706;
}

.card-desc {
    min-height: 46px;
    margin: 0 0 14px;
    color: #4b5563;
    line-height: 1.7;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: #92400e;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 164px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316 50%, #f43f5e);
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -34px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(249, 115, 22, 0.32);
}

.category-tile h2,
.category-tile h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 850;
}

.category-tile p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 14px;
    margin: 26px 0 32px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.search-input,
.filter-select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #111827;
    background: #ffffff;
    outline: 0;
}

.search-input {
    padding: 0 18px;
}

.filter-select {
    min-width: 150px;
    padding: 0 14px;
}

.search-input:focus,
.filter-select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 68px 180px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
}

.rank-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.rank-poster {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.rank-poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rank-info h2,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.rank-score {
    color: #92400e;
    font-weight: 900;
    white-space: nowrap;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 14px;
}

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

.detail-hero {
    padding: 34px 0 48px;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 40%), linear-gradient(135deg, #111827, #1f2937 54%, #451a03);
    color: #ffffff;
}

.detail-head {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

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

.detail-head p {
    max-width: 860px;
    margin: 0 0 18px;
    color: #e5e7eb;
    line-height: 1.8;
    font-size: 18px;
}

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

.content-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.09);
    overflow: hidden;
}

.content-pad {
    padding: 26px;
}

.player-shell {
    overflow: hidden;
    border-radius: 24px;
    background: #050505;
    box-shadow: 0 26px 62px rgba(0, 0, 0, 0.28);
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.76));
    z-index: 3;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.48;
}

.play-trigger {
    position: relative;
    z-index: 4;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-size: 34px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 22px 50px rgba(249, 115, 22, 0.45);
}

.player-shell.is-playing .player-cover {
    display: none;
}

.info-section h2,
.sidebar-card h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 24px;
    font-weight: 850;
}

.info-section p {
    margin: 0 0 18px;
    color: #374151;
    line-height: 1.9;
}

.review-box {
    padding: 18px;
    border-radius: 18px;
    color: #374151;
    line-height: 1.9;
    background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

.sidebar-card {
    position: sticky;
    top: 86px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.09);
}

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

.related-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 12px;
    align-items: center;
}

.related-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.related-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.4;
}

.related-card h3:hover {
    color: #d97706;
}

.related-card p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.site-footer {
    margin-top: auto;
    color: #d1d5db;
    background: linear-gradient(135deg, #0f172a 0%, #1f2937 55%, #111827 100%);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 22px 30px;
}

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

.footer-title {
    margin: 0 0 14px;
    color: #ffffff;
    font-weight: 850;
    font-size: 19px;
}

.footer-text,
.footer-links a,
.copyright {
    color: #9ca3af;
    line-height: 1.8;
}

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

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

.copyright {
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hidden-by-filter {
    display: none !important;
}

.empty-state {
    display: none;
    padding: 42px;
    border-radius: 24px;
    color: #6b7280;
    text-align: center;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.empty-state.show {
    display: block;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36), 0 0 0 rgba(255, 255, 255, 0.0);
    }

    50% {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 22px rgba(255, 255, 255, 0.35);
    }
}

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

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

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

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

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

    .sidebar-card {
        position: static;
    }

    .rank-item {
        grid-template-columns: 52px 130px 1fr;
    }

    .rank-score {
        grid-column: 3;
    }

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

@media (max-width: 640px) {
    .brand {
        font-size: 20px;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
    }

    .hero {
        height: 62vh;
        min-height: 500px;
    }

    .hero-content {
        align-items: flex-end;
        padding-bottom: 78px;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.82));
    }

    .wrap {
        padding: 40px 16px;
    }

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

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

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

    .rank-item {
        grid-template-columns: 44px 100px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
        border-radius: 13px;
        font-size: 14px;
    }

    .rank-info p {
        display: none;
    }

    .detail-head h1 {
        font-size: 34px;
    }

    .content-pad {
        padding: 20px;
    }

    .related-card {
        grid-template-columns: 104px 1fr;
    }

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