body {
    min-height: 100vh;
    background: #fafaf9;
    color: #292524;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.is-menu-open {
    overflow: hidden;
}

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

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(250, 250, 249, 0.92);
    border-bottom: 1px solid rgba(214, 211, 209, 0.82);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #f59e0b 48%, #92400e);
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.28);
}

.brand-text {
    font-size: 22px;
    color: #1c1917;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    padding: 9px 12px;
    border-radius: 999px;
    color: #57534e;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #fef3c7;
    color: #b45309;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #f5f5f4;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: #44403c;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 22px;
    border-top: 1px solid #e7e5e4;
    background: #fafaf9;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #44403c;
    font-weight: 700;
    border-bottom: 1px solid #e7e5e4;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #1c1917;
}

.hero-stage,
.hero-slide,
.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.64) 45%, rgba(120, 53, 15, 0.34)), linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(28, 25, 23, 0.86));
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    min-height: 680px;
    margin: 0 auto;
    padding: 90px 24px 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #d97706;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    background: rgba(255, 255, 255, 0.12);
    color: #fde68a;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    max-width: 820px;
    margin: 22px 0 18px;
    font-size: clamp(44px, 8vw, 86px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.065em;
}

.hero-desc {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.8;
}

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

.hero-tags span,
.detail-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
}

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

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

.primary-btn,
.ghost-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 900;
    transition: all 0.22s ease;
}

.primary-btn {
    color: #ffffff;
    background: #d97706;
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.32);
}

.primary-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    z-index: 6;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #1c1917;
    background: rgba(255, 255, 255, 0.92);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    transform: translateY(-50%);
}

.hero-control:hover {
    background: #ffffff;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: all 0.22s ease;
}

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

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

.soft-section {
    max-width: none;
    padding-left: calc((100% - 1280px) / 2 + 24px);
    padding-right: calc((100% - 1280px) / 2 + 24px);
    background: linear-gradient(180deg, #fff7ed, #fafaf9);
}

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

.center-heading {
    display: block;
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.center-heading .section-kicker {
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2,
.center-heading h2 {
    margin: 12px 0 0;
    color: #1c1917;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.section-heading p,
.center-heading p {
    color: #78716c;
    line-height: 1.8;
}

.section-more {
    color: #b45309;
    background: #fef3c7;
}

.section-more:hover {
    background: #fde68a;
}

.search-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin: 0 0 28px;
    border: 1px solid #e7e5e4;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(41, 37, 36, 0.06);
}

.search-label {
    flex: 0 0 auto;
    color: #92400e;
    font-weight: 900;
}

.site-search {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 16px;
    outline: 0;
    background: #f5f5f4;
    color: #292524;
    padding: 0 16px;
    font-size: 15px;
}

.site-search:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid #e7e5e4;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(41, 37, 36, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: #fcd34d;
    box-shadow: 0 24px 52px rgba(146, 64, 14, 0.14);
    transform: translateY(-6px);
}

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

.wide-card {
    display: grid;
    grid-template-columns: 160px 1fr;
}

.wide-card .poster-link {
    height: 100%;
    min-height: 230px;
}

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

.movie-card:hover .poster-link img,
.ranking-item:hover .rank-cover img {
    transform: scale(1.055);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(28, 25, 23, 0.72);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.card-content {
    padding: 18px;
}

.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #a16207;
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3,
.ranking-item h3 {
    margin: 10px 0 8px;
    color: #1c1917;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 950;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover,
.category-card a:hover h3,
.category-card a:hover h2 {
    color: #d97706;
}

.movie-card p,
.ranking-item p,
.category-card p {
    color: #78716c;
    line-height: 1.72;
}

.tag-list {
    margin-top: 14px;
}

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

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

.category-card {
    padding: 22px;
    border: 1px solid #e7e5e4;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(41, 37, 36, 0.06);
}

.category-card h3,
.category-card h2 {
    margin: 14px 0 8px;
    color: #1c1917;
    font-size: 22px;
    font-weight: 950;
}

.category-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    font-weight: 950;
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.category-card ul {
    display: grid;
    gap: 7px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.category-card li a,
.mini-links a {
    color: #57534e;
    font-size: 14px;
    font-weight: 700;
}

.category-card li a:hover,
.mini-links a:hover {
    color: #d97706;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.mini-links a,
.pill-link {
    display: inline-flex;
    padding: 8px 11px;
    border-radius: 999px;
    background: #f5f5f4;
}

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

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

.ranking-item {
    position: relative;
    display: grid;
    grid-template-columns: 84px 54px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e7e5e4;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(41, 37, 36, 0.06);
}

.rank-cover {
    display: block;
    width: 84px;
    height: 118px;
    overflow: hidden;
    border-radius: 18px;
    background: #292524;
}

.rank-number {
    color: #d97706;
    font-size: 28px;
    font-weight: 950;
}

.page-hero,
.detail-hero {
    background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.24), transparent 34%), linear-gradient(135deg, #1c1917, #44403c 45%, #78350f);
    color: #ffffff;
}

.compact-hero {
    padding: 88px 24px;
}

.compact-hero > div {
    max-width: 1280px;
    margin: 0 auto;
}

.compact-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.compact-hero p:not(.section-kicker) {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.pill-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-link {
    color: #57534e;
    font-weight: 800;
}

.pill-link:hover {
    color: #b45309;
    background: #fef3c7;
}

.detail-hero {
    padding: 30px 24px 72px;
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    font-weight: 800;
}

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

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
    gap: 28px;
    align-items: center;
}

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.player-card video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.54));
    cursor: pointer;
    font-size: 18px;
    font-weight: 950;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: #d97706;
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.38);
    font-size: 30px;
    text-indent: 4px;
}

.detail-info h1 {
    margin: 16px 0;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.06;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-one-line {
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.detail-meta li {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.detail-meta span {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
}

.detail-text-section {
    padding-top: 54px;
    padding-bottom: 20px;
}

.text-card {
    padding: 32px;
    border: 1px solid #e7e5e4;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(41, 37, 36, 0.07);
}

.text-card h2 {
    margin: 0 0 14px;
    color: #1c1917;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.025em;
}

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

.text-card p {
    margin: 0;
    color: #57534e;
    font-size: 17px;
    line-height: 1.95;
}

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

.site-footer {
    padding: 44px 24px;
    border-top: 1px solid #e7e5e4;
    background: #ffffff;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand {
    color: #1c1917;
    font-size: 22px;
}

.site-footer p {
    max-width: 520px;
    color: #78716c;
    line-height: 1.8;
}

.footer-links {
    max-width: 560px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.footer-links a {
    padding: 8px 10px;
    border-radius: 999px;
    color: #57534e;
    background: #f5f5f4;
    font-weight: 800;
}

.footer-links a:hover {
    color: #b45309;
    background: #fef3c7;
}

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

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

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

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

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

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

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

@media (max-width: 760px) {
    .header-inner {
        padding: 12px 16px;
    }

    .brand-text {
        font-size: 20px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding: 80px 18px 95px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-control {
        display: none;
    }

    .section-wrap,
    .soft-section {
        padding: 48px 16px;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        margin-top: 18px;
    }

    .search-panel {
        display: block;
    }

    .search-label {
        display: block;
        margin-bottom: 10px;
    }

    .movie-grid,
    .related-grid,
    .category-movie-grid,
    .category-grid,
    .overview-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .wide-card {
        grid-template-columns: 130px 1fr;
    }

    .wide-card .poster-link {
        min-height: 190px;
    }

    .ranking-item {
        grid-template-columns: 74px 42px 1fr;
        gap: 12px;
    }

    .rank-cover {
        width: 74px;
        height: 104px;
    }

    .rank-number {
        font-size: 22px;
    }

    .compact-hero,
    .detail-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .text-card {
        padding: 24px;
    }

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin-top: 20px;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .wide-card {
        display: block;
    }

    .wide-card .poster-link {
        min-height: 0;
    }
}
