* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #ea580c, #dc2626);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ea580c;
    background: #ffffff;
    box-shadow: 0 10px 20px rgb(0 0 0 / 0.15);
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
    transform: scale(1.1);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 600;
}

.nav-link {
    color: rgb(255 255 255 / 0.92);
    transition: color 0.2s ease;
}

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

.header-search {
    display: flex;
    width: min(320px, 24vw);
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0.28);
    border-radius: 12px;
    background: rgb(255 255 255 / 0.14);
    backdrop-filter: blur(6px);
}

.header-search input,
.mobile-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 10px 12px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgb(255 255 255 / 0.78);
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    background: rgb(255 255 255 / 0.18);
    padding: 10px 14px;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover {
    background: rgb(255 255 255 / 0.28);
}

.menu-button {
    display: none;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: rgb(255 255 255 / 0.12);
    padding: 8px 12px;
}

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

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

.mobile-nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: #ffffff;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgb(255 255 255 / 0.14);
}

.mobile-search {
    display: flex;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0.28);
    border-radius: 12px;
    background: rgb(255 255 255 / 0.12);
}

.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #7c2d12, #7f1d1d);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.94), rgb(0 0 0 / 0.48), rgb(0 0 0 / 0.08));
}

.hero-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 70px;
    color: #ffffff;
}

.hero-pill,
.category-pill,
.category-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-pill {
    margin-bottom: 16px;
    padding: 8px 16px;
    background: #dc2626;
}

.category-pill {
    width: fit-content;
    margin-bottom: 12px;
    padding: 5px 12px;
    color: #ea580c;
    background: #ffedd5;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    color: #ffffff;
    background: #ea580c;
}

.hero h1 {
    max-width: 850px;
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.06;
    font-weight: 900;
    text-shadow: 0 10px 30px rgb(0 0 0 / 0.34);
}

.hero p {
    max-width: 760px;
    margin: 0 0 22px;
    color: rgb(255 255 255 / 0.92);
    font-size: 19px;
}

.hero-meta,
.movie-meta,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-meta {
    margin-bottom: 26px;
    color: rgb(255 255 255 / 0.84);
}

.hero-meta a {
    color: #fed7aa;
}

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

.primary-button,
.ghost-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    padding: 13px 28px;
    color: #ffffff;
    background: #ea580c;
    box-shadow: 0 18px 28px rgb(234 88 12 / 0.32);
}

.primary-button:hover {
    background: #c2410c;
    transform: translateY(-1px);
}

.ghost-button {
    padding: 12px 24px;
    color: #ffffff;
    border: 1px solid rgb(255 255 255 / 0.38);
    background: rgb(255 255 255 / 0.12);
    backdrop-filter: blur(8px);
}

.ghost-button:hover {
    background: rgb(255 255 255 / 0.25);
}

.text-button {
    color: #ea580c;
    font-weight: 800;
}

.text-button:hover {
    color: #c2410c;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgb(255 255 255 / 0.18);
    backdrop-filter: blur(6px);
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgb(255 255 255 / 0.32);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.52);
    transition: width 0.25s ease, background 0.25s ease;
}

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

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

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

.section-title-row h2 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

.section-title-row p {
    margin: 6px 0 0;
    color: #6b7280;
}

.blue-band {
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #0891b2);
}

.blue-band .section-title-row h2,
.blue-band .section-title-row p,
.blue-band .section-more {
    color: #ffffff;
}

.white-band {
    background: #ffffff;
}

.section-more {
    flex-shrink: 0;
    color: #ea580c;
    font-weight: 800;
}

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

.movie-card,
.category-overview-card,
.content-card,
.sidebar-card,
.ranking-panel,
.rank-item {
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.movie-card,
.rank-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover,
.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.16), 0 8px 10px -6px rgb(0 0 0 / 0.12);
}

.movie-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111827;
}

.movie-thumb img,
.category-tile img,
.category-cover img,
.rank-cover img,
.related-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-thumb img,
.category-tile:hover img,
.category-overview-card:hover .category-cover img,
.rank-item:hover .rank-cover img,
.related-item:hover img {
    transform: scale(1.08);
}

.play-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgb(0 0 0 / 0.42);
    font-size: 36px;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease;
}

.movie-card:hover .play-mask {
    opacity: 1;
    background: rgb(0 0 0 / 0.58);
}

.duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    border-radius: 7px;
    color: #ffffff;
    background: rgb(0 0 0 / 0.78);
    padding: 3px 8px;
    font-size: 12px;
}

.duration.small {
    right: 6px;
    bottom: auto;
    top: 58px;
    padding: 2px 5px;
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a {
    transition: color 0.2s ease;
}

.movie-card:hover h3 a,
.rank-item:hover h3 a,
.related-item:hover strong {
    color: #ea580c;
}

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

.movie-meta,
.detail-meta {
    color: #6b7280;
    font-size: 14px;
}

.horizontal-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x proximity;
}

.scroll-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 18px;
    color: #ffffff;
    background: #111827;
    box-shadow: 0 18px 30px rgb(0 0 0 / 0.15);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.86), rgb(0 0 0 / 0.16));
}

.category-tile span,
.category-tile p {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 20px;
}

.category-tile span {
    bottom: 58px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile p {
    bottom: 18px;
    margin: 0;
    color: rgb(255 255 255 / 0.86);
    font-size: 14px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 34px;
    align-items: start;
}

.horizontal-list {
    display: grid;
    gap: 18px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.horizontal-thumb {
    height: 100%;
    min-height: 150px;
}

.ranking-panel {
    padding: 24px;
}

.section-title-row.compact {
    margin-bottom: 18px;
}

.section-title-row.compact h2 {
    font-size: 28px;
}

.ranking-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: #f9fafb;
}

.rank-number,
.ranking-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #ffffff;
    background: #ea580c;
    font-size: 13px;
    font-weight: 900;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(90deg, #ea580c, #dc2626);
    padding: 58px 0;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgb(255 255 255 / 0.9);
    font-size: 19px;
}

.category-page-hero {
    background: linear-gradient(90deg, #f97316, #ef4444, #dc2626);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: rgb(255 255 255 / 0.86);
}

.breadcrumbs a:hover {
    color: #fed7aa;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 160px 180px auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgb(0 0 0 / 0.08);
}

.filter-panel input,
.filter-panel select {
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    padding: 12px 14px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgb(251 146 60 / 0.16);
}

.filter-result {
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
}

.category-cover {
    display: block;
    height: 180px;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
}

.category-overview-card h2 {
    margin: 4px 0 10px;
    font-size: 28px;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: #6b7280;
}

.category-sample-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.category-sample-links a {
    border-radius: 999px;
    color: #4b5563;
    background: #f3f4f6;
    padding: 5px 10px;
    font-size: 13px;
}

.category-sample-links a:hover {
    color: #ea580c;
    background: #ffedd5;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.ranking-position {
    width: 42px;
    height: 42px;
    font-size: 17px;
}

.rank-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
}

.rank-cover {
    height: 130px;
    overflow: hidden;
    background: #111827;
}

.rank-info {
    padding: 16px;
}

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.rank-info p {
    margin: 0 0 10px;
    color: #6b7280;
}

.detail-topbar {
    color: #ffffff;
    background: linear-gradient(90deg, #ea580c, #dc2626);
    padding: 16px 0 6px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr);
    gap: 32px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000000;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.28);
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(to top, rgb(0 0 0 / 0.42), rgb(0 0 0 / 0.18));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.22);
    backdrop-filter: blur(6px);
    font-size: 36px;
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.25);
}

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

.content-card,
.sidebar-card {
    padding: 26px;
}

.detail-content h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
}

.detail-content h2,
.review-card h2,
.sidebar-card h2,
.content-card h2 {
    margin: 24px 0 12px;
    color: #1f2937;
    font-size: 23px;
}

.detail-content h2:first-child,
.review-card h2:first-child,
.sidebar-card h2:first-child,
.content-card h2:first-child {
    margin-top: 0;
}

.detail-content p,
.review-card p,
.content-card p {
    margin: 0 0 14px;
    color: #374151;
    line-height: 1.8;
}

.detail-meta {
    margin-bottom: 18px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.tag-list a {
    border-radius: 999px;
    color: #374151;
    background: #f3f4f6;
    padding: 6px 12px;
    font-size: 14px;
}

.tag-list a:hover {
    color: #ea580c;
    background: #ffedd5;
}

.review-card {
    border-left: 5px solid #ea580c;
    background: #fff7ed;
}

.sticky-card {
    position: sticky;
    top: 104px;
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-item {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 118px;
    height: 74px;
    border-radius: 10px;
    background: #111827;
}

.related-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.35;
    transition: color 0.2s ease;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item em {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    font-style: normal;
}

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

.gradient-card {
    color: #ffffff;
    background: linear-gradient(135deg, #16a34a, #0f766e);
}

.gradient-card h2,
.gradient-card p {
    color: #ffffff;
}

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

.stat-card {
    border-radius: 16px;
    background: #ffffff;
    padding: 22px;
    box-shadow: 0 8px 18px rgb(0 0 0 / 0.08);
}

.stat-card strong {
    display: block;
    color: #ea580c;
    font-size: 24px;
    margin-bottom: 8px;
}

.stat-card span {
    color: #6b7280;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 40px;
}

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

.site-footer p {
    color: #9ca3af;
    margin: 14px 0 0;
}

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

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

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

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tags span {
    border-radius: 999px;
    background: #1f2937;
    padding: 5px 10px;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    color: #9ca3af;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

[data-card].is-hidden,
.ranking-row.is-hidden {
    display: none;
}

@media (min-width: 768px) {
    .hero {
        height: 600px;
    }
}

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

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

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

    .two-column-section,
    .detail-layout,
    .about-layout {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        position: static;
    }
}

@media (max-width: 860px) {
    .movie-grid,
    .category-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-overview-card,
    .rank-item,
    .movie-card-horizontal {
        grid-template-columns: 1fr;
    }

    .category-cover,
    .rank-cover,
    .horizontal-thumb {
        height: auto;
        aspect-ratio: 16 / 9;
    }

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

    .ranking-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

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

    .hero {
        height: 560px;
    }

    .hero-content {
        padding-bottom: 76px;
    }

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

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

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

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

    .scroll-card {
        flex-basis: 280px;
    }

    .detail-meta,
    .hero-meta {
        gap: 9px;
        font-size: 13px;
    }

    .player-overlay span {
        width: 68px;
        height: 68px;
        font-size: 30px;
    }
}
