kopuz 0.7.0

A modern, lightweight music player built with Rust and Dioxus.
/* App-wide styling */

/* Themed scrollbars — uses CSS vars so all themes apply automatically */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-black, #000000);
}

::-webkit-scrollbar-thumb {
    background: var(--color-slate-500, #64748b);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-slate-400, #94a3b8);
}

::-webkit-scrollbar-corner {
    background: var(--color-black, #000000);
}

@keyframes scan-slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

.animate-scan {
    animation: scan-slide 1.4s ease-in-out infinite;
}
@font-face {
    font-family: "nasin-nanpa";
    src: url("https://github.com/etbcor/nasin-nanpa/releases/download/n4.0.2/nasin-nanpa-4.0.2-UCSUR.otf");
    font-weight: normal;
    font-style: normal;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

html,
body {
    height: 100%;
    /* Prevent macOS WKWebView rubber-band overscroll on the root scroller */
    overscroll-behavior: none;
}

button:focus {
    outline: none;
}

.overflow-y-auto {
    will-change: scroll-position;
}

#main-scroll-area {
    /* `position: relative` (not `contain`/`transform`) so this is the containing
       block for the page's `absolute inset-0` container, WITHOUT also becoming
       one for position:fixed descendants — otherwise a modal's full-screen
       `.overlay` gets clipped to the scroll area (only the top darkens). */
    position: relative;
    /* Don't chain scroll to the document when hitting top/bottom */
    overscroll-behavior: none;
}

/* While a modal overlay is open, lock background scrolling. */
#main-scroll-area:has(.overlay) {
    overflow: hidden;
}

/* CSS-native virtualization: browser skips paint/layout for off-screen sections */
.cv-section {
    content-visibility: auto;
    contain-intrinsic-block-size: 400px;
}

/* Force GPU compositing on hover-animated image containers */
.gpu-hover {
    will-change: transform;
    transform: translateZ(0);
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family:
        "JetBrains Mono", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif,
        "nasin-nanpa";
    margin: 0;
    overflow: hidden;
}

#hero {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#links {
    width: 400px;
    text-align: left;
    font-size: x-large;
    color: white;
    display: flex;
    flex-direction: column;
}

#links a {
    color: white;
    text-decoration: none;
    margin-top: 20px;
    margin: 10px 0px;
    border: white 1px solid;
    border-radius: 5px;
    padding: 10px;
}

#links a:hover {
    background-color: #1f1f1f;
    cursor: pointer;
}

#header {
    max-width: 1200px;
}

/* Modal overlay and popup styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Keep dots menus above cards but below modal overlays. */
.dots-menu-root {
    z-index: 900;
}

.dots-menu-backdrop {
    z-index: 880;
}

.dots-menu-panel {
    z-index: 910;
}

.popup {
    background-color: var(--color-neutral-900, #171717);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl, 0.75rem);
    padding: 24px;
    min-width: 400px;
    max-width: 500px;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popup h2 {
    margin: 0 0 8px 0;
    font-size: var(--text-xl, 1.25rem);
    line-height: var(--text-xl--line-height, 1.4);
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-white, #ffffff);
}

.popup input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg, 0.5rem);
    padding: 10px 12px;
    color: var(--color-white, #ffffff);
    font-size: var(--text-sm, 0.875rem);
    line-height: var(--text-sm--line-height, 1.43);
    font-family: inherit;
    transition-property: border-color, background-color;
    transition-duration: var(--default-transition-duration, 150ms);
    transition-timing-function: var(
        --default-transition-timing-function,
        cubic-bezier(0.4, 0, 0.2, 1)
    );
}

.popup input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.popup input::placeholder {
    color: var(--color-slate-500, #64748b);
}

.popup .error {
    color: var(--color-red-400, #f87171);
    font-size: var(--text-sm, 0.875rem);
    margin: 0;
    padding: 8px 12px;
    background-color: rgba(248, 113, 113, 0.1);
    border-radius: var(--radius-md, 0.375rem);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.popup .actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.popup .actions button {
    padding: 8px 16px;
    border-radius: var(--radius-lg, 0.5rem);
    font-size: var(--text-sm, 0.875rem);
    font-weight: var(--font-weight-medium, 500);
    font-family: inherit;
    cursor: pointer;
    transition-property: background-color, transform, color;
    transition-duration: var(--default-transition-duration, 150ms);
    transition-timing-function: var(
        --default-transition-timing-function,
        cubic-bezier(0.4, 0, 0.2, 1)
    );
    border: none;
}

.popup .actions button:first-child {
    background-color: transparent;
    color: var(--color-slate-400, #94a3b8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup .actions button:first-child:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-white, #ffffff);
}

.popup .actions button:last-child {
    background-color: var(--color-indigo-500, #6366f1);
    color: var(--color-white, #ffffff);
}

.popup .actions button:last-child:hover {
    background-color: var(--color-indigo-400, #818cf8);
}

.popup .actions button:active {
    transform: scale(0.95);
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

[data-platform="android"],
[data-platform="android"] * {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

[data-platform="android"] input,
[data-platform="android"] textarea,
[data-platform="android"] [contenteditable="true"] {
    -webkit-user-select: text !important;
    user-select: text !important;
}

[data-platform="android"] {
    overflow-x: hidden;
    overscroll-behavior-x: none;
}