html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #1f2937;
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 34%, #f3f4f6 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #d97706 0%, #f97316 50%, #fb923c 100%);
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(124, 45, 18, 0.22);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    opacity: 1;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-size: 24px;
}

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

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

.mobile-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
}

.hero {
    position: relative;
    height: min(72vh, 560px);
    min-height: 430px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-slide img {
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.56) 42%, rgba(0, 0, 0, 0.08) 100%), radial-gradient(circle at 18% 60%, rgba(249, 115, 22, 0.52), transparent 34%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 54px;
    color: #ffffff;
    max-width: 780px;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffedd5;
    background: rgba(251, 146, 60, 0.20);
    border: 1px solid rgba(253, 186, 116, 0.32);
    font-size: 14px;
    font-weight: 800;
}

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

.hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.7;
}

.hero-actions,
.detail-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

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

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

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
}

.ghost-button.dark {
    color: #9a3412;
    background: #fff7ed;
    box-shadow: inset 0 0 0 1px #fed7aa;
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.42);
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 20px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

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

.search-strip,
.content-section,
.page-shell,
.detail-shell,
.site-footer .footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.search-strip {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 480px);
    gap: 22px;
    align-items: center;
    margin-top: -34px;
    padding: 24px;
    position: relative;
    z-index: 8;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(124, 45, 18, 0.16);
    backdrop-filter: blur(16px);
}

.search-strip strong {
    display: block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 22px;
}

.search-strip span {
    color: #6b7280;
}

.quick-search,
.filter-panel {
    display: flex;
    gap: 10px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    outline: none;
    color: #1f2937;
    background: #ffffff;
}

.quick-search button {
    min-width: 86px;
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    font-weight: 900;
}

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

.no-pad-top {
    padding-top: 24px;
}

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

.section-heading h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: #6b7280;
}

.section-more {
    flex: 0 0 auto;
    color: #ea580c;
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    min-height: 160px;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.category-tile img {
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    opacity: 0.72;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
    transform: scale(1.06);
    opacity: 0.58;
}

.category-tile span,
.category-tile em {
    position: absolute;
    left: 18px;
    right: 18px;
    color: #ffffff;
}

.category-tile span {
    bottom: 42px;
    font-size: 20px;
    font-weight: 950;
}

.category-tile em {
    bottom: 18px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

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

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

.rank-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.10);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

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

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

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

.rank-num {
    position: absolute;
    top: 10px;
    left: 10px;
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.32);
}

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

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
}

.movie-meta-row span,
.movie-meta-row em {
    padding: 4px 8px;
    border-radius: 999px;
    background: #ffedd5;
    font-style: normal;
}

.movie-card h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
}

.movie-card p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 110px 1fr;
}

.movie-card-compact .poster-link {
    aspect-ratio: auto;
    min-height: 160px;
}

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

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

.page-shell,
.detail-shell {
    padding-top: 34px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 54px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #7c2d12 52%, #f97316);
    box-shadow: 0 24px 60px rgba(124, 45, 18, 0.18);
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -100px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.page-hero h1 {
    position: relative;
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    position: relative;
    max-width: 740px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.75;
}

.filter-panel {
    align-items: center;
    margin: 24px 0 0;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.09);
}

.filter-panel select {
    max-width: 180px;
}

.large-filter input {
    font-size: 16px;
}

.result-count {
    margin-bottom: 16px;
    color: #9a3412;
    font-weight: 900;
}

.category-overview-list {
    display: grid;
    gap: 20px;
    padding: 30px 0 0;
}

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

.category-overview-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.category-overview-top h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 950;
}

.category-overview-top p {
    margin: 0;
    color: #6b7280;
}

.category-overview-top a {
    flex: 0 0 auto;
    color: #ea580c;
    font-weight: 900;
}

.mini-poster-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.mini-poster-row a {
    overflow: hidden;
    border-radius: 18px;
    background: #fff7ed;
}

.mini-poster-row img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.mini-poster-row span {
    display: block;
    padding: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: stretch;
    padding: 26px;
    border-radius: 34px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 24px 60px rgba(124, 45, 18, 0.13);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    background: #111827;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.detail-poster img {
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    margin: 0 0 14px;
    color: #111827;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-info p {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.75;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.player-shell video {
    width: 100%;
    min-height: 320px;
    max-height: 680px;
    aspect-ratio: 16 / 9;
    background: #000000;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.38));
}

.player-start span {
    width: 86px;
    height: 86px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    padding-left: 6px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.38);
    font-size: 34px;
}

.player-start.is-hidden {
    display: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-top: 30px;
}

.detail-article,
.detail-side-card {
    padding: 26px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.09);
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 24px;
    font-weight: 950;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.92;
}

.detail-side-card dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    margin: 0;
}

.detail-side-card dt {
    color: #9a3412;
    font-weight: 900;
}

.detail-side-card dd {
    margin: 0;
    color: #374151;
}

.site-footer {
    margin-top: 70px;
    padding: 34px 0;
    color: #ffffff;
    background: #111827;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 620px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.68);
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-weight: 800;
}

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

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

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

    .hero {
        height: 560px;
    }

    .search-strip,
    .detail-hero,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .movie-grid,
    .ranking-grid,
    .rank-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .mini-poster-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .header-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 19px;
    }

    .hero {
        min-height: 520px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 48px;
    }

    .hero-arrow {
        display: none;
    }

    .search-strip,
    .content-section,
    .page-shell,
    .detail-shell,
    .site-footer .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .search-strip {
        padding: 18px;
    }

    .quick-search,
    .filter-panel,
    .category-overview-top,
    .footer-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-panel select {
        max-width: none;
    }

    .category-grid,
    .movie-grid,
    .ranking-grid,
    .rank-strip,
    .mini-poster-row {
        grid-template-columns: 1fr;
    }

    .movie-card-compact {
        grid-template-columns: 96px 1fr;
    }

    .movie-card-compact .poster-link {
        min-height: 150px;
    }

    .page-hero {
        padding: 32px 24px;
        border-radius: 26px;
    }

    .detail-hero {
        padding: 18px;
        border-radius: 26px;
    }

    .detail-poster img {
        min-height: auto;
    }

    .player-shell video {
        min-height: 220px;
    }
}
