html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: linear-gradient(180deg, #fffaf0 0%, #fff7ed 36%, #ffffff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(251, 191, 36, 0.35);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
}

.header-shell {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-mark,
.footer-logo span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.26);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 21px;
    color: #92400e;
}

.brand-copy em {
    margin-top: 4px;
    color: #d97706;
    font-size: 12px;
    font-style: normal;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-link {
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #d97706;
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    width: 230px;
    border: 1px solid #f5d08a;
    border-radius: 999px;
    background: #fffbeb;
    color: #78350f;
    outline: none;
    padding: 11px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    padding: 0 20px;
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.22);
}

.ghost-button {
    color: #92400e;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(251, 191, 36, 0.55);
    padding: 0 20px;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #92400e;
    background: #fffbeb;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

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

.mobile-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mobile-links a {
    border-radius: 14px;
    background: #fff7ed;
    padding: 12px 14px;
    color: #92400e;
    font-weight: 700;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.52), transparent 36%), linear-gradient(135deg, #7c2d12 0%, #92400e 42%, #ea580c 100%);
}

.hero-shell {
    position: relative;
    max-width: 1280px;
    min-height: 640px;
    margin: 0 auto;
    padding: 64px 24px 88px;
}

.hero-slide {
    position: absolute;
    inset: 0 24px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 360px;
    gap: 38px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 34px;
    overflow: hidden;
    opacity: 0.24;
    filter: blur(1px);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(124, 45, 18, 0.78), rgba(234, 88, 12, 0.42));
}

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

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
    color: #fff7ed;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    color: #78350f;
    background: #fef3c7;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 8vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 247, 237, 0.9);
    font-size: 20px;
    line-height: 1.8;
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.tag-row span {
    color: #92400e;
    background: #fef3c7;
}

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

.hero-poster {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 28px 80px rgba(69, 26, 3, 0.46);
}

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

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.54);
    padding: 8px 12px;
    font-weight: 900;
}

.hero-controls {
    position: absolute;
    right: 24px;
    bottom: 28px;
    left: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hero-controls button {
    border: 0;
    cursor: pointer;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #92400e;
    background: #ffffff;
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

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

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1280px;
    margin: -42px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 4;
}

.stats-strip a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 44px rgba(146, 64, 14, 0.12);
    padding: 20px;
}

.stats-strip strong {
    color: #c2410c;
    font-size: 30px;
}

.stats-strip span {
    color: #78350f;
    font-weight: 800;
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px 0;
}

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

.section-heading p {
    margin: 0 0 6px;
    color: #d97706;
    font-weight: 900;
}

.section-heading h2 {
    margin: 0;
    color: #78350f;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading a {
    color: #c2410c;
    font-weight: 900;
}

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

.category-card a {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(146, 64, 14, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card a:hover,
.poster-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 58px rgba(146, 64, 14, 0.18);
}

.category-images {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    height: 108px;
    background: #fed7aa;
}

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

.category-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
}

.category-body strong {
    color: #78350f;
    font-size: 20px;
}

.category-body em,
.poster-info em {
    color: #d97706;
    font-style: normal;
    font-weight: 800;
}

.category-body span:last-child {
    color: #6b7280;
    line-height: 1.7;
}

.hot-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
}

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

.poster-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.88);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.poster-card:hover .poster-play {
    opacity: 1;
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.25);
}

.poster-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
}

.poster-info strong {
    color: #78350f;
    font-size: 16px;
    line-height: 1.35;
}

.poster-desc {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.ranking-aside {
    position: sticky;
    top: 94px;
    align-self: start;
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    padding: 22px;
    box-shadow: 0 20px 46px rgba(146, 64, 14, 0.10);
}

.compact-grid {
    display: grid;
    gap: 14px;
}

.movie-card-small .poster-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    border-radius: 18px;
}

.movie-card-small .poster-frame {
    aspect-ratio: 2 / 3;
}

.movie-card-small .poster-info {
    padding: 12px;
}

.movie-card-small .poster-desc,
.movie-card-small .tag-row {
    display: none;
}

.page-hero,
.detail-hero {
    max-width: 1280px;
    margin: 34px auto 0;
    padding: 0 24px;
}

.compact-hero {
    border-radius: 32px;
    color: #fff7ed;
    background: radial-gradient(circle at top right, rgba(253, 186, 116, 0.6), transparent 34%), linear-gradient(135deg, #7c2d12, #c2410c 64%, #f97316);
    padding: 52px;
    box-shadow: 0 26px 60px rgba(146, 64, 14, 0.20);
}

.compact-hero h1 {
    margin: 18px 0 12px;
    color: #ffffff;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
}

.compact-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 247, 237, 0.90);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    margin-bottom: 24px;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    padding: 20px;
    box-shadow: 0 16px 36px rgba(146, 64, 14, 0.08);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.4fr) minmax(180px, 0.6fr);
    gap: 14px;
}

.filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #92400e;
    font-weight: 900;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    border-radius: 16px;
}

.filter-result {
    margin: 14px 0 0;
    color: #a16207;
    font-weight: 800;
}

.table-wrap {
    overflow: auto;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(146, 64, 14, 0.08);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.data-table th,
.data-table td {
    border-bottom: 1px solid #fde68a;
    padding: 15px 18px;
    text-align: left;
}

.data-table th {
    color: #78350f;
    background: #fffbeb;
}

.data-table td {
    color: #4b5563;
}

.data-table a {
    color: #c2410c;
    font-weight: 900;
}

.detail-hero {
    border-radius: 34px;
    background: linear-gradient(135deg, #7c2d12, #c2410c 58%, #f97316);
    padding: 28px;
    box-shadow: 0 26px 60px rgba(146, 64, 14, 0.20);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    color: rgba(255, 247, 237, 0.88);
    font-weight: 800;
}

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

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

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 28px 80px rgba(69, 26, 3, 0.36);
}

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

.detail-copy h1 {
    margin: 20px 0 16px;
    color: #ffffff;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.08;
}

.detail-copy p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 247, 237, 0.90);
    font-size: 18px;
    line-height: 1.8;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.meta-grid span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    padding: 12px;
}

.meta-grid b {
    color: #fde68a;
    font-size: 12px;
}

.detail-tags {
    margin-top: 20px;
}

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 24px 58px rgba(17, 24, 39, 0.28);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.36), rgba(17, 24, 39, 0.76));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 18px 44px rgba(234, 88, 12, 0.34);
    font-size: 36px;
}

.player-overlay strong {
    font-size: 22px;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.article-card {
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 26px;
    background: #ffffff;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(146, 64, 14, 0.08);
}

.article-card h2 {
    margin: 0 0 14px;
    color: #78350f;
    font-size: 28px;
}

.article-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

.site-footer {
    margin-top: 70px;
    color: #fffbeb;
    background: linear-gradient(135deg, #7c2d12, #9a3412 55%, #c2410c);
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand p,
.footer-column p,
.footer-column a {
    color: rgba(255, 251, 235, 0.82);
    line-height: 1.8;
}

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

.footer-column ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 18px 24px;
    text-align: center;
    color: rgba(255, 251, 235, 0.78);
}

.searchable-grid .movie-card.is-hidden {
    display: none;
}

@media (max-width: 1180px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .ranking-aside {
        position: static;
    }
}

@media (max-width: 900px) {
    .header-search,
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .hero-shell {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
    }

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

    .stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 18px;
    }

    .detail-layout,
    .detail-content-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 640px) {
    .header-shell {
        height: 64px;
        padding: 0 16px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy em {
        display: none;
    }

    .hero-shell,
    .content-section,
    .page-hero,
    .detail-hero,
    .stats-strip {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-shell {
        min-height: 720px;
        padding-top: 34px;
    }

    .hero-slide {
        inset: 0 16px 86px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .stats-strip,
    .category-grid,
    .movie-grid,
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .compact-hero {
        padding: 30px 20px;
    }

    .movie-card-small .poster-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}
