:root{
    --bg: #0b0b12;
    --bg-soft: #1a102a;
    --card: #151122;
    --text: #efeaff;
    --muted: #b8aee0;
    --accent: #7c4dff;
    --accent-2: #b388ff;
    --ring: rgba(124,77,255,0.35);
    --glass: rgba(255,255,255,0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Make line breaks in plain text show as new lines for news excerpts */
.news-item .news-excerpt{
  white-space: pre-line;            /* respects \n in your HTML text */
  line-height: 1.55;
}

/* If multiple paragraphs are used, add spacing between them */
.news-item .news-excerpt + .news-excerpt{ margin-top: 10px; }

/* (spacing reverted to original defaults) */

/* News page: give cards a touch more inner room and ensure flowing layout */
.news-items .news-item{ padding: 22px; overflow: visible; }
/* Space before action button so it won't sit on previous line */
.news-items .news-item .btn{ display: inline-flex; margin-top: 10px; }
/* Ensure last paragraph has a little breathing room above the button */
.news-items .news-item .news-excerpt:last-of-type{ margin-bottom: 6px; }

/* Bottom-center scroll down button */
.scroll-down-btn{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1000;
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(124,77,255,0.25);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 160ms ease, opacity 200ms ease;
}
.scroll-down-btn:hover{ transform: translateX(-50%) translateY(-2px); box-shadow: 0 12px 34px rgba(124,77,255,0.32); background: rgba(124,77,255,0.15); }
.scroll-down-btn:focus-visible{ outline: 2px solid var(--ring); outline-offset: 3px; }
.scroll-down-btn.hidden{ opacity: 0; pointer-events: none; }

/* Soft pulsing ring */
.scroll-down-btn::after{
  content: "";
  position: absolute; inset: -6px; border-radius: 999px; pointer-events: none;
  border: 1px solid rgba(124,77,255,0.18);
  box-shadow: 0 0 18px rgba(124,77,255,0.25);
  opacity: 0.6;
  animation: pulseRing 2200ms ease-in-out infinite;
}

.scroll-arrow{
  width: 22px; height: 22px; display: inline-block; background: var(--accent);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 16l-6-6h12z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 16l-6-6h12z"/></svg>') no-repeat center / contain;
  filter: drop-shadow(0 2px 4px rgba(124,77,255,0.35));
  animation: arrowNudge 1600ms ease-in-out infinite;
}

@keyframes gentleBounce{
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-3px); }
}
.scroll-down-btn.hint{ animation: gentleBounce 2200ms ease-in-out infinite; }

@keyframes arrowNudge{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@keyframes pulseRing{
  0%, 100% { opacity: 0.6; box-shadow: 0 0 18px rgba(124,77,255,0.25); }
  50% { opacity: 0.9; box-shadow: 0 0 26px rgba(124,77,255,0.35); }
}

@media (max-width: 640px){
  .scroll-down-btn{ width: 44px; height: 44px; bottom: 14px; }
}

/* Stars layer sits between bg-decoration and pattern */
.bg-stars{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; overflow-y: auto; overflow-x: hidden; }

body{
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background:
      radial-gradient(1000px 700px at 12% 18%, rgba(85,40,160,0.78), transparent 62%),
      radial-gradient(820px 560px at 78% 12%, rgba(125,70,220,0.68), transparent 62%),
      radial-gradient(960px 600px at 18% 78%, rgba(80,40,170,0.62), transparent 62%),
      radial-gradient(860px 560px at 86% 78%, rgba(170,100,255,0.58), transparent 62%),
      radial-gradient(620px 440px at 46% 46%, rgba(45,22,90,0.78), transparent 68%),
      radial-gradient(680px 500px at 60% 64%, rgba(95,50,190,0.45), transparent 66%),
      radial-gradient(1200px 900px at 50% 50%, #0b0b12, #0b0b12 60%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}
body::-webkit-scrollbar { width: 0; height: 0; }

.bg-decoration{
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(1200px 600px at 80% -10%, rgba(124,77,255,0.26), transparent 60%),
      radial-gradient(900px 500px at -10% 10%, rgba(179,136,255,0.24), transparent 60%),
      radial-gradient(800px 400px at 50% 120%, rgba(80,40,160,0.22), transparent 62%),
      linear-gradient(180deg, rgba(124,77,255,0.06), rgba(255,255,255,0) 28%, rgba(179,136,255,0.05) 70%, rgba(255,255,255,0) 100%);
    z-index: 0;
}

.bg-pattern{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.10;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%23ffffff'><path d='M30 4c-8.8 0-16 7.2-16 16 0 7.2 4.8 13.3 11.3 15.4-7.6-1.9-13.3-8.8-13.3-17.1C12 9.2 19.2 2 28 2c2.4 0 4.6.5 6.6 1.4C33 3 31.6 4 30 4z' opacity='.9'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 32' fill='%23ffffff'><circle cx='8' cy='24' r='2'/><circle cx='56' cy='14' r='2'/><circle cx='104' cy='10' r='2'/><circle cx='152' cy='20' r='2'/><path d='M8 24 L56 14 L104 10 L152 20' stroke='%23ffffff' stroke-width='1.6' fill='none' opacity='.85'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0%' stop-color='%23b388ff'/><stop offset='100%' stop-color='%23ff8ae2'/></linearGradient></defs><path d='M24 3 L41 24 L24 45 L7 24 Z' stroke='url(%23g)' stroke-width='1.8' fill='none' opacity='.9'/></svg>");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 86px 86px, 180px 36px, 72px 72px;
  background-position:
    86% 10%,
    10% 90%,
    12% 12%;
  mix-blend-mode: screen;
}

.bg-pattern::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(160px 140px at 86% 10%, rgba(230,210,255,0.35), transparent 65%),
    radial-gradient(220px 180px at 86% 10%, rgba(150,100,255,0.18), transparent 70%);
}

.dyn-star{
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  left: 0; top: 0;
  transform: translate(var(--x), var(--y)) scale(0.6);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), rgba(240,230,255,0.4) 55%, rgba(255,255,255,0) 70%);
  box-shadow: 0 0 6px rgba(200,160,255,0.35), 0 0 12px rgba(160,120,255,0.25);
  opacity: 0;
  animation: starAppear var(--dur, 2.6s) ease-in-out forwards, starDrift var(--drift, 8s) linear infinite;
}
.dyn-star.big{ --s: 4px; box-shadow: 0 0 8px rgba(210,170,255,0.5), 0 0 16px rgba(180,140,255,0.35); }
.dyn-star.huge{ --s: 6px; box-shadow: 0 0 10px rgba(220,180,255,0.6), 0 0 20px rgba(190,150,255,0.45); }
/* New larger variant */
.dyn-star.giant{ --s: 9px; box-shadow: 0 0 14px rgba(235,205,255,0.75), 0 0 28px rgba(200,160,255,0.55); }

@keyframes starAppear{
  0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.6); }
  15% { opacity: 1; transform: translate(var(--x), var(--y)) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(var(--x) + var(--dx, 0px)), calc(var(--y) + var(--dy, 0px))) scale(0.9); }
}

@keyframes starDrift{
  0% { filter: brightness(1) drop-shadow(0 0 2px rgba(190,150,255,0.2)); }
  50% { filter: brightness(1.15) drop-shadow(0 0 4px rgba(210,170,255,0.35)); }
  100% { filter: brightness(1) drop-shadow(0 0 2px rgba(190,150,255,0.2)); }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15,15,25,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124,77,255,0.15);
}

.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 12px 16px;
    max-width: 1200px;
    margin: 0 auto;
    column-gap: 16px;
}

.nav-links { justify-self: center; display: flex; gap: 32px; position: relative; z-index: 1; }
.navbar .left-controls { display: flex; align-items: center; gap: 10px; }
.navbar .left-controls { position: relative; z-index: 3; }
.navbar .left-controls #bg-music { pointer-events: none; display: none; }
.right-spacer { width: 56px; height: 1px; }

.nav-item {
    color: var(--muted);
    text-decoration: none;
    font-family: 'Quicksand', system-ui, sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 24px;
    border-radius: 999px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: var(--text);
    background: rgba(124,77,255,0.1);
    transform: translateY(-1px);
}

.nav-item.active {
    color: var(--accent);
    background: rgba(124,77,255,0.15);
    box-shadow: 0 4px 12px rgba(124,77,255,0.25);
}

/* Glassy icon button for navbar (play/pause) — match socials */
.icon-btn{
  width: 38px; height: 38px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(124,77,255,0.18);
  background: var(--glass);
  box-shadow: var(--shadow);
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 160ms ease;
  cursor: pointer;
}
.icon-btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 28px rgba(124,77,255,0.22); }
.icon-btn:focus-visible{ outline: 2px solid var(--ring); outline-offset: 2px; }
.icon-btn.active{ box-shadow: 0 8px 22px rgba(124,77,255,0.45); background: rgba(124,77,255,0.14); }

.main-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 120px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(300px, 480px) 1fr;
    gap: 32px;
    align-items: stretch;
}

.main-container > .content-box { height: 100%; }
.social-box, .news-box { height: 100%; display: flex; flex-direction: column; }
.news-items { flex: 1 1 auto; }
.social-links { flex: 1 1 auto; }

.left-column { display: grid; gap: 24px; }
.right-column { display: grid; gap: 24px; }

.content-box {
    background: var(--card);
    border: 1px solid rgba(124,77,255,0.14);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 32px;
    backdrop-filter: blur(12px) saturate(1.05);
    animation: fadeUp 600ms ease;
}

.box-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px 0;
    font-family: 'Quicksand', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.title-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(124,77,255,0.3));
}

.social-links {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.tweets-container {
    display: grid;
    gap: 12px;
    width: 100%;
}

.single-tweet-container {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(124,77,255,0.08);
    transition: all 0.3s ease;
    max-height: 520px;
}

.single-tweet-container:hover {
    border-color: rgba(124,77,255,0.2);
    background: rgba(255,255,255,0.05);
}

.twitter-tweet {
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 12px !important;
    max-height: 520px !important;
    overflow: hidden !important;
}

.twitter-tweet iframe {
    border-radius: 12px !important;
    background: transparent !important;
    max-height: 520px !important;
}

.tweets-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(124,77,255,0.12);
    border-radius: 16px;
}

.placeholder-content {
    color: var(--muted);
}

.placeholder-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    opacity: 0.7;
}

.tweets-placeholder h3 {
    margin: 0 0 12px 0;
    color: var(--text);
    font-size: 1.2rem;
}

.tweets-placeholder p {
    margin: 8px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.placeholder-note {
    font-size: 0.8rem !important;
    opacity: 0.7;
    font-family: 'Courier New', monospace;
}

.placeholder-note code {
    background: rgba(124,77,255,0.15);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid rgba(124,77,255,0.12);
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-color: rgba(124,77,255,0.25);
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(124,77,255,0.3);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.social-link.twitch .social-icon { background: #9146FF; }
.social-link.youtube .social-icon { background: #FF0033; }
.social-link.twitter .social-icon { background: #1DA1F2; }
.social-link.discord .social-icon { background: #5865F2; }

.social-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(124,77,255,0.12);
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: rgba(124,77,255,0.08);
    border-radius: 12px;
    border: 1px solid rgba(124,77,255,0.15);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted);
}

/* News Box */
.news-items {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.news-item {
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(124,77,255,0.12);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(124,77,255,0.2);
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.news-excerpt {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(124,77,255,0.35);
}

.view-all-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(124,77,255,0.45);
}

/* Universal shimmer hover for buttons/cards */
.news-item, .view-all-btn, .watch-btn {
    position: relative;
    overflow: hidden;
}
.news-item::after, .view-all-btn::after, .watch-btn::after{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 80%);
    opacity: 0;
}
.news-item:hover::after, .view-all-btn:hover::after, .watch-btn:hover::after{
    opacity: 0.35;
    animation: shimmerMove 1200ms ease;
}

.stream-plans-box .box-title { margin-bottom: 16px; }
.stream-plans-box { grid-column: 1 / -1; position: relative; overflow: hidden; --dx: 0px; --dy: 0px; }
.stream-plans-box::before{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
      /* star */ url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><path d='M32 6l7.9 16.1L58 24l-13 12.7L48 58 32 49.2 16 58l3-21.3L6 24l18.1-1.9L32 6z' fill='%23ffe6a9' stroke='%23f6d881' stroke-width='2'/></svg>"),
      /* heart */ url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><path d='M32 56S10 42.3 10 26.9C10 18 16.4 12 24 12c4.2 0 7.7 2 8 6 .3-4 3.8-6 8-6 7.6 0 14 6 14 14.9C54 42.3 32 56 32 56z' fill='%23ffc7da' stroke='%23f7b0c9' stroke-width='2'/></svg>"),
      /* bow */ url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><path d='M14 22c8 0 13 6 18 10 5-4 10-10 18-10 3 0 6 1 8 2-2 3-5 7-8 9-4 3-10 4-15 3 1 6 3 12 3 12s-5-4-6-8c-1 4-6 8-6 8s2-6 3-12c-5 1-11 0-15-3-3-2-6-6-8-9 2-1 5-2 8-2z' fill='%23cbb4ff' stroke='%23b79dff' stroke-width='2' stroke-linejoin='round'/></svg>"),
      /* sparkle */ url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><path d='M32 8l4 12 12 4-12 4-4 12-4-12-12-4 12-4 4-12z' fill='%23ffffff' opacity='0.9'/></svg>");
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-size: 88px 88px, 96px 96px, 110px 110px, 72px 72px;
    background-position:
      calc(8% + var(--dx)) calc(16% + var(--dy)),   /* star */
      calc(92% + var(--dx)) calc(18% + var(--dy)),  /* heart */
      calc(14% + var(--dx)) calc(84% + var(--dy)),  /* bow */
      calc(88% + var(--dx)) calc(84% + var(--dy));  /* sparkle */
    mix-blend-mode: screen;
    transition: opacity 240ms ease;
}
.stream-plans-box:hover::before{ opacity: 0.28; }

/* Hover shimmer sweep */
.stream-plans-box::after{
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0) 80%);
    opacity: 0;
}
.stream-plans-box:hover::after{
    opacity: 0.4;
    animation: shimmerMove 1400ms ease;
}

@keyframes shimmerMove{
  from { transform: translateX(-30%); }
  to   { transform: translateX(30%); }
}
.stream-plans{ position: relative; z-index: 1; }
.stream-plans {
    display: grid;
    gap: 16px;
}

.plan-item {
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(124,77,255,0.12);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.plan-item:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(124,77,255,0.2);
}

.plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.plan-dates {
    font-weight: 700;
    color: var(--accent);
}
.plan-status {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(124,77,255,0.25);
    background: rgba(124,77,255,0.12);
    color: var(--text);
}
.plan-status.upcoming { background: rgba(124,77,255,0.14); }

.plan-schedule {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
    display: grid;
    gap: 10px;
}
.plan-schedule li {
    display: grid;
    grid-template-columns: 56px 92px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(124,77,255,0.10);
}
.plan-schedule li.live { border-color: rgba(255, 88, 88, 0.35); background: rgba(255, 88, 88, 0.08); }
.plan-schedule li.today { border-color: rgba(80, 220, 150, 0.7); background: rgba(80, 220, 150, 0.10); }
.plan-schedule .day { font-weight: 700; color: var(--text); }
.plan-schedule .time { color: var(--muted); font-size: 0.95rem; }
.plan-schedule .activity { color: var(--text); }

.tags { display: inline-flex; gap: 8px; }
.tag {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(124,77,255,0.16);
    color: var(--text);
    border: 1px solid rgba(124,77,255,0.22);
}
.tag.live-pill { background: #ff4d4f; border-color: #ff7875; color: #fff; font-weight: 700; }

.plan-footer { display: flex; justify-content: flex-end; }
.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #9146FF;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(145,70,255,0.35);
    font-weight: 700;
}
.watch-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(145,70,255,0.45); }

/* Latest Stream (VOD) */
.latest-stream-box { grid-column: auto; }
.latest-stream { display: grid; gap: 14px; }
.vod-embed {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(124,77,255,0.12);
    box-shadow: var(--shadow);
}
.vod-embed.aspect-16x9 { padding-top: 80%; }
.vod-embed iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.vod-footer { display: flex; justify-content: flex-end; }
.vod-placeholder { display: grid; place-items: center; color: var(--muted); height: 100%; }
.vod-thumb-skeleton{ width: 92%; height: 70%; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05)); filter: blur(0.3px); }

/* Music icon (play by default, pause when .icon-btn.active) */
.icon-music{
  width: 18px; height: 18px; display: inline-block;
  background: var(--accent);
  /* Play icon (triangle) */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 5v14l11-7-11-7z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8 5v14l11-7-11-7z"/></svg>') no-repeat center / contain;
}
.icon-btn.active .icon-music{
  /* Pause icon when active */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 5h4v14H7zM13 5h4v14h-4z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 5h4v14H7zM13 5h4v14h-4z"/></svg>') no-repeat center / contain;
}

.copyright-text {
    grid-column: 1 / -1; 
    justify-self: center;   
    width: 100%;
    text-align: center;
    color: var(--muted);
    margin-top: -13px;        
    padding: 10px 16px 0;    
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Footer link color (Impressum / Datenschutzerklärung / Cookie‑Einstellungen) */
.copyright-text a{
  color: var(--muted);
  text-decoration: none;
}
.copyright-text a:hover{
  color: var(--text);
  text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 16px;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 0 12px;
  pointer-events: auto;
}
.cookie-content{
  width: min(960px, 96vw);
  background: rgba(20, 16, 35, 0.92);
  backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid rgba(124,77,255,0.22);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  padding: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  align-items: center;
  position: relative;
  z-index: 100000;
  pointer-events: auto;
}
.cookie-text{ color: var(--text); font-size: 0.95rem; line-height: 1.45; padding: 4px 8px; }
.cookie-link{ color: var(--accent-2); text-decoration: underline; }
.cookie-actions{ display: inline-flex; gap: 10px; }

/* Cookie Settings Modal */
.cookie-modal-backdrop{
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 100000; display: none; align-items: center; justify-content: center; padding: 16px;
}
.cookie-modal-backdrop.open{ display: flex; }
.cookie-modal{
  width: min(640px, 96vw);
  background: rgba(20, 16, 35, 0.96);
  border: 1px solid rgba(124,77,255,0.25);
  border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  padding: 18px;
}
.cookie-modal-title{ margin: 0 0 6px 0; font-size: 1.25rem; font-weight: 800; }
.cookie-modal-desc{ margin: 0 0 14px 0; color: var(--muted); }
.cookie-opt{ padding: 12px; border: 1px solid rgba(124,77,255,0.18); border-radius: 12px; background: rgba(255,255,255,0.04); }
.cookie-opt label{ display: flex; gap: 10px; align-items: center; cursor: pointer; }
.cookie-opt input[type="checkbox"]{ width: 18px; height: 18px; }
.cookie-modal-actions{ display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }

/* Prevent background scroll when modal open */
.cookie-modal-open{ overflow: hidden; }

.btn{ font-family: 'Quicksand', system-ui, sans-serif; font-weight: 700; border-radius: 12px; padding: 10px 14px; cursor: pointer; border: 1px solid transparent; transition: transform 140ms ease, box-shadow 140ms ease, background-color 160ms ease; }
.btn:focus-visible{ outline: 2px solid var(--ring); outline-offset: 2px; }
.btn-primary{ background: var(--accent); color: white; box-shadow: 0 6px 16px rgba(124,77,255,0.35); border-color: rgba(124,77,255,0.25); }
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 8px 20px rgba(124,77,255,0.45); }
.btn-ghost{ background: rgba(255,255,255,0.06); color: var(--text); border-color: rgba(124,77,255,0.22); }
.btn-ghost:hover{ background: rgba(255,255,255,0.1); }

@media (max-width: 640px){
  .cookie-content{ grid-template-columns: 1fr; gap: 14px; }
  .cookie-actions{ justify-self: end; }
}

/* When consent is chosen, force-hide any banners site-wide */
html[data-cookie-consent] .cookie-banner{ display: none !important; }

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 96px auto 0;
    }
    
    .nav-container {
        gap: 14px;
    }
    
    .nav-item {
        font-size: 0.98rem;
        padding: 9px 16px;
    }
    
    .content-box {
        padding: 18px;
    }
    
    .social-stats {
        grid-template-columns: 1fr;
    }

    /* Slightly smaller tweet embeds on phones */
    .single-tweet-container { max-height: 340px; }
    .twitter-tweet, .twitter-tweet iframe { max-height: 340px !important; }

    /* Stream plan layout for phones */
    .plan-header { gap: 8px; margin-bottom: 10px; }
    .plan-dates { font-size: 0.95rem; }
    .plan-status { padding: 4px 8px; font-size: 0.72rem; }

    .plan-schedule { gap: 8px; }
    .plan-schedule li {
        grid-template-columns: 52px 1fr;
        gap: 8px;
        padding: 10px;
    }
    .plan-schedule .day { font-size: 0.95rem; }
    .plan-schedule .time { font-size: 0.9rem; color: var(--muted); }
    .plan-schedule .activity { grid-column: 1 / -1; font-size: 0.95rem; }
    .plan-schedule .tags { grid-column: 1 / -1; }
    .tag { font-size: 0.7rem; padding: 3px 8px; }

    /* VOD: slightly reduce height on phones */
    .vod-embed.aspect-16x9 { padding-top: 58%; }
}

@media (max-width: 480px) {
    .nav-item { font-size: 0.92rem; padding: 8px 14px; }
    .box-title { font-size: 1.25rem; }
    .display-name { font-size: 1.35rem; }
    .view-all-btn { padding: 12px 18px; }
    .watch-btn { padding: 9px 12px; }
    .news-item { padding: 16px; }
    .plan-dates { font-size: 0.9rem; }
}

/* Animations lol*/
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .dyn-star { animation: none; }
    .bg-decoration::before, .bg-decoration::after { animation: none; }
}
