@import 'common.css';
@import 'header.css';
@import 'settings.css';
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700;900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');
@import url('https://fonts.cdnfonts.com/css/turntablz-bb');

.synk-wordmark {
    font-family: 'Turntablz BB', 'Red Hat Display', sans-serif;
    letter-spacing: 0.05em;
}
    * {
        font-family: 'Google Sans', 'Montserrat', system-ui, sans-serif;
    }

    iconify-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        vertical-align: -0.225em;
        font-size: 1.4em;
        flex-shrink: 0;
        line-height: 1;
    }
    button > iconify-icon,
    a > iconify-icon,
    h1 > iconify-icon,
    h2 > iconify-icon,
    h3 > iconify-icon {
        font-size: 1.5em;
    }

    .red-hat {
        font-family: 'Red Hat Display', sans-serif;
    }

    .montserrat {
        font-family: 'Montserrat', sans-serif;
    }

.scroll-text {
    white-space: nowrap;
    overflow: hidden;
    animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.spin {
    animation: spin 1.2s infinite;
    animation-timing-function: linear;
}
@keyframes spin {
  from {
      transform:rotate(0deg);
  }
  to {
      transform:rotate(360deg);
  }
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.overflow-hidden::before,
.overflow-hidden::after {
    display: none;
}

.overflow-hidden::before {
    left: 0;
    background: linear-gradient(to right, #171717, transparent);
}

.overflow-hidden::after {
    right: 0;
    background: linear-gradient(to left, #171717, transparent);
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #2b2b2b, #1a1a1a);
}

::-webkit-scrollbar-thumb {
    background: #e8e3d8;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.1);
}

.synk-scrollbar::-webkit-scrollbar {
    width: 12px;
    background: transparent;
}

.synk-scrollbar::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px;
}

.synk-scrollbar::-webkit-scrollbar-thumb {
    background: #e8e3d8;
    border: 3px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    border-radius: 9999px;
    min-height: 50px;
}

.synk-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
    border: 3px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
}

.synk-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #e8e3d8 transparent;
}

.banner-slide {
    transition: opacity 0.5s ease-in-out;
}

.banner-dot {
    transition: background-color 0.3s ease-in-out;
}

.banner-dot:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

[type="checkbox"]:checked {
    background-color: #e8e3d8 !important; 
    border-color: #e8e3d8 !important;
}

[type="checkbox"]:focus {
    --tw-ring-color: #e8e3d8 !important;
}

.affiliate-scroll-container {
    display: flex;
    gap: 1rem;
    animation: scrollAffiliates 30s linear infinite;
}

@keyframes scrollAffiliates {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.affiliate-scroll-container:hover {
    animation-play-state: paused;
}

.rounded-full {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.header-shrunk {
    height: 60px !important; 
    border-radius: 0 !important; 
}

.header-shrunk .nav-items {
    opacity: 0;
    pointer-events: none;
}

button:focus {
    outline: none !important;
    box-shadow: none !important;
}

button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.gradient-btn {
    background: transparent;
    color: #e8e3d8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

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

.gradient-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
}

.gradient-btn:hover::before {
    opacity: 1;
}

.recently-played-item {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.recently-played-item.new {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.recently-played-item:nth-child(1) { animation-delay: 0s; }
.recently-played-item:nth-child(2) { animation-delay: 0.1s; }
.recently-played-item:nth-child(3) { animation-delay: 0.2s; }
.recently-played-item:nth-child(4) { animation-delay: 0.3s; }
.recently-played-item:nth-child(5) { animation-delay: 0.4s; }

.scroll-fade::before,
.scroll-fade::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.scroll-fade::before {
    left: 0;
    background: linear-gradient(to right, #171717, transparent);
}

.scroll-fade::after {
    right: 0;
    background: linear-gradient(to left, #171717, transparent);
}

.marquee-on-hover {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marquee-on-hover:hover {
    animation: marquee 8s linear infinite;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee-container {
    overflow: hidden;
    width: 100%;
}

button {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
button.no-border,
button[class*="rounded-full"],
button:has(> iconify-icon[icon*="x-mark"]),
.playPause,
#miniPlayButton,
#headerPlayButton {
    border: none;
}
button i, button span {
    transition: all 0.3s ease;
}

.info {
    background: #171717 !important;
}

.header-collapsed {
    height: 60px !important;
}

.header-collapsed .header-content {
    opacity: 0;
    pointer-events: none;
}

.header-collapsed .group {
    position: relative;
    z-index: 111;
}

.affiliate-scroll,
.affiliate-scroll-container,
.affiliate-wrapper,
.affiliate-content {
    display: none;
}

@keyframes scrollAffiliates {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.affiliate-wrapper:hover {
    animation-play-state: paused;
} 
.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    outline: none;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e8e3d8;
    cursor: pointer;
    border: none;
}
.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e8e3d8;
    cursor: pointer;
    border: none;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.marquee-inner {
    display: inline-block;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}
.marquee.is-scrolling .marquee-inner {
    display: inline-block;
    animation-name: marquee-bounce;
    animation-timing-function: cubic-bezier(.45, 0, .55, 1);
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
.marquee.is-scrolling .marquee-seg {
    display: inline-block;
}
.marquee.marquee-measuring {
    mask-image: none;
    -webkit-mask-image: none;
}
.marquee.marquee-measuring .marquee-inner {
    display: inline-block;
    max-width: none;
    overflow: visible;
}
.marquee:not(.is-scrolling):not(.marquee-measuring) {
    mask-image: none;
    -webkit-mask-image: none;
}
.marquee:not(.is-scrolling):not(.marquee-measuring) .marquee-inner {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@keyframes marquee-bounce {
    0%, 12%   { transform: translate3d(var(--marquee-start, 0px), 0, 0); }
    88%, 100% { transform: translate3d(var(--marquee-end, 0px), 0, 0); }
}

.header-collapsed .player-container,
.header-collapsed .player-container * { pointer-events: none !important; visibility: hidden; }

#songCoverPlayer,
#songCoverPlayer > div { overflow: visible !important; }
#songCoverPlayer { contain: none !important; }

#songCoverPlayer .group > .absolute,
#songCoverPlayer .relative.group > div.absolute { z-index: 9999 !important; }
