html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: #1f2937;
    background: #f7f7fb;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #ea580c, #dc2626);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.25);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo-link {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    background: #ffffff;
    box-shadow: inset 0 -6px 18px rgba(234, 88, 12, 0.18);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-nav a,
.mobile-nav a {
    color: #ffffff;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #fef3c7;
}

.header-search {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 240px;
}

.header-search input,
.page-filter input,
.search-panel input {
    width: 100%;
    border-radius: 999px;
    border: 2px solid transparent;
    outline: none;
    padding: 11px 44px 11px 16px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.page-filter input:focus,
.search-panel input:focus {
    border-color: #fde68a;
    background: #ffffff;
    box-shadow: 0 0 0 5px rgba(253, 230, 138, 0.28);
}

.header-search button,
.search-panel button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    padding: 0 20px 18px;
    background: rgba(194, 65, 12, 0.98);
}

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

.mobile-nav a {
    display: block;
    padding: 10px 0;
}

.mobile-nav .header-search {
    min-width: 0;
    margin-top: 8px;
}

.section,
.page-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 20px;
}

.section-tight {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 20px;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    background-position: center;
    background-size: cover;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.66), rgba(220, 38, 38, 0.42));
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 210px;
    background: linear-gradient(0deg, #f7f7fb, rgba(247, 247, 251, 0));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 620px;
    padding: 96px 20px 120px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.58fr);
    align-items: center;
    gap: 48px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero-title {
    margin-top: 20px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.06;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.hero-desc {
    margin-top: 18px;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.btn-primary,
.btn-secondary,
.btn-light {
    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;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 18px 34px rgba(220, 38, 38, 0.28);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.btn-light {
    color: #dc2626;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.1);
}

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

.hero-feature-card {
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
}

.hero-feature-card img {
    width: 100%;
    height: 390px;
    object-fit: cover;
}

.hero-feature-body {
    padding: 22px;
}

.hero-feature-body h2 {
    font-size: 22px;
    font-weight: 900;
}

.hero-meta,
.movie-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: #9a3412;
    background: #ffedd5;
}

.hero-meta .meta-pill {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

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

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

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

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

.section-heading h2,
.page-title,
.detail-title {
    color: #111827;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(26px, 4vw, 40px);
}

.section-heading p,
.page-lead,
.category-intro {
    color: #6b7280;
    line-height: 1.8;
}

.page-title {
    font-size: clamp(34px, 5vw, 56px);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(17, 24, 39, 0.14);
}

.movie-card a {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4.15;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.movie-body {
    padding: 16px;
}

.movie-title {
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-desc {
    margin-top: 8px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
}

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

.category-card {
    display: block;
    min-height: 176px;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    box-shadow: 0 18px 38px rgba(220, 38, 38, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(220, 38, 38, 0.26);
}

.category-card h2,
.category-card h3 {
    font-size: 22px;
    font-weight: 950;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
}

.rank-number {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #dc2626);
    font-weight: 950;
    font-size: 18px;
}

.rank-thumb {
    width: 96px;
    height: 128px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-title {
    color: #111827;
    font-size: 18px;
    font-weight: 950;
}

.rank-desc {
    margin-top: 8px;
    color: #6b7280;
    line-height: 1.65;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(253, 186, 116, 0.42), transparent 32%), linear-gradient(135deg, #111827, #7f1d1d 68%, #dc2626);
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 78px 20px;
}

.page-hero .page-title,
.page-hero .page-lead {
    color: #ffffff;
}

.page-hero .page-lead {
    max-width: 760px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.86);
}

.page-filter {
    margin-top: 28px;
    max-width: 560px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 700;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #fde68a;
}

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

.player-card,
.detail-card,
.side-card,
.search-panel {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.09);
    overflow: hidden;
}

.video-box {
    position: relative;
    overflow: hidden;
    background: #050505;
    aspect-ratio: 16 / 9;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #050505;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    background-position: center;
    background-size: cover;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.76), rgba(220, 38, 38, 0.34));
}

.player-cover.is-hidden {
    display: none;
}

.player-start {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    color: #dc2626;
    background: #ffffff;
    font-size: 34px;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
    cursor: pointer;
}

.player-cover-title {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 950;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
}

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

.detail-title {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
}

.detail-lead {
    margin-top: 18px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.85;
}

.detail-section {
    margin-top: 28px;
}

.detail-section h2,
.side-card h2 {
    color: #111827;
    font-size: 24px;
    font-weight: 950;
    margin-bottom: 12px;
}

.detail-section p {
    color: #374151;
    line-height: 1.9;
}

.side-card {
    padding: 22px;
}

.side-poster {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.18);
}

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

.related-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: #111827;
}

.related-item img {
    width: 68px;
    height: 88px;
    object-fit: cover;
    border-radius: 12px;
}

.related-item strong {
    display: block;
    line-height: 1.35;
}

.related-item span {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 13px;
}

.search-panel {
    padding: 28px;
}

.search-form-large {
    position: relative;
    max-width: 720px;
}

.search-results {
    margin-top: 28px;
}

.empty-state {
    padding: 34px;
    text-align: center;
    color: #6b7280;
    border-radius: 24px;
    background: #ffffff;
}

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

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 20px;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 30px;
}

.footer-inner h2,
.footer-inner h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 14px;
}

.footer-inner p,
.footer-inner a {
    color: #d1d5db;
    line-height: 1.8;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 20px 30px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 82px;
    }

    .hero-feature-card img {
        height: 260px;
    }

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

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

@media (max-width: 560px) {
    .section,
    .page-section {
        padding: 34px 14px;
    }

    .section-tight,
    .page-hero-inner,
    .header-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .logo-link {
        font-size: 20px;
    }

    .hero-slider,
    .hero-content {
        min-height: 720px;
    }

    .hero-title {
        font-size: 38px;
    }

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

    .rank-item {
        grid-template-columns: 44px 78px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-thumb {
        width: 78px;
        height: 104px;
    }

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