
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #f9fafb;
    background: #030712;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand:hover {
    color: #fb923c;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #ffffff;
    background: #f97316;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(249, 115, 22, 0.28);
}

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

.main-nav a,
.mobile-panel a {
    color: #d1d5db;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover {
    color: #f97316;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-panel input,
.filter-toolbar input,
.filter-toolbar select {
    min-width: 0;
    color: #f9fafb;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 230px;
    padding: 10px 14px;
}

.nav-search input:focus,
.mobile-panel input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.nav-search button,
.mobile-panel button,
.primary-action,
.ghost-action,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-search button,
.mobile-panel button,
.primary-action {
    color: #ffffff;
    background: #f97316;
    padding: 10px 16px;
}

.nav-search button:hover,
.mobile-panel button:hover,
.primary-action:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

.ghost-action {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 11px 18px;
    backdrop-filter: blur(12px);
}

.ghost-action:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.ghost-action.small {
    padding: 8px 12px;
    font-size: 13px;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #f9fafb;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid #1f2937;
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.mobile-panel input {
    width: 100%;
    padding: 10px 12px;
}

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #030712;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-bg {
    position: absolute;
    inset: -34px;
    width: calc(100% + 68px);
    height: calc(100% + 68px);
    object-fit: cover;
    filter: brightness(0.32) blur(9px);
    transform: scale(1.05);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(249, 115, 22, 0.28), transparent 28%),
        linear-gradient(to bottom, rgba(3, 7, 18, 0.25), rgba(3, 7, 18, 0.72) 60%, #030712 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: center;
    gap: 56px;
    width: min(1180px, calc(100% - 48px));
    padding-top: 72px;
}

.hero-copy {
    max-width: 820px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
}

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

.hero h2 {
    margin: 0 0 18px;
    color: #fb923c;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.12;
}

.hero p,
.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #d1d5db;
    font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.pill,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: #e5e7eb;
    background: rgba(31, 41, 55, 0.86);
    border: 1px solid rgba(75, 85, 99, 0.86);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

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

.hero-poster {
    display: block;
    overflow: hidden;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.hero-poster:hover {
    border-color: rgba(249, 115, 22, 0.75);
    transform: translateY(-4px) rotate(0deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-poster span {
    display: block;
    padding: 14px 16px;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 700;
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 34px;
    left: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-dot {
    width: 34px;
    height: 4px;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

.hero-dot.is-active {
    background: #f97316;
}

.content-section {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0;
}

.first-section {
    padding-top: 40px;
}

.panel-section {
    width: 100%;
    max-width: none;
    padding-right: max(24px, calc((100% - 1280px) / 2));
    padding-left: max(24px, calc((100% - 1280px) / 2));
    background: linear-gradient(90deg, rgba(124, 45, 18, 0.22), rgba(17, 24, 39, 0.24));
}

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

.section-head h2 {
    display: inline;
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

.section-head p {
    margin: 8px 0 0;
    color: #9ca3af;
}

.section-icon {
    display: inline-flex;
    margin-right: 10px;
    color: #f97316;
}

.section-link {
    color: #fb923c;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.24);
    padding: 9px 14px;
    white-space: nowrap;
}

.section-link:hover {
    color: #ffffff;
    background: #f97316;
}

.section-link.inline {
    margin-top: 14px;
}

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

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

.movie-card {
    min-width: 0;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #111827;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

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

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

.poster-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.poster-mask span {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    background: #f97316;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
}

.poster-link:hover .poster-mask {
    opacity: 1;
}

.corner-label,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    border-radius: 999px;
    padding: 4px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.corner-label {
    left: 10px;
    background: #f97316;
}

.rank-badge {
    right: 10px;
    background: rgba(17, 24, 39, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-body {
    padding: 12px 2px 0;
}

.card-body h2 {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 6px;
    overflow: hidden;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-body h2 a:hover {
    color: #fb923c;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #9ca3af;
    font-size: 12px;
}

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 9px 0 10px;
    overflow: hidden;
    color: #9ca3af;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.category-card,
.category-overview-card,
.side-card,
.detail-copy,
.filter-toolbar {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.85);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.category-card {
    display: grid;
    gap: 10px;
    min-height: 218px;
    padding: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(249, 115, 22, 0.56);
    transform: translateY(-3px);
}

.category-card span,
.category-overview-card h2 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.category-card strong,
.category-overview-card strong {
    color: #fb923c;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

.category-thumbs,
.overview-visual {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    align-self: end;
}

.category-thumbs img,
.overview-visual img {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.page-main,
.detail-main {
    min-height: 100vh;
    padding-top: 72px;
}

.page-hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 340px;
    padding: 80px max(24px, calc((100% - 1280px) / 2)) 54px;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.24), transparent 34%),
        linear-gradient(135deg, #111827, #030712 72%);
}

.page-hero h1 {
    margin: 18px 0 14px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.category-overview-grid {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.category-overview-card ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.category-overview-card li a {
    display: block;
    overflow: hidden;
    color: #d1d5db;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-overview-card li a:hover {
    color: #fb923c;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 220px;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
}

.wide-toolbar {
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
}

.filter-toolbar label {
    display: grid;
    gap: 8px;
    color: #d1d5db;
    font-size: 13px;
    font-weight: 800;
}

.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    padding: 12px 14px;
}

.result-note {
    min-height: 24px;
    margin-bottom: 18px;
    color: #9ca3af;
    font-size: 14px;
}

.detail-main {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding-bottom: 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 24px 0;
    color: #9ca3af;
    font-size: 14px;
}

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

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

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
    border: 1px solid #1f2937;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.62));
    border: 0;
    cursor: pointer;
}

.play-layer.is-hidden {
    display: none;
}

.play-layer span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding-left: 5px;
    background: #f97316;
    border-radius: 999px;
    box-shadow: 0 24px 60px rgba(249, 115, 22, 0.32);
    font-size: 34px;
}

.detail-copy {
    margin-top: 24px;
    padding: 28px;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
}

.detail-copy h2 {
    margin: 28px 0 10px;
    color: #ffffff;
    font-size: 23px;
}

.detail-copy p {
    margin: 0 0 12px;
    color: #d1d5db;
    font-size: 16px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0 0;
    color: #d1d5db;
}

.detail-meta span {
    padding: 5px 10px;
    background: #1f2937;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

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

.side-poster {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.side-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.side-card {
    margin-top: 22px;
    padding: 20px;
}

.side-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
}

.side-card dt {
    color: #9ca3af;
}

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

.related-section {
    width: 100%;
    padding-bottom: 0;
}

.site-footer {
    border-top: 1px solid #1f2937;
    background: #0b1120;
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0;
}

.footer-shell p {
    max-width: 460px;
    color: #9ca3af;
}

.footer-shell h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 16px;
}

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

.footer-links a {
    color: #9ca3af;
    font-size: 14px;
}

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

.footer-brand {
    margin-bottom: 12px;
}

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

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

    .hero-inner,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-side {
        display: none;
    }
}

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

    .menu-button {
        display: block;
    }

    .nav-shell {
        height: 66px;
        padding: 0 18px;
    }

    .hero-inner {
        width: min(100% - 36px, 720px);
        padding-top: 66px;
    }

    .hero-actions,
    .section-head,
    .detail-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .content-section,
    .detail-main,
    .footer-shell {
        width: min(100% - 36px, 760px);
    }

    .movie-grid,
    .rank-list-home,
    .rank-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

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

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

@media (max-width: 520px) {
    .hero h1 {
        font-size: 39px;
    }

    .hero h2 {
        font-size: 28px;
    }

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

    .primary-action,
    .ghost-action {
        width: 100%;
    }

    .movie-grid,
    .rank-list-home,
    .rank-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body h2 {
        font-size: 14px;
    }

    .page-hero {
        min-height: 300px;
        padding-top: 72px;
    }

    .detail-copy {
        padding: 20px;
    }

    .play-layer span {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
