html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, #ea580c, #f97316 46%, #fb923c);
    box-shadow: 0 18px 35px rgba(154, 52, 18, 0.28);
}

.site-header__inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    white-space: nowrap;
}

.site-logo__mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.site-logo__text {
    font-size: 22px;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.nav-link {
    color: #fff7ed;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.search-form {
    width: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.search-form input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #1f2937;
}

.search-form input {
    padding: 10px 14px 10px 18px;
}

.search-form button {
    padding: 10px 16px;
    color: #ea580c;
    font-weight: 700;
}

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

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

.mobile-panel a {
    display: block;
    padding: 11px 0;
    color: #fff7ed;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 600;
}

.hero-carousel {
    position: relative;
    max-width: 1280px;
    min-height: 610px;
    margin: 34px auto 0;
    border-radius: 32px;
    overflow: hidden;
    background: radial-gradient(circle at top left, #fed7aa, transparent 35%), linear-gradient(135deg, #111827, #7c2d12 58%, #f97316);
    box-shadow: 0 30px 80px rgba(124, 45, 18, 0.35);
}

.hero-track,
.hero-slide {
    min-height: 610px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-slide__image {
    position: relative;
    min-height: 100%;
    overflow: hidden;
}

.hero-slide__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.92));
}

.hero-slide__image img {
    width: 100%;
    height: 100%;
    min-height: 610px;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    padding: 80px 72px 90px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.eyebrow {
    margin-bottom: 14px;
    color: #fed7aa;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-slide h1 {
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    margin-bottom: 22px;
    letter-spacing: -0.05em;
}

.hero-summary {
    max-width: 680px;
    color: #ffedd5;
    font-size: 18px;
    line-height: 1.9;
}

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

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

.hero-tags span,
.detail-tags span,
.movie-card__tags span {
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

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

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

.primary-button {
    min-width: 136px;
    padding: 14px 22px;
    background: #f97316;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.42);
}

.secondary-button {
    min-width: 136px;
    padding: 14px 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

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

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

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

.category-strip,
.content-section,
.page-main,
.detail-main {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.category-strip {
    padding: 26px 0 4px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.category-pill {
    min-height: 106px;
    border-radius: 22px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(124, 45, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill span {
    display: block;
    color: #9a3412;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 8px;
}

.category-pill small {
    color: #6b7280;
    line-height: 1.6;
}

.category-pill:hover,
.movie-card:hover,
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(124, 45, 18, 0.16);
}

.content-section {
    padding: 54px 0 0;
}

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

.section-heading p {
    color: #ea580c;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-copy h2,
.player-section h2 {
    color: #111827;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-heading h2 {
    font-size: 34px;
}

.section-link,
.text-button {
    padding: 10px 16px;
    background: #ffedd5;
    color: #c2410c;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #431407, #fb923c);
}

.movie-card--large .movie-card__poster {
    aspect-ratio: 16 / 11;
}

.movie-card__poster img,
.ranking-item__poster img,
.detail-poster img,
.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

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

.movie-card__poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.74));
}

.movie-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .movie-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card__body {
    padding: 18px;
}

.movie-card__meta,
.movie-card__score,
.ranking-item__meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: #6b7280;
    font-size: 13px;
}

.movie-card__meta a {
    color: #ea580c;
    font-weight: 800;
}

.movie-card h3 {
    margin: 9px 0 8px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card p {
    min-height: 48px;
    color: #4b5563;
    line-height: 1.7;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__tags {
    margin-top: 14px;
}

.movie-card__score {
    margin-top: 14px;
    justify-content: space-between;
    color: #9a3412;
    font-weight: 800;
}

.ranking-section {
    padding-bottom: 64px;
}

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

.ranking-item {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: center;
    border-radius: 18px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 12px 26px rgba(124, 45, 18, 0.08);
}

.rank-index {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.ranking-item__poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #431407, #fb923c);
}

.ranking-item h3 {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 6px;
}

.ranking-item p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-main {
    padding: 38px 0 70px;
}

.page-hero {
    border-radius: 28px;
    padding: 54px;
    background: radial-gradient(circle at top left, rgba(251, 146, 60, 0.28), transparent 36%), linear-gradient(135deg, #111827, #7c2d12 62%, #f97316);
    color: #ffffff;
    box-shadow: 0 24px 58px rgba(124, 45, 18, 0.22);
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(34px, 4vw, 56px);
    margin-bottom: 14px;
}

.page-hero p:not(.eyebrow) {
    max-width: 850px;
    color: #ffedd5;
    font-size: 17px;
    line-height: 1.9;
}

.compact-hero p:not(.eyebrow) {
    margin-top: 16px;
}

.category-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.category-card {
    border-radius: 24px;
    padding: 26px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(124, 45, 18, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card h2 {
    color: #111827;
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 10px;
}

.category-card p {
    color: #4b5563;
    line-height: 1.8;
}

.category-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0;
}

.category-card__links a {
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel,
.search-page-panel {
    margin: 26px 0 8px;
    border-radius: 22px;
    background: #ffffff;
    padding: 18px;
    display: grid;
    gap: 14px;
    box-shadow: 0 14px 30px rgba(124, 45, 18, 0.08);
}

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

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select,
.search-page-form input {
    min-height: 46px;
    border-radius: 999px;
    background: #fff7ed;
    padding: 0 16px;
}

.search-page-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-page-form button {
    min-width: 120px;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    font-weight: 900;
}

.detail-main {
    padding: 30px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #9a3412;
    font-size: 14px;
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 34px;
    align-items: center;
    border-radius: 30px;
    padding: 32px;
    background: #ffffff;
    box-shadow: 0 22px 52px rgba(124, 45, 18, 0.12);
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #431407, #fb923c);
}

.detail-info h1 {
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.14;
    margin-bottom: 18px;
}

.detail-one-line {
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 22px;
}

.detail-meta span {
    border-radius: 999px;
    background: #fff7ed;
    padding: 7px 11px;
    color: #9a3412;
    font-weight: 800;
}

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

.player-section,
.detail-copy {
    margin-top: 28px;
    border-radius: 28px;
    background: #ffffff;
    padding: 28px;
    box-shadow: 0 18px 42px rgba(124, 45, 18, 0.09);
}

.player-section h2,
.detail-copy h2 {
    font-size: 28px;
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #111827;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #111827;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #111827;
}

.player-cover__shade {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.42);
}

.player-cover__button {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f97316;
    color: #ffffff;
    font-size: 34px;
    box-shadow: 0 20px 45px rgba(249, 115, 22, 0.45);
}

.player-shell.is-playing .player-cover {
    display: none;
}

.detail-copy p {
    color: #374151;
    font-size: 17px;
    line-height: 2;
    margin-bottom: 24px;
}

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

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

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
}

.footer-logo {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 14px;
}

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

.site-footer p,
.site-footer a {
    color: #9ca3af;
    line-height: 1.9;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: #9ca3af;
    text-align: center;
}

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

    .search-form {
        margin-left: auto;
    }

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

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

    .category-strip,
    .content-section,
    .page-main,
    .detail-main,
    .footer-grid,
    .footer-bottom,
    .hero-carousel {
        margin-left: 18px;
        margin-right: 18px;
    }

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

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

@media (max-width: 820px) {
    .site-header__inner {
        height: auto;
        min-height: 68px;
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .site-logo__text {
        font-size: 19px;
    }

    .search-form {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .hero-carousel,
    .hero-track,
    .hero-slide {
        min-height: 680px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-slide__image {
        position: absolute;
        inset: 0;
    }

    .hero-slide__image::after {
        background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.92));
    }

    .hero-slide__content {
        padding: 56px 28px 84px;
        justify-content: flex-end;
    }

    .category-strip,
    .movie-grid,
    .movie-grid--featured,
    .ranking-list,
    .category-overview,
    .filter-panel,
    .footer-grid,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-hero {
        padding: 22px;
    }

    .detail-poster {
        max-width: 340px;
        width: 100%;
        margin: 0 auto;
    }

    .page-hero {
        padding: 34px 24px;
    }

    .ranking-item {
        grid-template-columns: 82px 1fr;
    }
}

@media (max-width: 520px) {
    .category-strip {
        grid-template-columns: 1fr;
    }

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

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

    .hero-actions,
    .search-page-form {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .primary-button,
    .secondary-button,
    .search-page-form button {
        width: 100%;
    }
}
