/* =========================================
   THEME: ULYTAU TV (2025 Final)
   PLATFORM: DataLife Engine (DLE)
   ========================================= */

/* --- 1. GLOBAL & VARIABLES --- */
:root {
    --bg-dark: #050505;
    --surface: #121212;
    --surface-light: #1e1e1e;
    --primary: #00E5FF; /* Cyan Neon */
    --secondary: #7000FF; /* Purple Neon */
    --danger: #ff004c;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass: rgba(20, 20, 20, 0.85);
    --border: 1px solid rgba(255, 255, 255, 0.08);
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: 'Inter', sans-serif; overflow-x: hidden; min-height: 100vh; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

h1, h2, h3, h4, .nav-link, .btn, .info-title, .section-title { font-family: 'Montserrat', sans-serif; }

/* --- 2. PRELOADER --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-dark); z-index: 9999; display: flex; justify-content: center; align-items: center; flex-direction: column; transition: opacity 0.8s ease; }
.loader-logo { font-size: 3rem; font-weight: 800; letter-spacing: 5px; background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: pulse 1s infinite alternate; }
.loader-bar { width: 200px; height: 2px; background: #333; margin-top: 20px; position: relative; overflow: hidden; }
.loader-bar::after { content: ''; position: absolute; top: 0; left: 0; height: 100%; width: 0; background: var(--primary); animation: load 1.5s ease-in-out forwards; }

/* --- 3. HEADER & NAV --- */
header { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: 0.4s; }
header.scrolled { background: var(--glass); backdrop-filter: blur(20px); border-bottom: var(--border); padding: 10px 5%; }
.logo { font-size: 1.5rem; font-weight: 800; color: white; display: flex; align-items: center; gap: 8px; }
.logo span { color: var(--primary); text-shadow: 0 0 15px var(--primary); }
nav ul { display: flex; gap: 30px; }
.nav-link { font-weight: 600; position: relative; opacity: 0.8; }
.nav-link:hover { opacity: 1; color: var(--primary); }
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: var(--primary); transition: 0.3s; }
.nav-link:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.lang-switch { font-size: 0.9rem; font-weight: 700; cursor: pointer; color: #fff; }
.btn-live { padding: 10px 25px; border-radius: 50px; background: rgba(255, 0, 76, 0.15); border: 1px solid var(--danger); color: var(--danger); font-weight: 700; display: flex; align-items: center; gap: 8px; transition: 0.3s; text-transform: uppercase; font-size: 0.8rem; cursor: pointer; }
.btn-live:hover { background: var(--danger); color: white; box-shadow: 0 0 25px var(--danger); }
.dot { width: 8px; height: 8px; background: currentColor; border-radius: 50%; animation: blink 0.8s infinite; }

/* --- 4. HERO SECTION --- */
.hero { height: 100vh; display: flex; align-items: center; padding: 0 5%; position: relative; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 75% 30%, #2a1045 0%, #050505 70%); z-index: 0; animation: bgZoom 20s infinite alternate linear; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTAgMGg0MHY0MEgwVjB6IiBmaWxsPSIjZmZmIi8+PC9zdmc+'); z-index: 1; opacity: 0.5; }
.hero-content { max-width: 700px; z-index: 2; position: relative; }
.tag { display: inline-block; padding: 6px 14px; border: 1px solid var(--primary); color: var(--primary); border-radius: 4px; font-size: 0.85rem; font-weight: 700; margin-bottom: 25px; letter-spacing: 2px; box-shadow: 0 0 15px rgba(0,229,255,0.2); }
.hero h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; background: linear-gradient(to bottom right, #ffffff, #a0a0a0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase; }
.hero p { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 40px; line-height: 1.6; max-width: 500px; }
.btn-primary { padding: 18px 45px; background: white; color: black; border-radius: 8px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; font-size: 1rem; position: relative; overflow: hidden; cursor: pointer; border: none; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent); transform: skewX(-25deg); animation: shine 4s infinite; }
.btn-primary:hover { background: var(--primary); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3); }

/* --- 5. SECTIONS --- */
.section-title { font-size: 2rem; margin-bottom: 40px; display: flex; align-items: center; gap: 15px; font-weight: 700; }
.section-title i { color: var(--primary); }

/* Schedule */
.schedule { padding: 80px 5%; background: var(--surface); border-top: var(--border); border-bottom: var(--border); }
.timeline-wrapper { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; padding-top: 10px; }
.time-card { min-width: 250px; padding: 30px; background: var(--surface-light); border-radius: var(--radius); border-left: 3px solid #444; transition: 0.4s; cursor: pointer; flex-shrink: 0; position: relative; }
.time-card:hover { transform: translateY(-10px); border-left-color: var(--primary); background: #252525; }
.time-card.active { background: linear-gradient(135deg, #1e1e1e, #2a2a2a); border-left: 3px solid var(--danger); box-shadow: 0 10px 30px rgba(255, 0, 76, 0.2); }
.time-card h4 { font-size: 1.2rem; margin: 10px 0; color: white; }
.time-card span { font-size: 1rem; color: var(--primary); font-weight: 700; }

/* Projects */
.projects { padding: 80px 5%; border-bottom: var(--border); overflow: hidden; }
.slider-container { display: flex; gap: 30px; overflow-x: auto; padding: 20px 0 50px 0; }
.project-card { min-width: 260px; height: 400px; border-radius: 12px; position: relative; overflow: hidden; cursor: pointer; transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); box-shadow: 0 10px 20px rgba(0,0,0,0.5); border: 1px solid transparent; }
.project-card:hover { transform: scale(1.08) translateY(-10px); z-index: 5; box-shadow: 0 30px 60px rgba(0,0,0,0.8); border-color: var(--primary); }
.poster-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-card:hover .poster-img { filter: brightness(0.3); }
.project-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 25px; background: linear-gradient(to top, black, transparent); transform: translateY(100%); transition: 0.4s; }
.project-card:hover .project-info { transform: translateY(0); }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); font-size: 4rem; color: var(--primary); transition: 0.4s; opacity: 0; filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.8)); }
.project-card:hover .play-icon { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* News Bento */
.news { padding: 100px 5%; }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 300px); gap: 25px; }
.news-card { background: var(--surface); border-radius: 24px; overflow: hidden; position: relative; border: var(--border); transition: 0.5s; cursor: pointer; }
.news-card:hover { transform: translateY(-8px); border-color: var(--secondary); box-shadow: 0 15px 40px rgba(112, 0, 255, 0.15); }
.news-bg { width: 100%; height: 100%; background-size: cover; background-position: center; transition: 0.8s; opacity: 0.7; }
.news-card:hover .news-bg { transform: scale(1.1); opacity: 0.4; }
.news-info { position: absolute; bottom: 0; left: 0; padding: 30px; width: 100%; background: linear-gradient(to top, rgba(0,0,0,1), transparent); }
.news-cat { font-size: 0.8rem; color: var(--primary); font-weight: 800; letter-spacing: 1px; margin-bottom: 8px; }
.news-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; color: white; }
.span-2 { grid-column: span 2; }
.row-2 { grid-row: span 2; }

/* App Section */
.app-section { padding: 120px 5%; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg, #0a0a0a 0%, #000000 100%); border-top: var(--border); position: relative; overflow: hidden; }
.app-text { max-width: 50%; z-index: 2; }
.app-text h2 { font-size: 3.5rem; margin-bottom: 20px; }
.app-text span { color: var(--primary); }
.mockup { width: 300px; height: 600px; border: 10px solid #222; border-radius: 50px; background: #000; position: relative; box-shadow: 0 50px 100px rgba(0,0,0,0.7); transform: rotate(-5deg); animation: float 6s ease-in-out infinite; z-index: 2; }
.mockup-screen { width: 100%; height: 100%; background: url('https://images.unsplash.com/photo-1611162617474-5b21e879e113?q=80&w=1000&auto=format&fit=crop') center/cover; border-radius: 40px; opacity: 0.9; }
.glow-circle { position: absolute; width: 500px; height: 500px; background: var(--secondary); filter: blur(150px); opacity: 0.2; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; }

/* Providers */
.providers-section { padding: 80px 5%; background: #080808; border-top: var(--border); text-align: center; position: relative; z-index: 10; }
.providers-grid { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.provider-item { position: relative; width: 160px; height: 80px; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.provider-logo { max-width: 100%; max-height: 100%; filter: grayscale(100%) opacity(0.5); transition: 0.4s; }
.provider-item:hover .provider-logo { filter: grayscale(0%) opacity(1); transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); }
.provider-info { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(10px) scale(0.8); background: rgba(20, 20, 20, 0.8); backdrop-filter: blur(10px); border: 1px solid var(--primary); padding: 15px; border-radius: 12px; width: 200px; opacity: 0; visibility: hidden; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); pointer-events: none; z-index: 100; }
.provider-item:hover .provider-info { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-15px) scale(1); }
.provider-info::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -8px; border-width: 8px; border-style: solid; border-color: var(--primary) transparent transparent transparent; }
.channel-num { color: var(--primary); font-weight: bold; }

/* Ticker */
.ticker-wrap { position: fixed; bottom: 0; left: 0; width: 100%; height: 40px; background: var(--danger); z-index: 999; display: flex; align-items: center; overflow: hidden; box-shadow: 0 -5px 20px rgba(255, 0, 76, 0.3); }
.ticker-label { background: #a30030; color: white; padding: 0 20px; height: 100%; display: flex; align-items: center; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; z-index: 2; }
.ticker { display: inline-block; white-space: nowrap; padding-left: 100%; animation: ticker 30s linear infinite; }
.ticker-item { display: inline-block; padding: 0 50px; color: white; font-weight: 600; font-size: 0.9rem; }

/* Footer */
footer { padding: 80px 5% 100px 5%; background: #000; color: #666; text-align: center; border-top: var(--border); }
.footer-logo { font-size: 2rem; color: white; margin-bottom: 25px; font-weight: 800; }
.socials { margin-top: 40px; display: flex; justify-content: center; gap: 30px; }
.socials i { font-size: 2rem; color: #fff; cursor: pointer; transition: 0.3s; }
.socials i:hover { color: var(--primary); transform: scale(1.3) rotate(10deg); filter: drop-shadow(0 0 10px var(--primary)); }

/* FORMS */
.form-container { max-width: 500px; margin: 50px auto; padding: 40px; background: var(--surface); border: var(--border); border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); position: relative; overflow: hidden; }
.form-container::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.form-title { font-size: 1.8rem; margin-bottom: 30px; text-align: center; font-weight: 700; color: white; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem; }
input[type="text"], input[type="password"], input[type="email"], textarea { width: 100%; padding: 15px; background: var(--surface-light); border: 1px solid #333; border-radius: 10px; color: white; font-family: 'Inter', sans-serif; font-size: 1rem; transition: 0.3s; }
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); }
textarea { resize: vertical; min-height: 120px; }
.user-panel { display: flex; align-items: center; gap: 15px; padding: 10px 20px; background: rgba(255,255,255,0.05); border-radius: 50px; border: 1px solid rgba(255,255,255,0.1); }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.user-name { font-weight: 700; font-size: 0.9rem; }
.user-links a { font-size: 0.8rem; color: #aaa; margin-left: 10px; }

/* DLE Full Story */
.full-story-container { background: var(--surface); padding: 40px; border-radius: 20px; border: var(--border); color: #ddd; }
.full-story-container h1 { color: white; }
.content-text { font-size: 1.15rem; line-height: 1.8; margin-top: 20px; }
.content-text img { max-width: 100%; height: auto; border-radius: 12px; margin: 20px 0; }

/* Video Modal */
.video-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(10px); align-items: center; justify-content: center; }
.modal-content { position: relative; width: 80%; max-width: 1000px; aspect-ratio: 16/9; background: #000; border: 1px solid #333; border-radius: 12px; overflow: hidden; animation: scaleIn 0.3s ease; }
.close-btn { position: absolute; top: -40px; right: 0; color: white; font-size: 30px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.close-btn:hover { color: var(--primary); }
.back-to-top { position: fixed; bottom: 60px; right: 20px; width: 50px; height: 50px; background: var(--surface-light); border: 1px solid var(--border); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white; cursor: pointer; opacity: 0; transition: 0.3s; z-index: 990; pointer-events: none; }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--primary); color: black; }

/* Animations Keyframes */
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }
@keyframes float { 0% { transform: translateY(0px) rotate(-5deg); } 50% { transform: translateY(-20px) rotate(-3deg); } 100% { transform: translateY(0px) rotate(-5deg); } }
@keyframes shine { 0% { left: -100%; } 20% { left: 100%; } 100% { left: 100%; } }
@keyframes bgZoom { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
@keyframes scaleIn { from {transform: scale(0.8); opacity: 0;} to {transform: scale(1); opacity: 1;} }
@keyframes load { to { width: 100%; } }
@keyframes blink { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; } 100% { opacity: 1; transform: scale(1); } }
@keyframes pulse { to { opacity: 0.5; } }
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 1s ease; }
.reveal-left.active { opacity: 1; transform: translateX(0); }

/* Responsive */
@media (max-width: 900px) {
    .hero h1 { font-size: 3rem; }
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .span-2 { grid-column: span 2; }
    .row-2 { grid-row: span 1; height: 350px; }
    .nav-actions { display: none; }
}
@media (max-width: 600px) {
    header { padding: 15px 20px; }
    nav { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .app-section { flex-direction: column; text-align: center; padding: 60px 5%; }
    .app-text { max-width: 100%; margin-bottom: 50px; }
    .mockup { width: 250px; height: 500px; }
    .ticker-label { display: none; }
    .providers-grid { gap: 20px; }
    .provider-item { width: 120px; }
}