.container { width: min(1200px, 92vw); margin-inline: auto; }
html, body { max-width: 100%; overflow-x: hidden; }
.glass { background: var(--surface); backdrop-filter: var(--blur); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius); }
.sticky-header { position: sticky; top: 0; z-index: 100; }
.nav-wrap { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1rem; padding: 1rem 0; }
.brand a { font-weight: 700; letter-spacing: 0.3px; }
.mega-menu ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 1rem; }
.mega-menu a { color: var(--text); opacity: 0.9; }
.menu-toggle { display: none; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: var(--text); border-radius: 10px; padding: 0.4rem 0.6rem; }
.mode-toggle { border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: var(--text); border-radius: 999px; width: 40px; height: 40px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-top: 1rem; }
.hero { padding: 3rem; min-height: 280px; background: linear-gradient(140deg, rgba(79, 124, 255, 0.2), rgba(125, 75, 255, 0.25)); }
.btn-primary { display: inline-flex; border: 0; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--primary), var(--accent)); padding: 0.8rem 1.2rem; border-radius: 999px; }
.sidebar-filters { padding: 1rem; }
.sidebar-filters form { display: grid; gap: 0.6rem; }
.sidebar-filters input { width: 100%; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; background: transparent; color: var(--text); padding: 0.65rem; }
.quick-stats { margin-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem; }
.quick-stats div { display: grid; gap: 0.25rem; }
.quick-stats strong { font-size: 1.2rem; }
.home-section { margin-top: 2rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.section-head a { color: var(--primary); font-size: 0.9rem; }
.grid-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.media-card { overflow: hidden; border-radius: 14px; background: #111827; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.media-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35); }
.media-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.media-card__body { padding: 0.7rem; }
.movie-hero { min-height: 56vh; background-size: cover; background-position: center; }

.single-title-layout { overflow: hidden; }
.single-title-layout .movie-hero { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.single-title-layout .info-card p { margin-top: 0.5rem; }

.movie-hero .overlay { padding: 2rem 0; }
.movie-columns { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-top: 1rem; }
.side-panel { padding: 1rem; height: fit-content; }
.info-card { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; padding: 1rem; }
.info-card img { width: 100%; border-radius: 12px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.pill { padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.15); font-size: 0.85rem; }
.meta { list-style: none; padding: 0; margin: 0.6rem 0 1rem; display: grid; gap: 0.35rem; color: var(--muted); }
.video-wrap iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 14px; }
.cast-slider, .related-slider { display: flex; gap: 0.75rem; overflow: auto; padding-bottom: 0.5rem; }
.cast-slider span { padding: 0.5rem 0.75rem; border-radius: 999px; background: #1e293b; flex: 0 0 auto; }
.related-slider .media-card { flex: 0 0 145px; min-width: 145px; }
.related-slider .media-card__body { min-height: 88px; }
.download-accordion details { margin: 0.6rem 0; background: #101828; padding: 0.6rem 1rem; border-radius: 10px; }
.download-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.download-buttons .btn-primary { text-decoration: none; }

.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.screenshot-grid img { width: 100%; border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; }
.ad-slot { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.listing-controls { display: grid; gap: 1rem; justify-items: center; margin: 1.5rem auto 2rem; }
.pagination-wrap ul { list-style: none; display: flex; gap: 0.4rem; padding: 0; margin: 0; }
.pagination-wrap a, .pagination-wrap span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; }
.site-footer { margin-top: 2rem; background: #070a12; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-grid { padding: 2rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-grid h3, .footer-grid h4 { margin-top: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 1rem 0; color: var(--muted); }
.archive-head { margin-top: 1rem; padding: 1rem; }
.skeleton { position: relative; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (max-width: 1000px) {
	.hero-grid,
	.movie-columns,
	.footer-grid,
	.quick-stats { grid-template-columns: 1fr; }
	.nav-wrap { grid-template-columns: auto auto auto; }
	.mega-menu { display: none; grid-column: 1 / -1; }
	.mega-menu.is-open { display: block; }
	.mega-menu ul { flex-direction: column; align-items: flex-start; }
	.menu-toggle { display: inline-flex; }
	.single-title-layout .overlay.container { width: min(100%, 94vw); }
	.info-card { width: 100%; }
}
@media (max-width: 768px) {
	.container { width: calc(100% - 20px); }
	.info-card { grid-template-columns: 1fr; gap: 0.75rem; padding: 0.75rem; }
	.info-card img { max-width: 180px; margin: 0 auto; }
	.info-card h1 { font-size: 1.8rem; line-height: 1.2; }
	.info-card p { font-size: 0.95rem; }
	.hero { padding: 1.2rem; min-height: auto; }
	.movie-hero { min-height: 32vh; }
	.movie-columns { gap: 0.75rem; }
	.side-panel { font-size: 0.92rem; padding: 0.85rem; }
	.pill-row { gap: 0.35rem; }
	.pill { font-size: 0.74rem; }
	.meta { gap: 0.25rem; font-size: 0.9rem; }
	.grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
	.media-card__body h3 { font-size: 0.9rem; margin: 0; }
	.video-wrap iframe { border-radius: 10px; }
	.download-accordion details { padding: 0.5rem 0.75rem; }
}
@media (max-width: 480px) {
	.grid-list { grid-template-columns: 1fr 1fr; }
	.nav-wrap { grid-template-columns: 1fr auto auto; }
	.quick-stats { padding: 0.75rem; }
	.listing-controls { margin-top: 1rem; }
	.related-slider .media-card { flex-basis: 120px; min-width: 120px; }
	.cast-slider { gap: 0.45rem; }
	.cast-slider span { font-size: 0.78rem; padding: 0.4rem 0.6rem; }
}

/* Movie single page redesign */
.movie-single-page { margin-bottom: 2rem; }
.movie-hero__overlay { background: linear-gradient(180deg, rgba(6, 10, 20, 0.2), rgba(6, 10, 20, 0.9)); }
.movie-hero__inner { padding: 2.5rem 0 1.25rem; }
.movie-single-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); grid-template-areas: "main sidebar"; gap: 1rem; margin-top: 1rem; }
.movie-main-content,
.movie-sidebar { min-width: 0; display: grid; gap: 1rem; align-content: start; }
.movie-main-content { grid-area: main; }
.movie-sidebar { grid-area: sidebar; }
.movie-panel { background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 1rem; min-width: 0; overflow: visible; }
.movie-panel > h2 { margin: 0 0 0.75rem; font-size: 1.2rem; }
.info-card { grid-template-columns: 210px minmax(0, 1fr); align-items: start; padding: 1.25rem; }
.info-card__poster-wrap { min-width: 0; }
.info-card__poster-wrap img { width: 100%; max-width: 220px; border-radius: 14px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45); }
.info-card__content { min-width: 0; }
.rating-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.8rem; }
.rating-box { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 0.45rem 0.7rem; display: grid; gap: 0.2rem; }
.rating-box span { color: var(--muted); font-size: 0.78rem; }
.video-wrap { width: 100%; max-width: 100%; overflow: hidden; border-radius: 12px; }
.video-wrap iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16/9; }
.screenshot-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.screenshot-grid img { display: block; width: 100%; }
.movie-facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.movie-facts-list li { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); border-bottom: 1px dashed rgba(255, 255, 255, 0.1); padding-bottom: 0.4rem; }
.movie-facts-list li strong { color: var(--text); text-align: right; word-break: break-word; }
.movie-download-panel .ad-slot { margin-top: 0.2rem; margin-bottom: 0.7rem; }
.movie-comments-panel { overflow-x: auto; }

@media (max-width: 1000px) {
	.movie-single-layout { grid-template-columns: 1fr; grid-template-areas: "sidebar" "main"; }
}

@media (max-width: 768px) {
	.movie-hero__inner { padding: 1rem 0; }
	.info-card { grid-template-columns: 1fr; padding: 0.9rem; }
	.info-card__poster-wrap img { max-width: 170px; margin-inline: auto; }
	.rating-row { gap: 0.5rem; }
	.movie-panel { padding: 0.8rem; }
	.movie-panel > h2 { font-size: 1.05rem; }
	.screenshot-grid { grid-template-columns: 1fr; }
	.cast-slider { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
	.cast-slider span { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
	.movie-panel { padding: 0.75rem; }
	.movie-facts-list li { flex-direction: column; gap: 0.25rem; }
}
