
/* =========================================================
   LUMINOUS NETWORK V5.6.3 — MOBILE MOCKUP LOCK
   This file intentionally loads last and owns the phone UI.
   ========================================================= */
@media (max-width:900px){
  :root{
    --mobile-bg:#05070d;
    --mobile-panel:#0b1020;
    --mobile-line:rgba(255,255,255,.10);
    --mobile-muted:#aeb7ca;
    --mobile-accent:#78d7ff;
  }

  html,body{width:100%;max-width:100%;overflow-x:hidden;background:#05070d}
  body{padding-bottom:76px!important}

  /* MOCKUP HEADER: ☰  LN + Luminous Network   Search   Avatar */
  .topbar{
    position:sticky!important;top:0!important;z-index:500!important;
    width:100%!important;height:62px!important;min-height:62px!important;
    padding:7px 10px!important;margin:0!important;
    display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
    gap:7px!important;
    background:rgba(5,7,13,.96)!important;
    border-bottom:1px solid rgba(255,255,255,.07)!important;
    backdrop-filter:blur(18px)!important;
  }
  .topbar .nav{display:none!important}
  .v54-menu-btn{
    order:0!important;display:grid!important;place-items:center!important;
    width:40px!important;height:40px!important;min-width:40px!important;
    border-radius:11px!important;border:1px solid rgba(255,255,255,.11)!important;
    background:rgba(255,255,255,.045)!important;color:#fff!important;
    font-size:22px!important;padding:0!important;
  }
  .topbar .brand{
    order:1!important;display:flex!important;align-items:center!important;
    flex:1 1 auto!important;min-width:0!important;gap:7px!important;
    font-weight:850!important;
  }
  .topbar .brand img{
    display:block!important;width:34px!important;height:34px!important;min-width:34px!important;
    border-radius:9px!important;object-fit:cover!important;
  }
  .topbar .brand span{
    display:block!important;max-width:126px!important;
    font-size:13px!important;line-height:1.05!important;font-weight:850!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
    letter-spacing:-.01em!important;
  }
  .topbar .actions{
    order:2!important;display:flex!important;align-items:center!important;
    gap:6px!important;flex:0 0 auto!important;margin:0!important;
  }
  .topbar .iconbtn{
    display:grid!important;place-items:center!important;
    width:38px!important;height:38px!important;min-width:38px!important;
    border-radius:50%!important;padding:0!important;
    background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.09)!important;
  }
  .topbar .iconbtn svg{width:19px;height:19px}
  .topbar .profile{
    display:grid!important;place-items:center!important;
    width:38px!important;height:38px!important;min-width:38px!important;
    padding:0!important;border-radius:50%!important;
    font-size:0!important;background:linear-gradient(135deg,#e9edff,#9caeff)!important;
    color:#0b1020!important;border:0!important;
  }
  .topbar .profile:before{content:"◉";font-size:16px!important;font-weight:900!important}
  .topbar .user-chip{
    display:grid!important;place-items:center!important;
    width:38px!important;height:38px!important;max-width:38px!important;min-width:38px!important;
    padding:0!important;border-radius:50%!important;
    background:transparent!important;border:0!important;
  }
  .topbar .user-chip>span:not(.user-dot){display:none!important}
  .topbar .user-dot{
    width:38px!important;height:38px!important;border-radius:50%!important;
    font-size:11px!important;font-weight:900!important;
    border:1px solid rgba(255,255,255,.15)!important;
  }

  /* HOME HERO, matched to the approved streaming mockup */
  .hero{
    min-height:500px!important;max-height:none!important;
    width:100%!important;align-items:flex-end!important;
  }
  .hero-bg{
    background:
      linear-gradient(0deg,#05070d 0%,rgba(5,7,13,.80) 24%,rgba(5,7,13,.15) 58%,rgba(5,7,13,.38) 100%),
      linear-gradient(90deg,rgba(5,7,13,.82),rgba(5,7,13,.18) 80%),
      url('../images/luminous_banner.jpg') center/cover no-repeat!important;
  }
  .hero-content{
    width:100%!important;max-width:none!important;
    padding:0 16px 38px!important;
  }
  .hero .eyebrow{font-size:10px!important;letter-spacing:.16em!important;color:#b9c5ff!important}
  .hero h1{
    font-size:46px!important;line-height:.91!important;letter-spacing:-.055em!important;
    margin:9px 0 12px!important;max-width:330px!important;
  }
  .hero p{
    display:block!important;max-width:350px!important;
    margin:0 0 14px!important;font-size:14px!important;line-height:1.48!important;
    color:#d4daea!important;
  }
  .hero .meta{display:flex!important;gap:6px!important;flex-wrap:wrap!important;margin:12px 0 16px!important}
  .hero .pill{padding:5px 8px!important;font-size:10px!important;background:rgba(5,7,13,.55)!important}
  .hero .cta-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}
  .hero .cta-row button{
    width:100%!important;min-width:0!important;padding:12px 10px!important;
    border-radius:10px!important;font-size:13px!important;
  }

  /* Keep the first content rail below both hero actions on mobile. */
  main#app{margin-top:0!important}

  /* CINEMATIC MOBILE RAILS */
  .section{padding:0 16px 26px!important}
  .section-head{margin-bottom:10px!important;align-items:center!important}
  .section h2{font-size:20px!important;letter-spacing:-.025em!important}
  .section-head small{font-size:10px!important}
  .rail{
    grid-auto-columns:76vw!important;gap:10px!important;
    margin-right:-16px!important;padding:2px 16px 10px 0!important;
    scroll-snap-type:x proximity!important;
  }
  .card{border-radius:13px!important;scroll-snap-align:start!important}
  .card-info{left:11px!important;right:11px!important;bottom:10px!important}
  .card-title{font-size:14px!important}
  .card-sub{font-size:10px!important}
  .top10{grid-auto-columns:82vw!important}

  /* CATEGORY TILES */
  .genres{grid-template-columns:1fr 1fr!important;gap:9px!important}
  .genre,.category-link{min-height:92px!important;border-radius:14px!important;padding:13px!important;font-size:13px!important}

  /* SECONDARY PAGES */
  .page-hero-v4{min-height:238px!important}
  .page-hero-v4 .inner{padding:42px 16px 28px!important}
  .page-hero-v4 h1{font-size:38px!important;line-height:.96!important;letter-spacing:-.045em!important}
  .page-hero-v4 p{font-size:14px!important;line-height:1.5!important}
  .page-wrap{padding:18px 14px 28px!important}
  .catalog-grid{grid-template-columns:1fr 1fr!important;gap:9px!important}
  .v4-card{border-radius:13px!important}
  .v4-card .info{left:10px!important;right:10px!important;bottom:9px!important}
  .v4-card .title{font-size:13px!important}
  .v4-card .sub{font-size:9px!important}
  .detail-v4{min-height:480px!important}
  .detail-v4 .content{padding:52px 16px 36px!important}
  .detail-v4 h1{font-size:43px!important;line-height:.92!important}
  .detail-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .detail-actions .btn-v4{width:100%!important;padding:12px 9px!important}
  .watch-shell{padding:14px 10px 86px!important;min-height:calc(100vh - 62px)!important}
  .player-v4{border-radius:12px!important}
  .player-v4 .play-v4{width:64px!important;height:64px!important;font-size:23px!important}
  .controlrow-v4{align-items:flex-end!important;gap:8px!important}
  .prototype-controls{gap:7px!important}
  .prototype-controls button{font-size:12px!important}
  .prototype-controls button:disabled{display:none!important}

  /* ACCOUNT / PROFILES: premium streaming-style mockup */
  .account-shell{
    display:block!important;padding:28px 14px 96px!important;
    background:
      radial-gradient(circle at 50% 0%,rgba(71,70,255,.18),transparent 32%),
      #05070d!important;
  }
  .account-card,.settings-card,.profile-card{
    width:min(100%,460px)!important;margin:0 auto 16px!important;
    border-radius:20px!important;padding:20px!important;
    background:rgba(9,13,24,.94)!important;
  }
  .account-card h2,.settings-card h2,.profile-card h2{font-size:24px!important}
  .profile-grid{grid-template-columns:1fr 1fr!important;gap:12px!important}
  .profile-tile{text-align:center!important;padding:18px 10px!important;border-radius:17px!important}
  .profile-avatar{margin:0 auto 10px!important;width:66px!important;height:66px!important}
  .profile-name{font-size:13px!important}
  .profile-sub{font-size:10px!important}

  /* MOCKUP BOTTOM NAV */
  .mobile-bottom-nav{
    display:grid!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;
    z-index:650!important;grid-template-columns:repeat(5,1fr)!important;
    height:auto!important;min-height:64px!important;
    padding:7px 7px max(7px,env(safe-area-inset-bottom))!important;
    background:rgba(5,7,13,.97)!important;
    backdrop-filter:blur(18px)!important;
    border-top:1px solid rgba(255,255,255,.08)!important;
  }
  .mobile-bottom-nav a{
    min-width:0!important;display:flex!important;flex-direction:column!important;
    align-items:center!important;justify-content:center!important;gap:4px!important;
    color:#8f99ad!important;text-decoration:none!important;font-size:9px!important;
    font-weight:650!important;
  }
  .mobile-bottom-nav a strong{font-size:17px!important;line-height:1!important;color:#aeb7ca!important}
  .mobile-bottom-nav a.active{color:#fff!important}
  .mobile-bottom-nav a.active strong{color:#78d7ff!important}

  /* DRAWER */
  .v54-drawer{
    width:min(84vw,320px)!important;background:#070a12!important;
    padding:16px 14px 22px!important;
  }
  .v54-drawer-links a{font-size:14px!important}

  /* Footer stays usable but quieter on phone */
  .footer{grid-template-columns:1fr 1fr!important;gap:22px!important;padding:34px 16px 90px!important}
  .footer p,.footer a{font-size:11px!important}
}
@media(max-width:390px){
  .topbar .brand span{max-width:104px!important;font-size:12px!important}
  .hero h1{font-size:42px!important}
  .rail{grid-auto-columns:82vw!important}
}
@media(max-width:350px){
  .topbar .brand span{display:none!important}
  .catalog-grid{grid-template-columns:1fr!important}
  .genres{grid-template-columns:1fr!important}
}
