* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111827;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 42%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316 0%, #ef4444 50%, #ec4899 100%);
    box-shadow: 0 14px 34px rgba(239, 68, 68, 0.24);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.logo-text {
    font-size: 21px;
}

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

.main-nav a,
.mobile-menu a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
    color: #ffedd5;
}

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

.header-search input,
.mobile-search input {
    width: 230px;
    border: 0;
    outline: none;
    color: #ffffff;
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.18);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.header-search button,
.mobile-search button,
.search-panel button {
    border: 0;
    color: #ef4444;
    padding: 9px 16px;
    border-radius: 999px;
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    color: #ffffff;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

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

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

.mobile-menu nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-menu a {
    padding: 10px 12px;
    border-radius: 12px;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.02);
}

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.14) 100%);
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
}

.hero-copy {
    max-width: 700px;
    color: #ffffff;
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-badge {
    padding: 7px 16px;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ef4444);
    box-shadow: 0 12px 25px rgba(239, 68, 68, 0.28);
}

.hero h1,
.hero h2 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero p {
    display: -webkit-box;
    max-width: 650px;
    margin: 0 0 24px;
    overflow: hidden;
    color: #e5e7eb;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hero-meta,
.detail-meta,
.card-meta,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #f9fafb;
    font-weight: 700;
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ef4444);
    box-shadow: 0 16px 30px rgba(239, 68, 68, 0.30);
}

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

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

.ghost-dark-btn {
    color: #111827;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.hero-dots {
    position: absolute;
    right: 50%;
    bottom: 30px;
    display: flex;
    gap: 10px;
    transform: translateX(50%);
}

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

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

.section-tight {
    padding-top: 56px;
}

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

.section-head.compact {
    align-items: center;
}

.section-kicker {
    color: #ef4444;
    margin-bottom: 8px;
}

.section h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section h2 {
    font-size: clamp(28px, 3.5vw, 40px);
}

.section-more {
    color: #ef4444;
    font-weight: 900;
}

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

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

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.poster-frame img,
.ranking-card img,
.mini-card img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-frame img {
    transition: transform 0.35s ease;
}

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

.year-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ef4444);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #f97316;
    font-size: 34px;
    opacity: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.68) 100%);
    transition: opacity 0.25s ease;
}

.movie-card-link:hover .play-hover {
    opacity: 1;
}

.card-body {
    display: block;
    padding: 16px;
}

.card-tags span,
.tag-list span,
.genre-pills span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.card-tags span {
    padding: 5px 9px;
    color: #ea580c;
    background: #ffedd5;
}

.movie-card h3,
.movie-card h2 {
    display: -webkit-box;
    min-height: 48px;
    margin: 12px 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3,
.movie-card-link:hover h2 {
    color: #ef4444;
}

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    justify-content: space-between;
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.category-section {
    padding-top: 38px;
}

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

.large-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.category-card {
    display: block;
    min-height: 132px;
    padding: 24px;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444 55%, #ec4899);
    box-shadow: 0 16px 36px rgba(239, 68, 68, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(even) {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.18);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.category-card span {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 24px;
    align-items: stretch;
}

.rank-panel,
.spotlight-panel {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}

.rank-panel {
    padding: 26px;
}

.rank-list {
    display: grid;
    gap: 10px;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 16px;
    background: #f9fafb;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #ffedd5;
    transform: translateX(4px);
}

.rank-num {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #ef4444);
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.rank-info {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.spotlight-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22), transparent 30%), linear-gradient(145deg, #0f172a, #1e293b 52%, #ef4444);
}

.spotlight-panel h2 {
    color: #ffffff;
    font-size: clamp(30px, 4vw, 46px);
}

.spotlight-panel p {
    color: #e5e7eb;
    line-height: 1.8;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.24), transparent 34%), linear-gradient(120deg, #f97316, #ef4444 48%, #ec4899);
}

.page-hero > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.page-hero.slim > div {
    padding: 62px 0;
}

.page-hero .section-kicker {
    color: #ffedd5;
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(40px, 6vw, 64px);
}

.page-hero p {
    max-width: 780px;
    color: #fff7ed;
    font-size: 18px;
    line-height: 1.8;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.filter-chip {
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    color: #ffffff;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.filter-chip.is-active {
    color: #ef4444;
    background: #ffffff;
}

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 66px 180px 1fr;
    gap: 18px;
    align-items: center;
    overflow: hidden;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.ranking-number {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #ef4444);
    font-weight: 900;
}

.ranking-card img {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
}

.ranking-copy {
    display: grid;
    gap: 7px;
}

.ranking-copy strong {
    font-size: 20px;
}

.ranking-copy em {
    color: #ef4444;
    font-style: normal;
    font-weight: 800;
}

.ranking-copy span {
    display: -webkit-box;
    overflow: hidden;
    color: #4b5563;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.search-panel {
    max-width: 820px;
    padding: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.search-panel input,
.search-panel select {
    min-width: 0;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: #ffffff;
}

.search-panel input {
    flex: 1;
}

.search-panel select {
    width: 170px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: #ef4444;
}

.player-wrap {
    background: #000000;
}

.player-shell {
    position: relative;
    width: min(1180px, 100%);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    color: #ef4444;
    background: rgba(255, 255, 255, 0.92);
    font-size: 38px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
    font-size: 22px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 0;
    align-items: start;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

.detail-copy h1 {
    margin-top: 8px;
    font-size: clamp(32px, 5vw, 56px);
}

.detail-one-line {
    margin: 16px 0;
    color: #374151;
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta span {
    color: #ea580c;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ffedd5;
    font-weight: 800;
}

.tag-list,
.genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag-list span,
.genre-pills span {
    color: #374151;
    padding: 7px 12px;
    background: #f3f4f6;
}

.detail-section {
    padding-top: 38px;
}

.article-block {
    padding: 34px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.article-block h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

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

.article-block p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.related-section {
    padding-top: 18px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.mini-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.13);
}

.mini-card img {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
}

.mini-card span {
    display: grid;
    gap: 6px;
}

.mini-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mini-card em {
    color: #ef4444;
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(135deg, #0f172a, #1e293b 55%, #0f172a);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 34px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
}

.footer-brand p,
.site-footer p,
.site-footer li {
    color: #9ca3af;
    line-height: 1.75;
}

.site-footer h3 {
    color: #ffffff;
    margin: 0 0 16px;
}

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

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

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

    .hero {
        height: 560px;
    }

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

    .ranking-card {
        grid-template-columns: 54px 120px 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 60px;
    }

    .logo-text {
        font-size: 19px;
    }

    .hero {
        height: 520px;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.88));
    }

    .hero h1,
    .hero h2 {
        font-size: 40px;
    }

    .section,
    .page-hero > div {
        width: min(100% - 24px, 1180px);
    }

    .section {
        padding: 44px 0;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

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

    .rank-item {
        grid-template-columns: 44px 1fr;
    }

    .rank-info {
        grid-column: 2;
    }

    .ranking-card,
    .mini-card {
        grid-template-columns: 1fr;
    }

    .search-panel {
        align-items: stretch;
        flex-direction: column;
        border-radius: 24px;
    }

    .search-panel input,
    .search-panel select,
    .search-panel button {
        width: 100%;
    }

    .breadcrumb,
    .detail-layout {
        width: min(100% - 24px, 1180px);
    }

    .article-block {
        padding: 24px;
    }
}
