* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #1f2937;
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 52%, #fef3c7 100%);
    font-family: 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;
    width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
    border-bottom: 1px solid rgba(251, 191, 36, 0.24);
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.12);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1180px;
    height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #92400e;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #d97706, #f97316);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.34);
    font-size: 18px;
}

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

.nav-links a,
.mobile-panel a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #b45309;
    background: rgba(251, 191, 36, 0.18);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #92400e;
    background: rgba(251, 191, 36, 0.18);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 10px 20px 16px;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
}

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

.hero {
    overflow: hidden;
    position: relative;
    padding: 54px 20px 36px;
    background:
        radial-gradient(circle at 12% 18%, rgba(251, 191, 36, 0.42), transparent 28%),
        radial-gradient(circle at 92% 14%, rgba(249, 115, 22, 0.28), transparent 34%),
        linear-gradient(135deg, #fffbeb 0%, #fed7aa 100%);
}

.hero-shell {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
    gap: 32px;
    align-items: center;
}

.hero-heading {
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 12px;
    color: #d97706;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #78350f;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.hero-heading > p:not(.eyebrow),
.page-hero > p,
.detail-copy .lead {
    max-width: 680px;
    margin: 20px 0 0;
    color: #92400e;
    font-size: 20px;
}

.hero-search,
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
}

.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border: 2px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #374151;
    padding: 0 18px;
    outline: 0;
    box-shadow: 0 14px 36px rgba(146, 64, 14, 0.08);
}

.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #d97706;
}

.hero-search a,
.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search a,
.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, #d97706, #f97316);
    box-shadow: 0 18px 34px rgba(217, 119, 6, 0.28);
}

.ghost-btn,
.text-link {
    color: #b45309;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.24);
}

.hero-search a:hover,
.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(217, 119, 6, 0.22);
}

.hero-carousel {
    position: relative;
    min-height: 510px;
    border-radius: 32px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 34px 70px rgba(120, 53, 15, 0.24);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-image {
    position: relative;
    min-height: 100%;
    background: linear-gradient(135deg, #78350f, #f59e0b);
}

.hero-image img {
    height: 100%;
    min-height: 510px;
    object-fit: cover;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 510px;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    color: #fff7ed;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.82), rgba(120, 53, 15, 0.88));
}

.hero-copy h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-copy p:not(.eyebrow) {
    margin: 18px 0 0;
    color: #fde68a;
    font-size: 17px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

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

.hero-dots {
    position: absolute;
    right: 28px;
    bottom: 24px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

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

.hero-category-row {
    max-width: 1180px;
    margin: 28px auto 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.hero-category-row a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(245, 158, 11, 0.24);
    font-weight: 800;
}

.content-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 20px;
}

.tinted {
    max-width: none;
    padding-left: max(20px, calc((100vw - 1180px) / 2 + 20px));
    padding-right: max(20px, calc((100vw - 1180px) / 2 + 20px));
}

.tinted.blue {
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.88), rgba(236, 254, 255, 0.88));
}

.tinted.warm {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.9), rgba(255, 237, 213, 0.92));
}

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

.section-title p {
    margin: 0 0 4px;
    color: #d97706;
    font-weight: 900;
}

.section-title h2,
.section-title h3 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.section-title a {
    color: #b45309;
    font-weight: 900;
}

.section-title.slim {
    align-items: center;
    margin-bottom: 18px;
}

.section-title.slim h2,
.section-title.slim h3 {
    font-size: 24px;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 38px rgba(120, 53, 15, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 58px rgba(120, 53, 15, 0.18);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fdba74);
}

.movie-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .movie-cover img,
.category-tile:hover img,
.category-art:hover img {
    transform: scale(1.08);
}

.pill {
    position: absolute;
    top: 12px;
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.16);
}

.top-left {
    left: 12px;
}

.top-right {
    right: 12px;
    color: #1d4ed8;
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.24);
}

.movie-info {
    padding: 16px;
}

.movie-title {
    display: block;
    color: #1f2937;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.25;
}

.movie-title:hover {
    color: #d97706;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.movie-info p,
.movie-card.compact p,
.region-card p,
.category-tile p,
.category-overview-card p,
.footer-grid p,
.detail-text p {
    color: #6b7280;
}

.movie-info p {
    min-height: 44px;
    margin: 10px 0 0;
    font-size: 14px;
}

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

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

.movie-card.horizontal .movie-cover {
    aspect-ratio: auto;
    min-height: 210px;
}

.movie-card.horizontal .movie-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.region-card,
.rank-block,
.category-overview-card {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    padding: 24px;
    box-shadow: 0 18px 44px rgba(120, 53, 15, 0.1);
}

.compact-list,
.rank-grid {
    display: grid;
    gap: 14px;
}

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

.movie-card.compact {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
}

.compact-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background: linear-gradient(135deg, #fef3c7, #fdba74);
}

.compact-cover img {
    height: 100%;
    object-fit: cover;
}

.movie-card.compact .movie-title {
    font-size: 14px;
}

.movie-card.compact p {
    margin: 6px 0 0;
    font-size: 12px;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 230px;
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 22px;
    color: #fff;
    background: #111827;
    box-shadow: 0 20px 48px rgba(17, 24, 39, 0.18);
}

.category-tile img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.54;
    transition: transform 0.4s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.9));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 22px;
    font-weight: 950;
}

.category-tile p {
    margin: 8px 0 0;
    color: #fde68a;
}

.page-hero,
.detail-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 20px 28px;
}

.compact-hero {
    text-align: center;
}

.compact-hero p {
    margin-left: auto;
    margin-right: auto;
}

.filter-bar {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.filter-bar select {
    max-width: 180px;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
}

.category-art {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #fef3c7, #fdba74);
}

.category-art img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-overview-card h2 {
    margin: 0;
    color: #1f2937;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #92400e;
    font-weight: 800;
    margin-bottom: 22px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 26px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 24px 58px rgba(120, 53, 15, 0.12);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #fef3c7, #fdba74);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.18);
}

.detail-poster img {
    height: 100%;
    object-fit: cover;
}

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0;
}

.detail-meta span {
    padding: 12px 14px;
    border-radius: 16px;
    color: #78350f;
    background: #fffbeb;
    font-weight: 800;
}

.player-section h2,
.detail-text h2 {
    color: #1f2937;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.24);
}

.main-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(15, 23, 42, 0.52));
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #d97706, #f97316);
    font-size: 34px;
    box-shadow: 0 20px 46px rgba(217, 119, 6, 0.34);
    padding-left: 5px;
}

.player-shell.playing .play-overlay {
    display: none;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 2;
    color: #fef3c7;
    font-size: 13px;
    font-weight: 800;
    pointer-events: none;
}

.detail-text {
    font-size: 18px;
}

.site-footer {
    color: #fffbeb;
    background: linear-gradient(135deg, #78350f, #9a3412);
    margin-top: 40px;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 20px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 28px;
}

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

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 18px;
    color: #fde68a;
}

.footer-grid p {
    color: #fed7aa;
}

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

.footer-links a {
    color: #ffedd5;
}

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

.copyright {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px 26px;
    color: #fed7aa;
    border-top: 1px solid rgba(255, 237, 213, 0.2);
    font-size: 14px;
}

.hidden-card {
    display: none !important;
}

@media (max-width: 1100px) {
    .hero-shell,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-carousel {
        min-height: 460px;
    }

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

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

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

    .region-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

    .hero {
        padding-top: 34px;
    }

    .hero-search,
    .filter-bar,
    .section-title {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar select {
        max-width: none;
    }

    .hero-slide {
        display: block;
        overflow-y: auto;
    }

    .hero-image img,
    .hero-copy {
        min-height: 260px;
    }

    .hero-copy {
        padding: 28px;
    }

    .movie-grid.six,
    .movie-grid.four,
    .movie-grid.catalogue,
    .rank-grid,
    .category-grid,
    .region-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 560px) {
    .brand {
        font-size: 20px;
    }

    .movie-grid.six,
    .movie-grid.four,
    .movie-grid.catalogue,
    .rank-grid,
    .category-grid,
    .region-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-grid {
        padding: 18px;
    }

    .detail-poster {
        max-width: 260px;
        margin: 0 auto;
    }
}
