:root {
    --site-amber: #f59e0b;
    --site-yellow: #facc15;
    --site-dark: #111827;
    --site-text: #1f2937;
    --site-muted: #6b7280;
    --site-line: #e5e7eb;
    --site-soft: #f9fafb;
    --site-card: #ffffff;
    --site-radius: 22px;
    --site-shadow: 0 20px 55px rgba(15, 23, 42, 0.10);
}

body {
    min-height: 100vh;
    color: var(--site-text);
    background: linear-gradient(180deg, #fff8eb 0%, #f8fafc 34%, #ffffff 100%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--site-dark);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--site-amber), var(--site-yellow));
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.32);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

.site-nav-link,
.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #92400e;
    background: #fffbeb;
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
}

.header-search input,
.mobile-search input,
.filter-search-row input {
    width: 250px;
    border: 0;
    outline: none;
    background: transparent;
    padding: 9px 12px;
    color: var(--site-text);
}

.header-search button,
.mobile-search button,
.filter-search-row button,
.primary-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-amber), var(--site-yellow));
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.24);
    transition: 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.filter-search-row button:hover,
.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
}

.secondary-button {
    color: #92400e;
    background: #ffffff;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 4px;
    background: #111827;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: var(--site-shadow);
}

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

.mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 5px;
    background: #f3f4f6;
    border-radius: 999px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

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

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(17, 24, 39, 0.76) 45%, rgba(17, 24, 39, 0.32) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 48px;
    color: #ffffff;
}

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

.hero-title {
    max-width: 780px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.hero-text {
    max-width: 680px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.9;
}

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

.hero-card {
    align-self: end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.hero-card a {
    display: block;
}

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

.hero-card-body {
    padding: 20px;
}

.hero-card-body h2 {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
}

.hero-card-body p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 34px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    width: 58px;
    background: var(--site-yellow);
}

.hero-arrow-row {
    display: flex;
    gap: 10px;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.section-block {
    padding: 72px 0;
}

.section-block.compact {
    padding: 42px 0;
}

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

.section-heading h1,
.section-heading h2 {
    color: var(--site-dark);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 680px;
    margin-top: 10px;
    color: var(--site-muted);
    line-height: 1.85;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    transition: 0.25s ease;
}

.movie-card:hover,
.horizontal-card:hover,
.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--site-shadow);
}

.movie-poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #111827;
}

.movie-poster-link img,
.horizontal-poster img,
.detail-cover img,
.related-card img,
.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.55s ease;
}

.movie-card:hover img,
.horizontal-card:hover img,
.related-card:hover img,
.category-tile:hover img {
    transform: scale(1.06);
}

.movie-play-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-amber), var(--site-yellow));
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    min-width: 38px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #ffffff;
    font-weight: 900;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.82);
    backdrop-filter: blur(10px);
}

.movie-card-body {
    padding: 18px;
}

.movie-meta-line,
.horizontal-top,
.detail-meta,
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--site-muted);
    font-size: 13px;
}

.movie-meta-line span,
.detail-meta span,
.horizontal-top span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.movie-card h2,
.horizontal-card h2,
.related-card h2 {
    margin-top: 12px;
    color: var(--site-dark);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card p,
.horizontal-card p {
    margin-top: 10px;
    color: var(--site-muted);
    line-height: 1.75;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.movie-tags span {
    padding: 5px 9px;
    color: #92400e;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: #fffbeb;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    align-items: end;
    padding: 24px;
    border-radius: 28px;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    transition: 0.25s ease;
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.55;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.18));
}

.category-tile-content {
    position: relative;
    z-index: 2;
}

.category-tile h2 {
    font-size: 26px;
    font-weight: 950;
}

.category-tile p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--site-line);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.filter-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #f3f4f6;
}

.filter-search-row input {
    flex: 1;
    width: auto;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    padding: 9px 14px;
    color: #4b5563;
    font-weight: 800;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    transition: 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #92400e;
    border-color: #fcd34d;
    background: #fffbeb;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--site-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    transition: 0.25s ease;
}

.horizontal-poster {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    background: #111827;
}

.list-rank {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--site-amber), var(--site-yellow)) !important;
}

.detail-hero {
    padding: 48px 0 34px;
    background: radial-gradient(circle at 20% 0%, #fef3c7 0%, rgba(254, 243, 199, 0) 42%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.breadcrumbs {
    margin-bottom: 22px;
}

.breadcrumbs a {
    color: #b45309;
    font-weight: 800;
}

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

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--site-shadow);
}

.detail-cover img {
    aspect-ratio: 2 / 3;
}

.detail-info h1 {
    color: var(--site-dark);
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.03;
    font-weight: 950;
    letter-spacing: -0.05em;
}

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

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

.player-section {
    padding: 38px 0 60px;
}

.player-shell {
    overflow: hidden;
    border-radius: 30px;
    background: #050816;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
}

.movie-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 1;
}

.player-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background-position: center;
    background-size: cover;
    cursor: pointer;
}

.player-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2));
}

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

.player-start {
    position: relative;
    z-index: 2;
    width: 94px;
    height: 94px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--site-amber), var(--site-yellow));
    box-shadow: 0 20px 55px rgba(245, 158, 11, 0.38);
}

.player-message {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 3;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.content-card {
    padding: 28px;
    border: 1px solid var(--site-line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.content-card h2 {
    margin-bottom: 14px;
    color: var(--site-dark);
    font-size: 26px;
    font-weight: 950;
}

.content-card p {
    color: #4b5563;
    line-height: 1.95;
}

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

.related-card {
    overflow: hidden;
    border: 1px solid var(--site-line);
    border-radius: 22px;
    background: #ffffff;
    transition: 0.25s ease;
}

.related-card a:first-child {
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #111827;
}

.related-card-body {
    padding: 14px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    padding: 48px 0;
}

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

.site-footer p {
    margin-top: 12px;
    line-height: 1.8;
}

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

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

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

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

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--site-muted);
    border: 1px dashed #d1d5db;
    border-radius: 24px;
    background: #ffffff;
}

.empty-state.is-visible {
    display: block;
}

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

    .mobile-menu-button {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 64px 0 110px;
    }

    .hero-card {
        max-width: 360px;
    }

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

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

@media (max-width: 760px) {
    .site-container,
    .site-header-inner,
    .mobile-nav,
    .hero-content,
    .hero-controls {
        width: min(100% - 24px, 1180px);
    }

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

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

    .hero-card img {
        height: 320px;
    }

    .movie-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-body,
    .content-card {
        padding: 16px;
    }

    .section-heading {
        display: block;
    }

    .horizontal-card,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .horizontal-poster {
        width: 100%;
        max-height: 380px;
    }

    .detail-cover {
        max-width: 330px;
    }

    .filter-search-row,
    .mobile-search {
        border-radius: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .filter-search-row input,
    .mobile-search input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .detail-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        justify-content: center;
        text-align: center;
    }
}
