:root {
    --yellow: #facc15;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #fffbeb;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 42%, #fef3c7 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #facc15, #fde047, #f59e0b);
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.14);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

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

.logo-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--yellow);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo:hover .logo-mark {
    transform: scale(1.08) rotate(6deg);
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.2);
}

.logo-text strong,
.logo-text em {
    display: block;
}

.logo-text strong {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.logo-text em {
    color: #4b5563;
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    font-weight: 700;
    color: #374151;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #111827;
    transform: translateY(-1px);
}

.nav-link.is-active::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 3px;
    content: "";
    background: #111827;
    border-radius: 999px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    color: #111827;
    background: rgba(255, 255, 255, 0.55);
    border: 0;
    border-radius: 12px;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
}

.mobile-link {
    display: block;
    padding: 12px 16px;
    margin: 6px auto;
    color: #374151;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    max-width: 1180px;
}

.mobile-link.is-active {
    color: #111827;
    background: #ffffff;
    font-weight: 800;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    padding: 72px 0 88px;
    background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.5), transparent 28%), linear-gradient(135deg, #facc15 0%, #fde047 48%, #f59e0b 100%);
}

.hero-orb {
    position: absolute;
    border: 4px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    animation: pulse-orb 3s ease-in-out infinite;
}

.orb-a {
    top: 56px;
    left: 8%;
    width: 88px;
    height: 88px;
}

.orb-b {
    top: 190px;
    right: 9%;
    width: 140px;
    height: 140px;
    animation-delay: 0.35s;
}

.orb-c {
    bottom: 90px;
    left: 36%;
    width: 72px;
    height: 72px;
    animation-delay: 0.7s;
}

@keyframes pulse-orb {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.78;
        transform: scale(1.08);
    }
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-slider {
    position: relative;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.55fr);
    gap: 44px;
    align-items: center;
}

.hero-slide.is-active {
    display: grid;
    animation: hero-fade 0.45s ease both;
}

@keyframes hero-fade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 18px;
    color: #111827;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0 0 12px;
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.hero-copy h2 {
    margin: 0 0 18px;
    color: #374151;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.16;
}

.hero-copy p {
    max-width: 700px;
    margin: 0 0 22px;
    color: #374151;
    font-size: 19px;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 10px;
    color: #713f12;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    background: #111827;
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.22);
}

.secondary-btn {
    color: #111827;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.82);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.2);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 3 / 4;
    background: rgba(255, 255, 255, 0.35);
    border: 12px solid rgba(255, 255, 255, 0.75);
    border-radius: 30px;
    box-shadow: 0 34px 60px rgba(17, 24, 39, 0.24);
    transform: rotate(2deg);
}

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

.hero-poster:hover img {
    transform: scale(1.08);
}

.hero-poster span,
.play-badge {
    position: absolute;
    display: grid;
    place-items: center;
    color: #111827;
    background: #facc15;
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.22);
}

.hero-poster span {
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    font-size: 24px;
}

.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 32px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    background: rgba(17, 24, 39, 0.35);
    border: 0;
    border-radius: 999px;
}

.hero-dot.is-active {
    width: 36px;
    background: #111827;
}

.stats-section {
    background: #ffffff;
    padding: 36px 0;
}

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

.stat-card {
    padding: 26px 18px;
    text-align: center;
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07);
}

.stat-card strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.content-section {
    padding: 70px 0;
}

.soft-bg {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}

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

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.section-more,
.text-link {
    color: #b45309;
    font-weight: 850;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: #facc15;
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

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

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

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

.play-badge {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: scale(1);
}

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

.movie-card-body h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 54px;
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-body h3 a:hover {
    color: #ca8a04;
}

.movie-card-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 46px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.movie-meta span {
    padding: 3px 7px;
    background: #f3f4f6;
    border-radius: 999px;
}

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

.category-card {
    display: block;
    min-height: 150px;
    padding: 22px;
    color: #111827;
    background: linear-gradient(135deg, #ffffff, #fffbeb);
    border: 1px solid #fde68a;
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong,
.category-card span {
    display: block;
}

.category-card strong {
    margin-bottom: 10px;
    font-size: 21px;
}

.category-card span {
    color: var(--muted);
    font-size: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.55fr);
    gap: 34px;
}

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

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.07);
}

.rank-card img {
    width: 90px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-no {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #111827;
    background: #facc15;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
}

.search-cta {
    padding: 70px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #374151);
    text-align: center;
}

.search-cta h2 {
    margin: 0 0 22px;
    font-size: clamp(28px, 4vw, 44px);
}

.hero-search {
    display: flex;
    max-width: 720px;
    padding: 8px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 0 20px;
    border: 0;
    outline: 0;
}

.hero-search button {
    min-height: 48px;
    padding: 0 24px;
    color: #111827;
    background: #facc15;
    border: 0;
    border-radius: 999px;
    font-weight: 850;
}

.page-hero,
.detail-hero {
    padding: 58px 0;
    background: linear-gradient(135deg, #facc15, #fde047 55%, #f59e0b);
}

.page-hero h1,
.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: #374151;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #374151;
    font-size: 14px;
}

.breadcrumb a {
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 170px 170px 130px;
    gap: 14px;
    align-items: end;
    padding: 18px;
    margin-bottom: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.filter-panel label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: #111827;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
}

.filter-count {
    display: grid;
    height: 46px;
    place-items: center;
    color: #713f12;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 14px;
    font-weight: 900;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

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

.category-covers img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.category-overview-card h2 {
    margin: 0 0 10px;
}

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

.category-overview-card span {
    display: block;
    margin-bottom: 14px;
    font-weight: 900;
}

.detail-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border: 10px solid rgba(255, 255, 255, 0.76);
    border-radius: 26px;
    box-shadow: 0 28px 55px rgba(17, 24, 39, 0.24);
}

.detail-info .lead {
    max-width: 760px;
    margin: 0 0 20px;
    color: #374151;
    font-size: 20px;
}

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

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.detail-meta-grid div {
    padding: 14px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
}

.detail-meta-grid strong,
.detail-meta-grid span {
    display: block;
}

.detail-meta-grid strong {
    margin-bottom: 4px;
    color: #713f12;
    font-size: 12px;
}

.detail-meta-grid span {
    font-weight: 850;
}

.player-section {
    padding: 64px 0 42px;
    background: #111827;
    color: #ffffff;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #030712;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.18), rgba(3, 7, 18, 0.64));
    border: 0;
    cursor: pointer;
}

.player-start span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    color: #111827;
    background: #facc15;
    border-radius: 999px;
    font-size: 34px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.player-start strong {
    display: block;
    margin-top: 14px;
    font-size: 20px;
}

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

.player-section h2 {
    margin: 24px 0 8px;
    font-size: 28px;
}

.player-summary {
    max-width: 920px;
    margin: 0;
    color: #d1d5db;
}

.detail-copy .narrow {
    max-width: 880px;
}

.detail-copy h2 {
    margin: 0 0 12px;
    font-size: 30px;
}

.detail-copy p {
    margin: 0 0 28px;
    color: #374151;
    font-size: 18px;
}

.site-footer {
    padding: 54px 0 0;
    color: #d1d5db;
    background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 32px;
}

.footer-logo {
    margin-bottom: 12px;
    color: #facc15;
    font-size: 24px;
    font-weight: 950;
}

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

.site-footer p {
    margin: 0;
    color: #9ca3af;
}

.site-footer a {
    display: block;
    margin-bottom: 8px;
    color: #d1d5db;
}

.site-footer a:hover {
    color: #facc15;
}

.footer-bottom {
    margin-top: 38px;
    padding: 18px 0;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 45;
    display: none;
    width: 48px;
    height: 48px;
    color: #111827;
    background: #facc15;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.22);
    font-size: 22px;
    font-weight: 900;
}

.back-top.is-visible {
    display: block;
}

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

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

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

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-section {
        min-height: auto;
        padding: 48px 0 58px;
    }

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

    .hero-poster {
        max-width: 340px;
        margin: 0 auto;
    }

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

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .all-grid,
    .category-grid,
    .ranking-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .logo-text strong {
        font-size: 18px;
    }

    .logo-text em {
        display: none;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

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

    .hero-search {
        border-radius: 24px;
    }

    .hero-search input {
        height: 46px;
    }

    .hero-search button {
        width: 100%;
    }

    .stats-grid,
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .all-grid,
    .category-grid,
    .ranking-grid,
    .detail-meta-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .rank-card img {
        width: 80px;
        height: 108px;
    }
}
