@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ===== Design Tokens ===== */
:root {
    --bg-primary: #f6f7f8;
    --bg-white: #ffffff;
    --bg-hover: #f1f2f4;
    --bg-card: #ffffff;

    --border-light: #e2e5ea;
    --border-hover: #d1d5db;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-faint: #cbd5e1;

    --accent-primary: #137fec;
    --accent-gaming: #6366f1;
    --accent-upcoming: #8b5cf6;
    --accent-tech: #3b82f6;
    --accent-music: #06b6d4;
    --accent-default: #64748b;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);

    --transition-fast: 0.15s ease;
    --transition-smooth: 0.25s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 2rem;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo img {
    height: 64px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-tagline {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ===== Header Dropdown ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.dropdown-toggle:hover {
    color: var(--accent-primary);
}

.dropdown-toggle .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    padding: 0.4rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition-smooth);
    z-index: 200;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.dropdown-menu a .menu-icon {
    font-size: 1.1rem;
}

/* ===== Category Navigation ===== */
.category-nav {
    position: sticky;
    top: 64px;
    z-index: 90;
    padding: 1rem 2rem;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.category-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav-inner::-webkit-scrollbar {
    display: none;
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-full);
    border: none;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    user-select: none;
}

.cat-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.cat-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
}

.cat-btn .cat-count {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
}

.cat-btn.active .cat-count {
    opacity: 1;
}

/* ===== Main Content ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

/* ===== Masonry Grid ===== */
.cards-grid {
    columns: 4 280px;
    column-gap: 1.5rem;
}

.link-card {
    break-inside: avoid;
    display: block;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    margin-bottom: 1.5rem;
    animation: cardAppear 0.4s ease-out backwards;
}

.link-card:hover {
    box-shadow: var(--shadow-md);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
}

/* Thumbnail with overlay badge */
.card-thumbnail-wrap {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.card-thumbnail {
    width: 100%;
    display: block;
    background: var(--bg-primary);
}

.card-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #e2e5ea 0%, #f1f2f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.card-category-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.badge-gaming {
    background: rgba(99, 102, 241, 0.9);
}

.badge-tech {
    background: rgba(59, 130, 246, 0.9);
}

.badge-music {
    background: rgba(6, 182, 212, 0.9);
}

.badge-uncategorized {
    background: rgba(100, 116, 139, 0.9);
}

.card-body {
    padding: 1rem 1.15rem 1.15rem;
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.link-card:hover .card-title {
    color: var(--accent-primary);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.card-source {
    font-weight: 500;
    color: var(--text-secondary);
}

.source-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-faint);
    flex-shrink: 0;
}

.card-date {
    font-size: 0.75rem;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== Footer ===== */
.site-footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--border-light);
    margin-top: 2rem;
    background: var(--bg-white);
}

/* ===== Subpage Layout ===== */
.subpage-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.subpage-header {
    margin-bottom: 2.5rem;
}

.subpage-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.subpage-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.subpage-breadcrumb a:hover {
    color: var(--accent-primary);
}

.subpage-breadcrumb .sep {
    opacity: 0.4;
}

.subpage-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.subpage-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Subpage body prose */
.subpage-body {
    line-height: 1.75;
    color: var(--text-secondary);
    font-size: 1rem;
}

.subpage-body p {
    margin-bottom: 1.25rem;
}

.subpage-body h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.subpage-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.subpage-body a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(19, 127, 236, 0.3);
    transition: border-color var(--transition-fast);
}

.subpage-body a:hover {
    border-bottom-color: var(--accent-primary);
}

.subpage-body ul,
.subpage-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.subpage-body li {
    margin-bottom: 0.5rem;
}

/* Command pills (TwitchJohnies) */
.command-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.command-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-primary);
    transition: var(--transition-smooth);
    cursor: default;
}

.command-pill:hover {
    border-color: var(--accent-primary);
    background: rgba(19, 127, 236, 0.06);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Code blocks (Builderheim) */
.code-inline {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(19, 127, 236, 0.08);
    color: var(--accent-primary);
    border: 1px solid rgba(19, 127, 236, 0.15);
}

.code-block {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin: 1rem 0;
    overflow-x: auto;
}

/* Step cards (Builderheim) */
.step-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    transition: box-shadow var(--transition-smooth);
}

.step-card:hover {
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(19, 127, 236, 0.1);
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.6rem;
    flex-shrink: 0;
}

/* Feature highlight chips */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0 2rem;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.feature-chip:hover {
    border-color: var(--accent-primary);
    background: rgba(19, 127, 236, 0.04);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Data tables */
.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table thead {
    background: var(--bg-primary);
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-light);
    white-space: nowrap;
}

.data-table td {
    padding: 0.65rem 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: rgba(19, 127, 236, 0.03);
}

.data-table td:nth-child(2) {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--accent-primary);
    white-space: nowrap;
}

.info-box {
    border: 1px solid rgba(19, 127, 236, 0.15);
    border-radius: var(--radius-md);
    background: rgba(19, 127, 236, 0.04);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-box strong {
    color: var(--accent-primary);
}

/* ===== Loading shimmer ===== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.loading-card {
    break-inside: avoid;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.loading-card .shimmer-block {
    background: linear-gradient(90deg,
            var(--bg-primary) 25%,
            rgba(255, 255, 255, 0.6) 50%,
            var(--bg-primary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.loading-thumb {
    width: 100%;
    aspect-ratio: 16/9;
}

.loading-body {
    padding: 1.25rem;
}

.loading-badge {
    height: 22px;
    width: 80px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.loading-title {
    height: 18px;
    width: 85%;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.loading-title-short {
    height: 18px;
    width: 55%;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.loading-meta {
    height: 14px;
    width: 40%;
    border-radius: 4px;
}

/* ===== Suno Player ===== */

.suno-page {
    max-width: 1060px;
}

.suno-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.suno-intro a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(19, 127, 236, 0.3);
    transition: border-color var(--transition-fast);
}

.suno-intro a:hover {
    border-bottom-color: var(--accent-primary);
}
/* ===== Volume Bar ===== */
.suno-volume-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    margin-bottom: 0.75rem;
}

.suno-volume-mute {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.suno-volume-mute:hover {
    background: var(--bg-hover);
    color: var(--accent-music);
}

.suno-volume-slider-wrap {
    flex: 1;
    display: flex;
    align-items: center;
}

.suno-volume-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-primary);
    outline: none;
    cursor: pointer;
    transition: height var(--transition-fast);
}

.suno-volume-range:hover {
    height: 10px;
}

.suno-volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-music);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.suno-volume-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(6, 182, 212, 0.5);
}

.suno-volume-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-music);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.35);
}

.suno-volume-range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 4px;
}

.suno-volume-range::-moz-range-track {
    height: 8px;
    border-radius: 4px;
    background: var(--bg-primary);
}

.suno-volume-indicator {
    font-family: 'Outfit', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ===== Collection Toggle ===== */
.suno-collection {
    margin-bottom: 0.75rem;
}

.suno-collection-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.suno-collection-toggle:hover {
    border-color: var(--accent-music);
    box-shadow: var(--shadow-sm);
}

.suno-collection-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.suno-collection-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.suno-collection-toggle.collapsed .suno-collection-arrow {
    transform: rotate(-90deg);
}

.suno-collection-body {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
    padding-top: 0.75rem;
}

.suno-collection-body.collapsed {
    max-height: 0;
    opacity: 0;
}

/* ===== Album Grid ===== */
.suno-album-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.suno-album-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.suno-album-card:hover {
    border-color: var(--accent-music);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
}

.suno-album-card.active {
    border-color: var(--accent-music);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.25), 0 4px 16px rgba(6, 182, 212, 0.15);
}

.suno-album-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e5ea 0%, #f1f2f4 100%);
}

.suno-album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.suno-album-card:hover .suno-album-thumb img {
    transform: scale(1.05);
}

/* Hover play icon */
.suno-card-hover-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #ffffff;
    z-index: 2;
}

.suno-album-card:hover .suno-card-hover-play {
    opacity: 1;
}

.suno-card-hover-play svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Playing-state overlay */
.suno-card-playing-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 3;
    pointer-events: none;
}

.suno-card-now-playing-top {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 0.6rem 0.65rem 1.2rem;
    pointer-events: auto;
}

.suno-card-now-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.suno-card-mini-controls {
    display: flex;
    gap: 0.25rem;
}

.suno-mini-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease;
    backdrop-filter: blur(4px);
}

.suno-mini-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Card equalizer (bottom of image, full width) */
.suno-card-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 33%;
    padding: 0 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
}

.suno-card-eq span {
    display: block;
    flex: 1;
    border-radius: 1px 1px 0 0;
    background: var(--accent-music);
    transition: height 0.08s ease;
    box-shadow: 0 0 4px rgba(6, 182, 212, 0.5);
    height: 8%;
    min-width: 0;
}


/* Album info (each attribute on its own line) */
.suno-album-info {
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.suno-album-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suno-album-tracks {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.suno-album-genre {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-music);
    background: rgba(6, 182, 212, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    display: inline-block;
    width: fit-content;
}

/* ===== Player Area (side-by-side) ===== */
.suno-player-area {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

/* Player Card */
.suno-player {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.suno-player-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,1) 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,1) 100%);
    z-index: 0;
    transition: background-image 0.4s ease;
}

.suno-player-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

/* Player Bottom Equalizer */
.suno-player-eq {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    flex: 1;
    min-height: 48px;
    margin-top: auto;
    margin-bottom: -1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 0 2px;
}

.suno-player-eq span {
    display: block;
    flex: 1;
    border-radius: 1px 1px 0 0;
    background: var(--accent-music);
    transition: height 0.08s ease;
    box-shadow: 0 0 4px rgba(6, 182, 212, 0.4);
    height: 6%;
    min-width: 0;
    opacity: 0.7;
}

/* Now Playing */
.suno-now-playing {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.suno-artwork {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e2e5ea 0%, #f1f2f4 100%);
}

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

.suno-artwork-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.1));
}

.suno-track-info {
    min-width: 0;
    flex: 1;
}

.suno-track-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suno-track-artist {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.suno-now-links {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.suno-now-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.suno-now-link:hover {
    color: var(--accent-music);
    background: rgba(6, 182, 212, 0.08);
}

.suno-now-badge {
    display: flex;
    align-items: center;
    height: 28px;
    padding: 0 0.65rem;
    border-radius: 14px;
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.suno-now-badge:hover {
    color: var(--accent-music);
    border-color: var(--accent-music);
    background: rgba(6, 182, 212, 0.06);
}

/* Controls */
.suno-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.suno-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.suno-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.suno-btn-play {
    width: 52px;
    height: 52px;
    background: var(--accent-music);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.suno-btn-play:hover {
    background: #05a3bd;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.suno-btn-small {
    width: 36px;
    height: 36px;
}

.suno-btn-small.active {
    color: var(--accent-music);
}

/* Progress Bar */
.suno-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.suno-time {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 32px;
    text-align: center;
    user-select: none;
}

.suno-progress {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-primary);
    cursor: pointer;
    position: relative;
    transition: height var(--transition-fast);
}

.suno-progress:hover {
    height: 8px;
}

.suno-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--accent-music);
    width: 0%;
    transition: none;
    pointer-events: none;
}

.suno-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-music);
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--transition-fast);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.suno-progress:hover .suno-progress-handle {
    transform: translate(-50%, -50%) scale(1);
}

/* ===== Track List (left panel) ===== */
.suno-track-list {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 340px;
    flex-shrink: 0;
}

.suno-tracklist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background-size: cover;
    background-position: center 30%;
    position: relative;
    z-index: 1;
}

.suno-tracklist-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

.suno-tracklist-album-name {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0, 0, 0, 0.5);
}

.suno-tracklist-suno-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition-fast);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.suno-tracklist-suno-link:hover {
    color: #ffffff;
}

.suno-track-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}

.suno-track-row:last-child {
    border-bottom: none;
}

.suno-track-row:hover {
    background: var(--bg-hover);
}

.suno-track-row.active {
    background: rgba(6, 182, 212, 0.06);
}

.suno-track-row.active .suno-track-row-title {
    color: var(--accent-music);
}

.suno-track-num {
    width: 24px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
}

.suno-track-row-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.suno-track-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition-fast);
    flex-shrink: 0;
    opacity: 0;
}

.suno-track-row:hover .suno-track-link {
    opacity: 1;
}

.suno-track-link:hover {
    color: var(--accent-music);
    background: rgba(6, 182, 212, 0.08);
}

/* Equalizer Animation (track list) */
.suno-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.suno-eq span {
    display: block;
    width: 3px;
    background: var(--accent-music);
    border-radius: 1px;
    transition: height 0.08s ease;
    height: 15%;
}


.suno-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Suno Responsive ===== */
@media (max-width: 1024px) {
    .suno-album-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .suno-album-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .suno-player-area {
        flex-direction: column;
    }

    .suno-track-list {
        width: 100%;
    }

    .suno-player {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .suno-album-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .suno-album-info {
        padding: 0.6rem 0.7rem;
    }

    .suno-album-title {
        font-size: 0.78rem;
    }

    .suno-card-hover-play {
        opacity: 1;
    }

    .suno-card-hover-play svg {
        width: 30px;
        height: 30px;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .site-header {
        padding: 0 1rem;
    }

    .header-inner {
        height: 56px;
    }

    .category-nav {
        padding: 0.75rem 1rem;
        top: 56px;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .cards-grid {
        columns: 1;
        column-gap: 0;
    }

    .header-tagline {
        display: none;
    }

    .subpage-content {
        padding: 2rem 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .cat-btn {
        font-size: 0.8rem;
        padding: 0.45rem 1rem;
    }
}