/* new_storage/radiokita/css/style.css - Grayscale Modern Radio Player */
:root {
    --primary: #ffffff;
    --secondary: #cccccc;
    --accent: #888888;
    --pink: #666666;
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glow: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ========== BACKGROUND LAYERS ========== */
.bg-base {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(
        180deg,
        var(--bg-darker) 0%,
        var(--bg-dark) 50%,
        #050505 100%
    );
}

#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-glow .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    top: -250px;
    left: -250px;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #aaaaaa 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation: orbFloat 25s ease-in-out infinite reverse;
    animation-delay: -5s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #777777 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat 30s ease-in-out infinite;
    animation-delay: -10s;
    opacity: 0.1;
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(60px, -60px) scale(1.05);
    }
    50% {
        transform: translate(-40px, 40px) scale(0.95);
    }
    75% {
        transform: translate(50px, 50px) scale(1.02);
    }
}

/* ========== APP CONTAINER ========== */
.app {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== MAIN ========== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* ========== HERO ========== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 500px;
}

.hero-text {
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 12vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 0.95;
    margin-bottom: 0.5rem;
}

.hero-title .title-line {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 50%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideUp 1s ease-out;
}

.hero-slogan {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 3px;
    animation: fadeIn 1.2s ease-out 0.3s both;
}

/* ========== PLAYER CARD ========== */
.player-card {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(40, 40, 40, 0.9),
        rgba(20, 20, 20, 0.95)
    );
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    animation: fadeUp 0.8s ease-out 0.4s both;
}

.player-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ========== PLAYER VISUALIZER ========== */
.player-visualizer {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 14px;
    padding: 0;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-visualizer canvas {
    display: block;
    width: 100%;
    max-width: 280px;
    height: 60px;
    border-radius: 8px;
}

/* ========== PLAYER CONTROLS ========== */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    width: 100%;
    padding: 0 10px;
}

.control-btn {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 12px;
}

.control-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.control-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* ========== MODAL OVERLAY ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 450px !important;
    margin-top: 0 !important;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Neumorphic Mute Button */
.mute-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        145deg,
        rgba(80, 80, 80, 0.4),
        rgba(40, 40, 40, 0.2)
    );
    box-shadow:
        4px 4px 10px rgba(0, 0, 0, 0.5),
        -2px -2px 8px rgba(255, 255, 255, 0.02),
        inset 0 0 10px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mute-btn:hover {
    transform: scale(1.08);
    box-shadow:
        6px 6px 15px rgba(0, 0, 0, 0.6),
        -2px -2px 10px rgba(255, 255, 255, 0.03),
        inset 0 0 15px rgba(255, 255, 255, 0.1),
        0 0 20px rgba(255, 255, 255, 0.1);
}

.mute-btn:active {
    transform: scale(0.95);
}

.mute-btn-inner {
    position: relative;
    z-index: 2;
}

.mute-btn svg {
    width: 24px;
    height: 24px;
    fill: #cccccc;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
    transition: all 0.3s;
}

.mute-btn:hover svg {
    fill: #ffffff;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
}

.mute-btn-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: ringPulse 2s ease-in-out infinite;
}

.mute-btn.dimmed .mute-btn-ring {
    border-color: rgba(255, 255, 255, 0.5);
    animation-duration: 1s;
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

/* ========== VOLUME CONTROL ========== */
.player-volume {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
}

.volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 10px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.4) var(--volume-percent, 80%), rgba(255, 255, 255, 0.05) var(--volume-percent, 80%));
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider:hover {
    height: 6px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    border: 2px solid #000;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 20px #ffffff;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: 2px solid #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* ========== EQUALIZER PANEL ========== */
.eq-panel {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.eq-panel.active {
    display: flex;
}

.eq-slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.eq-slider-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eq-slider-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}

.eq-slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ========== STATS ========== */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 24px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--glass-border),
        transparent
    );
}

/* ========== KEYFRAMES ========== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (min-width: 1024px) {
    .main {
        padding: 4rem 2rem;
    }
    .hero {
        max-width: 550px;
    }
    .hero-title {
        font-size: 4rem;
    }
    .player-card {
        max-width: 450px;
        padding: 2.5rem 2rem;
    }
    .play-btn {
        width: 80px;
        height: 80px;
    }
    .stats-row {
        gap: 2rem;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .player-visualizer canvas {
        max-width: 320px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 1.5rem 1.25rem;
    }
    .player-card {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }
    .play-btn {
        width: 70px;
        height: 70px;
    }
    .play-btn svg {
        width: 28px;
        height: 28px;
    }
    .stats-row {
        gap: 1.5rem;
    }
    .stat-value {
        font-size: 1.25rem;
    }
    .player-visualizer canvas {
        max-width: 260px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 1rem;
    }
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    .hero-slogan {
        font-size: 0.85rem;
    }
    .player-card {
        padding: 1.25rem 1rem;
        border-radius: 18px;
    }
    .play-btn {
        width: 60px;
        height: 60px;
    }
    .play-btn svg {
        width: 24px;
        height: 24px;
    }
    .player-volume {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .volume-slider {
        width: 100%;
        order: 3;
    }
    .volume-value {
        display: none;
    }
    .stats-row {
        gap: 1rem;
    }
    .stat-value {
        font-size: 1rem;
    }
    .player-visualizer canvas {
        max-width: 220px;
        height: 50px;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 2rem;
    }
    .player-card {
        padding: 1rem 0.85rem;
    }
    .play-btn {
        width: 55px;
        height: 55px;
    }
    .play-btn svg {
        width: 22px;
        height: 22px;
    }
    .player-visualizer canvas {
        max-width: 180px;
        height: 45px;
    }
}
/* ========== INTERACTIVE CARD & FORM ========== */
.interactive-card {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(35, 35, 35, 0.7),
        rgba(15, 15, 15, 0.8)
    );
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
    animation: fadeUp 0.8s ease-out 0.6s both;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

.greeting-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    padding-left: 0.25rem;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group textarea {
    min-height: 100px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    outline: none;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.char-count {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 0.25rem;
    opacity: 0.6;
}

.submit-btn {
    position: relative;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    background: #eeeeee;
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.submit-btn:hover .btn-glow {
    width: 300px;
    height: 300px;
    opacity: 0;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    height: 1.2rem;
    transition: all 0.3s ease;
}

.form-status.success {
    color: #4ade80;
}

.form-status.error {
    color: #f87171;
}

/* Response for smaller screens */
@media (max-width: 480px) {
    .interactive-card {
        padding: 1rem;
    }
    .form-group input,
    .form-group textarea {
        font-size: 0.85rem;
        padding: 0.7rem 0.85rem;
    }
}
/* ========== WELCOME OVERLAY ========== */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.welcome-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

.welcome-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    animation: fadeInScale 1.2s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-logo {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -4px;
    margin-bottom: 0.5rem;
    width: 100%;
}

.welcome-logo .logo-musi {
    color: #ffffff;
}

.welcome-logo .logo-kita {
    background: linear-gradient(135deg, #ffffff, #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-tagline {
    font-size: 1rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-indent: 5px; /* Offset for letter-spacing */
    margin-bottom: 3rem;
    font-weight: 300;
}

.start-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    width: fit-content;
}

.start-btn-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.start-btn-icon svg {
     width: 40px;
     height: 40px;
     fill: #ffffff;
     transform: translateX(3px); /* Optical centering for play triangle */
}

.start-btn:hover .start-btn-icon {
    transform: scale(1.1);
    background: #ffffff;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
}

.start-btn:hover .start-btn-icon svg {
    fill: #000000;
}

.start-btn span {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-indent: 3px; /* Offset for letter-spacing */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.start-btn:hover span {
    opacity: 1;
    letter-spacing: 3px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .welcome-overlay .welcome-logo {
        font-size: 3.5rem;
    }
    .welcome-overlay .welcome-tagline {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }
    .welcome-overlay .start-btn-icon {
        width: 75px;
        height: 75px;
    }
}
