:root {
    --red: #dc2626;
    --red-dark: #991b1b;
    --red-deep: #7f1d1d;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f8fafc;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.nav-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.brand strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    color: var(--red);
}

.brand small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

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

.desktop-nav > a,
.nav-dropdown > button {
    position: relative;
    padding: 8px 0;
    border: 0;
    background: none;
    color: #374151;
    font-weight: 700;
    cursor: pointer;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown:hover > button {
    color: var(--red);
}

.desktop-nav > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--red-dark));
    transition: width 0.25s ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a.active::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__panel {
    position: absolute;
    top: 36px;
    left: 0;
    width: 190px;
    padding: 10px;
    display: grid;
    gap: 4px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: all 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown__panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown__panel a {
    padding: 9px 12px;
    border-radius: 10px;
    color: #4b5563;
    font-size: 14px;
}

.nav-dropdown__panel a:hover {
    color: var(--red);
    background: #fef2f2;
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    height: 42px;
    border: 2px solid #e5e7eb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    padding: 0 16px;
    color: #111827;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.top-search button,
.mobile-search button {
    height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    background: #fef2f2;
    color: var(--red);
    font-size: 22px;
}

.mobile-drawer {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 18px;
    border-top: 1px solid #f3f4f6;
}

.mobile-drawer.is-open {
    display: grid;
    gap: 10px;
}

.mobile-drawer a {
    padding: 10px 0;
    color: #374151;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 42%, #7f1d1d 100%);
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    min-height: 640px;
    margin: 0 auto;
    padding: 56px 20px 84px;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    inset: 56px 20px 84px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: center;
    gap: 54px;
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-copy {
    max-width: 760px;
}

.eyebrow,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 14px;
    color: var(--red);
    background: #fff1f2;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 20px 0 22px;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero h1 span {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    font-size: clamp(30px, 5vw, 58px);
}

.hero p {
    max-width: 780px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.7;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.tag-row span {
    background: #fef2f2;
    color: var(--red);
}

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

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

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

.btn-light {
    color: var(--red);
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(127, 29, 29, 0.25);
}

.btn-ghost {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    width: min(100%, 380px);
    justify-self: end;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(127, 29, 29, 0.22)), var(--hero-image) center / cover no-repeat;
    box-shadow: 0 34px 80px rgba(69, 10, 10, 0.35);
    transform: rotate(2deg);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: var(--red);
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.hero-dots {
    position: absolute;
    left: 20px;
    bottom: 42px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 36px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #ffffff;
}

.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(0deg, #f8fafc, transparent);
}

.section-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 20px;
}

.section-band {
    background: linear-gradient(135deg, #fff1f2, #fee2e2 48%, #fff7f7);
}

.section-heading {
    margin-bottom: 32px;
    text-align: center;
}

.section-heading--left {
    text-align: left;
}

.section-heading--inline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}

.section-heading h2,
.page-hero h1 {
    margin: 14px 0 10px;
    color: #111827;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 900;
}

.section-heading p,
.page-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.section-heading--left p,
.section-heading--inline p {
    margin-left: 0;
}

.section-heading--inline > a {
    color: var(--red);
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    min-height: 140px;
    overflow: hidden;
    border-radius: 22px;
    padding: 24px;
    color: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 45%);
}

.category-tile strong,
.category-tile span,
.category-tile em {
    position: relative;
    z-index: 1;
    display: block;
}

.category-tile strong {
    font-size: 22px;
    font-weight: 900;
}

.category-tile span {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.86);
}

.category-tile em {
    position: absolute;
    right: 22px;
    bottom: 18px;
    font-style: normal;
    font-size: 28px;
}

.category-tile--blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.category-tile--pink { background: linear-gradient(135deg, #db2777, #be185d); }
.category-tile--amber { background: linear-gradient(135deg, #d97706, #b45309); }
.category-tile--purple { background: linear-gradient(135deg, #9333ea, #7e22ce); }
.category-tile--slate { background: linear-gradient(135deg, #374151, #111827); }
.category-tile--orange { background: linear-gradient(135deg, #ea580c, #c2410c); }
.category-tile--indigo { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.category-tile--cyan { background: linear-gradient(135deg, #0891b2, #0e7490); }
.category-tile--green { background: linear-gradient(135deg, #16a34a, #15803d); }
.category-tile--stone { background: linear-gradient(135deg, #57534e, #292524); }
.category-tile--rose { background: linear-gradient(135deg, #e11d48, #be123c); }
.category-tile--red { background: linear-gradient(135deg, #dc2626, #991b1b); }

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #fee2e2, #b91c1c 48%, #450a0a);
}

.movie-card--compact .poster-frame {
    aspect-ratio: 16 / 11;
}

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

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

.score-badge,
.play-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.score-badge {
    top: 12px;
    left: 12px;
    min-width: 46px;
    height: 32px;
    padding: 0 10px;
    background: #ffffff;
    color: var(--red);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.play-badge {
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #ffffff;
    opacity: 0.95;
}

.movie-card__body {
    padding: 18px;
}

.movie-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-card h3 a:hover {
    color: var(--red);
}

.movie-card p {
    min-height: 45px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
}

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

.ranking-list--full {
    gap: 12px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 58px 82px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 14px;
    min-height: 94px;
    border-radius: 18px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.ranking-number {
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    font-size: 24px;
    font-weight: 900;
}

.ranking-poster {
    display: block;
    width: 82px;
    height: 68px;
    overflow: hidden;
    border-radius: 14px;
    background: #fee2e2;
}

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

.ranking-content strong,
.ranking-content em {
    display: block;
}

.ranking-content strong {
    font-weight: 900;
}

.ranking-content em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-score {
    color: #f59e0b;
    font-size: 20px;
    font-weight: 900;
    text-align: right;
}

.cta-section {
    padding: 82px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--red-dark), var(--red-deep));
    text-align: center;
}

.cta-section h2 {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 900;
}

.cta-section p {
    margin: 0 auto 26px;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.page-hero {
    padding: 96px 20px 82px;
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626, #991b1b 58%, #450a0a);
    text-align: center;
}

.page-hero h1 {
    color: #ffffff;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.86);
}

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

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

.overview-card {
    position: relative;
    min-height: 270px;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), #111827);
    box-shadow: var(--shadow);
}

.overview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
}

.overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.45s ease;
}

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

.overview-card span,
.overview-card strong,
.overview-card em {
    position: relative;
    z-index: 1;
}

.overview-card span {
    width: max-content;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.overview-card strong {
    margin: 14px 0 6px;
    font-size: 24px;
    font-weight: 900;
}

.overview-card em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.84);
}

.filter-panel {
    margin-bottom: 28px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(150px, 0.26fr));
    gap: 12px;
    border: 1px solid #fee2e2;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.local-filter-panel {
    grid-template-columns: minmax(240px, 1fr) 190px;
}

.result-count {
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 800;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    background: linear-gradient(135deg, #450a0a, #111827), var(--detail-image) center / cover no-repeat;
    color: #ffffff;
    overflow: hidden;
}

.detail-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(69, 10, 10, 0.94), rgba(69, 10, 10, 0.78), rgba(17, 24, 39, 0.55));
}

.detail-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    min-height: 620px;
    margin: 0 auto;
    padding: 70px 20px;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fee2e2, #991b1b);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.35);
}

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

.detail-poster span {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ffffff;
    color: var(--red);
    font-weight: 900;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb em {
    font-style: normal;
}

.detail-info h1 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.08;
    font-weight: 900;
}

.detail-info p {
    max-width: 780px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.7;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
}

.detail-tags {
    margin-bottom: 26px;
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-loading,
.player-error,
.player-overlay,
.player-controls {
    position: absolute;
    z-index: 2;
}

.player-loading {
    top: 16px;
    left: 16px;
    display: none;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.52);
    color: #ffffff;
    font-weight: 800;
}

.player-loading.is-visible {
    display: inline-flex;
}

.player-overlay {
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.66));
    color: #ffffff;
    text-align: center;
    transition: opacity 0.25s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.player-main-button {
    width: 90px;
    height: 90px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #ffffff;
    font-size: 34px;
    box-shadow: 0 22px 42px rgba(220, 38, 38, 0.32);
    cursor: pointer;
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay span {
    color: rgba(255, 255, 255, 0.8);
}

.player-controls {
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.player-shell:hover .player-controls,
.player-shell.is-playing .player-controls {
    opacity: 1;
    transform: translateY(0);
}

.player-controls button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    backdrop-filter: blur(10px);
    font-weight: 800;
    cursor: pointer;
}

.player-error {
    left: 16px;
    right: 16px;
    bottom: 68px;
    display: none;
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(220, 38, 38, 0.88);
    color: #ffffff;
    font-weight: 800;
    text-align: center;
}

.player-error.is-visible {
    display: block;
}

.content-panel,
.side-card {
    border-radius: 24px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.content-panel h2,
.side-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

.content-panel p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.content-panel--page {
    max-width: 920px;
}

.content-panel--page p + p {
    margin-top: 16px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.side-card dt {
    color: var(--muted);
    font-weight: 900;
}

.side-card dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 55%, #030712);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 54px 20px 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 0.6fr 0.6fr;
    gap: 40px;
}

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

.site-footer p {
    max-width: 520px;
    color: #9ca3af;
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

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

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

@media (max-width: 1100px) {
    .top-search {
        display: none;
    }

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

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

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

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

    .mobile-menu-button {
        display: inline-flex;
        margin-left: auto;
    }

    .hero,
    .hero-inner {
        min-height: 760px;
    }

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

    .hero-poster {
        justify-self: start;
        width: min(72vw, 280px);
        max-height: 360px;
    }

    .two-column-section,
    .detail-hero__inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(72vw, 300px);
    }

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

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

@media (max-width: 560px) {
    .nav-shell {
        gap: 12px;
    }

    .brand strong {
        font-size: 18px;
    }

    .brand small {
        display: none;
    }

    .hero,
    .hero-inner {
        min-height: 700px;
    }

    .hero-slide {
        inset: 36px 20px 72px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero h1 span {
        font-size: 28px;
    }

    .hero p,
    .detail-info p {
        font-size: 16px;
    }

    .movie-grid,
    .movie-grid--featured,
    .movie-grid--small,
    .category-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .section-shell {
        padding: 52px 16px;
    }

    .ranking-item {
        grid-template-columns: 48px 64px minmax(0, 1fr);
    }

    .ranking-score {
        grid-column: 2 / 4;
        text-align: left;
    }

    .detail-hero__inner {
        padding: 48px 16px;
    }

    .player-controls {
        flex-wrap: wrap;
    }
}
