* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: #f9fafb;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.site-nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #06b6d4, #3b82f6, #14b8a6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.26);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    font-weight: 650;
    color: #374151;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: #06b6d4;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0891b2;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: #374151;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 76px 0 84px;
    background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 52%, #f0fdfa 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image: linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 26px 26px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: 48px;
    align-items: center;
}

.hero-copy h1 {
    margin: 16px 0 18px;
    font-size: clamp(46px, 6vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 10px 32px rgba(15, 23, 42, 0.14);
}

.gradient-text {
    background: linear-gradient(90deg, #06b6d4, #3b82f6, #14b8a6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 999px;
    color: #0e7490;
    background: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.08);
}

.hero-lead {
    max-width: 680px;
    margin: 0 0 28px;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.9;
}

.hero-actions,
.hero-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-categories {
    margin-top: 22px;
}

.hero-categories a {
    padding: 10px 14px;
    border-radius: 14px;
    color: #0f766e;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(20, 184, 166, 0.22);
    font-weight: 650;
    transition: all 0.25s ease;
}

.hero-categories a:hover {
    color: #ffffff;
    background: #06b6d4;
    transform: translateY(-2px);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 750;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    box-shadow: 0 18px 36px rgba(6, 182, 212, 0.24);
}

.btn-secondary {
    color: #0e7490;
    background: rgba(255, 255, 255, 0.72);
    border: 2px solid rgba(6, 182, 212, 0.2);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(6, 182, 212, 0.22);
}

.hero-slider {
    position: relative;
    min-height: 520px;
}

.hero-slider-stage {
    position: relative;
    height: 520px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-shade,
.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.hero-slide-content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    color: #ffffff;
}

.hero-slide-content h2 {
    margin: 14px 0 8px;
    font-size: 32px;
    line-height: 1.16;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.hero-slide-content p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.hero-slide-content a {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 12px;
    color: #ffffff;
    background: #06b6d4;
    font-weight: 700;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.45);
    transform: translateY(-50%);
    font-size: 32px;
    line-height: 1;
    transition: background 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(6, 182, 212, 0.86);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -28px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.24);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 30px;
    background: #06b6d4;
}

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

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

.stat-card {
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;
    color: #0e7490;
    font-size: 26px;
}

.stat-card span {
    color: #6b7280;
}

.section-head {
    margin-bottom: 36px;
}

.section-head.center {
    text-align: center;
}

.section-head.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.section-title {
    margin: 0 0 12px;
    color: #111827;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 18px;
    line-height: 1.7;
}

.text-link {
    color: #0891b2;
    font-weight: 750;
}

.white-to-gray {
    background: linear-gradient(180deg, #ffffff, #f9fafb);
}

.gray-section {
    background: #f3f4f6;
}

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

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

.movie-card {
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-thumb {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #0f172a;
}

.featured-grid .movie-thumb {
    height: 300px;
}

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

.movie-card:hover .movie-thumb img {
    transform: scale(1.1);
}

.movie-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.movie-overlay span {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.9);
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .movie-overlay {
    background: rgba(0, 0, 0, 0.32);
}

.movie-card:hover .movie-overlay span {
    opacity: 1;
    transform: scale(1);
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
}

.year-badge {
    right: 14px;
    padding: 6px 10px;
    background: #dc2626;
}

.rank-badge {
    left: 14px;
    padding: 7px 11px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.thumb-caption {
    position: absolute;
    z-index: 2;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.thumb-caption span,
.thumb-caption strong,
.tag-row span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 700;
}

.thumb-caption span {
    background: #06b6d4;
}

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

.movie-card-body h2 {
    margin: 0 0 10px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.movie-card:hover .movie-card-body h2 {
    color: #0891b2;
}

.movie-card-body p {
    min-height: 46px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    color: #0891b2;
    font-size: 13px;
    font-weight: 700;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.movie-card-body .tag-row span {
    color: #4b5563;
    background: #f3f4f6;
}

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

.category-chip {
    display: block;
    min-height: 118px;
    padding: 24px;
    border: 2px solid transparent;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.category-chip:hover {
    border-color: #67e8f9;
}

.category-chip strong {
    display: block;
    margin-bottom: 10px;
    color: #111827;
    font-size: 21px;
}

.category-chip span {
    color: #6b7280;
    line-height: 1.6;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-list a {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.rank-list span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    font-weight: 850;
}

.rank-list strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-list em {
    color: #6b7280;
    font-style: normal;
    font-size: 14px;
}

.page-shell {
    min-height: 72vh;
}

.page-hero {
    position: relative;
    padding: 64px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #ecfeff, #eff6ff, #f0fdfa);
}

.page-hero h1 {
    margin: 14px 0 12px;
    color: #111827;
    font-size: clamp(38px, 6vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.8;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.filter-title {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 800;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 220px 210px;
    gap: 16px;
    align-items: end;
}

.filter-controls label {
    display: grid;
    gap: 8px;
    color: #4b5563;
    font-weight: 700;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-controls input:focus,
.filter-controls select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.view-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.view-buttons button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    color: #4b5563;
    background: #f3f4f6;
    font-weight: 750;
}

.view-buttons button.active {
    color: #ffffff;
    background: #06b6d4;
}

.empty-state {
    margin-top: 18px;
    padding: 28px;
    border-radius: 18px;
    color: #6b7280;
    background: #f9fafb;
    text-align: center;
    font-weight: 700;
}

.searchable-grid.is-list {
    grid-template-columns: 1fr;
}

.searchable-grid.is-list .movie-card-link {
    display: grid;
    grid-template-columns: 240px 1fr;
}

.searchable-grid.is-list .movie-thumb {
    height: 180px;
}

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

.category-overview-card {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.category-overview-card > a {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.category-overview-head h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 28px;
}

.category-overview-head p {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
}

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

.compact-card {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.compact-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    background: #111827;
}

.compact-card span {
    color: #0891b2;
    font-size: 12px;
    font-weight: 700;
}

.compact-card strong {
    overflow: hidden;
    color: #111827;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
}

.category-enter {
    color: #0891b2;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 26px 0 18px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #0891b2;
    font-weight: 700;
}

.detail-page {
    background: #f9fafb;
    min-height: 80vh;
}

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

.detail-main-card,
.side-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.poster-hero {
    position: relative;
    min-height: 460px;
    background: #0f172a;
}

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

.poster-info {
    position: absolute;
    left: 36px;
    right: 36px;
    bottom: 34px;
    color: #ffffff;
}

.detail-badges,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-badges span,
.detail-tag {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.detail-badges span:first-child {
    background: #06b6d4;
}

.poster-info h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.08;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.36);
}

.poster-info p {
    max-width: 860px;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.75;
}

.detail-content {
    padding: 34px;
}

.watch-section,
.article-section {
    margin-bottom: 34px;
}

.watch-section h2,
.article-section h2,
.side-card h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 26px;
    line-height: 1.25;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    aspect-ratio: 16 / 9;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-round {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    box-shadow: 0 22px 42px rgba(6, 182, 212, 0.32);
    font-size: 30px;
}

.article-section p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 2;
    white-space: pre-line;
}

.detail-tag {
    color: #374151;
    background: #f3f4f6;
    transition: all 0.25s ease;
}

.detail-tag:hover {
    color: #ffffff;
    background: #06b6d4;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}

.prev-next a {
    color: #0891b2;
    font-weight: 800;
}

.detail-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 22px;
}

.side-card {
    padding: 24px;
}

.side-card dl {
    display: grid;
    gap: 15px;
    margin: 0;
}

.side-card dl div {
    display: grid;
    gap: 5px;
}

.side-card dt {
    color: #6b7280;
    font-size: 13px;
}

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

.side-card dd a {
    color: #0891b2;
}

.side-related {
    display: grid;
    gap: 14px;
}

.side-related .compact-card {
    grid-template-columns: 96px 1fr;
    align-items: center;
    gap: 12px;
}

.side-related .compact-card img {
    height: 72px;
}

.site-footer {
    margin-top: 0;
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(180deg, #f9fafb, #f3f4f6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    padding: 52px 0;
}

.site-footer p {
    max-width: 440px;
    color: #6b7280;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 18px;
}

.site-footer a:not(.footer-logo) {
    display: block;
    margin-bottom: 10px;
    color: #6b7280;
    transition: color 0.25s ease;
}

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    text-align: center;
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 45;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: #06b6d4;
    box-shadow: 0 16px 32px rgba(6, 182, 212, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.animate-fade-in {
    animation: fadeIn 0.6s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

    .hero-slider-stage {
        height: 460px;
    }

    .detail-sidebar {
        position: static;
    }

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

@media (max-width: 820px) {
    .menu-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 20px;
        background: #ffffff;
        box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
    }

    .site-nav.open {
        display: flex;
    }

    .nav-link {
        padding: 13px 14px;
        border-radius: 14px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active,
    .nav-link:hover {
        background: #ecfeff;
    }

    .hero-section {
        padding: 54px 0 70px;
    }

    .hero-slider,
    .hero-slider-stage {
        min-height: 420px;
        height: 420px;
    }

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

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

    .searchable-grid.is-list .movie-card-link {
        grid-template-columns: 1fr;
    }

    .searchable-grid.is-list .movie-thumb {
        height: 250px;
    }

    .rank-list a {
        grid-template-columns: 46px 1fr;
    }

    .rank-list em {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .container-custom {
        width: min(100% - 24px, 1280px);
    }

    .site-logo,
    .footer-logo {
        font-size: 20px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-lead,
    .page-hero p {
        font-size: 16px;
    }

    .hero-slider,
    .hero-slider-stage {
        min-height: 380px;
        height: 380px;
        border-radius: 24px;
    }

    .hero-slide-content {
        left: 18px;
        right: 18px;
        bottom: 22px;
    }

    .hero-slide-content h2 {
        font-size: 24px;
    }

    .stats-section,
    .section-block {
        padding: 48px 0;
    }

    .stat-grid,
    .movie-grid,
    .featured-grid,
    .category-chip-grid,
    .category-overview-grid,
    .footer-grid,
    .category-preview-row {
        grid-template-columns: 1fr;
    }

    .poster-hero,
    .poster-hero img {
        min-height: 360px;
        height: 360px;
    }

    .poster-info {
        left: 22px;
        right: 22px;
        bottom: 24px;
    }

    .detail-content,
    .side-card {
        padding: 22px;
    }

    .prev-next {
        flex-direction: column;
    }
}
