/* ============================================================
   .KF Records — unified stylesheet (RELEASE)
   Global + Header/Menu + Release page + Bottom player
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --kf-accent:            rgb(92, 120, 233);
    --kf-accent-dark:       rgb(70, 96, 200);
    --kf-accent-soft:       rgba(92, 120, 233, .14);
    --kf-accent-soft-hover: rgba(92, 120, 233, .08);
    --kf-radius:            18px;
    --kf-radius-sm:         12px;
    --kf-text:              #111;
    --kf-text-muted:        #555454;
    --kf-border:            #e4e4e4;
    --kf-bg-soft:           #f2f2f2;
    --kf-page-bg:           #fbfbfb;
    --kf-header-h:          69px;
    --kf-player-h:          69px;
    --kf-shadow-sm:         0 2px 10px rgba(0,0,0,.06);
    --kf-shadow-lg:         0 16px 30px rgba(0,0,0,.14);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Titillium Web', Arial, sans-serif;
    margin: 0 auto;
    background: var(--kf-page-bg);
    color: var(--kf-text);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--kf-accent); }

a:focus-visible,
button:focus-visible,
.track-item:focus-visible,
#progress-container:focus-visible {
    outline: 2px solid var(--kf-accent);
    outline-offset: 2px;
    border-radius: 8px;
}

hr {
    width: 100%;
    margin-bottom: 30px;
    border: 0;
    border-top: 1px solid var(--kf-border);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c7c7c7; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #9aa0b5; }

/* ============================================================
   Header
   ============================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header_box {
    background: #fff;
    max-width: 1230px;
    width: 93%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.1);
}

.logo a {
    font-size: larger;
    font-weight: 600;
    color: #000;
    text-decoration: none;
}

/* Burger */
#bottom {
    position: relative;
    z-index: 30;               /* выше меню (25) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    cursor: pointer;
}
#bottom span {
    width: 100%;
    height: 3px;
    background: #000;
    border-radius: 5px;
    transition: all .3s ease;
}
span.active:first-child  { transform: translateY(8px) rotate(45deg); }
span.active:nth-child(2) { opacity: 0; }
span.active:last-child   { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   Menu — fullscreen overlay
   ============================================================ */
.menu {
    position: fixed;
    inset: 0;
    z-index: 25;
    margin: 0;
    padding: calc(var(--kf-header-h) + 40px) 50px 40px;
    background: var(--kf-page-bg);
    font-size: 22px;
    list-style: none;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity   .3s ease,
        transform .3s ease,
        visibility 0s linear .3s;
}
.menu.menactiv {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity   .3s ease,
        transform .3s ease,
        visibility 0s;
}

.menu a { display: block; }
.menu li {
    padding: 6px 0;
    transition: color .2s;
}
.menu li:hover { color: var(--kf-accent); }

.menu .socialLincks {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.menu .socialLincks p {
    flex-basis: 100%;
    margin: 0 0 6px;
    font-size: .9rem;
    color: var(--kf-text-muted);
}
.menu .socialLincks img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: .8;
    transition: transform .2s ease, opacity .2s;
}
.menu .socialLincks a:hover img { transform: scale(1.15); opacity: 1; }

body.menu-open { overflow: hidden; }

/* ============================================================
   Page container
   ============================================================ */
.conteiner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: calc(var(--kf-header-h) + 24px) 16px 140px;
}

/* ============================================================
   Footer
   ============================================================ */
footer { width: 100%; }

.menu_footer {
    max-width: 1280px;
    margin: auto;
    padding: 10px 10px 85px;
    background: #e5e5be;
}
.menu_footer ul {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}
.menu_footer a { color: #000; text-decoration: none; }
.menu_footer a:hover { color: var(--kf-accent); }

.copyright {
    text-align: center;
    padding-top: 5px;
    font-size: 14px;
}

.socialLincks img { width: 20px; }

/* ============================================================
   Release page
   ============================================================ */

/* ---------- Hero (cover + meta) ---------- */
.release-hero {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    width: 100%;
    padding: 32px;
    margin-bottom: 24px;
    border-radius: var(--kf-radius);
    background: #111;
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.release-hero__bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(.45);
    transform: scale(1.1);
    z-index: -1;
}
.release-hero__cover {
    flex: 0 0 auto;
    width: 220px;
    height: 220px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
    transition: transform .35s ease;
}
.release-hero__cover:hover { transform: scale(1.03); }

.release-hero__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.release-hero__badge {
    align-self: flex-start;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 999px;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: .85;
}
.release-hero__title {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.1;
    letter-spacing: -.5px;
    word-break: break-word;
}
.release-hero__artist {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: color .2s;
}
.release-hero__artist:hover { color: var(--kf-accent); }

/* ---------- Play-all button ---------- */
.play-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    margin: 8px 0 0;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--kf-accent);
    color: #fff;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(92,120,233,.4);
    transition: transform .15s ease, box-shadow .2s;
}
.play-all:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(92,120,233,.5); }
.play-all:active { transform: translateY(0); }

.play-all__icon {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}
.play-all__icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
    color: #fff;
    transition: transform .15s ease;
}
.play-all__icon .pause-icon { display: none; }
.play-all.is-playing .play-all__icon .play-icon { display: none; }
.play-all.is-playing .play-all__icon .pause-icon { display: block; }
.play-all:hover .play-all__icon svg { transform: scale(1.1); }

/* ---------- Track list ---------- */
.TrackList {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 900px;
    padding: 0 8px;
    margin: 0;
    list-style: none;
    counter-reset: section;
}

.TrackList > li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.TrackList > li::before {
    counter-increment: section;
    content: counter(section)".";
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    font-size: 1.4em;
    color: var(--kf-text-muted);
}

.TrackList > li.track-empty::before {
    content: none;
    counter-increment: none;
}
.track-empty {
    display: block;
    width: 100%;
    padding: 16px;
    opacity: .6;
    font-style: italic;
    list-style: none;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border-radius: var(--kf-radius-sm);
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
    outline: none;
}
.track-item:hover { background: var(--kf-accent-soft-hover); }
.track-item.is-active {
    background: var(--kf-accent-soft);
    box-shadow: inset 3px 0 0 var(--kf-accent);
}
.track-item.is-active b { color: var(--kf-accent); }

.playericon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,.06);
    transition: background .2s ease;
}
.track-item:hover .playericon { background: var(--kf-accent); }
.track-item:hover .playericon img { filter: brightness(0) invert(1); }
.playericon img { width: 14px; height: 14px; }

.TitleArtist {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.TitleArtist a { color: inherit; text-decoration: none; }

.meta-track {
    min-width: 0;
    flex: 1;
}
.meta-track b {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.meta-nameremixed {
    font-size: .78rem;
    color: var(--kf-text-muted);
}
.meta-nameartist {
    font-size: .82rem;
    font-weight: 700;
    color: var(--kf-text-muted);
    white-space: nowrap;
}

.decor { margin: 0; }
.decor:hover { text-decoration: underline; }

.time {
    flex: 0 0 auto;
    width: 52px;
    font-variant-numeric: tabular-nums;
    color: var(--kf-text-muted);
    font-size: .85rem;
    text-align: end;
}

/* ---------- Links (streaming) ---------- */
.Lincks {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    width: 100%;
    max-width: 420px;
}
.Lincks__title {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--kf-text-muted);
}
.Lincks .logoSVG {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.Lincks .logoSVG a {
    display: grid;
    place-items: center;
    min-width: 52px;
    min-height: 52px;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--kf-bg-soft);
    transition: background .2s, transform .2s;
}
.Lincks .logoSVG a:hover {
    background: var(--kf-accent);
    transform: translateY(-3px);
}
.Lincks .logoSVG a:hover img { filter: brightness(0) invert(1) !important; }
.Lincks .logoSVG img {
    height: 32px;
    width: auto;
    transition: filter .2s;
}

/* ---------- Share ---------- */
.trackBlocktwo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    font-size: .85rem;
    color: var(--kf-text-muted);
}
.Copy_Link {
    cursor: pointer;
    width: 22px;
    height: 22px;
    opacity: .7;
    transition: transform .15s ease, opacity .2s;
}
.Copy_Link:hover { opacity: 1; transform: scale(1.12); }

/* ============================================================
   Bottom player
   ============================================================ */
.bottom-player {
    position: fixed;
    left: 50%;
    bottom: -120px;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 1300px;
    height: var(--kf-player-h);
    padding: 8px 14px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: var(--kf-radius);
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 12px 40px rgba(0,0,0,.22);
    transition: bottom .5s cubic-bezier(0, 0, .2, 1);
}
.bottom-player.actplayer { bottom: 12px; }

.bottom-player__cover {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.bottom-player__meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 10px;
    min-width: 120px;
    max-width: 220px;
    overflow: hidden;
}
#NameTrack {
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#NameArtist {
    font-size: 14px;
    color: var(--kf-text-muted);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#progress-container {
    position: relative;
    flex: 1 1 320px;
    max-width: 500px;
    height: 6px;
    margin: 0 10px;
    border-radius: 999px;
    background: #e4e4e4;
    cursor: pointer;
    overflow: visible;
    transition: height .15s ease;
}
#progress-container:hover { height: 8px; }
#progress-container::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #e4e4e4;
    z-index: 0;
    pointer-events: none;
}
#progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--kf-accent), #8aa2ff);
    transition: width .1s linear;
    z-index: 1;
}
#progress-container::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--kf-accent);
    box-shadow: 0 0 0 2px #fff;
    opacity: 0;
    transform: translateX(50%);
    transition: opacity .15s;
    pointer-events: none;
    z-index: 2;
}
#progress-container:hover::after,
#progress-container:focus-visible::after { opacity: 1; }

#sec,
#TimeBottom {
    font-variant-numeric: tabular-nums;
    font-size: .85rem;
    color: var(--kf-text-muted);
    min-width: 42px;
    text-align: center;
    margin: 0 10px;
}

#btn-prev,
#btn-next {
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: .8;
    transition: transform .15s, opacity .2s;
}
#btn-prev:hover,
#btn-next:hover { transform: scale(1.15); opacity: 1; }

.playericonBottom {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--kf-accent);
    box-shadow: 0 4px 14px rgba(92,120,233,.4);
    cursor: pointer;
    border: 0;
    padding: 0;
    color: #fff;
    transition: transform .15s ease, box-shadow .2s;
}
.playericonBottom:hover  { transform: scale(1.06); }
.playericonBottom:active { transform: scale(.94); }
#pl-play-img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* SVG иконки play/pause в нижнем плеере */
.playericonBottom svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}
.pl-icon-pause { display: none; }
.playericonBottom.is-playing .pl-icon-play  { display: none; }
.playericonBottom.is-playing .pl-icon-pause { display: block; }

.dinamic {
    width: 20px;
    height: 20px;
    margin: 0 5px 0 10px;
    opacity: .7;
}

#volume {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    border-radius: 99px;
    background: #e4e4e4;
    outline: none;
    cursor: pointer;
}
#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--kf-accent);
    box-shadow: 0 0 0 2px #fff;
    border: 0;
    cursor: pointer;
}
#volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: var(--kf-accent);
    box-shadow: 0 0 0 2px #fff;
    cursor: pointer;
}

/* ============================================================
   Responsive
   ============================================================ */
@media screen and (max-width: 1024px) {
    .release-hero { padding: 24px; gap: 20px; }
    .release-hero__cover { width: 180px; height: 180px; }
    .release-hero__title { font-size: 1.8rem; }
    #progress-container { max-width: 400px; }
}

@media screen and (max-width: 992px) {
    .dinamic,
    #volume { display: none; }
    #progress-container { max-width: 500px; }
}

@media screen and (max-width: 834px) {
    #sec,
    #TimeBottom,
    #progress-container,
    .dinamic,
    #volume { display: none; }
}

@media screen and (max-width: 768px) {
    .conteiner {
        padding: calc(var(--kf-header-h) + 16px) 12px
                 calc(120px + env(safe-area-inset-bottom, 0px));
    }

    .menu {
        padding: calc(var(--kf-header-h) + 24px) 30px 30px;
        font-size: 20px;
    }

    .release-hero {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 22px;
    }
    .release-hero__info { align-items: center; }
    .release-hero__badge { align-self: center; }
    .release-hero__cover { width: 160px; height: 160px; }
    .release-hero__title { font-size: 1.6rem; }

    .play-all { align-self: center; }

    .track-item { padding: 8px 10px; }
    .TitleArtist { gap: 8px; }
    .time { display: none; }

    .bottom-player {
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        bottom: -120px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }
    .bottom-player.actplayer { bottom: 0; }

    #sec,
    #TimeBottom,
    #progress-container,
    .dinamic,
    #volume { display: none; }
}

@media screen and (max-width: 480px) {
    .release-hero__cover { width: 140px; height: 140px; }
    .release-hero__title { font-size: 1.35rem; }
    .release-hero__artist { font-size: 1rem; }

    .TrackList { padding: 0 4px; }
    .meta-nameartist { font-size: .75rem; }
    .time { display: none; }

    #NameTrack { width: 140px; }
    .bottom-player__cover { display: none; }
}

@media screen and (max-width: 360px) {
    .release-hero { padding: 16px; }
    .release-hero__cover { width: 120px; height: 120px; }
    .release-hero__title { font-size: 1.2rem; }

    .Lincks { max-width: 100%; }
    .copyright { font-size: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}