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

body {
    background-color: #06090e;
    color: #f8fafc;
    overflow-x: clip;
    max-width: 100%;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

img, svg, video, canvas {
    max-width: 100%;
}

select,
textarea,
input {
    max-width: 100%;
}

select option {
    background-color: #0d131d;
    color: #f8fafc;
}

.glass-panel {
    background: rgba(13, 19, 29, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(18, 25, 38, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 245, 160, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(0, 245, 160, 0.5);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px -15px rgba(0, 245, 160, 0.25);
}

.glass-card-cyan:hover {
    border-color: rgba(0, 217, 245, 0.5);
    box-shadow: 0 20px 40px -15px rgba(0, 217, 245, 0.25);
}

.glass-card-purple:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 40px -15px rgba(168, 85, 247, 0.25);
}

.glow-text-emerald {
    text-shadow: 0 0 25px rgba(0, 245, 160, 0.7), 0 0 50px rgba(0, 245, 160, 0.4);
}

.gradient-text {
    background: linear-gradient(135deg, #00f5a0 0%, #00d9f5 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.animated-bg {
    background: radial-gradient(circle at 50% 20%, rgba(0, 245, 160, 0.15) 0%, rgba(168, 85, 247, 0.1) 35%, rgba(6, 9, 14, 0.98) 75%);
}

.social-btn-spotify:hover { border-color: #1DB954 !important; color: #1DB954 !important; box-shadow: 0 0 20px rgba(29, 185, 84, 0.4); }
.social-btn-youtube:hover { border-color: #FF0000 !important; color: #FF0000 !important; box-shadow: 0 0 20px rgba(255, 0, 0, 0.4); }
.social-btn-instagram:hover { border-color: #E4405F !important; color: #E4405F !important; box-shadow: 0 0 20px rgba(228, 64, 95, 0.4); }
.social-btn-applemusic:hover { border-color: #FA243C !important; color: #FA243C !important; box-shadow: 0 0 20px rgba(250, 36, 60, 0.4); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #06090e; }
::-webkit-scrollbar-thumb { background: rgba(0, 245, 160, 0.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 245, 160, 0.7); }

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 0.3; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
.pulse-ring { animation: pulse-ring 3s infinite ease-in-out; }

.lang-switch { display: flex; align-items: center; border-radius: 9999px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); }
.lang-btn { padding: 0.35rem 0.65rem; font-size: 0.7rem; font-family: monospace; letter-spacing: 0.05em; color: #94a3b8; background: transparent; transition: all 0.2s ease; }
.lang-btn:hover { color: #f8fafc; }
.lang-btn-active { background: #00f5a0; color: #06090e; font-weight: 700; }

.music-filter-btn { color: #94a3b8; border: 1px solid rgba(255, 255, 255, 0.08); }
.music-filter-btn:hover { color: #f8fafc; }
.music-filter-btn.filter-active-all { background: rgba(248, 250, 252, 0.12); color: #f8fafc; border-color: rgba(248, 250, 252, 0.3); }
.music-filter-btn.filter-active-nature { background: rgba(0, 245, 160, 0.12); color: #00f5a0; border-color: rgba(0, 245, 160, 0.4); }
.music-filter-btn.filter-active-humanity { background: rgba(0, 217, 245, 0.12); color: #00d9f5; border-color: rgba(0, 217, 245, 0.4); }
.music-filter-btn.filter-active-discovery { background: rgba(168, 85, 247, 0.12); color: #a855f7; border-color: rgba(168, 85, 247, 0.4); }
.music-filter-btn.filter-active-emerald { background: rgba(0, 245, 160, 0.12); color: #00f5a0; border-color: rgba(0, 245, 160, 0.4); }
.music-filter-btn.filter-active-cyan { background: rgba(0, 217, 245, 0.12); color: #00d9f5; border-color: rgba(0, 217, 245, 0.4); }
.music-filter-btn.filter-active-purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; border-color: rgba(168, 85, 247, 0.4); }
.custom-category-card.is-active { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28); }

.song-cover { position: relative; aspect-ratio: 16 / 10; border-radius: 1rem; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.song-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.song-cover.has-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 55%); pointer-events: none; z-index: 1; }
.song-cover.has-cover .demo-badge { z-index: 2; }
.demo-badge { position: absolute; top: 0.6rem; left: 0.6rem; font-size: 0.6rem; letter-spacing: 0.1em; padding: 0.2rem 0.55rem; border-radius: 9999px; background: rgba(6, 9, 14, 0.7); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.15); }

.song-play-btn { position: absolute; inset: 0; margin: auto; width: 3.25rem; height: 3.25rem; z-index: 2; }
.song-play-btn:disabled { cursor: not-allowed; }
.song-play-btn:focus-visible, .song-discover-btn:focus-visible, .playback-toggle-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.song-progress-track { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(0, 0, 0, 0.35); cursor: pointer; z-index: 2; }
.song-progress-fill { height: 100%; width: 0%; transition: width 0.1s linear; }
.song-card-playing { animation: songGlowPulse 2.6s ease-in-out infinite; }
@keyframes songGlowPulse {
    0%, 100% { box-shadow: 0 0 0 1px var(--card-glow, rgba(0,245,160,0.4)), 0 0 30px -6px var(--card-glow, rgba(0,245,160,0.5)); }
    50% { box-shadow: 0 0 0 1px var(--card-glow, rgba(0,245,160,0.6)), 0 0 46px -6px var(--card-glow, rgba(0,245,160,0.75)); }
}

@keyframes discoveryFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.discovery-stage-enter { animation: discoveryFadeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both; }
.discovery-theme-btn { transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.discovery-theme-btn:hover { transform: translateY(-3px); }

/* —— Responsive fixes —— */
.hero-title-wrap {
    container-type: inline-size;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.hero-title {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    white-space: nowrap;
    /* MiNeLYuS ≈ 8.5–9 em geniş; her zaman sığsın */
    font-size: clamp(1.5rem, calc(100cqi / 8.8), 9rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}

@supports not (width: 1cqi) {
    .hero-title {
        font-size: clamp(1.5rem, 10.5vw, 9rem);
    }
}

/* Uzun bölüm başlıkları — kelime ortasından ASLA kırılmaz */
.section-heading {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 0.15rem;
    font-size: clamp(1.4rem, 5.2vw + 0.4rem, 3.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: normal;
    word-break: keep-all;
    word-wrap: normal;
    hyphens: none;
    text-wrap: pretty;
}

/* Canlı Performanslar: tek satır, genişliğe göre küçülür */
#live .section-heading {
    white-space: nowrap;
    width: max-content;
    max-width: 100%;
    font-size: clamp(1.15rem, calc((100vw - 2.5rem) / 11.8), 3.75rem);
    overflow: hidden;
}

#live .live-event-card {
    min-width: 0;
}

#live .live-event-meta {
    min-width: 0;
    flex: 1 1 auto;
}

#live .live-event-meta h4,
#live .live-event-meta p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

#live .live-event-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
}

@media (min-width: 640px) {
    #live .live-event-cta {
        width: auto;
    }
}

#mobileMenu {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: max(5.5rem, env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom));
    gap: 1.5rem;
}

#mobileMenu .mobile-link {
    text-align: center;
    max-width: 100%;
    padding-inline: 0.5rem;
}

header .header-inner {
    gap: 0.75rem;
}

@media (max-width: 639px) {
    .glass-card:hover,
    .glass-card-cyan:hover,
    .glass-card-purple:hover {
        transform: none;
    }

    .hero-badge {
        letter-spacing: 0.12em !important;
        font-size: 0.8rem !important;
        padding-inline: 0.75rem;
        max-width: 100%;
    }

    .hero-social-row a {
        width: 100%;
        max-width: 18rem;
        justify-content: center;
    }

    .live-banner-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.35;
    }
}

@media (max-width: 767px) {
    header .header-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .brand-tagline-desktop {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    header nav {
        gap: 1rem !important;
        font-size: 0.8rem;
    }
}

@media (hover: none) {
    .glass-card:hover,
    .glass-card-cyan:hover,
    .glass-card-purple:hover {
        transform: none;
    }
}

/* Panelde pasif içerik — Tailwind hidden ile çakışmasın */
.is-section-off {
    display: none !important;
}