:root{
    --bg-top:#3a0f5e;
    --bg-bottom:#1a0630;
    --purple-1:#a24bff;
    --purple-2:#7a2ee6;
    --purple-3:#5b1fb0;
    --card-bg:#241041;
    --card-bg-2:#1c0c34;
    --line:rgba(255,255,255,0.08);
    --text-main:#f4eefe;
    --text-dim:#b6a4d6;
    --text-dimmer:#8a76ad;
    --pink:#ff4fa0;
    --external:#ff3d6e;
  }

  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;}
  body{
    font-family:'Nunito', sans-serif;
    color:var(--text-main);
    background:
      radial-gradient(ellipse 900px 500px at 50% -10%, #5a1f8f 0%, transparent 60%),
      linear-gradient(180deg, var(--bg-top) 0%, #2a0a4a 40%, var(--bg-bottom) 100%);
    min-height:100vh;
    overflow-x:hidden;
    position:relative;
  }

  /* Decorative diagonal bands like the reference */
  .band{
    position:absolute;
    left:-10%;
    width:130%;
    height:260px;
    background:linear-gradient(100deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,0) 35%,
      rgba(255,255,255,0.07) 50%,
      rgba(255,255,255,0) 65%,
      rgba(255,255,255,0) 100%);
    background-size:260% 100%;
    transform:rotate(-6deg);
    pointer-events:none;
    z-index:0;
    animation:bandWave 16s ease-in-out infinite;
  }
  .band.b1{ top:150px; }
  .band.b2{
    top:260px;
    background:linear-gradient(100deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 35%,
      rgba(0,0,0,0.18) 50%,
      rgba(0,0,0,0) 65%,
      rgba(0,0,0,0) 100%);
    background-size:260% 100%;
    animation:bandWave 22s ease-in-out infinite reverse;
  }

  @keyframes bandWave{
    0%   { background-position:0% 0; }
    50%  { background-position:100% 0; }
    100% { background-position:0% 0; }
  }

  /* Floating music notes */
  .note{
    position:absolute;
    color:rgba(255,255,255,0.10);
    font-size:28px;
    z-index:0;
    user-select:none;
    pointer-events:none;
    animation-name:noteWave;
    animation-timing-function:ease-in-out;
    animation-iteration-count:infinite;
    will-change:transform;
  }

  @keyframes noteWave{
    0%   { transform:translateY(0)    translateX(0)   rotate(-4deg); }
    25%  { transform:translateY(-14px) translateX(4px) rotate(3deg); }
    50%  { transform:translateY(-2px) translateX(8px)  rotate(-2deg); }
    75%  { transform:translateY(-18px) translateX(2px) rotate(4deg); }
    100% { transform:translateY(0)    translateX(0)   rotate(-4deg); }
  }

  .wrap{
    position:relative;
    z-index:1;
    max-width:1180px;
    margin:0 auto;
    padding:48px 24px 40px;
  }

  /* Header / Logo */
  .brand{
    display:flex;
    justify-content:center;
    margin-bottom:44px;
  }
  .brand img{
    width:230px;
    height:auto;
    filter:drop-shadow(0 10px 25px rgba(140, 40, 220, 0.55));
  }

  /* Main content grid */
  .grid{
    display:grid;
    grid-template-columns:1.35fr 1fr;
    gap:24px;
    align-items:stretch;
  }

  .left-col{
    display:flex;
    flex-direction:column;
    gap:18px;
  }

  /* Now playing card */
  .now-card{
    background:linear-gradient(180deg, rgba(70,25,120,0.55), rgba(30,12,55,0.7));
    border:1px solid var(--line);
    border-radius:18px;
    padding:18px 20px;
    display:flex;
    align-items:center;
    gap:16px;
    box-shadow:0 20px 40px rgba(0,0,0,0.25);
    backdrop-filter:blur(6px);
  }

  .avatar-wrap{
    position:relative;
    flex-shrink:0;
    border-radius:14px;
    background:linear-gradient(160deg,#5a2ea3,#2d1354);
    border:2px solid rgba(255,255,255,0.15);
    overflow:hidden;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    line-height:0;
  }
  .avatar-wrap img{
    display:block;
    width:auto;
    height:auto;
    max-width:none;
    image-rendering:pixelated;
    image-rendering:-webkit-optimize-contrast;
  }

  .now-info{
    flex:1;
    min-width:0;
  }
  .live-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:var(--pink);
    color:#fff;
    font-weight:800;
    font-size:11px;
    letter-spacing:0.03em;
    padding:3px 10px;
    border-radius:20px;
    margin-bottom:6px;
  }
  .live-pill::before{
    content:'';
    width:6px;
    height:6px;
    border-radius:50%;
    background:#fff;
  }
  .dj-name{
    font-family:'Baloo 2', sans-serif;
    font-weight:700;
    font-size:19px;
    color:#fff;
    line-height:1.1;
  }
  .dj-sub{
    font-size:13px;
    color:var(--text-dim);
    margin-top:2px;
  }

  .now-controls{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
  }
  .icon-btn{
    width:40px;
    height:40px;
    border-radius:50%;
    background:rgba(255,255,255,0.08);
    border:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#e6d6ff;
    cursor:pointer;
    transition:background .2s ease, transform .2s ease;
  }
  .icon-btn:hover{ background:rgba(255,255,255,0.16); transform:translateY(-1px); }
  .play-btn{
    width:48px;
    height:48px;
    border-radius:50%;
    background:linear-gradient(160deg, var(--purple-1), var(--purple-3));
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(140,50,230,0.5);
    transition:transform .2s ease;
  }
  .play-btn:hover{ transform:scale(1.06); }

  .volume-row{
    grid-column:1 / -1;
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:12px;
    color:var(--text-dim);
  }
  .volume-row input[type="range"]{
    -webkit-appearance:none;
    width:140px;
    height:4px;
    border-radius:4px;
    background:rgba(255,255,255,0.15);
    outline:none;
  }
  .volume-row input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance:none;
    width:12px;
    height:12px;
    border-radius:50%;
    background:#fff;
    cursor:pointer;
    box-shadow:0 0 0 3px rgba(162,75,255,0.5);
  }

  /* wrap now-card content so volume can sit under */
  .now-card-inner{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:16px;
    width:100%;
  }

  /* Track bar */
  .track-bar{
    background:rgba(15,5,35,0.55);
    border:1px solid var(--line);
    border-radius:14px;
    padding:14px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:14px;
    color:var(--text-dim);
  }
  .track-bar .track-name{
    display:flex;
    align-items:center;
    gap:10px;
    color:#e8ddfa;
    font-weight:700;
  }
  .track-bar .listeners{
    display:flex;
    align-items:center;
    gap:6px;
    font-weight:700;
    color:#e8ddfa;
  }

  /* News section */
  .news-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:6px 2px 4px;
  }
  .news-title{
    display:flex;
    align-items:center;
    gap:10px;
    font-family:'Baloo 2', sans-serif;
    font-weight:700;
    font-size:19px;
    color:#fff;
  }
  .news-title .sq-icon{
    width:26px;
    height:26px;
    border-radius:7px;
    background:rgba(162,75,255,0.18);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--purple-1);
    font-size:14px;
  }
  .news-arrows{
    display:flex;
    gap:8px;
  }

  .news-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:16px;
  }
  .news-card{
    background:var(--card-bg);
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    transition:transform .25s ease, box-shadow .25s ease;
    cursor:pointer;
  }
  .news-card:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 30px rgba(0,0,0,0.35);
  }
  .news-thumb{
    position:relative;
    height:120px;
    background:linear-gradient(135deg,#4a2380,#2a1050);
    overflow:hidden;
  }
  .news-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }
  .news-tag{
    position:absolute;
    top:10px;
    left:10px;
    background:var(--external);
    color:#fff;
    font-size:10px;
    font-weight:800;
    letter-spacing:0.04em;
    padding:3px 9px;
    border-radius:20px;
  }
  .news-body{
    padding:14px 16px 16px;
  }
  .news-body h3{
    margin:0 0 8px;
    font-size:14.5px;
    line-height:1.35;
    font-weight:800;
    color:#f2ecfc;
  }
  .news-meta{
    font-size:12px;
    color:var(--text-dimmer);
  }
  .news-meta b{ color:#c9b6ee; font-weight:700; }

  /* Right banner */
  .banner{
    position:relative;
    border-radius:20px;
    overflow:hidden;
    background:linear-gradient(160deg,#5a2ea3,#20103f 70%);
    min-height:100%;
    box-shadow:0 25px 45px rgba(0,0,0,0.35);
  }
  .banner-slide{
    position:absolute;
    inset:0;
    display:flex;
    align-items:flex-end;
    opacity:0;
    transform:scale(1.04);
    transition:opacity 1.1s ease, transform 6s ease;
    pointer-events:none;
  }
  .banner-slide.active{
    opacity:1;
    transform:scale(1);
    z-index:1;
    pointer-events:auto;
  }
  .banner-slide img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0.9;
  }
  .banner .banner-overlay{
    position:relative;
    z-index:1;
    width:100%;
    padding:20px;
    background:linear-gradient(0deg, rgba(10,4,25,0.85) 10%, rgba(10,4,25,0) 70%);
  }
  .banner-overlay h4{
    margin:0 0 4px;
    font-family:'Baloo 2', sans-serif;
    font-size:17px;
    font-weight:700;
    color:#fff;
  }
  .banner-overlay p{
    margin:0;
    font-size:13px;
    color:var(--text-dim);
  }
  .banner-dots{
    position:absolute;
    top:16px;
    right:16px;
    z-index:2;
    display:flex;
    gap:5px;
  }
  .banner-dots span{
    width:6px;height:6px;border-radius:50%;
    background:rgba(255,255,255,0.35);
    transition:width .3s ease, background .3s ease;
    cursor:pointer;
  }
  .banner-dots span.active{ background:#fff; width:16px; border-radius:4px; }


  /* Footer */
  .footer{
    margin-top:36px;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    flex-wrap:wrap;
    gap:16px;
    padding-top:20px;
    border-top:1px solid var(--line);
    color:var(--text-dimmer);
    font-size:13px;
  }
  .footer p{ margin:2px 0; }
  .footer b{ color:#d9c8f5; }
  .footer .credit a{ color:var(--pink); text-decoration:none; font-weight:700; }
  .footer-social{
    display:flex;
    gap:10px;
  }
  .footer-social a{
    width:34px;height:34px;border-radius:50%;
    background:rgba(255,255,255,0.06);
    border:1px solid var(--line);
    display:flex;align-items:center;justify-content:center;
    color:#cbb8ec;
    text-decoration:none;
    transition:background .2s ease, color .2s ease;
  }
  .footer-social a:hover{ background:var(--purple-1); color:#fff; }

  @media (max-width:900px){
    .grid{ grid-template-columns:1fr; }
    .news-grid{ grid-template-columns:repeat(2,1fr); }
    .banner{ min-height:260px; }
  }
  @media (max-width:560px){
    .news-grid{ grid-template-columns:1fr; }
    .now-card-inner{ justify-content:center; text-align:center; }
    .brand img{ width:180px; }
  }
