/* =========================================================
   AI Musik Sverige Top 50
   Bilder: lägg dem i /images – saknas en bild visas gradienten.
   ========================================================= */
:root {
  --bg: #0a1628;
  --bg-2: #0d1d33;
  --panel: rgba(16, 36, 62, .72);
  --panel-solid: #10243e;
  --box: #132b49;
  --line: rgba(120, 165, 220, .22);
  --line-soft: rgba(120, 165, 220, .12);
  --text: #eef3f9;
  --muted: #a9bbd0;
  --yellow: #f6c445;
  --yellow-2: #ffd766;
  --green: #35d07f;
  --red: #ff4b4b;
  --blue: #3f8cff;
  --teal: #4fd1c5;
  --spotify: #1ed760;
  --youtube: #ff1f1f;
  --radius: 14px;
  --radius-sm: 10px;
  --border-w: 1px;
  /* Blänket: matt kant → ljus topp → matt → ett svagare andra blänk → matt */
  --border-shine: linear-gradient(115deg,
    rgba(255,255,255,.05)  0%,
    rgba(255,255,255,.10) 12%,
    rgba(255,255,255,.45) 24%,
    rgba(255,255,255,.12) 37%,
    rgba(255,255,255,.05) 54%,
    rgba(255,255,255,.26) 73%,
    rgba(255,255,255,.07) 88%,
    rgba(255,255,255,.04) 100%);
  --font: "Barlow", system-ui, sans-serif;
  --font-head: "Barlow Condensed", "Barlow", sans-serif;
  --font-hand: "Caveat", cursive;
}

@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .panel { border-color: transparent; }
  .panel::before {
    content: "";
    position: absolute; inset: 0; z-index: 0;
    border-radius: inherit;
    padding: var(--border-w);
    background: var(--border-shine);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
  }
  .panel > * { position: relative; z-index: 1; }
}

*, *::before, *::after  {
    box-sizing: border-box;
}

html  {
    -webkit-text-size-adjust: 100%;
}

body  {
    margin: 0;
    background: radial-gradient(1200px 600px at 50% 0, #14305a 0, transparent 70%), var(--bg);
    color: var(--text);
    font: 400 16px/1.4 var(--font);
    -webkit-font-smoothing: antialiased;
}

.hide {
	display: none;
}

a  {
    color: inherit;
    text-decoration: none;
}

h1,h2,h3,h4,h5,h5 {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

ol, ul  {
    list-style: none;
    margin: 0;
    padding: 0;
}

button  {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

svg  {
    width: 1em;
    height: 1em;
    flex: none;
}

.sprite  {
    display: none;
}

.container  {
    width: min(1200px, 100% - 32px);
    margin-inline: auto;
}

.c-yellow  {
    color: var(--yellow);
}

.c-blue  {
    color: #5aa2ff;
}

.c-teal  {
    color: var(--teal);
}

.c-green  {
    color: var(--green);
}

img  {
    max-width: 100%;
}

.handwritten  {
    font-family: var(--font-hand);
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
}

/* ---------- Knappar ---------- */
.btn  {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    padding: .85em 1.6em;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}

.btn:active  {
    transform: translateY(1px) scale(0.99);
}

.btn-primary  {
    background: linear-gradient(180deg, var(--yellow-2), var(--yellow));
    color: #1a1405;
}

.btn-primary:hover  {
    background: var(--yellow-2);
}

.btn-outline  {
    border: 1.5px solid rgba(255,255,255,.65);
    color: #fff;
}

.btn-outline:hover  {
    border-color: #fff;
    background: rgba(255,255,255,.06);
}

.btn-sm  {
    font-size: .95rem;
    padding: .55em 1.1em;
}

.btn-xs  {
    font-size: .8rem;
    padding: .5em 1em;
    border-radius: 10px;
}

.link-yellow, .link-blue  {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    font-weight: 500;
}

.link-yellow  {
    color: var(--yellow);
}

.link-blue  {
    color: #6fb0ff;
}

.link-yellow:hover, .link-blue:hover  {
    text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header  {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    background: linear-gradient(180deg, rgba(6,14,28,.85), rgba(6,14,28,0));
}

.header-inner  {
    display: flex;
    align-items: center;
    gap: 48px;
    height: 88px;
}

.logo  {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark  {
    width: 44px;
    height: 30px;
}

.logo-text  {
    display: flex;
    flex-direction: column;
    font-family: var(--font-head);
    line-height: 1;
}

.logo-text strong  {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.logo-text span  {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .25em;
    margin-top: 3px;
}

.main-nav  {
    display: flex;
    gap: 40px;
    font-weight: 500;
    font-size: 1.05rem;
}

.main-nav a  {
    opacity: .92;
}

.main-nav a:hover, .main-nav a[aria-current]  {
    opacity: 1;
    color: var(--yellow);
}

.header-actions  {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.icon-plain svg  {
    width: 24px;
    height: 24px;
    display: block;
}

/* ---------- Hero ---------- */
.hero  {
    position: relative;
    min-height: 540px;
    padding: 95px 0 100px;
}

.hero h1, .hero h2, .hero h3 {
	text-transform:uppercase;
	margin: 0;
}

.hero .lead, .hero .sub {
	text-transform: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 20px;
    min-height: 420px;
    position: relative;
    padding: 30px 30px 0;
}

.heroimage {
	position: absolute;
	top: 0;
	left: -100px;
	width: calc(100% + 200px);
	height: 700px;
}

.heroimage img {
	width: 100%;
	height: 100%;
	object-fit:cover;
}


.hero h1  {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: .82;
    color: #fdf6e8;
    text-shadow: 0 4px 30px rgba(0,0,0,.35);
   	margin: 0;
}

.h1-small  {
    display: block;
    font-size: clamp(2.2rem, 5.2vw, 4.2rem);
    letter-spacing: .005em;
}

.h1-big  {
    display: block;
    font-size: clamp(4.4rem, 11vw, 9rem);
    letter-spacing: -.01em;
}

.hero .lead {
    font-size: clamp(1.15rem, 2vw, 1.75rem);
    font-weight: 500;
    margin-top: 25px;
    line-height: 1.1;
}

.home .hero .lead {
    margin-top: 16px;
}

.hero .sub  {
    font-size: 1.2rem;
    margin-top: 8px;
    opacity: .9;
}

.hero-buttons  {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
}

.hero-text, .hero-art {
	position: relative;
	z-index: 5;
}

.hero-art  {
    position: relative;
    height: 100%;
    min-height: 420px;
}


/* Fade vänster + höger */
/*.heroimage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        linear-gradient(
            to right,
            #0e1528 0%,
            transparent 50%
        ),
        linear-gradient(
            to left,
            #0e1528 0%,
            rgba(7, 26, 41, 1) 5%,
            rgba(7, 26, 41, 0) 20%,
            transparent 15%
        );
}

/* Fade undertill */
/*.heroimage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22%;
    z-index: 2;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(7, 26, 41, 0) 25%,
        rgba(7, 26, 41, 1) 65%,
        #0e1528 100%
    );
}*/

.heroimage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Vänster och höger */
    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            #000 12%,
            #000 88%,
            transparent 100%
        ),
        /* Underkant */
        linear-gradient(
            to bottom,
            #000 0%,
            #000 78%,
            transparent 100%
        );

    -webkit-mask-composite: source-in;

    mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            #000 12%,
            #000 88%,
            transparent 100%
        ),
        linear-gradient(
            to bottom,
            #000 0%,
            #000 78%,
            transparent 100%
        );

    mask-composite: intersect;
}
.mascot  {
    background: var(--img, none) center / contain no-repeat;
}

.mascot-hero  {
    --img: url(images/mascot-boat.png);
    position: absolute;
    inset: 0 60px 0 0;
}

.week-sign {
    position: absolute;
    top: 68px;
    right: 95px;
    width: 155px;
    padding: 10px 0 6px;
    text-align: center;
    border-radius: 6px;
    transform: rotate(8deg);
    color: #2a1a0c;
    font-family: var(--font-head);
    line-height: .9;
}

.week-sign span  {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
}

.week-sign strong  {
    display: block;
    font-size: 3.6rem;
    font-weight: 800;
}

.hero-note  {
    position: absolute;
    right: 0;
    bottom: -50px;
    font-size: 1.9rem;
    text-align: right;
    transform: rotate(-8deg);
}

.hero-note svg  {
    width: .8em;
    height: .8em;
    vertical-align: -.05em;
}

/* ---------- Paneler ---------- */
.main  {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
    position: relative;
    z-index: 2;
}

.panel  {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    backdrop-filter: blur(6px);
}

.panel h2  {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: .01em;
    margin: 0;
}

.panel-head  {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-bottom: 18px;
}

.panel-head > a:last-child, .panel-head .head-note:last-child  {
    margin-left: auto;
}

.head-note  {
    color: var(--text);
    font-size: .98rem;
}

.head-note-left  {
    margin-left: 0;
    opacity: .9;
}

.date  {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .98rem;
}

.date svg  {
    width: 15px;
    height: 15px;
}

/* ---------- Topplista ---------- */
.chart  {
    padding: 18px 0 0;
    overflow: hidden;
}

.chart .panel-head  {
    padding: 0 24px;
    margin-bottom: 14px;
}

.chart-list  {
    border-top: 1px solid var(--line-soft);
}

.row  {
    display: grid;
    grid-template-columns: 56px 60px 84px minmax(160px, 1fr) auto auto;
    align-items: center;
    gap: 0 18px;
    padding: 10px 24px 10px 30px;
    border-bottom: 1px solid var(--line-soft);
}

.row {
    position: relative;
    border-bottom: 0;
}

.row::after, .stat-box:after, .mover-card:after, .step:after, .bubble:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    pointer-events: none;

    background: linear-gradient(
        to right,
        transparent 0%,
        var(--line-soft) 8%,
        rgba(255,255,255,0.2) 50%,
        transparent 100%
    );
}

.row:nth-child(even)  {
    background: rgba(255,255,255,.025);
}

.row:last-child  {
    border-bottom: 0;
}

.rank  {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 3rem;
    line-height: 1;
}

.move  {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 600;
    font-size: 1.15rem;
}

.move svg  {
    width: 15px;
    height: 15px;
}

.move.up  {
    color: var(--green);
}

.move.down  {
    color: var(--red);
}

.move.down svg  {
   margin-top: 4px;
}

.move.same  {
    font-size: 1.6rem;
    padding-left: 4px;
}

.badge-new  {
    display: inline-block;
    margin-top: 10px;
}

.badge-new:before {
	content:url(../images/badge-new.svg);
	width: 34px;
	display: inline-block;
}

.cover {
    width: 75px;
    aspect-ratio: 1;
    border-radius: 4px;
    background: var(--img, none) center / cover no-repeat, var(--grad);
}

.song  {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.song strong  {
    font-weight: 600;
    font-size: 1.3rem;
}

.song span  {
    color: #d5e0ec;
    font-size: 1.1rem;
}

.stats  {
    display: flex;
    color: #d5e0ec;
    font-size: .95rem;
    white-space: nowrap;
}

.stats li + li::before  {
    content: "|";
    margin: 0 12px;
    opacity: .6;
}

.actions  {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 34px;
}

.act  {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: transform .15s;
}

.act:hover  {
    transform: scale(1.08);
}

.act svg  {
    width: 20px;
    height: 20px;
}

.act-play  {
    border: 2px solid #fff;
    width: 38px;
    height: 38px;
}

.act-play svg  {
    margin-left: 0;
}

.act-spotify  {
    background: var(--spotify);
    color: #0b1a10;
    width: 36px;
    height: 36px;
}

.act-youtube  {
    background: var(--youtube);
    color: #fff;
    width: 42px;
    height: 30px;
    border-radius: 9px;
}

.act-more svg  {
    width: 22px;
}

/* ---------- Röstning ---------- */
.vote-grid  {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2.1fr;
    gap: 16px;
}

.stat-box  {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--box);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: 22px 26px;
    position: relative
}

.stat-icon  {
    width: 50px;
    height: 50px;
}

.stat-box strong  {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 2.9rem;
    line-height: 1;
}

.stat-box span  {
    display: block;
    font-size: 1.05rem;
    line-height: 1.3;
    margin-top: 4px;
}

.countdown  {
    padding: 14px 22px;
}

.countdown .stat-icon  {
    width: 46px;
    height: 46px;
}

.cd-wrap  {
    flex: 1;
}

.cd-title {
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: .03em;
    margin-bottom: 13px;
    margin-top: -8px;
    margin-left: 10px;
}

.cd-units  {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.cd-units > div  {
    text-align: center;
}

.cd-units > div + div  {
    border-left: 1px solid var(--line-soft);
}

.cd-units strong  {
    display: inline-block;
    min-width: 1.7em;
   padding: 2px 4px 6px;
    background: rgba(0,0,0,.25);
    border-radius: 6px;
    font-size: 2.6rem;
}

.cd-units span  {
    display: block;
    font-size: .92rem;
    margin-top: 4px;
}

/* ---------- Veckans rörelse ---------- */
.mover-grid  {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mover-card  {
    background: linear-gradient(135deg, var(--box), rgba(19,43,73,.4));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: 20px 22px 22px;
    position: relative;
}

.mover-card h3  {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--yellow);
    font-weight: 600;
    font-size: 1.45rem;
    margin-bottom: 18px;
    margin-top: 0;
}

.mover-card h3 svg  {
    width: 38px;
    height: 38px;
}

.mover-body  {
    display: flex;
    align-items: center;
    gap: 18px;
}

.cover-lg  {
    width: 104px;
    border-radius: 6px;
    flex: none;
}

.mover-body strong  {
    display: block;
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.15;
}

.mover-body span  {
    display: block;
    font-size: 1.1rem;
    color: #d5e0ec;
}

.mover-body em  {
    display: block;
    font-style: normal;
    font-weight: 700;
    font-size: 1.45rem;
    color: var(--yellow);
    margin-top: 12px;
}

/* ---------- Bubblare ---------- */
.bubble-grid  {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.bubble  {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    aspect-ratio: 1 / 1;
    min-height: 120px;
    border-radius: 8px;
    padding: 10px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    transition: transform .15s;
}

.bubble span, .bubble-play {
	display: block;
	z-index:5;
}

.bubble:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    z-index: 2;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        transparent 0%,
         rgba(7, 26, 41, 0.5) 30%,
        rgba(7, 26, 41, 1) 100%,
        #0e1528 100%
    );
}


.bubble:hover  {
    transform: scale(1.02);
}

.bubble span  {
    flex: 1;
    font-size: .9rem;
    color: #d5e0ec;
    line-height: 1.2;
    min-width: 0;
}

.bubble strong  {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.15;
    margin-bottom: 2px;
}

.bubble-play  {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0,0,0,.25);
}

.bubble-play svg  {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

/* ---------- Så fungerar det ---------- */
.how  {
    position: relative;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding-bottom: 0;
}

.how > h2, .how-intro h2  {
    white-space: nowrap;
}

.how-intro  {
    display: flex;
    flex-direction: column;
}

.how-mascot-wrap  {
    position: relative;
    flex: 1;
    min-height: 200px;
}

.mascot-wave  {
    --img: url(images/mascot-wave.png);
    position: absolute;
    inset: 10px 80px 0 -10px;
    background-position: left bottom;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.how-note  {
    position: absolute;
    top: 40px;
    right: 0;
    font-size: 1.8rem;
    transform: rotate(-8deg);
}

.steps  {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 220px));
    gap: 40px;
    padding: 58px 0 22px;
    justify-content: end;
}

.step  {
    position: relative;
    text-align: center;
    background: var(--box);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: 26px 14px 18px;
}

.step + .step::before  {
    content: "›";
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    color: #5aa2ff;
    font-size: 52px;
}

.step-num  {
    position: absolute;
    top: -22px;
    left: 10px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1f4270;
    border: 1px solid var(--line);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
}

.step > svg  {
    width: 44px;
    height: 44px;
    color: #5aa2ff;
}

.step h3  {
    font-weight: 700;
    font-size: 1.6rem;
    margin: 10px 0 6px;
}

.step p  {
    font-size: 1.1rem;
    line-height: 1.35;
}

.how-rules {
    position: absolute;
    top: 13px;
    right: 22px;
}

/* ---------- Nästa / All time ---------- */
.promo-grid  {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.promo  {
    position: relative;
    overflow: hidden;
    min-height: 175px;
}

.promo-next  {
    position: relative;
}

.promo-alltime  {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-left: 26px;
    background:     linear-gradient(90deg, rgba(14,32,56,.97) 45%, rgba(14,32,56,.2)),     url(images/vinyl-bg.jpg) right center / cover no-repeat,     radial-gradient(circle at 85% 60%, #3a3226 0 20%, #14161c 21% 45%, #0f2238 46%);
}

.promo-body  {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 16px;
}

.promo-icon  {
    width: 58px;
    height: 58px;
}

.promo-body strong  {
    display: block;
    font-weight: 600;
    font-size: 2rem;
}

.promo-body span  {
    font-size: 16px;
}

.promo-note  {
    position: absolute;
    right: 20px;
    bottom: 0;
    font-size: 22px;
    text-align: right;
    transform: rotate(-5deg);
}

.promo-trophy  {
    width: 80px;
    height: 80px;
    color: var(--yellow);
}

.promo-alltime p  {
    font-size: 16px;
    max-width: 22ch;
    margin: 6px 0 12px;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 0;
    padding: 10px 0 30px;
}

.footer-inner  {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
	justify-content: space-between;
}

.footercol {
	
	display: flex;
}

.listen-spotify {
    width: 180px;
    margin-left: auto;
}

.footer-tagline  {
    padding-left: 34px;
    color: #d5e0ec;
    line-height: 1.5;
}


.social  {
    display: flex;
    gap: 20px;
}

.social a  {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: #060f1c;
    transition: transform .15s;
}

.social a:hover  {
    transform: scale(1.08);
}

.social svg  {
    width: 20px;
    height: 20px;
}

.footer-right  {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.footer-nav  {
    display: flex;
    gap: 36px;
    font-weight: 500;
}

.footer-nav a:hover  {
    color: var(--yellow);
}

.made-with  {
    color: #d5e0ec;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rightside {
	margin-left: auto;
}

/* ---------- Gradient-fallbacks för omslag ---------- */
.g-sunset  {
    --grad: linear-gradient(180deg, #2c3b66 0%, #c9716a 45%, #f3b36a 55%, #2e4a70 70%, #1a2d48 100%);
}

.g-forest  {
    --grad: linear-gradient(160deg, #3e7b8a, #d7b366 50%, #2d4a2f);
}

.g-grey    {
    --grad: linear-gradient(180deg, #8d99a8, #4b5663 60%, #232b35);
}

.g-teal    {
    --grad: linear-gradient(170deg, #6a9aa0, #2f5e66 55%, #1a3036);
}

.g-pale    {
    --grad: linear-gradient(180deg, #e8ecf0, #b6c1cc 60%, #7f8b98);
}

.g-ember   {
    --grad: linear-gradient(160deg, #6b2a1c, #c05a2e 40%, #2b1a1a);
}

.g-dusk    {
    --grad: linear-gradient(180deg, #7a3d5a, #d8707a 45%, #3a1f33);
}

.g-purple  {
    --grad: linear-gradient(170deg, #9a7bff, #4a2e9a 50%, #140f33);
}

/* =========================================================
   Responsivt
   ========================================================= */
@media (max-width: 1180px)  {
    .main-nav  {
        gap: 24px;
    }

    .header-inner  {
        gap: 32px;
    }

    .row  {
        grid-template-columns: 48px 52px 72px minmax(0, 1fr) auto;
    }

    .cover  {
        width: 72px;
    }

    .stats  {
        display: none;
    }

    .actions  {
        margin-left: 0;
        gap: 14px;
    }

    .vote-grid  {
        grid-template-columns: repeat(3, 1fr);
    }

    .countdown  {
        grid-column: 1 / -1;
    }

    .mover-grid  {
        gap: 16px;
    }

    .mover-card  {
        padding: 18px;
    }

    .mover-body  {
        gap: 16px;
    }

    .cover-lg  {
        width: 96px;
    }

    .bubble-grid  {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .how  {
        grid-template-columns: 1fr;
    }

    .how-mascot-wrap  {
        display: none;
    }

    .steps  {
        grid-template-columns: repeat(4, 1fr);
        gap: 36px;
        padding-top: 44px;
    }

    .how-rules  {
        position: static;
        justify-self: start;
        margin-bottom: 22px;
    }

    .promo-note  {
        position: static;
        text-align: left;
        margin-top: 14px;
        transform: rotate(-3deg);
    }

}

@media (max-width: 900px)  {
    .main-nav  {
        display: none;
    }

    .hero  {
        padding-top: 90px;
    }

    .hero-inner  {
        grid-template-columns: 1fr;
    }

    .hero-art  {
        min-height: 300px;
        order: -1;
    }

    .week-sign  {
        top: 24px;
        right: 12px;
        width: 108px;
    }

    .week-sign strong  {
        font-size: 2.6rem;
    }

    .week-sign span  {
        font-size: 1.3rem;
    }

    .hero-note  {
        bottom: 10px;
        font-size: 1.5rem;
    }

    .mover-grid  {
        grid-template-columns: 1fr;
    }

    .steps  {
        grid-template-columns: 1fr 1fr;
    }

    .step:nth-child(3)::before  {
        display: none;
    }

    .promo-grid  {
        grid-template-columns: 1fr;
    }

    .footer-inner  {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-tagline  {
        padding-left: 0;
        border-left: 0;
    }

    .social  {
        margin-inline: 0;
    }

    .footer-right  {
        align-items: flex-start;
    }

    .footer-nav  {
        flex-wrap: wrap;
        gap: 12px 24px;
    }
    
    footer .listen-spotify {
	    width: 180px;
    }

}


@media (max-width: 600px)  {
    .panel  {
        padding: 18px 16px;
    }

    .panel h2  {
        font-size: 1.6rem;
    }

    .panel-head > a:last-child, .panel-head .head-note:last-child  {
        margin-left: 0;
    }

    .chart .panel-head  {
        padding: 0 16px;
    }

    .row  {
        grid-template-columns: 34px 40px 56px minmax(0, 1fr) auto;
        gap: 0 10px;
        padding: 8px 12px;
    }

    .rank  {
        font-size: 2.1rem;
    }

    .cover  {
        width: 56px;
    }

    .song strong  {
        font-size: 1.05rem;
    }

    .song span  {
        font-size: .95rem;
    }

    .actions .act-spotify, .actions .act-youtube, .actions .act-more  {
        display: none;
    }

    .act-play  {
        width: 40px;
        height: 40px;
    }

    .vote-grid  {
        grid-template-columns: 1fr;
    }

    .stat-box  {
        padding: 16px 18px;
    }

    .countdown .stat-icon  {
        display: none;
    }

    .cd-units strong  {
        font-size: 2rem;
    }

    .bubble-grid  {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .bubble-play  {
        width: 34px;
        height: 34px;
    }

    .steps  {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .step::before  {
        display: none;
    }

    .promo-body strong  {
        font-size: 1.5rem;
    }

    .promo-note  {
        position: static;
        margin-top: 16px;
        text-align: left;
        transform: none;
    }

    .promo-alltime  {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .promo-trophy  {
        width: 56px;
        height: 56px;
    }

    .btn  {
        font-size: 1rem;
    }

    .hero-buttons  {
        gap: 12px;
    }

}


/* ===== Formulärpanel (registrering m.fl., pluginets shortcodes) ===== */

.form-panel-wrap  {
    margin-top: 32px;
    margin-bottom: 48px;
}

/* Samma uppbyggnad som .chart: rubrikraden har sidopadding, en tunn linje
   löper hela panelbredden under den, och innehållet ligger under linjen. */
.form-panel  {
    padding: 18px 0 0;
    overflow: hidden;
}

.form-panel .panel-head  {
    padding: 0 24px;
    margin-bottom: 14px;
}

.form-panel .panel-head h2  {
    text-transform: uppercase;
}

.form-body  {
    border-top: 1px solid var(--line-soft);
    padding: 28px 24px 32px;
}

.form  {
    display: grid;
    gap: 18px;
    max-width: 560px;
    margin-left: 24px;
    margin-right: 24px;
}

.form .field  {
    display: grid;
    gap: 6px;
}

.form label  {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
}

.form .field-optional  {
    font-weight: 400;
    color: var(--muted);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="url"]  {
    width: 100%;
    box-sizing: border-box;
    background: var(--box);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .8em 1em;
    font: inherit;
    font-size: 1rem;
    transition: border-color .15s, box-shadow .15s;
}

.form input::placeholder  {
    color: var(--muted);
    opacity: .7;
}

.form input:focus  {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(246, 196, 69, .22);
}

.form .field-hint  {
    font-size: .85rem;
    color: var(--muted);
}

.form .form-actions  {
    margin-top: 4px;
}

.form .form-actions .btn  {
    border: 0;
    cursor: pointer;
}

.form .form-status  {
    margin: 0;
    min-height: 1.4em;
    font-size: .95rem;
    color: var(--green);
}

.form .form-status.is-error  {
    color: var(--red);
}

@media (max-width: 720px)  {

    .form-panel .panel-head  {
        padding: 0 16px;
    }

    .form-body  {
        padding: 22px 16px 26px;
    }

    .form  {
        margin-left: 0;
        margin-right: 0;
    }

}


/* ===== Mina låtar (pluginets [agc_my_tracks], override my-tracks.php) ===== */

.mt-page  {
    margin-top: 32px;
    margin-bottom: 48px;
    display: grid;
    gap: 16px;
}

.mt-top  {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.mt-panel  {
    min-width: 0;
}

/* Formulär och platsväljare fyller panelen i stället för .forms smala kolumn */
.mt-panel .form  {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.mt-panel .form[hidden],
.mt-warning[hidden]  {
    display: none;
}

.mt-devstate  {
    grid-column: 1 / -1;
    margin: 0 0 15px 0;
    padding: 10px 14px;
    border: 2px solid var(--yellow);
    font-size: .95rem;
    position: relative;
    z-index: 5;
}

.mt-intro  {
    margin: 0 0 16px;
    color: var(--text);
    line-height: 1.5;
}

.mt-note  {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: .95rem;
}

.mt-note-warn  {
    color: var(--yellow);
}

.mt-warning  {
    border: 1px solid var(--yellow);
    background: rgba(246, 196, 69, .08);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.mt-warning p  {
    margin: 6px 0 12px;
    white-space: pre-line;
    color: var(--text);
    font-size: .95rem;
}

.mt-warning-actions  {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mt-warning .btn  {
    cursor: pointer;
    background-clip: padding-box;
}

/* --- Platser --- */
.mt-slots  {
    display: grid;
    gap: 16px;
}

.mt-slot  {
    display: grid;
    /* fast kolumn för status så att alla selectboxar är lika breda */
    grid-template-columns: 1fr 6em;
    gap: 6px 12px;
    align-items: center;
}

.mt-slot label  {
    grid-column: 1 / -1;
    font-weight: 600;
    font-size: .95rem;
}

.mt-slot select  {
    width: 100%;
    box-sizing: border-box;
    /* !important: temat sätter globalt select { appearance: menulist-button !important } */
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: var(--box);
    /* egen pil så att den kan ligga en bit in från kanten */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23a9bbd0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px 8px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .8em 46px .8em 1em;
    font: inherit;
    font-size: 1rem;
}

.mt-slot select:focus  {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(246, 196, 69, .22);
}

.mt-slot select:disabled  {
    opacity: .75;
}

.mt-slot-status  {
    min-width: 5.5em;
    font-size: .9rem;
    color: var(--green);
}

.mt-slot-status  {
    display: inline-flex;
    align-items: center;
}

/* "Sparat": bara en vit bock i grön cirkel; texten ligger kvar i DOM för skärmläsare */
.mt-slot-status.is-saved  {
    font-size: 0;
}

.mt-slot-status.is-saved::before  {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' viewBox='0 0 14 11'%3E%3Cpath d='M1.5 5.5 5 9 12.5 1.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 11px no-repeat;
}

.mt-slot-status.is-error  {
    color: var(--red);
    grid-column: 1 / -1;
}

/* --- Låtlista --- */
.mt-group + .mt-group  {
    margin-top: 32px;
}

.mt-group h3  {
    font-family: var(--font-head);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin: 0 0 8px;
}

.mt-count  {
    color: var(--muted);
    font-size: 1rem;
    margin-left: 6px;
}

.mt-tracks  {
    border-top: 1px solid var(--line-soft);
}

.mt-track  {
    border-bottom: 1px solid var(--line-soft);
    padding: 10px 0;
}

.mt-track:last-child  {
    border-bottom: 0;
}

.mt-track-main  {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0 16px;
}

.mt-track .cover  {
    width: 64px;
    /* .cover kräver --grad (annars ogiltigt background); låtar utan omslag får denna */
    --grad: linear-gradient(160deg, #3a4a6b, #1a2d48);
}

.mt-track .song strong  {
    font-size: 1.15rem;
}

.mt-track .song span  {
    font-size: 1rem;
}

.mt-tag  {
    color: var(--muted);
    font-size: .9rem;
}

.mt-tag--ok  {
    color: var(--green);
}

.mt-track.is-unavailable .mt-tag  {
    color: var(--red);
}

.mt-track-actions  {
    display: flex;
    gap: 8px;
}

.mt-track-actions .btn  {
    cursor: pointer;
    background-color: transparent;
}

.mt-change-links  {
    margin: 14px 0 6px 80px;
    max-width: 520px;
}

@media (max-width: 900px)  {

    .mt-top  {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 720px)  {

    .mt-track-main  {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 6px 12px;
    }

    .mt-track .cover  {
        width: 56px;
    }

    .mt-track-main > .mt-tag,
    .mt-track-main > .mt-stats,
    .mt-track-main > .mt-track-actions  {
        grid-column: 2;
    }

    .mt-change-links  {
        margin-left: 0;
    }

}
