/* ══ HERO SECTION ══ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--bg-primary); }
.hero-bg-layer1 { position: absolute; inset: 0; background: radial-gradient(ellipse 85% 70% at 72% 50%, rgba(229,57,53,0.09) 0%, transparent 65%); pointer-events: none; }
.hero-bg-layer2 { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 75% at 15% 35%, rgba(120,20,20,0.13) 0%, transparent 60%); pointer-events: none; }
.hero-bg-layer3 { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--bg-primary) 100%); pointer-events: none; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(229,57,53,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(229,57,53,0.035) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 75% 75% at 72% 50%, black 15%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 75% 75% at 72% 50%, black 15%, transparent 70%); pointer-events: none; }

/* floating particles */
.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.particle { position: absolute; width: 2px; height: 2px; background: rgba(229,57,53,0.7); border-radius: 50%; opacity: 0; animation: pfloat linear infinite; }
.particle:nth-child(1) { left: 8%;  animation-duration: 14s; animation-delay: 0s; }
.particle:nth-child(2) { left: 22%; animation-duration: 19s; animation-delay: 3s; width: 3px; height: 3px; }
.particle:nth-child(3) { left: 40%; animation-duration: 15s; animation-delay: 1s; }
.particle:nth-child(4) { left: 60%; animation-duration: 21s; animation-delay: 5s; width: 3px; height: 3px; }
.particle:nth-child(5) { left: 75%; animation-duration: 17s; animation-delay: 2s; }
.particle:nth-child(6) { left: 88%; animation-duration: 13s; animation-delay: 7s; }
@keyframes pfloat { 0% { bottom: -8px; opacity: 0; } 8% { opacity: 0.6; } 92% { opacity: 0.25; } 100% { bottom: 105%; opacity: 0; transform: translateX(20px); } }

.hero-inner { max-width: 1400px; margin: 0 auto; padding: 80px 30px; display: flex; align-items: center; gap: 70px; position: relative; z-index: 1; width: 100%; }
.hero-content { flex: 1; }

/* eyebrow */
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; background: rgba(229,57,53,0.1); border: 1px solid rgba(229,57,53,0.3); border-radius: 50px; padding: 6px 16px; font-size: 11px; font-weight: 700; color: var(--accent-primary); letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 24px; }
.eyebrow-dot { width: 7px; height: 7px; background: var(--accent-primary); border-radius: 50%; box-shadow: 0 0 0 0 var(--shadow-glow); animation: pulse-ring 2s ease-out infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(229,57,53,0.7); } 70% { box-shadow: 0 0 0 9px rgba(229,57,53,0); } 100% { box-shadow: 0 0 0 0 rgba(229,57,53,0); } }

/* title */
.hero-title { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 800; color: var(--text-primary); line-height: 1.12; margin-bottom: 22px; letter-spacing: -1.5px; }
.gradient-text { background: linear-gradient(135deg, #fff 0%, #ff8080 40%, var(--accent-primary) 70%, #8b0000 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; background-size: 200% auto; animation: gpan 4s linear infinite; }
@keyframes gpan { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

.hero-subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; line-height: 1.75; }

/* search */
.hero-search { display: flex; margin-bottom: 32px; max-width: 440px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); transition: border-color 0.2s, box-shadow 0.2s; }
.hero-search:focus-within { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(229,57,53,0.12); }
.hero-search input { flex: 1; background: rgba(255,255,255,0.04); border: none; padding: 13px 18px; color: var(--text-primary); font-size: 14px; font-family: 'Assistant', sans-serif; outline: none; }
.hero-search input::placeholder { color: var(--text-secondary); opacity: 0.7; }
.hero-search button { background: var(--accent-primary); color: #fff; border: none; padding: 13px 20px; cursor: pointer; font-size: 15px; transition: background 0.2s; flex-shrink: 0; }
.hero-search button:hover { background: #f44336; }

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-btn { padding: 14px 28px; border-radius: 10px; font-weight: 700; font-size: 15px; transition: all 0.25s; display: inline-flex; align-items: center; gap: 8px; position: relative; overflow: hidden; text-decoration: none !important; }
.hero-btn-primary { background: var(--accent-primary); color: #fff; box-shadow: 0 0 25px rgba(229,57,53,0.4); }
.hero-btn-primary::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); animation: shimmer 3.5s ease-in-out infinite; }
@keyframes shimmer { 0% { left: -100%; } 45% { left: 160%; } 100% { left: 160%; } }
.hero-btn-primary:hover { background: #f44336; transform: translateY(-3px); box-shadow: 0 10px 35px rgba(229,57,53,0.6); }
.hero-btn-secondary { background: rgba(255,255,255,0.03); color: var(--text-primary); border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(8px); }
.hero-btn-secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(229,57,53,0.3); transform: translateY(-2px); }

/* hero stats */
.hero-stats { display: flex; gap: 32px; padding-top: 36px; border-top: 1px solid var(--border); }
.hero-stat-num { font-size: 24px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.hero-stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ══ POSTER COLLAGE ══ */
.poster-collage { flex: 0 0 450px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.poster-item { border-radius: var(--radius-md); overflow: hidden; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.6); transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); cursor: pointer; aspect-ratio: 2 / 3; background: var(--bg-secondary); display: block; text-decoration: none !important; }
.poster-item:nth-child(even) { transform: translateY(24px); }
.poster-item:hover { transform: translateY(-8px) scale(1.03) !important; box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(229,57,53,0.3); z-index: 10; }
.poster-item:nth-child(even):hover { transform: translateY(16px) scale(1.03) !important; }
.poster-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.poster-item:hover img { transform: scale(1.08); }
.poster-item::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,11,20,0.9) 0%, rgba(6,11,20,0.2) 40%, transparent 100%); opacity: 0; transition: opacity 0.5s ease; z-index: 1; }
.poster-item:hover::before { opacity: 1; }
.poster-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; z-index: 2; opacity: 0; transform: translateY(15px); transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); display: flex; align-items: center; gap: 12px; }
.poster-item:hover .poster-overlay { opacity: 1; transform: translateY(0); }
.poster-play { width: 44px; height: 44px; background: var(--accent-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; box-shadow: 0 0 20px rgba(229,57,53,0.4); transition: transform 0.3s ease; color: white; }
.poster-play:hover { transform: scale(1.15); }
.poster-title-text { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.poster-badge { position: absolute; top: 12px; right: 12px; background: var(--accent-primary); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; padding: 4px 10px; border-radius: 50px; z-index: 3; box-shadow: 0 0 12px rgba(229,57,53,0.4); }

/* ══ DIVIDER ══ */
.section-divider { max-width: 1400px; margin: 10px auto; padding: 0 30px; display: flex; align-items: center; gap: 18px; }
.divider-line { flex: 1; height: 1px; background: linear-gradient(to left, transparent, var(--border)); }
.divider-line.right { background: linear-gradient(to right, transparent, var(--border)); }
.divider-icon { font-size: 11px; color: var(--text-secondary); letter-spacing: 3px; text-transform: uppercase; white-space: nowrap; padding: 4px 14px; border: 1px solid var(--border); border-radius: 50px; }

.content-section { max-width: 1400px; margin: 90px auto; padding: 0 30px; }
.section-header { text-align: center; margin-bottom: 55px; }
.section-tag { display: inline-block; background: rgba(229,57,53,0.1); color: var(--accent-primary); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; padding: 5px 16px; border-radius: 50px; border: 1px solid rgba(229,57,53,0.3); margin-bottom: 16px; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--text-primary); margin-bottom: 14px; letter-spacing: -0.5px; }
.section-header p { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ══ TRENDING STRIP ══ */
.trending-strip { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 32px; display: flex; align-items: center; gap: 24px; overflow: hidden; max-width: 1400px; margin: 0 auto 90px; }
.trending-label { font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--accent-primary); text-transform: uppercase; white-space: nowrap; display: flex; align-items: center; gap: 10px; padding-left: 24px; border-left: 3px solid var(--accent-primary); flex-shrink: 0; }
.trending-scroll { display: flex; gap: 14px; overflow-x: auto; flex: 1; scrollbar-width: none; padding-bottom: 4px; }
.trending-scroll::-webkit-scrollbar { display: none; }
.trending-item { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--text-primary); cursor: pointer; transition: all 0.2s; flex-shrink: 0; text-decoration: none !important; }
.trending-item:hover { border-color: rgba(229,57,53,0.3); color: var(--text-primary); background: rgba(229,57,53,0.08); transform: translateY(-2px); }
.trending-item img { width: 36px; height: 52px; object-fit: cover; border-radius: 5px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.trending-rank { font-size: 12px; font-weight: 800; color: var(--text-secondary); font-family: monospace; min-width: 20px; }
.trending-name { font-size: 14px; font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.trending-type { font-size: 10px; color: var(--text-secondary); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }

/* ══ FEATURE CARDS ══ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: var(--bg-card); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 36px 28px 32px; transition: all 0.35s ease; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius-md); background: linear-gradient(135deg, rgba(229,57,53,0.1), transparent 60%); opacity: 0; transition: opacity 0.35s; }
.feature-card::after { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-primary), transparent); transform: scaleX(0); transition: transform 0.4s ease; }
.feature-card:hover { transform: translateY(-8px); border-color: rgba(229,57,53,0.3); box-shadow: 0 20px 50px rgba(229,57,53,0.1), 0 0 0 1px rgba(229,57,53,0.08); }
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { transform: scaleX(1); }
.feature-num { position: absolute; top: 18px; left: 18px; font-size: 11px; font-weight: 800; color: var(--text-secondary); font-family: monospace; letter-spacing: 1px; }
.badge-new { position: absolute; top: 16px; right: 16px; background: linear-gradient(135deg, #00c853, #1de9b6); color: #000; font-size: 9px; font-weight: 800; letter-spacing: 1.5px; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.feature-icon-wrap { width: 62px; height: 62px; background: rgba(229,57,53,0.08); border: 1px solid rgba(229,57,53,0.2); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; transition: all 0.3s; }
.feature-card:hover .feature-icon-wrap { background: rgba(229,57,53,0.16); transform: scale(1.1) rotate(-4deg); box-shadow: 0 0 22px rgba(229,57,53,0.2); }
.feature-icon-wrap svg { width: 30px; height: 30px; fill: var(--accent-primary); }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; position: relative; z-index: 1; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.75; position: relative; z-index: 1; }

/* ══ GENRES ══ */
.genres-section { background: linear-gradient(135deg, rgba(229,57,53,0.07) 0%, rgba(183,28,28,0.04) 100%); border: 1px solid rgba(229,57,53,0.3); border-radius: 20px; padding: 60px 50px; position: relative; overflow: hidden; }
.genres-section::before { content: ''; position: absolute; top: -80px; right: -80px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(229,57,53,0.1) 0%, transparent 70%); pointer-events: none; }
.genres-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.genre-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px 20px; text-align: center; cursor: pointer; transition: all 0.3s; text-decoration: none !important; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; overflow: hidden; }
.genre-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(229,57,53,0.1), transparent); opacity: 0; transition: opacity 0.3s; }
.genre-card:hover { transform: translateY(-6px); border-color: rgba(229,57,53,0.3); box-shadow: 0 16px 40px rgba(229,57,53,0.12); }
.genre-card:hover::after { opacity: 1; }
.genre-icon { font-size: 2.8rem; line-height: 1; }
.genre-name { font-size: 15px; font-weight: 700; color: var(--text-primary); position: relative; z-index: 1; }
.genre-count { font-size: 12px; color: var(--text-secondary); position: relative; z-index: 1; }
.genre-bar { width: 40px; height: 3px; background: linear-gradient(90deg, var(--accent-primary), var(--red-bright)); border-radius: 2px; position: relative; z-index: 1; transform: scaleX(0); transition: transform 0.3s; transform-origin: right; }
.genre-card:hover .genre-bar { transform: scaleX(1); }

/* ══ TV SHOWS ══ */
.tv-poster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 40px; }
.tv-card { border-radius: var(--radius-md); overflow: hidden; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.6); transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); cursor: pointer; aspect-ratio: 2/3; display: block; text-decoration: none !important; }
.tv-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tv-card:hover img { transform: scale(1.06); }
.tv-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,0.8), 0 0 0 2px rgba(229,57,53,0.3); }
.tv-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,0.07), transparent); transition: left 0.6s ease; z-index: 2; pointer-events: none; }
.tv-card:hover::before { left: 150%; }
.tv-card-info { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(6,11,20,0.96) 0%, rgba(6,11,20,0.6) 60%, transparent 100%); padding: 28px 16px 16px; transform: translateY(6px); transition: transform 0.3s ease; z-index: 3; }
.tv-card:hover .tv-card-info { transform: translateY(0); }
.tv-card-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 5px; }
.tv-card-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255,255,255,0.5); }
.tv-rating-star { color: #ffd700; }
.tv-card-featured { position: absolute; top: 12px; right: 12px; background: var(--accent-primary); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; padding: 4px 12px; border-radius: 50px; z-index: 3; box-shadow: 0 0 14px rgba(229,57,53,0.4); }
.tv-section-cta { text-align: center; margin-top: 10px; }

/* ══ CTA ══ */
.cta-section { background: linear-gradient(135deg, rgba(229,57,53,0.1) 0%, rgba(183,28,28,0.05) 100%); border: 1px solid rgba(229,57,53,0.3); border-radius: 20px; padding: 80px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-sparkle { position: absolute; pointer-events: none; opacity: 0.45; animation: sparkle 3.5s ease-in-out infinite; }
.cta-sparkle:nth-child(2) { top: 24px; right: 70px; font-size: 26px; }
.cta-sparkle:nth-child(3) { bottom: 28px; left: 80px; font-size: 20px; animation-delay: 1.2s; }
.cta-sparkle:nth-child(4) { top: 50%; right: 28px; font-size: 14px; animation-delay: 0.6s; }
@keyframes sparkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.4; } 50% { transform: scale(1.35) rotate(15deg); opacity: 0.8; } }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 350px; background: radial-gradient(ellipse, rgba(229,57,53,0.07) 0%, transparent 70%); pointer-events: none; }
.cta-section h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--text-primary); margin-bottom: 16px; position: relative; }
.cta-section p { font-size: 17px; color: var(--text-secondary); margin-bottom: 36px; position: relative; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
    .hero-inner { gap: 50px; }
    .poster-collage { flex: 0 0 360px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .genres-grid { grid-template-columns: repeat(2, 1fr); }
    .tv-poster-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-inner { flex-direction: column; text-align: center; padding: 60px 24px; }
    .hero-subtitle, .hero-search { margin-right: auto; margin-left: auto; }
    .hero-buttons, .hero-stats { justify-content: center; }
    .poster-collage { flex: 0 0 auto; max-width: 360px; width: 100%; }
    .features-grid { grid-template-columns: 1fr; }
    .trending-strip { padding: 18px 20px; }
    .genres-section { padding: 40px 24px; }
}
@media (max-width: 480px) {
    .genres-grid { grid-template-columns: repeat(2, 1fr); }
    .tv-poster-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-section { padding: 50px 24px; }
}