.genres-container {
    width: 100%;
    max-width: var(--container-max-width, 1600px);
    margin: 0 auto;
    padding: calc(var(--header-height, 64px) + 12px) var(--container-padding) 0;
    background: transparent !important;
}

.genres-hero {
    position: relative;
    margin-bottom: 48px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(17, 24, 39, 0.88) 45%,
        rgba(6, 78, 59, 0.35) 100%
    );
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.genres-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(34, 197, 94, 0.18), transparent 55%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, 24px 24px, 24px 24px;
    pointer-events: none;
    animation: genres-bg-breathe 10s ease-in-out infinite;
}

.genres-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: 32px 40px;
    align-items: center;
    padding: 40px 40px 44px;
}

.genres-hero-copy {
    min-width: 0;
}

.genres-hero-eyebrow {
    margin: 0 0 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(34, 197, 94, 0.95);
}

.genres-hero-title {
    margin: 0 0 16px;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.genres-hero-desc {
    margin: 0 0 22px;
    max-width: 36em;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.78);
}

.genres-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.genres-hero-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.8125rem;
    color: rgba(248, 250, 252, 0.88);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.genres-hero-pill strong {
    font-size: 1rem;
    font-weight: 700;
    color: #4ade80;
}

.genres-hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #052e16;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.genres-hero-cta:hover {
    color: #052e16;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

@keyframes genres-disc-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes genres-rings-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.88;
        transform: scale(1.04);
    }
}

@keyframes genres-bg-breathe {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.88;
    }
}

@keyframes genres-card-reveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.genres-hero-visual {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.genres-hero-orbit {
    position: relative;
    z-index: 1;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.genres-hero-disc {
    position: relative;
    width: min(200px, 42vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        repeating-radial-gradient(
            circle at 50% 50%,
            rgba(255, 255, 255, 0.06) 0,
            rgba(255, 255, 255, 0.06) 2px,
            transparent 2px,
            transparent 7px
        ),
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.12), transparent 45%),
        linear-gradient(145deg, rgba(34, 197, 94, 0.25), rgba(15, 23, 42, 0.6));
    border: 2px solid rgba(34, 197, 94, 0.35);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 20px 50px rgba(0, 0, 0, 0.45),
        inset 0 0 40px rgba(34, 197, 94, 0.08);
    animation: genres-disc-spin 32s linear infinite;
}

.genres-hero-disc::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18%;
    aspect-ratio: 1;
    margin: -9% 0 0 -9%;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid rgba(74, 222, 128, 0.7);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.35);
}

.genres-hero-rings {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 42%, rgba(34, 197, 94, 0.06) 43%, transparent 44%),
        radial-gradient(circle at 50% 50%, transparent 58%, rgba(34, 197, 94, 0.04) 59%, transparent 60%);
    pointer-events: none;
    transform-origin: center;
    animation: genres-rings-pulse 5.5s ease-in-out infinite;
}

.genres-content {
    margin-bottom: 60px;
}

.genre-category {
    margin-bottom: 52px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.genre-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.genre-category-head {
    margin-bottom: 24px;
    padding-left: 14px;
    border-left: 3px solid var(--primary-color, #22c55e);
}

.category-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    text-align: left;
    letter-spacing: -0.02em;
}

.category-lead {
    margin: 0;
    max-width: 48rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.subgenres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.subgenres-grid--solo {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    max-width: 420px;
}

.subgenres-grid:has(> :only-child) {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
    justify-items: stretch;
    width: 100%;
}

.genre-category-row--solo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 28px 40px;
    align-items: stretch;
    margin-top: 8px;
}

.genre-category-row--solo .subgenre-card--feature {
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.genre-relation-panel {
    margin: 0;
    border-radius: 16px;
    padding: 28px 26px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.genre-relation-eyebrow {
    margin: 0 0 10px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(34, 197, 94, 0.9);
}

.genre-relation-title {
    margin: 0 0 14px;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.genre-relation-lead {
    margin: 0 0 18px;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.genre-relation-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.genre-relation-list li {
    margin: 0;
    padding-left: 14px;
    border-left: 2px solid rgba(34, 197, 94, 0.35);
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.82);
}

.genre-relation-k {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(34, 197, 94, 0.95);
    background: rgba(34, 197, 94, 0.12);
    vertical-align: middle;
}

.subgenre-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.35s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.subgenres-grid .subgenre-card {
    animation: genres-card-reveal 0.58s ease backwards;
}

.subgenres-grid .subgenre-card:nth-child(1) {
    animation-delay: 0.04s;
}
.subgenres-grid .subgenre-card:nth-child(2) {
    animation-delay: 0.1s;
}
.subgenres-grid .subgenre-card:nth-child(3) {
    animation-delay: 0.16s;
}
.subgenres-grid .subgenre-card:nth-child(4) {
    animation-delay: 0.22s;
}
.subgenres-grid .subgenre-card:nth-child(5) {
    animation-delay: 0.28s;
}
.subgenres-grid .subgenre-card:nth-child(6) {
    animation-delay: 0.34s;
}
.subgenres-grid .subgenre-card:nth-child(7) {
    animation-delay: 0.4s;
}
.subgenres-grid .subgenre-card:nth-child(8) {
    animation-delay: 0.46s;
}

.genre-category-row--solo .subgenre-card--feature,
.genre-category-row--solo .genre-relation-panel {
    animation: genres-card-reveal 0.62s ease backwards;
}

.genre-category-row--solo .genre-relation-panel {
    animation-delay: 0.12s;
}

.subgenre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--genre-color, var(--primary-color, #22c55e));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.subgenre-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.22);
    text-decoration: none;
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.32),
        0 0 28px rgba(34, 197, 94, 0.14);
}

.subgenre-card:hover::before {
    transform: scaleX(1);
}

.subgenre-lineage {
    margin: 0 auto 14px;
    max-width: 22rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(74, 222, 128, 0.75);
}

.subgenre-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    color: white;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.subgenre-card:hover .subgenre-icon {
    transform: scale(1.08) rotate(-6deg);
}

.subgenre-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    transition: color 0.3s ease;
}

.subgenre-card:hover .subgenre-name {
    color: var(--primary-color);
}

.subgenre-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    line-height: 1.5;
    min-height: 48px;
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.subgenre-description:empty {
    display: none;
    min-height: 0;
    margin: 0;
}

.subgenre-stats {
    display: flex;
    justify-content: center;
    align-items: center;
}

.subgenre-card .track-count {
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

main.main .empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

main.main .empty-icon {
    margin-bottom: 24px;
    opacity: 0.5;
}

main.main .empty-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

main.main .empty-state p {
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .genres-hero-inner {
        grid-template-columns: 1fr;
        padding: 28px 22px 32px;
    }

    .genres-hero-visual {
        min-height: 160px;
        order: -1;
    }

    .genres-hero-disc {
        width: min(160px, 50vw);
    }

    .subgenres-grid--solo {
        max-width: none;
    }

    .genre-category-row--solo {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .genre-category-row--solo .subgenre-card--feature {
        min-height: 0;
    }

    .category-title {
        font-size: 1.25rem;
    }
    
    .subgenres-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .subgenre-card {
        padding: 24px 16px;
    }
    
    .subgenre-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .subgenre-name {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .subgenres-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .genres-hero-bg,
    .genres-hero-disc,
    .genres-hero-rings {
        animation: none !important;
    }

    .genres-hero-orbit {
        transition: none !important;
        will-change: auto;
    }

    .subgenres-grid .subgenre-card,
    .genre-category-row--solo .subgenre-card--feature,
    .genre-category-row--solo .genre-relation-panel {
        animation: none !important;
        opacity: 1;
    }

    .subgenre-card:hover .subgenre-icon {
        transform: none;
    }
}
