/* ═══════════════════════════════════════════════════════════
   RIBER PREMIUM — Dark Luxury Experience
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg: #050608;
    --bg-card: rgba(12, 14, 18, 0.72);
    --bg-glass: rgba(18, 20, 26, 0.55);
    --gold: #f0b90b;
    --gold-light: #fcd535;
    --gold-dark: #c99400;
    --gold-glow: rgba(240, 185, 11, 0.45);
    --text: #f5f5f7;
    --text-muted: #8b929a;
    --border: rgba(240, 185, 11, 0.12);
    --radius: 22px;
    --radius-sm: 14px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-deep: 0 24px 80px rgba(0, 0, 0, 0.65);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

/* Parallax background */
.parallax-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.parallax-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
    transition: transform 0.1s linear;
}

.parallax-orb--1 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(240, 185, 11, 0.14) 0%, transparent 70%);
    top: -8%;
    left: -15%;
    animation: floatOrb 18s ease-in-out infinite;
}

.parallax-orb--2 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(201, 148, 0, 0.1) 0%, transparent 70%);
    bottom: 20%;
    right: -20%;
    animation: floatOrb 22s ease-in-out infinite reverse;
}

.parallax-orb--3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(252, 213, 53, 0.08) 0%, transparent 70%);
    top: 45%;
    left: 50%;
    animation: floatOrb 15s ease-in-out infinite 2s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.08); }
}

/* App shell */
.app {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 0 auto;
    padding-bottom: calc(32px + var(--safe-bottom));
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(6px);
    transition:
        opacity 1s var(--ease-out),
        transform 1.1s var(--ease-out),
        filter 1s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.65s; }

/* Hero slider */
.hero {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--hero-transition, 1s) var(--ease);
    background: linear-gradient(135deg, #12141a 0%, #0a0b0e 100%);
}

.hero-slide--fallback {
    background: linear-gradient(135deg, #1a1c24 0%, #0d0e12 50%, #12141a 100%);
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(5, 6, 8, 0.4) 50%,
        var(--bg) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-dots {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    transition: all 0.4s var(--ease);
}

.hero-dot.active {
    width: 20px;
    border-radius: 3px;
    background: var(--gold);
}

/* Profile */
.profile {
    text-align: center;
    padding: 0 24px;
    margin-top: -56px;
    position: relative;
    z-index: 5;
}

.avatar-ring {
    position: relative;
    width: 108px;
    height: 108px;
    margin: 0 auto 14px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg);
    position: relative;
    z-index: 2;
    background: #111;
}

.avatar-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, var(--gold-light), var(--gold), var(--gold-dark), var(--gold-light));
    z-index: 1;
    animation: spinGlow 6s linear infinite;
    opacity: 0.85;
}

.avatar-glow::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg);
}

@keyframes spinGlow {
    to { transform: rotate(360deg); }
}

.profile-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--gold);
    margin-bottom: 6px;
}

.profile-name {
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.profile-bio {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 320px;
    margin: 0 auto 4px;
}

/* Telegram logo abaixo da bio */
.cta {
    padding: 16px 20px 8px;
    margin-top: 0;
}

.profile-bio strong {
    color: var(--gold-light);
    font-weight: 500;
}

/* ═══ VINYL PLAYER 3D ═══ */
.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.vinyl-stage {
    position: relative;
    width: 200px;
    height: 200px;
    perspective: 800px;
}

.vinyl-shadow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 24px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.7) 0%, transparent 70%);
    filter: blur(8px);
}

.vinyl-arm {
    position: absolute;
    top: 8px;
    right: 18px;
    width: 70px;
    height: 8px;
    background: linear-gradient(90deg, #333, #555);
    border-radius: 4px;
    transform-origin: right center;
    transform: rotate(-28deg);
    z-index: 10;
    transition: transform 0.8s var(--ease);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.vinyl-arm::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #444;
    border-radius: 50%;
    border: 2px solid #666;
}

.vinyl-arm.playing {
    transform: rotate(2deg);
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.vinyl-disc__body {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #1a1a1a 0%, #0a0a0a 35%, #111 36%, #0d0d0d 37%, #111 38%, #0a0a0a 50%, #151515 51%, #0a0a0a 65%, #111 66%, #080808 100%);
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.9),
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}

.vinyl-grooves {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0px,
        transparent 2px,
        rgba(255, 255, 255, 0.02) 2px,
        rgba(255, 255, 255, 0.02) 3px
    );
    pointer-events: none;
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38%;
    height: 38%;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--gold-light), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 2px 8px rgba(255, 255, 255, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.5);
}

.vinyl-label__text {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #0a0a0a;
}

.vinyl-shine {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.06) 100%
    );
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Play button */
.play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--gold-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.play-btn:hover {
    transform: scale(1.06);
    border-color: rgba(240, 185, 11, 0.35);
    box-shadow: 0 8px 32px var(--gold-glow);
}

.play-btn:active { transform: scale(0.96); }

.play-btn svg { width: 22px; height: 22px; }

.play-btn__icon--pause { display: none; }
.play-btn.playing .play-btn__icon--play { display: none; }
.play-btn.playing .play-btn__icon--pause { display: block; }

/* Now Playing */
.now-playing {
    width: 100%;
    padding: 18px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-deep);
}

.now-playing__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.now-playing__badge {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--gold);
}

.now-playing__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.now-playing__artist {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
}

/* Player no final da página */
.player {
    padding: 32px 24px calc(24px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    margin-top: 8px;
    background: linear-gradient(180deg, transparent 0%, rgba(240, 185, 11, 0.03) 100%);
}

/* Equalizer */
.eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.eq span {
    width: 3px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    transition: height 0.08s ease;
}

.eq.paused span {
    height: 4px !important;
    transition: height 0.5s var(--ease);
}


.telegram-cta {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: var(--radius);
    overflow: visible;
}

.telegram-cta__glow {
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--radius) + 3px);
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    opacity: 0.5;
    filter: blur(12px);
    animation: ctaGlow 3s ease-in-out infinite;
    z-index: 0;
}

.telegram-cta__pulse {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 1px solid rgba(240, 185, 11, 0.5);
    animation: ctaPulse 2.5s var(--ease) infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes ctaGlow {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.02); }
}

@keyframes ctaPulse {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(1.04); opacity: 0; }
    100% { transform: scale(1.04); opacity: 0; }
}

.telegram-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.28) 0%, rgba(201, 148, 0, 0.15) 50%, rgba(12, 14, 18, 0.9) 100%);
    border: 1px solid rgba(240, 185, 11, 0.45);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 12px 40px rgba(240, 185, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    animation: ctaShimmer 4s ease-in-out infinite;
}

@keyframes ctaShimmer {
    0%, 100% { box-shadow: 0 12px 40px rgba(240, 185, 11, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
    50% { box-shadow: 0 16px 48px rgba(240, 185, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
}

.telegram-cta:hover .telegram-cta__inner {
    transform: translateY(-3px);
    box-shadow: 0 20px 56px rgba(240, 185, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.telegram-cta:active .telegram-cta__inner {
    transform: scale(0.98) translateY(0);
}

.telegram-cta__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    overflow: visible;
}

.telegram-cta__icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.telegram-cta__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.telegram-cta__label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.01em;
}

.telegram-cta__sub {
    font-size: 0.78rem;
    color: #1a1a1a;
    font-weight: 500;
    opacity: 0.85;
}

.telegram-cta__arrow {
    font-size: 1.4rem;
    color: #000000;
    font-weight: 600;
    transition: transform 0.35s var(--ease);
}

.telegram-cta:hover .telegram-cta__arrow {
    transform: translateX(4px);
}

/* Secondary links */
.links {
    padding: 16px 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition:
        transform 0.45s var(--ease),
        border-color 0.45s var(--ease),
        box-shadow 0.45s var(--ease),
        background 0.45s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.link-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(240, 185, 11, 0.3);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(240, 185, 11, 0.08);
}

.link-card:active { transform: scale(0.98); }

.link-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(240, 185, 11, 0.1);
    color: var(--gold);
}

.link-card__icon svg {
    width: 20px;
    height: 20px;
}

.link-card__label {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Share */
.actions {
    padding: 12px 20px;
}

.share-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s var(--ease);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn:hover {
    color: var(--gold-light);
    border-color: rgba(240, 185, 11, 0.3);
    background: rgba(240, 185, 11, 0.05);
}

/* Footer */
.footer {
    padding: 32px 28px 16px;
    text-align: center;
}

.footer__line {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 28px;
    opacity: 0.6;
}

.footer__quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.55;
    color: var(--text);
    max-width: 340px;
    margin: 0 auto 16px;
    text-shadow: 0 0 40px rgba(240, 185, 11, 0.15);
    position: relative;
}

.footer__quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.25;
    font-family: Georgia, serif;
}

.footer__sig {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Toast */
.toast {
    position: fixed;
    bottom: calc(28px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: rgba(18, 20, 26, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(240, 185, 11, 0.35);
    border-radius: 100px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 24px var(--gold-glow);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.55s var(--ease-out), opacity 0.45s;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast__icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #0a0a0a;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

.toast__text {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
}

/* Mobile polish */
@media (max-width: 380px) {
    .hero { height: 190px; }
    .vinyl-stage { width: 170px; height: 170px; }
    .telegram-cta__inner { padding: 18px; }
    .footer__quote { font-size: 1.2rem; }
}

@media (min-width: 441px) {
    body {
        background:
            radial-gradient(ellipse 60% 40% at 50% 0%, rgba(240, 185, 11, 0.06) 0%, transparent 50%),
            var(--bg);
    }
    .app {
        margin-top: 12px;
        border-radius: 28px;
        overflow: hidden;
        border: 1px solid var(--border);
        box-shadow: var(--shadow-deep);
    }
}
