.artist-group { grid-column: 1 / -1; }
.artist-sublinks { display: grid; grid-template-columns: 1fr; gap: var(--gap-row) var(--gap-col); margin-top: 8px; }
.artist-sublinks[hidden] { display: none; }

.sublink-card {
    background: linear-gradient(135deg, var(--color-card-start) 0%, var(--color-card-end) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease;
}
.sublink-card:hover { transform: translateY(-1px); border-color: #555; }
.sublink-card[data-platform="instagram"]:hover { border-color: #e4405f; box-shadow: 0 8px 25px rgba(228, 64, 95, 0.2); }
.sublink-card[data-platform="tiktok"]:hover { border-color: #ff0050; box-shadow: 0 8px 25px rgba(255, 0, 80, 0.2); }
.sublink-card[data-platform="spotify"]:hover { border-color: #1db954; box-shadow: 0 8px 25px rgba(29, 185, 84, 0.2); }
.sublink-card .sublink-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: #222; border-radius: 8px; }
.sublink-card .sublink-label { font-size: 14px; color: #fff; font-weight: 600; }

/* Kleinere Plattform-Icons nur in den Artist-Subkarten */
.sublink-card .platform-icon { width: 18px; height: 18px; filter: brightness(0) invert(1) drop-shadow(0 0 6px var(--glow-1)) drop-shadow(0 0 12px var(--glow-2)); }
/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Design Tokens */
:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-muted: #888888;
    --color-border: #333333;
    --color-card-start: #111111;
    --color-card-end: #1a1a1a;
    --glow-1: rgba(255, 255, 255, 0.6);
    --glow-2: rgba(255, 255, 255, 0.4);

    --container-max: 480px;
    --spacing: 16px;
    --gap-col: 12px;
    --gap-row: 8px;
    --radius: 12px;
    --card-padding: 20px;
    --card-height: 90px;
    --grid-min: 220px; /* min card width before wrapping */

    --icon-box-size: 40px;
    --icon-size: 28px;
    --title-size: 16px;
    --subtitle-size: 14px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hintergrund-Canvas für urbane Partikel */
#bg-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 18px;
    padding-top: 20px;
}

.logo-container {
    margin-bottom: 12px;
}

.logo {
    width: 138px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    animation: logoGlow 3s ease-in-out infinite alternate, neonFlicker 4.5s linear infinite;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: filter, opacity;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.6));
    }
}

/* Subtiles Neon-Flackern für das Logo */
@keyframes neonFlicker {
    0%   { opacity: 1; filter: drop-shadow(0 0 22px rgba(255,255,255,.35)); }
    2%   { opacity: .82; filter: drop-shadow(0 0 8px rgba(255,255,255,.15)); }
    3%   { opacity: 1;  filter: drop-shadow(0 0 26px rgba(255,255,255,.50)); }
    7%   { opacity: .78; filter: drop-shadow(0 0 6px rgba(255,255,255,.12)); }
    9%   { opacity: 1;  filter: drop-shadow(0 0 28px rgba(255,255,255,.55)); }
    14%  { opacity: .85; filter: drop-shadow(0 0 10px rgba(255,255,255,.2)); }
    16%  { opacity: 1;  filter: drop-shadow(0 0 26px rgba(255,255,255,.5)); }
    24%  { opacity: .75; filter: drop-shadow(0 0 4px rgba(255,255,255,.1)); }
    26%  { opacity: 1;  filter: drop-shadow(0 0 30px rgba(255,255,255,.6)); }
    40%  { opacity: .8;  filter: drop-shadow(0 0 8px rgba(255,255,255,.18)); }
    42%  { opacity: 1;  filter: drop-shadow(0 0 28px rgba(255,255,255,.55)); }
    58%  { opacity: .83; filter: drop-shadow(0 0 10px rgba(255,255,255,.2)); }
    60%  { opacity: 1;  filter: drop-shadow(0 0 30px rgba(255,255,255,.6)); }
    76%  { opacity: .8;  filter: drop-shadow(0 0 8px rgba(255,255,255,.18)); }
    78%  { opacity: 1;  filter: drop-shadow(0 0 28px rgba(255,255,255,.55)); }
    92%  { opacity: .85; filter: drop-shadow(0 0 10px rgba(255,255,255,.2)); }
    94%  { opacity: 1;  filter: drop-shadow(0 0 30px rgba(255,255,255,.6)); }
    100% { opacity: 1;  filter: drop-shadow(0 0 22px rgba(255,255,255,.35)); }
}

.tagline {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
}

/* Links Container - Flexible Grid */
.links-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--grid-min), 1fr));
    gap: var(--gap-row) var(--gap-col);
    align-content: start; /* pack Reihen nach oben, kein Stretch in der Höhe */
    margin-bottom: 40px;
}

/* Section Separator */
.section-separator {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    color: var(--color-muted);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 12px;
    text-transform: uppercase;
    margin: 8px 0 4px 0;
}

.section-separator::before,
.section-separator::after {
    content: '';
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.25), rgba(255,255,255,0));
}

/* Attribute-gesteuerte Spalten-Span */
.link-item[data-span="full"] {
    grid-column: 1 / -1;
}

/* Mobile/Tablet Tweaks */
@media (max-width: 768px) {
    :root {
        --grid-min: 160px;
        --gap-col: 8px;
        --gap-row: 8px; /* vertikaler Kartenabstand */
        --card-height: 75px;
    }

    .link-item {
        padding: 8px 10px;
        gap: 8px;
        align-items: center;
    }

    .link-icon {
        width: 28px;
        height: 28px;
        padding: 4px;
    }

    .platform-icon {
        width: 18px;
        height: 18px;
    }

    .link-content h3 { font-size: 13px; margin-bottom: 2px; line-height: 1.2; }
    .link-content p { font-size: 11px; line-height: 1.2; }

    .link-arrow { display: none; }
}

.link-item {
    background: linear-gradient(135deg, var(--color-card-start) 0%, var(--color-card-end) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--card-padding);
    display: flex;
    align-items: center;
    gap: var(--spacing);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: var(--card-height);
}

/* Nur die ersten 4 Karten: fixe, kompakte Höhe (Desktop & Mobile) */
.links-container .link-item:nth-child(-n+4) {
    height: 75px;
    min-height: 75px;
    padding: 12px 16px;
    /* lokale Skalierung für kompakte Darstellung */
    --icon-box-size: 32px;
    --icon-size: 22px;
    --title-size: 15px;
    --subtitle-size: 13px;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.link-item:hover::before {
    left: 100%;
}

.link-item:hover {
    transform: translateY(-2px);
    border-color: #555;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.link-item:active {
    transform: translateY(0);
}

.link-icon {
    width: var(--icon-box-size);
    height: var(--icon-box-size);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    border-radius: 8px;
    flex-shrink: 0;
    padding: 6px;
}

.platform-icon {
    width: var(--icon-size);
    height: var(--icon-size);
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    display: block;
    transform: translate(var(--icon-translate-x, 0), var(--icon-translate-y, 0)) scale(var(--icon-scale, 1));
}

.platform-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px var(--glow-1)) drop-shadow(0 0 16px var(--glow-2));
}

/* Sicherstellen: nur das Top-Logo flackert, nicht die Social Icons/Avatare */
.platform-icon,
.artist-avatar,
.link-icon { 
    animation: none !important; 
}

/* Artist Avatars (runde Bilder) */
.artist-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: 0 0 10px rgba(255,255,255,0.15);
}

/* Artist Cards: 3 pro Reihe, Bild oben, Text unten */
/* Artist Cards – 3 Reihen untereinander, große Avatare */
.artist-card {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
    min-height: 100px;
    padding: 10px 14px;
}

.artist-card .link-icon {
    width: 96px;
    height: 96px;
    background: transparent;
    padding: 0;
}

.artist-card .link-content h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.artist-card .link-content p {
    font-size: 13px;
}

@media (max-width: 768px) {
    .artist-card {
        min-height: 88px;
        gap: 10px;
        padding: 10px 12px;
    }
    .artist-card .link-icon {
        width: 80px;
        height: 80px;
    }
}

.link-item:hover .platform-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 36px rgba(255, 255, 255, 0.4));
    transform: translate(var(--icon-translate-x, 0), var(--icon-translate-y, 0)) scale(calc(var(--icon-scale, 1) * 1.05));
}

.link-content {
    flex: 1;
}

.link-content h3 {
    font-size: var(--title-size);
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.link-content p {
    font-size: var(--subtitle-size);
    color: var(--color-muted);
    font-weight: 400;
}

.link-arrow {
    font-size: 18px;
    color: #666;
    transition: all 0.3s ease;
    font-weight: 300;
}

.link-item:hover .link-arrow {
    color: #fff;
    transform: translateX(4px);
}

/* Platform-spezifische Styles */
.link-item[data-platform="instagram"]:hover {
    border-color: #e4405f;
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.2);
}

.link-item[data-platform="twitch"]:hover {
    border-color: #9146ff;
    box-shadow: 0 8px 25px rgba(145, 70, 255, 0.2);
}

/* Twitch Icon optisch ausgleichen (PNG hat andere Einfassung) */
.link-item[data-platform="twitch"] .platform-icon { --icon-scale: 0.86; --icon-translate-x: 1px; }

.link-item[data-platform="youtube"]:hover {
    border-color: #ff0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.2);
}

.link-item[data-platform="tiktok"]:hover {
    border-color: #ff0050;
    box-shadow: 0 8px 25px rgba(255, 0, 80, 0.2);
}

/* Slogan */
.slogan {
    text-align: center;
    margin: 30px 0;
}

.slogan p {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 1px;
    text-transform: lowercase;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #222;
    margin-top: auto;
}

.footer p {
    font-size: 12px;
    color: #666;
    font-weight: 300;
}

.footer-links {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a {
    color: #9aa0a6;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-links .dot {
    color: #444;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .logo {
        width: 130px;
    }
    
    .link-item {
        padding: 16px;
    }
    
    .link-content h3 {
        font-size: 15px;
    }
    
    .link-content p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 12px;
    }
    
    .logo {
        width: 110px;
    }
    
    .link-item {
        padding: 14px;
        gap: 12px;
    }
    
    .link-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* Dark Mode Optimierungen */
@media (prefers-color-scheme: dark) {
    body {
        background: #000000;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-item {
    animation: fadeInUp 0.6s ease-out forwards;
}

.link-item:nth-child(1) { animation-delay: 0.1s; }
.link-item:nth-child(2) { animation-delay: 0.2s; }
.link-item:nth-child(3) { animation-delay: 0.3s; }
.link-item:nth-child(4) { animation-delay: 0.4s; }
.link-item:nth-child(5) { animation-delay: 0.5s; }
