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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-blue) 55%, var(--ocean-light));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(10, 74, 107, 0.24);
}

.site-header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.site-logo__mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--seafoam);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.site-logo__text {
    font-size: 1.45rem;
}

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

.site-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    padding: 8px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.header-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 12px 16px;
    background: #ffffff;
    color: var(--text-dark);
}

.header-search input {
    width: 210px;
    background: rgba(255, 255, 255, 0.96);
}

.header-search button,
.wide-search button {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: var(--seafoam);
    color: var(--ocean-deep);
    font-weight: 800;
}

.hero-slider {
    position: relative;
    height: 620px;
    min-height: 72vh;
    overflow: hidden;
    background: var(--ocean-deep);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

.hero-slide__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 74, 107, 0.95), rgba(10, 74, 107, 0.62), rgba(10, 74, 107, 0.12)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.08));
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
    max-width: 1180px;
}

.eyebrow {
    color: var(--seafoam);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 800;
    margin: 0 0 12px;
}

.hero-slide h1,
.hero-slide h2 {
    max-width: 820px;
    margin: 0 0 14px;
    font-size: clamp(2.5rem, 5vw, 5.1rem);
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.hero-slide h2 + .hero-slide__summary,
.hero-slide h1 + h2 {
    margin-top: 0;
}

.hero-slide h1 + h2 {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    color: var(--sand-light);
}

.hero-slide__summary {
    max-width: 650px;
    font-size: 1.16rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px;
}

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

.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(79, 179, 212, 0.16);
    color: var(--ocean-blue);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-slide__tags .tag-chip,
.detail-tags .tag-chip {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--sunset-orange), var(--coral-accent));
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(255, 107, 107, 0.32);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 2rem;
    backdrop-filter: blur(6px);
}

.hero-control--prev {
    left: 22px;
}

.hero-control--next {
    right: 22px;
}

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

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
}

.hero-dots button.is-active {
    background: var(--seafoam);
}

.section-block {
    margin: 52px auto;
}

.intro-block {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
    align-items: center;
    padding: 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 18px 42px rgba(10, 74, 107, 0.12);
}

.intro-block h2,
.section-title h2,
.page-hero h1,
.detail-section h2,
.player-section h2,
.info-card h2 {
    color: var(--ocean-deep);
    font-weight: 900;
}

.intro-block h2,
.section-title h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.intro-block p {
    color: var(--text-gray);
    line-height: 1.8;
}

.wide-search {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: var(--ocean-deep);
    border-radius: 22px;
}

.wide-search input {
    width: 100%;
}

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

.section-title a {
    color: var(--ocean-blue);
    font-weight: 800;
}

.section-title--compact {
    align-items: center;
}

.category-grid,
.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.category-tile,
.category-overview-card a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 150px;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(245, 235, 224, 0.88));
    box-shadow: 0 12px 30px rgba(10, 74, 107, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card a:hover,
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 46px rgba(10, 74, 107, 0.18);
}

.category-tile strong,
.category-overview-card span {
    color: var(--ocean-deep);
    font-size: 1.2rem;
    font-weight: 900;
}

.category-tile span,
.category-overview-card strong {
    color: var(--text-gray);
    line-height: 1.7;
    font-weight: 500;
}

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

.movie-grid--home {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.movie-grid--ranking {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.movie-grid--related {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 26px rgba(10, 74, 107, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    background: var(--ocean-deep);
    overflow: hidden;
}

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

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

.movie-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(10, 74, 107, 0.84);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-card__body {
    padding: 16px;
}

.movie-card__meta {
    margin-bottom: 8px;
    color: var(--ocean-blue);
    font-size: 0.82rem;
    font-weight: 800;
}

.movie-card__title {
    min-height: 2.7em;
    margin: 0 0 8px;
    color: var(--text-dark);
    font-size: 1.04rem;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card__desc {
    min-height: 4.9em;
    margin: 0 0 12px;
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 26px;
    align-items: stretch;
}

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

.rank-list--wide {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rank-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 4px 12px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 20px rgba(10, 74, 107, 0.08);
}

.rank-item__num {
    grid-row: span 2;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ocean-blue);
    color: #ffffff;
    font-weight: 900;
}

.rank-item a {
    color: var(--text-dark);
    font-weight: 900;
}

.rank-item em {
    color: var(--text-gray);
    font-size: 0.86rem;
    font-style: normal;
}

.spotlight-card {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 28px;
    background: var(--ocean-deep);
    color: #ffffff;
    box-shadow: 0 24px 54px rgba(10, 74, 107, 0.24);
}

.spotlight-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
}

.spotlight-card div {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background: linear-gradient(0deg, rgba(10, 74, 107, 0.96), rgba(10, 74, 107, 0.2));
}

.spotlight-card h2 {
    font-size: 2rem;
    margin: 0 0 12px;
}

.spotlight-card p {
    line-height: 1.75;
}

.page-main {
    padding: 28px 0 56px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: var(--text-gray);
    font-size: 0.92rem;
}

.breadcrumbs a {
    color: var(--ocean-blue);
    font-weight: 800;
}

.breadcrumbs span::before,
.breadcrumbs a + a::before,
.breadcrumbs a + span::before {
    content: "/";
    margin-right: 8px;
    color: rgba(108, 117, 125, 0.55);
}

.breadcrumbs--light,
.breadcrumbs--light a {
    color: rgba(255, 255, 255, 0.92);
}

.page-hero {
    margin-bottom: 26px;
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(245, 235, 224, 0.78));
    box-shadow: 0 16px 36px rgba(10, 74, 107, 0.12);
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--text-gray);
    line-height: 1.8;
}

.filter-panel {
    margin: 26px 0;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 28px rgba(10, 74, 107, 0.1);
}

.filter-panel__row {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 190px));
    gap: 12px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    box-shadow: inset 0 0 0 1px rgba(26, 127, 160, 0.18);
}

.filter-panel__result {
    margin-top: 12px;
    color: var(--text-gray);
    font-weight: 700;
}

.detail-hero {
    position: relative;
    min-height: 540px;
    background-image: var(--detail-poster);
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.detail-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 74, 107, 0.98), rgba(10, 74, 107, 0.74), rgba(10, 74, 107, 0.16)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.1));
}

.detail-hero__inner {
    position: relative;
    z-index: 2;
    padding: 34px 0 58px;
}

.detail-hero__content {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    min-height: 400px;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32);
}

.detail-hero h1 {
    max-width: 850px;
    margin: 0 0 16px;
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    line-height: 1.08;
    font-weight: 900;
}

.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.12rem;
    line-height: 1.8;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.detail-main,
.detail-side {
    min-width: 0;
}

.player-section,
.detail-section,
.info-card {
    margin-bottom: 26px;
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 32px rgba(10, 74, 107, 0.11);
}

.player-section h2,
.detail-section h2,
.info-card h2 {
    margin: 0 0 18px;
    font-size: 1.5rem;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.movie-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(10, 74, 107, 0.68), rgba(10, 74, 107, 0.24));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-cover__icon {
    display: inline-grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--sunset-orange), var(--coral-accent));
    color: #ffffff;
    font-size: 2.2rem;
    box-shadow: 0 18px 34px rgba(255, 107, 107, 0.35);
}

.play-cover strong {
    font-size: 1.2rem;
}

.detail-section p {
    color: var(--text-gray);
    line-height: 1.9;
    margin: 0;
    white-space: pre-line;
}

.info-card dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px 12px;
    margin: 0;
}

.info-card dt {
    color: var(--ocean-blue);
    font-weight: 900;
}

.info-card dd {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.6;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.compact-card img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

.compact-card strong {
    display: block;
    color: var(--text-dark);
    line-height: 1.45;
}

.compact-card em {
    display: block;
    margin-top: 5px;
    color: var(--text-gray);
    font-size: 0.86rem;
    font-style: normal;
}

.site-footer {
    padding: 38px 0;
    background: var(--ocean-deep);
    color: rgba(255, 255, 255, 0.82);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.site-footer strong {
    display: block;
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.site-footer p {
    max-width: 760px;
    margin: 0;
    line-height: 1.8;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer__links a {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
}

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

@media (max-width: 980px) {
    .site-header__inner,
    .site-nav,
    .header-search,
    .wide-search,
    .section-title,
    .site-footer__grid {
        align-items: stretch;
    }

    .site-header__inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .site-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

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

    .header-search input {
        width: 170px;
    }

    .intro-block,
    .split-layout,
    .detail-layout,
    .detail-hero__content,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

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

    .detail-poster {
        max-width: 240px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .site-logo__text {
        font-size: 1.2rem;
    }

    .site-header__inner {
        gap: 12px;
    }

    .header-search,
    .wide-search,
    .filter-panel__row {
        width: 100%;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .header-search input {
        width: 100%;
    }

    .hero-slider {
        height: 640px;
    }

    .hero-slide__content {
        padding: 80px 0 70px;
        justify-content: flex-end;
    }

    .hero-slide h1,
    .hero-slide h2,
    .detail-hero h1 {
        font-size: 2.15rem;
    }

    .hero-control {
        top: auto;
        bottom: 82px;
        transform: none;
    }

    .intro-block,
    .page-hero,
    .player-section,
    .detail-section,
    .info-card {
        padding: 20px;
        border-radius: 20px;
    }

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

    .movie-card__body {
        padding: 12px;
    }

    .movie-card__title {
        font-size: 0.96rem;
    }

    .movie-card__desc {
        font-size: 0.84rem;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-hero__content {
        min-height: auto;
        padding-top: 28px;
    }

    .detail-poster {
        max-width: 180px;
    }

    .rank-list--wide {
        grid-template-columns: 1fr;
    }
}
