/* ==========================================================================
   BỘ CSS HOÀN CHỈNH CHO TRANG CHỦ DOMINATE GTAV (BAO GỒM RESPONSIVE & FIX LỖI)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #07090f;
  --bg2:       #0c0f1a;
  --panel:     #111520;
  --border:    rgba(255,255,255,.07);
  --gold:      #f5a623;
  --gold2:     #ffcc5c;
  --cyan:      #00d4ff;
  --cyan-dim:  rgba(0,212,255,.15);
  --red:       #ff3b5c;
  --white:     #ffffff;
  --muted:     rgba(255,255,255,.45);
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--white); font-family: var(--font-body); overflow-x: hidden; }

/* --- HIỆU ỨNG NHIỄU (NOISE OVERLAY) --- */
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: .4;
}

/* --- HERO SECTION --- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 48px 80px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,212,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,.04) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.hero::after {
  content: ''; position: absolute; top: -10%; right: 5%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,212,255,.08) 0%, transparent 70%);
  pointer-events: none; animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.08)} }

.hero-content { position: relative; z-index: 2; flex: 1; max-width: 680px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--cyan); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 24px; opacity: 0; animation: fadeUp .6s .2s forwards; }
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--cyan); }
.hero-title { font-family: var(--font-head); font-style: italic; font-weight: 800; line-height: .92; margin-bottom: 28px; opacity: 0; animation: fadeUp .6s .4s forwards; }
.hero-title .line1 { display: block; font-size: clamp(64px, 8vw, 110px); color: var(--white); -webkit-text-stroke: 1px rgba(255,255,255,.2); }
.hero-title .line2 { display: block; font-size: clamp(80px, 10vw, 140px); background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 50%, var(--gold) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 480px; margin-bottom: 40px; opacity: 0; animation: fadeUp .6s .6s forwards; }
.hero-desc strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; align-items: center; gap: 20px; opacity: 0; animation: fadeUp .6s .8s forwards; }

.btn-primary { position: relative; display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: #000; padding: 14px 36px; font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: none; clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%); transition: all .25s; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); transform: translateX(-100%); transition: transform .5s; }
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(245,166,35,.4); }
.btn-primary:hover::before { transform: translateX(100%); }

.btn-ghost { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--border); padding: 14px 28px; clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%); transition: all .25s; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }

.hero-stats { display: flex; gap: 2px; margin-top: 64px; opacity: 0; animation: fadeUp .6s 1s forwards; }
.stat { flex: 1; padding: 20px 24px; background: var(--panel); border: 1px solid var(--border); position: relative; overflow: hidden; transition: border-color .25s, background .25s; }
.stat:hover { border-color: var(--gold); background: rgba(245,166,35,.05); }
.stat:first-child { border-left: 2px solid var(--gold); }
.stat-value { font-family: var(--font-head); font-weight: 800; font-size: 36px; color: var(--gold); line-height: 1; letter-spacing: .02em; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; font-family: var(--font-mono); letter-spacing: .08em; }

.hero-card { position: absolute; right: 48px; top: 50%; transform: translateY(-50%); width: 340px; background: linear-gradient(135deg, rgba(17,21,32,.95) 0%, rgba(12,15,26,.95) 100%); border: 1px solid rgba(0,212,255,.2); padding: 32px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); box-shadow: 0 0 60px rgba(0,212,255,.08), inset 0 1px 0 rgba(0,212,255,.1); opacity: 0; animation: slideIn .7s .9s forwards; z-index: 2; }
.hero-card-tag { font-family: var(--font-mono); font-size: 10px; color: var(--cyan); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.hero-card-tag::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-card-title { font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 1.1; margin-bottom: 8px; font-style: italic; }
.hero-card-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.hero-card-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.hero-card-features li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.7); }
.hero-card-features li::before { content: '▸'; color: var(--gold); font-size: 10px; flex-shrink: 0; }
.hero-card-btn { display: block; width: 100%; margin-top: 28px; background: transparent; border: 1px solid var(--cyan); color: var(--cyan); padding: 12px; font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: all .25s; text-align: center; text-decoration: none; }
.hero-card-btn:hover { background: var(--cyan); color: #000; box-shadow: 0 0 30px rgba(0,212,255,.3); }

/* --- SECTION CHUNG --- */
section { padding: 100px 48px; }
.section-header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 48px; }
.section-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 4vw, 48px); font-style: italic; letter-spacing: .04em; }
.section-title span { color: var(--gold); }
.section-line { flex: 1; height: 1px; background: linear-gradient(to right, var(--border), transparent); }
.section-action { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); text-decoration: none; letter-spacing: .1em; display: flex; align-items: center; gap: 6px; transition: gap .2s; }
.section-action:hover { gap: 12px; }

/* --- TRAILERS --- */
.trailers { background: var(--bg2); }
.trailer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.trailer-card { position: relative; aspect-ratio: 16/9; overflow: hidden; cursor: pointer; }
.trailer-bg { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.trailer-card:hover .trailer-bg { transform: scale(1.05); }
.trailer-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.1) 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; transition: background .3s; }
.trailer-card:hover .trailer-overlay { background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.3) 60%); }
.trailer-num { position: absolute; top: 16px; left: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.trailer-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all .25s; background: rgba(255,255,255,.1); backdrop-filter: blur(4px); }
.trailer-card:hover .trailer-play { border-color: var(--gold); color: var(--gold); background: rgba(245,166,35,.15); box-shadow: 0 0 30px rgba(245,166,35,.3); transform: translate(-50%, -50%) scale(1.1); }
.trailer-label { font-family: var(--font-head); font-weight: 700; font-size: 20px; font-style: italic; letter-spacing: .06em; }
.trailer-type { font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-top: 4px; }
.trailer-card:nth-child(1) .trailer-overlay { border-top: 2px solid #4a90d9; }
.trailer-card:nth-child(2) .trailer-overlay { border-top: 2px solid #27ae60; }
.trailer-card:nth-child(3) .trailer-overlay { border-top: 2px solid #c0392b; }

/* --- TIN TỨC (NEWS) --- */
.news { background: var(--bg); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr 360px; gap: 2px; }
.news-card { background: var(--panel); border: 1px solid var(--border); overflow: hidden; cursor: pointer; transition: border-color .25s, transform .25s; display: flex; flex-direction: column; }
.news-card:hover { border-color: rgba(245,166,35,.4); transform: translateY(-2px); }
.news-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.news-thumb-bg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 28px; font-style: italic; letter-spacing: .06em; transition: transform .4s; }
.news-card:hover .news-thumb-bg { transform: scale(1.04); }
.news-thumb-bg.green { background: linear-gradient(135deg, #1a6b3a, #27ae60); }
.news-thumb-bg.red { background: linear-gradient(135deg, #7a1520, #c0392b); }
.news-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-cat { font-family: var(--font-mono); font-size: 10px; color: var(--gold); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 10px; }
.news-title { font-weight: 700; font-size: 15px; line-height: 1.4; margin-bottom: 10px; flex: 1; }
.news-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.news-meta { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.news-more-btn { background: var(--gold); color: #000; padding: 4px 12px; font-family: var(--font-head); font-weight: 700; font-size: 12px; text-decoration: none; letter-spacing: .08em; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); transition: background .2s; }
.news-more-btn:hover { background: var(--gold2); }

.news-sidebar { display: flex; flex-direction: column; gap: 2px; }
.news-sidebar-card { background: var(--panel); border: 1px solid var(--border); padding: 24px; flex: 1; transition: border-color .2s; }
.news-sidebar-card:hover { border-color: rgba(0,212,255,.3); }
.sidebar-title { font-family: var(--font-head); font-weight: 800; font-size: 16px; font-style: italic; letter-spacing: .08em; margin-bottom: 12px; color: var(--white); }
.sidebar-text { font-size: 13px; color: var(--muted); line-height: 1.6; }
.sidebar-cta { display: inline-block; margin-top: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--cyan); letter-spacing: .12em; text-decoration: none; text-transform: uppercase; border-bottom: 1px solid rgba(0,212,255,.3); transition: border-color .2s; }
.sidebar-cta:hover { border-color: var(--cyan); }

/* --- MEDIA --- */
.media-section { background: var(--bg2); }
.media-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2px; }
.media-featured { background: var(--panel); border: 1px solid var(--border); position: relative; overflow: hidden; min-height: 320px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.media-featured-label { font-family: var(--font-head); font-weight: 800; font-size: 42px; font-style: italic; color: rgba(255,255,255,.15); letter-spacing: .06em; text-align: center; }
.media-play-big { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; background: rgba(255,59,92,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: all .25s; }
.media-featured:hover .media-play-big { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 40px rgba(255,59,92,.5); }
.media-featured-title { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(transparent, rgba(0,0,0,.9)); font-family: var(--font-head); font-weight: 700; font-size: 22px; font-style: italic; }
.media-list { display: flex; flex-direction: column; gap: 2px; }
.media-item { background: var(--panel); border: 1px solid var(--border); padding: 16px; display: flex; gap: 16px; align-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.media-item:hover { border-color: rgba(245,166,35,.3); background: rgba(245,166,35,.03); }
.media-thumb { width: 80px; height: 54px; border-radius: 2px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; font-family: var(--font-head); font-style: italic; overflow: hidden; }
.media-thumb.orange { background: linear-gradient(135deg, #c47000, #f39c12); }
.media-thumb.yellow { background: linear-gradient(135deg, #8a7000, #f1c40f); }
.media-thumb.gray { background: linear-gradient(135deg, #2c3040, #3d4460); }
.media-info { flex: 1; }
.media-title { font-size: 14px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.media-views { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* --- ANIMATIONS & HIỆU ỨNG KHÁC --- */
@keyframes fadeUp { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: translateY(0); } }
@keyframes slideIn { from { opacity:0; transform: translateY(-50%) translateX(30px); } to { opacity:1; transform: translateY(-50%) translateX(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--border) 30%, var(--border) 70%, transparent); margin: 0 48px; }

/* Scrollbar đẹp mắt */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: rgba(245,166,35,.4); border-radius: 3px; }

/* ==========================================================================
   CSS FOOTER BỊ THIẾU
   ========================================================================== */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 64px 48px 32px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-icon { width: 40px; height: 40px; background: var(--gold); clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%); display: flex; align-items: center; justify-content: center; font-size: 20px; color:#000; }
.footer-logo-text { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: .1em; }
.footer-logo-text span { color: var(--gold); }
.footer-tagline { font-size: 14px; color: var(--muted); line-height: 1.6; }

.footer-about-title { font-family: var(--font-head); font-weight: 800; font-size: 18px; font-style: italic; letter-spacing: .06em; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.footer-about-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.footer-about-text { font-size: 14px; color: var(--muted); line-height: 1.75; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; font-family: var(--font-mono); letter-spacing: .05em; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.25); font-family: var(--font-mono); text-align: center; line-height: 1.6; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; font-size: 14px; transition: all .2s; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); background: rgba(245,166,35,.08); }


/* ==========================================================================
   FIX FORM ĐĂNG NHẬP / ĐĂNG KÝ (BỊ HEADER CHE MẤT)
   ========================================================================== */
.auth-wrapper-center, .login-wrapper {
    padding-top: 120px !important; /* Đẩy form xuống dưới header */
    position: relative;
    z-index: 10;
}
.auth-box-center, .login-box {
    background: var(--panel) !important; /* Đổi màu nền form cho hợp tông đen */
}


/* ==========================================================================
   FIX RESPONSIVE: ÉP FORM VÀO CHUẨN TRÊN MÀN HÌNH LAPTOP & ĐIỆN THOẠI
   ========================================================================== */

/* Cho Màn hình Laptop nhỏ (như màn của sếp) */
@media (max-width: 1400px) {
  .hero-title .line1 { font-size: clamp(45px, 6vw, 80px); } 
  .hero-title .line2 { font-size: clamp(55px, 8vw, 100px); }
  .hero-card { width: 300px; right: 24px; padding: 24px; } 
  header { padding: 0 24px; }
  section { padding: 100px 24px; }
}

/* Cho Màn hình Tablet / Laptop vuông */
@media (max-width: 1024px) {
  .hero { 
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-start; 
    padding: 140px 24px 60px; 
  }
  .hero-content { max-width: 100%; }
  
  /* Đẩy bảng Tải Launcher xuống dưới thay vì đè lên chữ */
  .hero-card { 
    position: relative; right: 0; top: 0; transform: none; 
    margin-top: 40px; width: 100%; max-width: 450px; 
  }
  
  /* Bẻ cột các phần khác để không bị bóp méo */
  .trailer-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .news-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .news-sidebar { grid-column: span 2; flex-direction: row; gap: 15px; }
  .media-layout { grid-template-columns: 1fr; gap: 20px; }
}

/* Cho Màn hình Điện thoại */
@media (max-width: 768px) {
  .nav-links { display: none; } /* Tạm ẩn menu trên mobile để không bị tràn */
  .trailer-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-sidebar { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { flex-direction: column; gap: 10px; margin-top: 40px; }
  .stat:first-child { border-left: none; border-top: 2px solid var(--gold); }
}