@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#050608; --panel:#0b0d10; --line:#25282d; --white:#f5f5f5;
  --muted:#a4a8ae; --red:#ed1118; --red2:#ff3036;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;height:100%}
body{margin:0;background:var(--bg);color:var(--white);font-family:Inter,Arial,sans-serif;display:flex;flex-direction:column;min-height:100vh}
a{color:inherit;text-decoration:none}
.site-header{height:64px;display:flex;align-items:center;padding:0 3%;border-bottom:1px solid #1d2024;background:rgba(5,6,8,.96);position:sticky;top:0;z-index:10}
.brand{font-family:"Barlow Condensed",sans-serif;font-style:italic;font-size:22px;font-weight:800;letter-spacing:-1px;line-height:.8;white-space:nowrap}
.brand-1000{color:#fff}.brand-x{color:var(--red)}
.brand b{background:var(--red);padding:2px 5px;margin-left:3px;font-style:normal}
.brand small{display:block;font-family:Inter,sans-serif;font-size:10px;letter-spacing:1.3px;color:#d7d7d7;font-style:normal;margin-top:8px}
nav{display:flex;gap:42px;margin-left:auto;margin-right:42px}
nav a{font-size:14px;font-weight:800;letter-spacing:.4px;color:#ddd;padding:37px 0 31px;border-bottom:3px solid transparent}
nav a:hover,nav a.active{color:#fff;border-bottom-color:var(--red)}
.youtube-icon{font-weight:900;background:#fff;color:#111;width:32px;height:23px;border-radius:6px;display:grid;place-items:center;font-size:13px}

.hero{width:100%;max-width:none;margin:0 auto;padding:28px 4%;display:grid;grid-template-columns:0.24fr 0.52fr 0.6fr;gap:24px;align-items:start;min-height:420px}
.hero-copy{padding-left:8px}
.live-badge,.player-live{display:inline-flex;align-items:center;gap:6px;background:var(--red);padding:6px 10px;border-radius:4px;font-weight:800;letter-spacing:.5px}
.live-badge span,.player-live i,.live-title span{width:8px;height:8px;background:#fff;border-radius:50%;display:inline-block;box-shadow:0 0 10px #fff}
.hero h1{font-family:"Barlow Condensed",sans-serif;font-size:64px;line-height:1;margin:8px 0 6px;font-style:italic;letter-spacing:-1px}
.hero h1 span,.about h2,.mini-brand span{color:var(--red)}
.hero h2{font-size:16px;letter-spacing:1px;margin:0;font-weight:600}
.red-line{width:50px;height:3px;background:var(--red);margin:12px 0}
.hero p{color:#c5c7ca;line-height:1.4;max-width:620px;margin:0}
.actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 21px;border-radius:4px;font-size:14px;font-weight:800;letter-spacing:.4px}
.btn-red{background:var(--red);box-shadow:0 10px 25px rgba(237,17,24,.15)}
.btn-red:hover{background:var(--red2)}
.btn-outline{border:1px solid #555;background:#101216}
.btn.big{font-size:16px;padding:17px 28px}

.player-card{border:1px solid #34383e;border-radius:6px;overflow:hidden;background:#0a0c0f;box-shadow:0 18px 40px rgba(0,0,0,.45)}
.player-top{height:74px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;font-family:"Barlow Condensed",sans-serif;font-size:24px;font-style:italic}
.player-top .x{color:var(--red)}.player-top b{background:var(--red);padding:2px 4px;font-style:normal}
.player-live{padding:8px 12px;font-size:16px;font-weight:800}.player-live i{width:10px;height:10px}
.player-screen{aspect-ratio:16/9;position:relative;overflow:hidden;background:linear-gradient(155deg,#20262c,#070809 70%)}
.racing-art{position:absolute;inset:0;background:radial-gradient(circle at 70% 45%,#4d5155 0,#1a1d20 30%,#08090a 70%)}
.track{position:absolute;left:-15%;right:-15%;bottom:-25%;height:62%;transform:rotate(-5deg);background:linear-gradient(175deg,#191c1f 0 50%,#6b1015 51% 55%,#1c2024 56%);border-top:5px solid #ddd}
.car{position:absolute;left:47%;top:35%;transform:translate(-50%,-50%);font-size:130px;filter:drop-shadow(0 18px 16px #000);font-style:normal}
.speed-lines{position:absolute;inset:0;background:repeating-linear-gradient(170deg,transparent 0 25px,rgba(255,255,255,.04) 26px 28px)}
.player-overlay{position:absolute;left:0;right:0;bottom:0;padding:30px 25px 20px;background:linear-gradient(transparent,rgba(0,0,0,.92));display:flex;align-items:end;gap:14px}
.player-overlay strong{font-size:18px}.player-overlay span{font-size:12px;color:#aaa}.player-overlay a{margin-left:auto;background:var(--red);padding:10px 14px;font-size:11px;font-weight:800;border-radius:3px}
.player-controls{display:none}

.features{max-width:1280px;margin:0 auto;padding:0 3% 30px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.features article{border:1px solid #25292e;background:#080a0d;padding:12px;display:flex;gap:10px;min-height:90px;align-items:flex-start;text-align:left}
.feature-icon{color:var(--red);font-size:22px;font-weight:800;min-width:36px;align-self:flex-start}
.features h3{margin:0 0 6px;font-size:13px}
.features p{margin:0;color:#999;font-size:12px;line-height:1.3}

/* Hero left column for stacked features */
.hero-features{display:flex;flex-direction:column;gap:14px}
.hero-features article{border:1px solid #25292e;background:#080a0d;padding:14px;display:flex;gap:12px;min-height:86px}
.hero-features .feature-icon{min-width:46px;font-size:20px}
.hero-features h3{font-size:13px;margin:0 0 6px}
.hero-features p{margin:0;color:#999;font-size:12px}

.about{min-height:180px;background:linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.5)),radial-gradient(circle at 50% 100%,#2d0b0d,#0b0d10 65%);border-top:1px solid #222;border-bottom:1px solid #222;display:grid;place-items:center;text-align:center;padding:28px 12px}
.about-inner{max-width:680px}.mini-brand{font-family:"Barlow Condensed";font-style:italic;font-size:28px;font-weight:800}.about h2{font-size:15px;letter-spacing:1.5px;margin:4px 0 12px}.about p{color:#b6b8bb;line-height:1.4;margin:0 auto 12px}.text-link{font-size:12px;font-weight:800;color:#fff}

footer{min-height:70px;padding:12px 5%;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#07090b}
.footer-brand{font-family:"Barlow Condensed";font-size:18px;font-weight:800;font-style:italic}.footer-brand span{color:var(--red)}.footer-brand b{background:var(--red);padding:2px 4px;font-style:normal}.footer-brand small{display:block;font-family:Inter;font-size:9px;letter-spacing:1px;color:#aaa}
.footer-links{display:flex;gap:12px;font-size:12px;color:#aaa}.footer-links a:hover{color:#fff}.copyright{text-align:right;color:#777;font-size:11px;line-height:1.3}

/* ensure footer stays at bottom */
main{flex:1}

.live-page{background:#030405;overflow:hidden}
.live-shell{min-height:100vh;display:flex;flex-direction:column}
.live-header{height:76px;padding:0 3%;display:flex;align-items:center;border-bottom:1px solid #1b1e22;background:#07080a}
.live-title{margin-left:auto;margin-right:35px;font-weight:800;color:#fff}.live-title span{background:var(--red);box-shadow:none;width:8px;height:8px}
.back-link{font-size:12px;font-weight:800;color:#aaa}.back-link:hover{color:#fff}
.full-player{flex:1;display:grid;place-items:center;padding:35px;background:#020304}
.youtube-panel{width:min(1100px,92vw);aspect-ratio:16/9;border:1px solid #282c31;border-radius:8px;position:relative;overflow:hidden;background:radial-gradient(circle at 60% 40%,#24282d,#07090b 65%);display:grid;place-items:center;text-align:center}
.youtube-panel:before{content:"";position:absolute;inset:0;background:linear-gradient(145deg,transparent 45%,rgba(237,17,24,.12) 46%,transparent 62%);pointer-events:none}
.panel-content{position:relative;z-index:1}.panel-content h1{font-family:"Barlow Condensed";font-style:italic;font-size:70px;margin:22px 0 5px}.panel-content h1 span{color:var(--red)}.panel-content p{color:#aaa}.hint{font-size:11px;max-width:520px;margin:18px auto 0;color:#777!important}

@media(max-width:900px){
  nav{display:none}.site-header{height:68px}.youtube-icon{margin-left:auto}
  .hero{grid-template-columns:1fr;gap:20px;padding-top:28px}.hero-copy{padding-left:0}
  .features{grid-template-columns:1fr 1fr}.hero h1{font-size:40px}
  footer{flex-direction:column;align-items:flex-start}.copyright{text-align:left}
}
@media(max-width:600px){
  .features{grid-template-columns:1fr}.hero{padding-left:12px;padding-right:12px}.site-header{padding:0 12px}
  .brand{font-size:20px}.player-overlay span{display:none}.player-overlay a{font-size:9px}
  .panel-content h1{font-size:36px}.live-header{padding:0 12px}.live-title{margin-right:15px}
}


/* Reproductor real de YouTube en /live */
.youtube-embed-wrap{
  width:100%;
  height:100%;
  max-width:100%;
  aspect-ratio:16/9;
  background:#000;
  border:1px solid #292d32;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 25px 80px rgba(0,0,0,.6);
}
.youtube-embed-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  border:0;
}

/* Inputs inside player controls */
/* Player input controls removed */
@media(max-width:600px){
  .youtube-embed-wrap{width:100vw;border-radius:0;border-left:0;border-right:0}
  .full-player{padding:0}
}
