@font-face {
    font-family: 'Samsung Sharp Sans';
    font-style: normal;
    font-weight: 100 900;
    src: local('Samsung Sharp Sans Bold'), url('https://fonts.cdnfonts.com/s/17880/samsungsharpsans-bold.woff') format('woff');
}

@font-face {
    font-family: 'Lyrics';
    font-style: normal;
    font-weight: 100 900;
    src: url('fonts/lyrics.ttf') format('truetype');
}

:root {
    --md-sys-color-primary: #cfbdfe;
    --md-sys-color-on-primary: #36275d;
    --md-sys-color-primary-container: #4d3d75;
    --md-sys-color-on-primary-container: #e9ddff;
    --md-sys-color-primary-fixed: #e9ddff;
    --md-sys-color-primary-fixed-dim: #cfbdfe;
    --md-sys-color-on-primary-fixed: #201047;
    --md-sys-color-on-primary-fixed-variant: #4d3d75;
    --md-sys-color-inverse-primary: #65558f;
    --md-sys-color-secondary: #cbc2db;
    --md-sys-color-on-secondary: #332d41;
    --md-sys-color-secondary-container: #4a4458;
    --md-sys-color-on-secondary-container: #e8def8;
    --md-sys-color-secondary-fixed: #e8def8;
    --md-sys-color-secondary-fixed-dim: #cbc2db;
    --md-sys-color-on-secondary-fixed: #1e192b;
    --md-sys-color-on-secondary-fixed-variant: #4a4458;
    --md-sys-color-tertiary: #efb8c8;
    --md-sys-color-on-tertiary: #4a2532;
    --md-sys-color-tertiary-container: #633b48;
    --md-sys-color-on-tertiary-container: #ffd9e3;
    --md-sys-color-tertiary-fixed: #ffd9e3;
    --md-sys-color-tertiary-fixed-dim: #efb8c8;
    --md-sys-color-on-tertiary-fixed: #31101d;
    --md-sys-color-on-tertiary-fixed-variant: #633b48;
    --md-sys-color-error: #ffb4ab;
    --md-sys-color-on-error: #690005;
    --md-sys-color-error-container: #93000a;
    --md-sys-color-on-error-container: #ffdad6;
    --md-sys-color-background: #141218;
    --md-sys-color-on-background: #e6e0e9;
    --md-sys-color-surface: #141218;
    --md-sys-color-on-surface: #e6e0e9;
    --md-sys-color-surface-variant: #49454e;
    --md-sys-color-on-surface-variant: #cac4cf;
    --md-sys-color-surface-dim: #141218;
    --md-sys-color-surface-bright: #3b383e;
    --md-sys-color-surface-container-lowest: #0f0d13;
    --md-sys-color-surface-container-low: #1d1b20;
    --md-sys-color-surface-container: #211f24;
    --md-sys-color-surface-container-high: #2b292f;
    --md-sys-color-surface-container-highest: #36343a;
    --md-sys-color-inverse-surface: #e6e0e9;
    --md-sys-color-inverse-on-surface: #322f35;
    --md-sys-color-outline: #948f99;
    --md-sys-color-outline-variant: #49454e;
    --md-sys-color-shadow: #000000;
    --md-sys-color-scrim: #000000;
    --md-sys-color-surface-tint: #cfbdfe;
    --app-color-status-online: #7bdb94;
    --app-color-status-idle: #f0c048;
    --app-color-status-dnd: #ffb3ad;
    --app-color-status-offline: #c4c6d0;
    --app-color-spotify: #1db954;
    --app-color-lyric: #ffffff;

    --md-ref-typeface-brand: 'Samsung Sharp Sans', 'Google Sans', 'Roboto', sans-serif;
    --md-ref-typeface-plain: 'Samsung Sharp Sans', 'Google Sans', 'Roboto', sans-serif;
    --md-ref-typeface-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --app-typeface-name: 'Comic Sans MS', 'Comic Neue', 'Comic Sans', cursive;

    --md-sys-typescale-display-medium: 400 45px/52px var(--md-ref-typeface-brand);
    --md-sys-typescale-headline-large: 400 32px/40px var(--md-ref-typeface-brand);
    --md-sys-typescale-headline-medium: 400 28px/36px var(--md-ref-typeface-brand);
    --md-sys-typescale-title-large: 400 22px/28px var(--md-ref-typeface-brand);
    --md-sys-typescale-title-medium: 500 16px/24px var(--md-ref-typeface-brand);
    --md-sys-typescale-title-small: 500 14px/20px var(--md-ref-typeface-brand);
    --md-sys-typescale-body-large: 400 16px/24px var(--md-ref-typeface-plain);
    --md-sys-typescale-body-medium: 400 14px/20px var(--md-ref-typeface-plain);
    --md-sys-typescale-body-small: 400 12px/16px var(--md-ref-typeface-plain);
    --md-sys-typescale-label-large: 500 14px/20px var(--md-ref-typeface-brand);
    --md-sys-typescale-label-medium: 500 12px/16px var(--md-ref-typeface-brand);
    --md-sys-typescale-label-small: 500 11px/16px var(--md-ref-typeface-brand);

    --md-sys-shape-corner-extra-small: 4px;
    --md-sys-shape-corner-small: 8px;
    --md-sys-shape-corner-medium: 12px;
    --md-sys-shape-corner-large: 16px;
    --md-sys-shape-corner-large-increased: 20px;
    --md-sys-shape-corner-extra-large: 28px;
    --md-sys-shape-corner-full: 9999px;
    --app-corner-button: 20px;
    --app-corner-chip: 8px;
    --app-corner-nav: 32px;

    --md-sys-motion-easing-standard: cubic-bezier(0.2, 0, 0, 1);
    --md-sys-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
    --md-sys-motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
    --md-sys-motion-easing-spatial: cubic-bezier(0.42, 1.67, 0.21, 0.9);
    --md-sys-motion-duration-short: 150ms;
    --md-sys-motion-duration-medium: 300ms;
    --md-sys-motion-duration-long: 500ms;

    --md-sys-elevation-1: 0 1px 2px color-mix(in srgb, var(--md-sys-color-shadow) 30%, transparent), 0 1px 3px 1px color-mix(in srgb, var(--md-sys-color-shadow) 15%, transparent);
    --md-sys-elevation-2: 0 1px 2px color-mix(in srgb, var(--md-sys-color-shadow) 30%, transparent), 0 2px 6px 2px color-mix(in srgb, var(--md-sys-color-shadow) 15%, transparent);
    --md-sys-elevation-3: 0 1px 3px color-mix(in srgb, var(--md-sys-color-shadow) 30%, transparent), 0 4px 8px 3px color-mix(in srgb, var(--md-sys-color-shadow) 15%, transparent);

    --app-icon-shape: circle(50%);
    --app-icon-shape-hover: circle(50%);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    background-color: var(--md-sys-color-surface);
    scrollbar-width: thin;
    scrollbar-color: var(--md-sys-color-outline-variant) transparent;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    font: var(--md-sys-typescale-body-medium);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    padding: 112px 16px 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    max-width: 1040px;
    margin: 0 auto;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
    transition: background-color var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard),
        color var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard),
        border-color var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard),
        fill var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard),
        clip-path var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard),
        border-radius var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard) !important;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    font-size: 24px;
    user-select: none;
}

.listen-along-btn,
.nav-link,
.menu-toggle,
.dropdown-btn,
.dropdown-content a,
.btn-source,
.btn-live,
.pagination-btn,
.app-icon,
.activity-button,
.games-list li,
.theme-btn,
.theme-icon-btn,
.theme-tab,
.theme-segment,
.theme-list-row,
.theme-style,
.theme-role {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.listen-along-btn::before,
.nav-link::before,
.menu-toggle::before,
.dropdown-btn::before,
.dropdown-content a::before,
.btn-source::before,
.btn-live::before,
.pagination-btn::before,
.app-icon::before,
.activity-button::before,
.games-list li::before,
.theme-btn::before,
.theme-icon-btn::before,
.theme-tab::before,
.theme-segment::before,
.theme-list-row::before,
.theme-style::before,
.theme-role::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

@media (hover: hover) {
    .listen-along-btn:hover::before,
    .nav-link:hover::before,
    .menu-toggle:hover::before,
    .dropdown-btn:hover::before,
    .dropdown-content a:hover::before,
    .btn-source:hover::before,
    .btn-live:hover::before,
    .pagination-btn:hover:not(:disabled)::before,
    .social-app:hover .app-icon::before,
    .activity-button:hover::before,
    .games-list li:hover::before,
    .theme-btn:hover::before,
    .theme-icon-btn:hover::before,
    .theme-tab:hover::before,
    .theme-segment:hover::before,
    .theme-list-row:not(.disabled):hover::before,
    .theme-style:not(:disabled):hover::before,
    .theme-role:hover::before {
        opacity: 0.08;
    }
}

.listen-along-btn:focus-visible::before,
.nav-link:focus-visible::before,
.menu-toggle:focus-visible::before,
.dropdown-btn:focus-visible::before,
.btn-source:focus-visible::before,
.btn-live:focus-visible::before,
.pagination-btn:focus-visible::before,
.activity-button:focus-visible::before,
.theme-btn:focus-visible::before,
.theme-icon-btn:focus-visible::before,
.theme-tab:focus-visible::before,
.theme-segment:focus-visible::before,
.theme-list-row:focus-visible::before,
.theme-style:focus-visible::before {
    opacity: 0.1;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
    transform: scale(0);
    animation: ripple-animation 600ms var(--md-sys-motion-easing-standard) forwards;
    pointer-events: none;
}

@keyframes ripple-animation {
    0% { transform: scale(0); opacity: 0.1; }
    60% { transform: scale(1); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0; }
}

:focus-visible {
    outline: 3px solid var(--md-sys-color-secondary);
    outline-offset: 2px;
}

::selection {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--md-sys-color-outline);
}

.coder,
.container,
.games-section,
.tech-stack,
.projects {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard),
        transform var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-emphasized-decelerate);
}

body.loaded .coder,
body.loaded .container,
body.loaded .games-section,
body.loaded .tech-stack,
body.loaded .projects {
    opacity: 1;
    transform: translateY(0);
}

body.loaded .coder { transition-delay: 50ms; }
body.loaded .container { transition-delay: 100ms; }
body.loaded .games-section { transition-delay: 150ms; }
body.loaded .tech-stack { transition-delay: 200ms; }
body.loaded .projects { transition-delay: 250ms; }

.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--md-sys-color-surface);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 24px;
    z-index: 9999;
    transition: opacity var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard),
        visibility var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    animation: loader-rotate 1.568s linear infinite;
}

.loader circle {
    fill: none;
    stroke: var(--md-sys-color-primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 1 126;
    transform-origin: center;
    animation: loader-arc 1.333s var(--md-sys-motion-easing-standard) infinite;
}

.loading-text {
    font: var(--md-sys-typescale-label-large);
    color: var(--md-sys-color-on-surface-variant);
}

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

@keyframes loader-arc {
    0% { stroke-dasharray: 1 126; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90 126; stroke-dashoffset: -16; }
    100% { stroke-dasharray: 1 126; stroke-dashoffset: -125; }
}

.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 720px;
    min-height: 64px;
    background: var(--md-sys-color-surface-container);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1002;
    border-radius: var(--app-corner-nav);
    box-shadow: var(--md-sys-elevation-2);
    transition: background-color var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard),
        box-shadow var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard),
        backdrop-filter var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.navbar.scrolled {
    background: var(--md-sys-color-surface-container-high);
    box-shadow: var(--md-sys-elevation-3);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .navbar.scrolled {
        background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 62%, transparent);
        -webkit-backdrop-filter: blur(20px) saturate(170%);
        backdrop-filter: blur(20px) saturate(170%);
    }
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.spotify-volume {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: -8px 0 -8px auto;
    flex-shrink: 0;
    animation: spotify-volume-in var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized-decelerate);
}

.spotify-volume[hidden] {
    display: none;
}

@keyframes spotify-volume-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.spotify-volume .spotify-volume-btn {
    width: 32px;
    height: 32px;
}

.spotify-volume-btn .material-symbols-outlined {
    font-size: 18px;
}

#listenAlongVolume {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: clamp(72px, 22vw, 96px);
    height: 32px;
    background: transparent;
    touch-action: none;
}

#listenAlongVolume::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: var(--md-sys-shape-corner-full);
    background: linear-gradient(90deg, var(--md-sys-color-primary) var(--volume-percent), var(--md-sys-color-secondary-container) var(--volume-percent));
}

#listenAlongVolume::-moz-range-track {
    height: 8px;
    border-radius: var(--md-sys-shape-corner-full);
    background: linear-gradient(90deg, var(--md-sys-color-primary) var(--volume-percent), var(--md-sys-color-secondary-container) var(--volume-percent));
}

#listenAlongVolume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 4px;
    height: 24px;
    margin-top: -8px;
    border-radius: 2px;
    background: var(--md-sys-color-primary);
    box-shadow: 0 0 0 3px var(--md-sys-color-surface-container);
}

#listenAlongVolume::-moz-range-thumb {
    width: 4px;
    height: 24px;
    border: none;
    border-radius: 2px;
    background: var(--md-sys-color-primary);
    box-shadow: 0 0 0 3px var(--md-sys-color-surface-container);
}

.nav-avatar-wrap,
.coder-avatar-wrap {
    position: relative;
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
    isolation: isolate;
}

.nav-avatar-wrap {
    width: 40px;
    height: 40px;
}

.coder-avatar-wrap {
    width: 152px;
    height: 152px;
    margin: 0 auto 24px;
}

.nav-avatar-wrap::before,
.coder-avatar-wrap::before,
.nav-avatar-wrap::after,
.coder-avatar-wrap::after {
    content: '';
    position: absolute;
    background: var(--md-sys-color-primary);
    clip-path: var(--app-icon-shape);
    transition: clip-path var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard),
        opacity var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.nav-avatar-wrap::before,
.coder-avatar-wrap::before {
    inset: 0;
}

.nav-avatar-wrap::after,
.coder-avatar-wrap::after {
    z-index: -1;
    opacity: 0;
}

.nav-avatar-wrap::after {
    inset: -4px;
}

.coder-avatar-wrap::after {
    inset: -8px;
}

.nav-avatar,
.coder-avatar {
    position: absolute;
    display: block;
    object-fit: cover;
    clip-path: var(--app-icon-shape);
    transition: clip-path var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard);
}

.nav-avatar {
    inset: 2px;
    width: 36px;
    height: 36px;
}

.coder-avatar {
    inset: 4px;
    width: 144px;
    height: 144px;
}

.nav-avatar-wrap:hover::before,
.coder-avatar-wrap:hover::before,
.nav-avatar-wrap:hover::after,
.coder-avatar-wrap:hover::after,
.nav-avatar-wrap:hover .nav-avatar,
.coder-avatar-wrap:hover .coder-avatar {
    clip-path: var(--app-icon-shape-hover);
}

.nav-avatar-wrap:hover::after,
.coder-avatar-wrap:hover::after {
    opacity: 0.2;
}

.nav-name {
    font-family: var(--app-typeface-name);
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-right {
    display: flex;
    align-items: center;
    position: relative;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: var(--md-sys-color-on-surface-variant);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    width: 240px;
    background: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-large);
    padding: 8px;
    box-shadow: var(--md-sys-elevation-2);
    transition: clip-path var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard),
        opacity var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard),
        visibility var(--md-sys-motion-duration-long);
    opacity: 0;
    visibility: hidden;
    clip-path: circle(0px at var(--menu-x, 0px) var(--menu-y, 0px));
    z-index: 1001;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
    clip-path: circle(600px at var(--menu-x, 0px) var(--menu-y, 0px));
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--app-corner-button);
    display: block;
    font: var(--md-sys-typescale-label-large);
    transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
        color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.nav-link.active {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.section-container {
    width: 100%;
    background: var(--md-sys-color-surface-container-low);
    border-radius: var(--md-sys-shape-corner-extra-large);
    padding: 32px 24px;
    scroll-margin-top: 112px;
    text-align: center;
}

.section-container h2 {
    font: var(--md-sys-typescale-headline-medium);
    color: var(--md-sys-color-on-surface);
    margin-bottom: 24px;
}

.coder {
    width: 100%;
    text-align: center;
    padding: 40px 24px;
    background: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface);
    border-radius: var(--md-sys-shape-corner-extra-large);
    scroll-margin-top: 112px;
}

.coder-name {
    font-family: var(--app-typeface-name);
    font-size: 45px;
    line-height: 52px;
    font-weight: 700;
    margin: 0 auto 12px;
    color: var(--md-sys-color-on-surface);
    width: fit-content;
}

body .name-gradient {
    background-image: var(--name-gradient);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.coder-description {
    font: var(--md-sys-typescale-body-large);
    color: var(--md-sys-color-on-surface-variant);
    max-width: 500px;
    margin: 0 auto;
}

.social-apps {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.social-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--md-sys-color-on-surface-variant);
}

.app-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    clip-path: var(--app-icon-shape);
    transition: clip-path var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.social-app:hover .app-icon {
    clip-path: var(--app-icon-shape-hover);
}

.app-icon-svg {
    width: 24px;
    height: 24px;
}

.app-name {
    font: var(--md-sys-typescale-label-medium);
}

.games-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.games-list li,
.tech-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font: var(--md-sys-typescale-label-large);
    color: var(--md-sys-color-on-surface);
    text-align: center;
    isolation: isolate;
}

.games-list li {
    gap: 12px;
    padding: 24px 8px 20px;
    background: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-large-increased);
}

.games-list img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-spatial);
}

.games-list li:hover img {
    transform: scale(1.08);
}

.tech-groups {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: left;
}

.tech-group {
    display: flex;
    flex-direction: column;
    grid-column: span 2;
    padding: 16px;
    background: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-large-increased);
}

.tech-group-languages {
    grid-column: 1 / -1;
}

.tech-group-web {
    grid-column: span 3;
}

.tech-group-systems,
.tech-group-tools {
    grid-column: 1 / -1;
}

.tech-group-title {
    font: var(--md-sys-typescale-title-small);
    color: var(--md-sys-color-on-surface-variant);
    margin: 0 4px 12px;
}

.tech-list {
    flex: 1;
    list-style: none;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
}

.tech-list li {
    gap: 8px;
    padding: 16px 4px 12px;
    background: var(--md-sys-color-surface-container-high);
    border-radius: var(--md-sys-shape-corner-medium);
}

.tech-list img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tech-icon {
    font-size: 40px;
    color: var(--app-color-spotify);
}

.dropdown-content .tech-icon {
    font-size: 24px;
}

html[data-themed-icons="on"] .games-list img,
html[data-themed-icons="on"] .tech-list img,
html[data-themed-icons="on"] .project-tech img {
    filter: url('#themedIconFilter');
}

html[data-themed-icons="on"] .tech-icon-svg,
html[data-themed-icons="on"] .tech-icon,
html[data-themed-icons="on"] .project-tech-icon {
    color: var(--md-sys-color-primary);
}

.themed-icon-defs {
    position: absolute;
    width: 0;
    height: 0;
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    border: 1px solid var(--md-sys-color-outline-variant);
    height: 32px;
    padding: 0 8px;
    border-radius: var(--app-corner-chip);
    font: var(--md-sys-typescale-label-large);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.dropdown-btn .material-symbols-outlined {
    font-size: 18px;
}

.dropdown-btn::after {
    content: 'arrow_drop_down';
    font-family: 'Material Symbols Outlined';
    font-size: 18px;
    transition: transform var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.dropdown-btn.active {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border-color: transparent;
}

.dropdown-btn.active::after {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--md-sys-color-surface-container);
    min-width: 180px;
    width: max-content;
    max-width: calc(100vw - 32px);
    max-height: 320px;
    overflow-y: auto;
    box-shadow: var(--md-sys-elevation-2);
    z-index: 5;
    border-radius: var(--md-sys-shape-corner-large);
    padding: 4px;
    top: calc(100% + 4px);
    text-align: left;
    animation: menu-down var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized-decelerate);
}

#filterContent {
    left: 0;
    top: auto;
    bottom: calc(100% + 4px);
    animation-name: menu-up;
}

#sortContent {
    left: 0;
}

@media (max-width: 480px) {
    #filterContent,
    #sortContent {
        left: auto;
        right: 0;
    }
}

@keyframes menu-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes menu-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: var(--md-sys-color-on-surface);
    min-height: 48px;
    padding: 0 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font: var(--md-sys-typescale-label-large);
    white-space: nowrap;
    border-radius: var(--md-sys-shape-corner-medium);
}

.dropdown-content a .material-symbols-outlined {
    color: var(--md-sys-color-on-surface-variant);
}

.dropdown-content a img {
    width: 24px;
    height: 24px;
}

.dropdown-content a.active {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.dropdown-content a.active .material-symbols-outlined {
    color: inherit;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background: var(--md-sys-color-surface-container-high);
    border-radius: var(--md-sys-shape-corner-large-increased);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    text-align: left;
    animation: card-enter var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized-decelerate) both;
}

@keyframes card-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-card h3 {
    font: var(--md-sys-typescale-title-medium);
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
}

.project-card p {
    font: var(--md-sys-typescale-body-medium);
    color: var(--md-sys-color-on-surface-variant);
    flex-grow: 1;
    margin-bottom: 16px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tech-chip {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--md-sys-color-surface-container-highest);
    border-radius: var(--md-sys-shape-corner-medium);
    isolation: isolate;
}

.project-tech img {
    width: 20px;
    height: 20px;
}

.project-tech-icon {
    font-size: 20px;
    color: var(--app-color-spotify);
}

.tech-icon-svg {
    width: 40px;
    height: 40px;
}

.tech-icon-android {
    color: #3ddc84;
}

.tech-icon-mono {
    color: var(--md-sys-color-on-surface);
}

.project-links {
    display: flex;
    gap: 8px;
}

.project-links a {
    text-decoration: none;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--app-corner-button);
    font: var(--md-sys-typescale-label-large);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.btn-source {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.btn-live {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--app-corner-button);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:disabled {
    background: color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent);
    color: color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent);
}

.pagination-info {
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-label-large);
    padding: 0 8px;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 400px;
    max-width: 100%;
    scroll-margin-top: 112px;
}

.profile-banner,
.profile-banner-gif,
.color-banner {
    width: 100%;
    height: 110px;
    display: none;
    border-radius: var(--md-sys-shape-corner-extra-large) var(--md-sys-shape-corner-extra-large) 0 0;
}

.profile-banner,
.profile-banner-gif {
    object-fit: cover;
}

.profile-card {
    background: var(--md-sys-color-surface-container);
    border-radius: 0 0 var(--md-sys-shape-corner-extra-large) var(--md-sys-shape-corner-extra-large);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 84px;
}

.profile-section > .profile-card:first-child {
    border-radius: var(--md-sys-shape-corner-extra-large);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.nameplate-video {
    position: absolute;
    top: 0;
    left: -25%;
    width: 125%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.avatar-container {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    z-index: 1;
}

.avatar,
.avatar-gif {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-gif {
    display: none;
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid var(--md-sys-color-surface-container);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--md-sys-color-surface-container);
    z-index: 2;
}

.status-dnd { background-image: url('Photos/status/dnd.png'); }
.status-online { background-image: url('Photos/status/online.png'); }
.status-idle { background-image: url('Photos/status/idle.png'); }
.status-offline { background-image: url('Photos/status/offline.png'); }
.status-streaming { background-image: url('Photos/status/streaming.png'); }

.avatar-decoration {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 64px;
    height: 64px;
    pointer-events: none;
    z-index: 1;
}

.user-info {
    flex: 1;
    min-width: 0;
    z-index: 1;
}

.name-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.display-name {
    font-family: var(--app-typeface-name);
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-container {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border-radius: var(--md-sys-shape-corner-extra-small);
    padding: 2px 6px;
    font: var(--md-sys-typescale-label-small);
    flex-shrink: 0;
}

.tag-icon {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.device-icons {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.device-icon {
    width: 12px;
    height: 12px;
}

.device-icon.dnd { color: var(--app-color-status-dnd); }
.device-icon.online { color: var(--app-color-status-online); }
.device-icon.idle { color: var(--app-color-status-idle); }
.device-icon.offline { color: var(--app-color-status-offline); }

#tagInfo:empty,
#deviceIcons:empty {
    display: none;
}

.badges-container {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.badge-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.username-row {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-body-small);
    margin-top: 2px;
}

.username {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.status-separator {
    margin: 0 4px;
    display: none;
    flex-shrink: 0;
}

.custom-status {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex-shrink: 1;
}

.custom-status-emoji {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
    flex-shrink: 0;
}

.spotify-card,
.activity-card,
.lyrics-card {
    border-radius: var(--md-sys-shape-corner-extra-large);
    padding: 16px;
    width: 100%;
    display: none;
    background: var(--md-sys-color-surface-container);
}

.spotify-card {
    order: -2;
}

.activity-card {
    order: -1;
}

.lyrics-card {
    order: 1;
    flex: 1 1 auto;
    min-height: var(--app-spotify-card-height, 260px);
}

.spotify-active,
.activity-active,
.lyrics-card.lyrics-active {
    display: block;
    animation: fadeIn var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.lyrics-card.lyrics-active {
    display: flex;
    flex-direction: column;
}

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

.spotify-header,
.activity-header,
.lyrics-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.spotify-logo,
.activity-icon,
.lyrics-logo {
    width: 16px;
    height: 16px;
}

.activity-icon,
.lyrics-logo {
    color: var(--md-sys-color-primary);
}

.spotify-title,
.activity-title,
.lyrics-title {
    font: var(--md-sys-typescale-label-medium);
    color: var(--md-sys-color-on-surface-variant);
}

.spotify-content,
.activity-content {
    display: flex;
    gap: 12px;
    align-items: center;
}

.album-art {
    width: 64px;
    height: 64px;
    border-radius: var(--md-sys-shape-corner-medium);
    object-fit: cover;
}

.track-info,
.activity-info {
    flex: 1;
    min-width: 0;
}

.track-name,
.activity-name {
    font: var(--md-sys-typescale-title-small);
    color: var(--md-sys-color-on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist,
.activity-details,
.activity-state {
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-body-small);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: var(--md-sys-color-secondary-container);
    border-radius: var(--md-sys-shape-corner-full);
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar {
    height: 100%;
    background: var(--md-sys-color-primary);
    border-radius: var(--md-sys-shape-corner-full);
    width: 0%;
    transition: width 100ms linear;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font: var(--md-sys-typescale-label-small);
    color: var(--md-sys-color-on-surface-variant);
    margin-top: 4px;
}

.listen-along-player {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 200px;
    height: 200px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.listen-along-player.needs-tap {
    right: 16px;
    bottom: 16px;
    opacity: 1;
    pointer-events: auto;
    z-index: 1000;
    overflow: hidden;
    border-radius: var(--md-sys-shape-corner-large);
    box-shadow: var(--md-sys-elevation-3);
}

.listen-along-player iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.listen-along-status {
    margin-top: 12px;
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listen-along-status:empty {
    display: none;
}

.listen-along-btn {
    width: 100%;
    height: 40px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--app-corner-button);
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    font: var(--md-sys-typescale-label-large);
}

.listen-along-btn .material-symbols-outlined {
    font-size: 18px;
}

.listen-along-btn.active {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.status-column,
.profile-column {
    display: contents;
}

.activities-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#activitiesContainer:empty {
    display: none;
}

.activity-image-container {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.activity-large-image {
    width: 100%;
    height: 100%;
    border-radius: var(--md-sys-shape-corner-medium);
    object-fit: cover;
}

.activity-small-image {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--md-sys-color-surface-container);
    object-fit: cover;
}

.activity-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--md-sys-color-primary);
    font: var(--md-sys-typescale-label-small);
    margin-top: 4px;
}

.time-icon {
    width: 12px;
    height: 12px;
}

.activity-progress {
    display: none;
}

.activity-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.activity-buttons:empty {
    display: none;
}

.activity-button {
    background: var(--md-sys-color-secondary-container);
    border: none;
    border-radius: var(--app-corner-button);
    padding: 0 16px;
    color: var(--md-sys-color-on-secondary-container);
    font: var(--md-sys-typescale-label-large);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
    height: 40px;
}

.button-icon {
    width: 16px;
    height: 16px;
}

.spotify-button-icon {
    color: inherit;
}

.error {
    text-align: center;
    padding: 20px;
    color: var(--md-sys-color-error);
    font: var(--md-sys-typescale-body-medium);
}

.lyrics-container {
    --lyrics-size: clamp(1.25rem, 7cqw, 3.5rem);
    --lyrics-mask: linear-gradient(180deg,
        transparent 0,
        transparent min(16px, 6%),
        #000 min(64px, 25%),
        #000 calc(100% - min(64px, 25%)),
        transparent calc(100% - min(16px, 6%)),
        transparent);
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    container-type: size;
    font-family: 'Lyrics', 'Vazirmatn', 'Samsung Sharp Sans', 'Google Sans', 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--app-color-lyric);
    -webkit-mask-image: var(--lyrics-mask);
    mask-image: var(--lyrics-mask);
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    interpolate-size: allow-keywords;
}

.lyrics-container.InstantScroll {
    scroll-behavior: auto;
}

.lyrics-container::-webkit-scrollbar {
    display: none;
}

.lyrics-container .lyrics-scroll {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 25cqh 0 50cqh 3cqw;
}

.lyrics-container .line,
.lyrics-container .line .word,
.lyrics-container .line .letter {
    --gradient-position: -20%;
    --gradient-alpha: 0.85;
    --gradient-alpha-end: 0.5;
    --gradient-degrees: 90deg;
    position: relative;
    font-weight: 700;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.lyrics-container .line {
    --BlurAmount: 0px;
    --gradient-degrees: 180deg;
    --gradient-alpha-end: 0.35;
    display: flex;
    flex-wrap: wrap;
    margin: 1cqw 0;
    padding-right: 5cqw;
    font-size: var(--lyrics-size);
    line-height: 1.1818181818;
    letter-spacing: 0;
    direction: ltr;
    transition: opacity 0.2s cubic-bezier(0.61, 1, 0.88, 1);
}

.lyrics-container .line .word,
.lyrics-container .line .letter,
.lyrics-container .line .letterGroup {
    --text-shadow-blur-radius: 4px;
    --text-shadow-opacity: 0%;
}

.lyrics-container .line:not(.musical-line) .word,
.lyrics-container .line .letter {
    display: inline-block;
}

.lyrics-container .line .letterGroup {
    display: inline-flex;
}

.lyrics-container .line .word,
.lyrics-container .line .letterGroup {
    transform-origin: center center;
}

.lyrics-container .line .word.PartOfWord,
.lyrics-container .line .letterGroup.PartOfWord {
    transform-origin: right center;
}

.lyrics-container .line .PartOfWord + :is(.word.PartOfWord, .letterGroup.PartOfWord) {
    transform-origin: center center;
}

.lyrics-container .line .PartOfWord + :is(.word, .letterGroup):not(.PartOfWord) {
    transform-origin: left center;
}

.lyrics-container .line .letter.SpaceLetter {
    white-space: pre;
    min-width: 0.3ch;
}

.lyrics-container .line .word:not(.PartOfWord, .dot, .LastWordInLine)::after,
.lyrics-container .line .letterGroup:not(.PartOfWord, .dot, .LastWordInLine)::after {
    content: '';
    margin-right: 0.32ch;
}

.lyrics-container .word-group {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: nowrap;
}

.lyrics-container .OppositeAligned .word-group {
    justify-content: flex-end;
}

.lyrics-container .line.NotSung,
.lyrics-container .line.NotSung .word,
.lyrics-container .line.NotSung .letter {
    --gradient-position: -20% !important;
    text-shadow: 0 0 var(--BlurAmount, 0) color-mix(in srgb, var(--app-color-lyric) calc(var(--gradient-alpha-end) * 100%), transparent);
}

.lyrics-container .line.Sung,
.lyrics-container .line.Sung .word,
.lyrics-container .line.Sung .letter {
    --gradient-position: 100% !important;
    text-shadow: 0 0 var(--BlurAmount, 0) color-mix(in srgb, var(--app-color-lyric) calc(var(--gradient-alpha) * 100%), transparent);
}

.lyrics-container .line.NotSung {
    opacity: 0.51;
}

.lyrics-container .line.Sung {
    opacity: 0.497;
}

.lyrics-container .line.Active {
    --BlurAmount: 0px !important;
    opacity: 1;
}

.lyrics-container .line.Active,
.lyrics-container .line.Active .word,
.lyrics-container .line.Active .letter {
    background-image: linear-gradient(var(--gradient-degrees),
        color-mix(in srgb, var(--app-color-lyric) calc(var(--gradient-alpha) * 100%), transparent) var(--gradient-position),
        color-mix(in srgb, var(--app-color-lyric) calc(var(--gradient-alpha-end) * 100%), transparent) calc(var(--gradient-position) + 20%));
    text-shadow: 0 0 var(--text-shadow-blur-radius) color-mix(in srgb, var(--app-color-lyric) var(--text-shadow-opacity), transparent);
}

.lyrics-container .line.Active .word,
.lyrics-container .line.Active .letterGroup,
.lyrics-container .line.Active .letter {
    will-change: transform, scale, opacity;
}

.lyrics-container .lyrics-scroll[data-lyrics-type="Syllable"] .line.Active,
.lyrics-container .line.musical-line.Active {
    background-image: none;
}

.lyrics-container.HideLineBlur .line {
    --BlurAmount: 0px !important;
}

.lyrics-container .line.OppositeAligned {
    justify-content: flex-end;
    text-align: end;
}

.lyrics-container .line.rtl {
    direction: rtl;
    padding-right: 0;
    padding-left: 5cqw;
    line-height: 1.5;
}

.lyrics-container .line.rtl .word,
.lyrics-container .line.rtl .letter {
    --gradient-degrees: -90deg;
}

.lyrics-container .lyrics-scroll.HasRtlLines {
    padding-right: 3cqw;
}

.lyrics-container .lyrics-scroll.HasDuetLines .line.OppositeAligned:not(.rtl) {
    padding-left: 15cqw;
}

.lyrics-container .lyrics-scroll.HasDuetLines .line:not(.OppositeAligned, .rtl) {
    padding-right: 15cqw;
}

.lyrics-container .line.bg-line,
.lyrics-container .line.bg-line .word,
.lyrics-container .line.bg-line .letter {
    --gradient-alpha: 0.6;
    --gradient-alpha-end: 0.3;
    font-size: calc(var(--lyrics-size) * 0.75);
    font-weight: 600;
}

.lyrics-container .line.bg-line {
    height: auto;
    margin: -1cqw 0 1cqw;
    overflow: visible;
    transform-origin: left top;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lyrics-container .line.bg-line:is(.OppositeAligned, .rtl) {
    transform-origin: right top;
}

.lyrics-container .line.bg-line:not(.GroupActive) {
    height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-0.6em) scale(0.8);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.12s ease-out,
        height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lyrics-container .line.musical-line {
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
    opacity: 0;
    transform-origin: center center;
    transition: transform 0.14s, opacity 0.14s;
}

.lyrics-container .line.musical-line.Active {
    height: auto;
    overflow: visible;
    line-height: 1.1818181818;
    opacity: 1;
}

.lyrics-container .line.musical-line .dotGroup {
    --dot-gap: clamp(0.005rem, 1.7cqw, 0.18rem);
    display: flex;
    flex-direction: row;
    gap: var(--dot-gap);
    transform-origin: center center;
    scale: 1;
    transition: scale 0.3s;
}

.lyrics-container .line.musical-line:is(.pre-hidden, :not(.Active)) .dotGroup {
    scale: 0;
    transition: scale 0.4s linear(0, -0.006 9.4%, -0.029 18%, -0.157 43.3%, -0.185 51.4%, -0.189 55.9%, -0.182 60%, -0.163 63.9%, -0.133 67.6%, -0.074 72.3%, 0.006 76.7%, 0.238 85%, 0.566 92.7%, 1);
}

.lyrics-container .line.musical-line .dotGroup .dot {
    --gradient-position: 100%;
    border-radius: 50%;
    font-size: calc(var(--lyrics-size) * 1.3);
    line-height: 0.65;
    opacity: 0.35;
    scale: 0.75;
}

.lyrics-container .lyrics-scroll[data-lyrics-type="Line"] .line {
    --text-shadow-blur-radius: 4px;
    --text-shadow-opacity: 0%;
    display: block;
    margin: 2cqw 0;
    transform-origin: left center;
    transition: scale 0.2s cubic-bezier(0.37, 0, 0.63, 1), opacity 0.2s cubic-bezier(0.37, 0, 0.63, 1);
}

.lyrics-container .lyrics-scroll[data-lyrics-type="Line"] .line:is(.OppositeAligned, .rtl) {
    transform-origin: right center;
}

.lyrics-container .lyrics-scroll[data-lyrics-type="Line"] .line.Active:not(.musical-line) {
    scale: 1.05;
}

.lyrics-container .lyrics-scroll[data-lyrics-type="Line"] .line.musical-line {
    display: flex;
    margin: 0;
}

.lyrics-container .lyrics-scroll[data-lyrics-type="Static"] {
    --lyrics-size: clamp(0.8rem, 5cqw, 2.5rem);
    padding-top: 12cqh;
    padding-bottom: 12cqh;
}

.lyrics-container .line.static {
    display: block;
    font-weight: 500;
    text-shadow: 0 0 0 var(--app-color-lyric);
}

.lyrics-container .Credits {
    margin: max(1cqw, 0.5em) 0 0;
    font-size: clamp(0.8rem, 3.7cqw, 1rem);
    font-weight: 600;
    opacity: 0.6;
    color: var(--app-color-lyric);
}

.lyrics-header .lyrics-fs-open {
    width: 32px;
    height: 32px;
    margin: -8px -8px -8px auto;
}

.lyrics-fs-open .material-symbols-outlined {
    font-size: 18px;
}

html.lyrics-fs-open {
    overflow: hidden;
}

.lyrics-fullscreen {
    --app-color-lyric: #ffffff;
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    container-type: size;
    background: #0b0b0b;
    color: #ffffff;
    animation: lyrics-fs-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.lyrics-fullscreen[hidden] {
    display: none;
}

@keyframes lyrics-fs-enter {
    from {
        opacity: 0;
        scale: 1.04;
    }
}

.lyrics-fs-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    filter: saturate(2.5) brightness(0.65);
}

.lyrics-fs-bg img {
    position: absolute;
    width: 200%;
    aspect-ratio: 1;
    border-radius: 100em;
    object-fit: cover;
    filter: blur(40px);
    will-change: transform;
    animation: lyrics-fs-bg-rotate 35s linear infinite;
}

.lyrics-fs-bg .Front {
    top: 0;
    right: 0;
    z-index: 2;
}

.lyrics-fs-bg .Back {
    bottom: 0;
    left: 0;
    z-index: 1;
    animation-direction: reverse;
}

.lyrics-fs-bg .BackCenter {
    top: -20%;
    right: -50%;
    z-index: 0;
    width: 300%;
    animation-direction: reverse;
}

@keyframes lyrics-fs-bg-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.lyrics-fs-close.theme-icon-btn {
    position: absolute;
    top: 3cqh;
    right: 3cqh;
    z-index: 2;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    backdrop-filter: blur(24px) saturate(1.6);
    opacity: 0.55;
    transition: opacity 0.2s, background 0.2s, scale 0.2s;
}

.lyrics-fs-close.theme-icon-btn:is(:hover, :focus-visible) {
    background: rgba(255, 255, 255, 0.18);
    opacity: 1;
    scale: 1.06;
}

.lyrics-fs-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    gap: 3cqh;
    width: min(32cqw, 54cqh);
    min-width: 0;
}

.lyrics-fs-art {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: min(1.2cqw, 16px);
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.55);
}

.lyrics-fs-track {
    width: 100%;
    min-width: 0;
    text-align: center;
    font-family: 'Lyrics', 'Vazirmatn', 'Google Sans', 'Roboto', sans-serif;
}

.lyrics-fs-name {
    font-size: clamp(1.1rem, 2.4cqh + 0.6cqw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-fs-artist {
    margin-top: 0.4cqh;
    font-size: clamp(0.9rem, 1.7cqh + 0.4cqw, 1.4rem);
    font-weight: 500;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-fullscreen .progress-container {
    height: 6px;
    margin-top: 3cqh;
    background: rgba(255, 255, 255, 0.28);
}

.lyrics-fullscreen .progress-bar {
    background: #ffffff;
}

.lyrics-fullscreen .time-info {
    margin-top: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.6);
}

.lyrics-fs-lyrics {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding-right: 4cqw;
}

.lyrics-fullscreen .lyrics-container {
    --lyrics-mask: linear-gradient(180deg,
        transparent 0,
        transparent 16px,
        #000 64px,
        #000 calc(100% - 64px),
        transparent calc(100% - 16px),
        transparent);
}

.lyrics-fullscreen .lyrics-container:empty::before {
    content: 'No lyrics for this song';
    display: block;
    margin-top: 46cqh;
    font-size: clamp(1.2rem, 4cqw, 2rem);
    opacity: 0.6;
}

@media (max-width: 900px) {
    .lyrics-fullscreen {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
        align-items: stretch;
    }

    .lyrics-fs-info {
        flex-direction: row;
        justify-self: stretch;
        gap: 12px;
        width: auto;
        padding: 16px 64px 0 16px;
    }

    .lyrics-fs-art {
        width: 72px;
        flex-shrink: 0;
        border-radius: 8px;
    }

    .lyrics-fs-track {
        flex: 1;
        text-align: left;
    }

    .lyrics-fs-name {
        font-size: 1.1rem;
    }

    .lyrics-fs-artist {
        font-size: 0.9rem;
    }

    .lyrics-fullscreen .progress-container {
        height: 4px;
        margin-top: 8px;
    }

    .lyrics-fs-lyrics {
        padding: 0 8px 0 12px;
    }

    .lyrics-fs-close.theme-icon-btn {
        top: 12px;
        right: 12px;
    }

    .lyrics-fs-bg img {
        width: 300%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lyrics-container {
        scroll-behavior: auto;
    }

    .lyrics-fs-bg img {
        animation: none;
    }
}

.theme-scrim {
    position: fixed;
    inset: 0;
    background: var(--md-sys-color-scrim);
    opacity: 0;
    visibility: hidden;
    z-index: 1100;
    transition: opacity var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard),
        visibility var(--md-sys-motion-duration-medium);
}

.theme-scrim.open {
    opacity: 0.32;
    visibility: visible;
}

.theme-editor {
    position: fixed;
    top: 16px;
    left: 16px;
    bottom: 16px;
    width: min(420px, calc(100vw - 32px));
    display: flex;
    flex-direction: column;
    background: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface);
    border-radius: var(--md-sys-shape-corner-extra-large);
    box-shadow: var(--md-sys-elevation-3);
    z-index: 1101;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    clip-path: circle(0px at var(--te-x, 0px) var(--te-y, 0px));
    transition: clip-path var(--md-sys-motion-duration-long) var(--md-sys-motion-easing-standard),
        opacity var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard),
        visibility var(--md-sys-motion-duration-long);
}

.theme-editor.open {
    opacity: 1;
    visibility: visible;
    clip-path: circle(150vmax at var(--te-x, 0px) var(--te-y, 0px));
}

@media (max-width: 600px) {
    .theme-editor {
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        border-radius: 0;
    }
}

.theme-app-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 64px;
    padding: 8px 8px 8px 4px;
    flex-shrink: 0;
}

.theme-app-bar-title {
    flex: 1;
    min-width: 0;
    padding-left: 12px;
    font: var(--md-sys-typescale-title-large);
    color: var(--md-sys-color-on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-icon-btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-icon-btn[hidden] {
    display: none;
}

.theme-editor-body {
    flex: 1;
    min-height: 0;
    padding: 0 16px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--md-sys-color-outline-variant) transparent;
}

.theme-view {
    display: none;
    flex-direction: column;
    gap: 24px;
}

.theme-view.active {
    display: flex;
    animation: theme-view-in var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized-decelerate);
}

@keyframes theme-view-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

.theme-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theme-section-title {
    font: var(--md-sys-typescale-title-small);
    color: var(--md-sys-color-primary);
    padding: 0 4px;
}

.theme-supporting {
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
    padding: 0 4px;
}

.theme-supporting[hidden] {
    display: none;
}

.theme-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.theme-tab {
    height: 48px;
    padding: 0 4px;
    background: transparent;
    border: none;
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-title-small);
}

.theme-tab::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 48px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--md-sys-color-primary);
    transform: translateX(-50%) scaleX(0);
    transition: transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.theme-tab.active {
    color: var(--md-sys-color-primary);
}

.theme-tab.active::after {
    transform: translateX(-50%) scaleX(1);
}

.theme-tab-panel {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.theme-tab-panel.active {
    display: flex;
    animation: fadeIn var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.theme-swatches {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.theme-swatches:empty {
    display: none;
}

.theme-swatch {
    position: relative;
    aspect-ratio: 1;
    border: none;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.theme-swatch-fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from -90deg,
        var(--swatch-primary) 0 50%,
        var(--swatch-tertiary) 50% 75%,
        var(--swatch-secondary) 75% 100%);
    transition: transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-spatial);
}

.theme-swatch::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid var(--md-sys-color-primary);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
        transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-spatial);
}

.theme-swatch[aria-pressed="true"] .theme-swatch-fill {
    transform: scale(0.72);
}

.theme-swatch[aria-pressed="true"]::after {
    opacity: 1;
    transform: scale(1);
}

.theme-styles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.theme-style {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    border: none;
    border-radius: var(--md-sys-shape-corner-large);
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface);
    transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
        border-radius var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}

.theme-style .theme-swatch-fill {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.theme-style-label {
    font: var(--md-sys-typescale-label-medium);
}

.theme-style[aria-pressed="true"] {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border-radius: var(--md-sys-shape-corner-extra-large);
}

.theme-style:disabled {
    opacity: 0.38;
}

.theme-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.theme-group-item {
    background: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-extra-small);
    border: none;
    color: var(--md-sys-color-on-surface);
    text-align: left;
    width: 100%;
}

.theme-group-item:first-child {
    border-top-left-radius: var(--md-sys-shape-corner-large-increased);
    border-top-right-radius: var(--md-sys-shape-corner-large-increased);
}

.theme-group-item:last-child {
    border-bottom-left-radius: var(--md-sys-shape-corner-large-increased);
    border-bottom-right-radius: var(--md-sys-shape-corner-large-increased);
}

.theme-group-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.theme-list-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    padding: 8px 16px;
}

.theme-list-row.disabled {
    opacity: 0.38;
}

.theme-list-icon {
    color: var(--md-sys-color-on-surface-variant);
}

.theme-list-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.theme-list-title {
    font: var(--md-sys-typescale-title-medium);
    color: var(--md-sys-color-on-surface);
}

.theme-list-subtitle {
    font: var(--md-sys-typescale-body-medium);
    color: var(--md-sys-color-on-surface-variant);
}

.theme-switch {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.theme-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch-track {
    position: relative;
    display: block;
    width: 52px;
    height: 32px;
    background: var(--md-sys-color-surface-container-highest);
    border: 2px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-full);
    transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
        border-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.theme-switch-thumb {
    position: absolute;
    top: 50%;
    left: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--md-sys-color-outline);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-spatial),
        width var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
        height var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
        background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.theme-switch input:checked + .theme-switch-track {
    background: var(--md-sys-color-primary);
    border-color: var(--md-sys-color-primary);
}

.theme-switch input:checked + .theme-switch-track .theme-switch-thumb {
    left: 22px;
    width: 24px;
    height: 24px;
    background: var(--md-sys-color-on-primary);
}

.theme-switch input:checked + .theme-switch-track .theme-switch-thumb::after {
    content: 'check';
    font-family: 'Material Symbols Outlined';
    font-size: 16px;
    color: var(--md-sys-color-on-primary-container);
}

.theme-switch:active .theme-switch-thumb {
    width: 28px;
    height: 28px;
    left: 0;
}

.theme-switch:active input:checked + .theme-switch-track .theme-switch-thumb {
    width: 28px;
    height: 28px;
    left: 20px;
}

.theme-switch input:focus-visible + .theme-switch-track {
    outline: 3px solid var(--md-sys-color-secondary);
    outline-offset: 2px;
}

.theme-segmented {
    display: flex;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--app-corner-button);
    overflow: hidden;
}

.theme-segment {
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: transparent;
    color: var(--md-sys-color-on-surface);
    font: var(--md-sys-typescale-label-large);
    transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.theme-segment + .theme-segment {
    border-left: 1px solid var(--md-sys-color-outline);
}

.theme-segment .material-symbols-outlined {
    width: 0;
    font-size: 18px;
    opacity: 0;
    overflow: hidden;
    transition: width var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard),
        opacity var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.theme-segment.active {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.theme-segment.active .material-symbols-outlined {
    width: 18px;
    opacity: 1;
}

.theme-shapes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.theme-shape {
    aspect-ratio: 1;
    padding: 10px;
    border: none;
    border-radius: var(--md-sys-shape-corner-large);
    background: transparent;
    transition: background-color var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}

.theme-shape-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--md-sys-color-on-surface-variant);
}

.theme-shape[aria-pressed="true"] {
    background: var(--md-sys-color-secondary-container);
}

.theme-shape[aria-pressed="true"] .theme-shape-fill {
    background: var(--md-sys-color-primary);
}

.theme-seed-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-color-well {
    position: relative;
    display: block;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: var(--md-sys-shape-corner-large);
    background: var(--well-color);
    overflow: hidden;
}

.theme-color-well-small {
    width: 40px;
    height: 40px;
    border-radius: var(--md-sys-shape-corner-medium);
}

.theme-color-well input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.theme-text-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.theme-text-field input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-extra-small);
    color: var(--md-sys-color-on-surface);
    font: var(--md-sys-typescale-body-large);
    outline: none;
}

.theme-text-field label {
    position: absolute;
    top: -8px;
    left: 12px;
    padding: 0 4px;
    background: var(--md-sys-color-surface-container-low);
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-on-surface-variant);
}

.theme-text-field input:focus {
    border: 2px solid var(--md-sys-color-primary);
    padding: 0 15px;
}

.theme-text-field input:focus + label {
    color: var(--md-sys-color-primary);
}

.theme-text-field.invalid input {
    border: 2px solid var(--md-sys-color-error);
    padding: 0 15px;
}

.theme-text-field.invalid label {
    color: var(--md-sys-color-error);
}

.theme-slider-head {
    display: flex;
    justify-content: space-between;
    font: var(--md-sys-typescale-label-medium);
    color: var(--md-sys-color-on-surface-variant);
    padding: 0 4px;
}

.theme-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 44px;
    background: transparent;
}

.theme-corner-slider {
    --slider-gap: var(--md-sys-color-surface-container);
}

.theme-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 16px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--slider-track);
}

.theme-slider input[type="range"]::-moz-range-track {
    height: 16px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--slider-track);
}

.theme-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 4px;
    height: 44px;
    margin-top: -14px;
    border-radius: 2px;
    background: var(--md-sys-color-primary);
    box-shadow: 0 0 0 4px var(--slider-gap, var(--md-sys-color-surface-container-low));
}

.theme-slider input[type="range"]::-moz-range-thumb {
    width: 4px;
    height: 44px;
    border: none;
    border-radius: 2px;
    background: var(--md-sys-color-primary);
    box-shadow: 0 0 0 4px var(--slider-gap, var(--md-sys-color-surface-container-low));
}

.theme-override-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: -16px;
}

.theme-role {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
    padding: 8px 12px;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-sys-shape-corner-medium);
    text-align: left;
}

.theme-role-name {
    font: var(--md-sys-typescale-label-medium);
}

.theme-role-hex {
    font: 500 11px/16px var(--md-ref-typeface-mono);
}

.theme-tonal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: -16px;
}

.theme-tonal-label {
    font: var(--md-sys-typescale-label-medium);
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 4px;
}

.theme-tonal-strip {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    border-radius: var(--md-sys-shape-corner-small);
    overflow: hidden;
}

.theme-tone {
    height: 36px;
    border: none;
    font: 500 9px/1 var(--md-ref-typeface-brand);
    min-width: 0;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding: 0 24px;
    background: var(--md-sys-color-primary);
    border: none;
    color: var(--md-sys-color-on-primary);
    border-radius: var(--app-corner-button);
    font: var(--md-sys-typescale-label-large);
}

.theme-btn .material-symbols-outlined {
    font-size: 18px;
}

.theme-code {
    margin: 0;
    background: var(--md-sys-color-surface-container);
    border-radius: var(--md-sys-shape-corner-large);
    padding: 16px;
    overflow: auto;
    text-align: left;
    white-space: pre;
    font: 400 12px/20px var(--md-ref-typeface-mono);
    color: var(--md-sys-color-on-surface-variant);
}

.j-key { color: var(--md-sys-color-primary); }
.j-str { color: var(--md-sys-color-tertiary); }
.j-num { color: var(--md-sys-color-secondary); }
.j-bool { color: var(--md-sys-color-tertiary); font-weight: 500; }
.j-null { color: var(--md-sys-color-error); }
.j-punc { color: var(--md-sys-color-on-surface-variant); }

.theme-textarea {
    display: block;
    width: 100%;
    min-height: 240px;
    resize: vertical;
    background: transparent;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-extra-small);
    color: var(--md-sys-color-on-surface);
    padding: 16px;
    font: 400 12px/20px var(--md-ref-typeface-mono);
    outline: none;
}

.theme-textarea:focus {
    border-color: var(--md-sys-color-primary);
    box-shadow: inset 0 0 0 1px var(--md-sys-color-primary);
}

.theme-textarea::placeholder {
    color: var(--md-sys-color-on-surface-variant);
}

.theme-error {
    display: none;
    margin-top: 12px;
    font: var(--md-sys-typescale-body-small);
    color: var(--md-sys-color-error);
}

.theme-error.show {
    display: block;
}

.theme-snackbar {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--md-sys-color-inverse-surface);
    color: var(--md-sys-color-inverse-on-surface);
    border-radius: var(--md-sys-shape-corner-extra-small);
    box-shadow: var(--md-sys-elevation-3);
    font: var(--md-sys-typescale-body-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
        transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized-decelerate),
        visibility var(--md-sys-motion-duration-short);
}

.theme-snackbar.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    body {
        padding: 96px 12px 40px;
        gap: 12px;
    }

    .coder {
        padding: 32px 16px;
    }

    .coder-name {
        font-size: 36px;
        line-height: 44px;
    }

    .section-container {
        padding: 24px 16px;
    }

    .container {
        width: 100%;
    }

    .social-apps {
        gap: 16px;
    }

    .games-list {
        grid-template-columns: repeat(6, 1fr);
    }

    .games-list li {
        grid-column: span 3;
        padding: 16px 4px;
    }

    .games-list li:nth-child(-n+3) {
        grid-column: span 2;
    }

    .games-list img {
        width: 48px;
        height: 48px;
    }

    .tech-group,
    .tech-group-web {
        grid-column: 1 / -1;
    }

    .tech-list {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    }

    .tech-group-tools .tech-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-group-systems .tech-list {
        grid-template-columns: repeat(6, 1fr);
    }

    .tech-group-systems .tech-list li {
        grid-column: span 3;
    }

    .tech-group-systems .tech-list li:nth-child(-n+3) {
        grid-column: span 2;
    }

    .lyrics-card {
        order: -3;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }

    .nav-menu {
        position: static;
        width: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        transition: none;
        opacity: 1;
        visibility: visible;
        clip-path: none;
    }

    .nav-links {
        flex-direction: row;
        gap: 4px;
    }

    .nav-link {
        padding: 10px 16px;
    }

    .container {
        display: grid;
        grid-template-columns: repeat(var(--smart-columns, 1), minmax(0, 1fr));
        grid-template-rows: repeat(var(--smart-rows, 1), auto);
        grid-auto-flow: column;
        align-items: stretch;
        width: calc(var(--smart-columns, 1) * 410px - 10px);
        max-width: 100%;
    }

    .status-column,
    .profile-column {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .profile-column,
    .profile-section {
        order: -3;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

html {
    cursor: url('cursor/Normal.png') 0 0, auto !important;
}

* {
    cursor: inherit !important;
}

a,
button,
[role="button"],
label,
.nav-link,
.dropdown-btn,
.pagination-btn,
.theme-btn,
.activity-button,
.social-app,
.nav-avatar-wrap,
.games-list li,
.tech-list li,
.project-card,
.filter-dropdown a,
.theme-switch-track,
.theme-switch-track *,
input[type="range"],
input[type="color"] {
    cursor: url('cursor/Link.png') 4 0, pointer !important;
}

input[type="text"],
textarea,
[contenteditable="true"] {
    cursor: url('cursor/Text.png') 4 9, text !important;
}

button:disabled,
[disabled],
.theme-list-row.disabled,
.theme-list-row.disabled * {
    cursor: url('cursor/Unavailable.png') 0 0, not-allowed !important;
}

textarea::-webkit-resizer,
textarea::-webkit-resizer:active,
textarea::-webkit-resizer:hover {
    cursor: url('cursor/Diagonal2.png') 15 15, se-resize !important;
}

::-webkit-scrollbar-thumb {
    cursor: url('cursor/Vertical.png') 15 15, ns-resize !important;
}

.theme-textarea::-webkit-scrollbar,
.theme-textarea::-webkit-scrollbar-track,
.theme-textarea::-webkit-scrollbar-thumb,
.theme-textarea::-webkit-scrollbar-corner {
    cursor: url('cursor/Vertical.png') 15 15, ns-resize !important;
}

[draggable="true"] {
    cursor: url('cursor/Move.png') 15 15, move !important;
}
