*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #1a2140 0, #050715 40%, #02030a 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* Layout */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
    background: rgba(3, 5, 20, 0.9);
    border-bottom: 1px solid rgba(120, 130, 255, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4a6cf7, #a85cf9);
    font-size: 14px;
}

.logo-text {
    font-size: 16px;
}

.nav {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.nav a {
    color: #c7d7ff;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover {
    background: rgba(74, 108, 247, 0.2);
    color: #ffffff;
}

/* Burger */

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 18px;
    height: 2px;
    background: #ffffff;
}

/* Hero */

.hero {
    padding-top: 96px;
    padding-bottom: 56px;
}

.hero-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-side {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.hero h1 {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
    text-align: center;
}

.hero p {
    margin: 0 0 24px;
    color: #c7d7ff;
    max-width: 480px;
    text-align: center;
    line-height: 1.5;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    min-width: 140px;
    flex: 0 0 auto;
}

.btn.primary {
    background: linear-gradient(135deg, #4a6cf7, #a85cf9);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(60, 90, 255, 0.45);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(60, 90, 255, 0.6);
}

.btn.secondary {
    background: transparent;
    color: #c7d7ff;
    border-color: rgba(120, 130, 255, 0.6);
}

.btn.secondary:hover {
    background: rgba(74, 108, 247, 0.15);
}

/* Player */

.player-card {
    background: radial-gradient(circle at top left, rgba(74, 108, 247, 0.2), rgba(2, 3, 10, 0.95));
    border-radius: 24px;
    padding: 18px 18px 30px;
    border: 1px solid rgba(141, 158, 255, 0.4);
    box-shadow: 0 16px 35px rgba(5, 7, 25, 0.8);
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.player-card h2 {
    margin: 0 0 12px;
    font-size: 18px;
    text-align: center;
}

.player-main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.player-cover-wrapper {
    width: 200px;
    height: 200px;
    min-width: 200px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(141, 158, 255, 0.5);
    background: radial-gradient(circle, #252846, #08091a);
}

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

.player-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
    max-height: 200px;
    align-items: stretch;
}

.player-info {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.player-track-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.player-track-artist {
    font-size: 15px;
    color: #c7d7ff;
    margin-bottom: 4px;
}

.player-track-album {
    font-size: 13px;
    color: #9aa7ff;
    margin-bottom: 12px;
}

.player-status {
    font-size: 12px;
    color: #9aa7ff;
}

/* Progress bar */
.player-progress {
    margin-bottom: 0;
    position: relative;
    flex-shrink: 0;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
}

.progress-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
    padding: 0 44px;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(120, 130, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4a6cf7, #a85cf9);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9aa7ff;
}

/* Player controls */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 44px;
    position: relative;
    margin-top: 8px;
    height: 44px;
    flex-shrink: 0;
}

.btn-control {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(141, 158, 255, 0.4);
    cursor: pointer;
    background: rgba(5, 8, 25, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.btn-control:hover {
    transform: translateY(-1px);
}

/* Для кнопок с абсолютным позиционированием сохраняем их позицию при hover */
.btn-dislike:hover,
.btn-mute:hover,
.btn-play-pause:hover,
.btn-like:hover {
    transform: translateY(-1px);
}

.btn-control svg {
    stroke: currentColor;
    fill: none;
}

/* Дизлайк - белый, при активации серый */
.btn-dislike {
    position: absolute;
    left: 48px;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    background: transparent;
}

.btn-dislike:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-dislike.active {
    color: #888888;
    background: rgba(136, 136, 136, 0.15);
    border-color: rgba(136, 136, 136, 0.4);
}

.btn-dislike.active svg {
    fill: #888888;
}

/* Динамик */
.btn-mute {
    position: absolute;
    left: 50%;
    transform: translateX(calc(-50% - 30px));
    color: #c7d7ff;
    border-color: rgba(141, 158, 255, 0.4);
}

.btn-mute:hover {
    transform: translateX(calc(-50% - 30px)) translateY(-1px);
    background: rgba(74, 108, 247, 0.2);
    border-color: rgba(141, 158, 255, 0.6);
}

.btn-mute.active {
    background: rgba(74, 108, 247, 0.3);
    color: #ffffff;
    border-color: rgba(141, 158, 255, 0.8);
}

/* Play/Pause */
.btn-play-pause {
    position: absolute;
    left: 50%;
    transform: translateX(calc(-50% + 30px));
    color: #ffffff;
    background: linear-gradient(135deg, #4a6cf7, #a85cf9);
    border: none;
    font-size: 20px;
    box-shadow: 0 8px 25px rgba(60, 90, 255, 0.45);
}

.btn-play-pause:hover {
    transform: translateX(calc(-50% + 30px)) translateY(-2px);
}

.btn-play-pause:hover {
    background: linear-gradient(135deg, #5a7cff, #b86cff);
    box-shadow: 0 10px 30px rgba(60, 90, 255, 0.6);
    transform: translateY(-2px);
}

.btn-play-pause .play-icon {
    display: inline-block;
}

.btn-play-pause .pause-icon {
    display: none;
}

.btn-play-pause.playing .play-icon {
    display: none;
}

.btn-play-pause.playing .pause-icon {
    display: inline-block;
}

/* Лайк - светло-голубой, при активации темно-синий */
.btn-like {
    position: absolute;
    right: 48px;
    color: #9aa7ff;
    border-color: rgba(154, 167, 255, 0.4);
    background: transparent;
}

.btn-like:hover {
    transform: translateY(-1px);
}

.btn-like:hover {
    background: rgba(154, 167, 255, 0.1);
    border-color: rgba(154, 167, 255, 0.6);
}

.btn-like.active {
    color: #4a6cf7;
    background: rgba(74, 108, 247, 0.15);
    border-color: rgba(74, 108, 247, 0.5);
}

.btn-like.active svg {
    fill: #4a6cf7;
    stroke: #4a6cf7;
}

/* Sections */

.section {
    padding: 56px 0;
}

.section-alt {
    background: radial-gradient(circle at top right, #15193a 0, #050715 60%, #020309 100%);
}

.section h2 {
    margin: 0 0 12px;
    font-size: 24px;
    text-align: center;
}

.section-lead {
    margin: 0 auto 24px;
    color: #c7d7ff;
    max-width: 520px;
    text-align: center;
}

/* Genres */

.genres-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.genre-card {
    background: rgba(5, 8, 25, 0.9);
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(120, 130, 255, 0.35);
    font-size: 13px;
}

.genre-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
}

/* App */

.app-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.bullet-list {
    padding-left: 18px;
    margin: 0 0 16px;
    font-size: 14px;
    color: #c7d7ff;
}

.app-download {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-download .app-meta {
    font-size: 13px;
    color: #c7d7ff;
    margin: 8px 0 2px;
}

.app-update {
    font-size: 13px;
    color: #ffea8a;
}

/* Phone mockup */

.app-mockup {
    display: flex;
    justify-content: center;
}

.phone-mock {
    width: 200px;
    height: 380px;
    border-radius: 32px;
    padding: 10px;
    background: radial-gradient(circle at top, #4a6cf7, #a85cf9);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    padding: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phone-logo {
    font-size: 14px;
    font-weight: 600;
}

.phone-text {
    font-size: 16px;
    line-height: 1.4;
    color: #c7d7ff;
}

/* Cards, FAQ, Contacts */

.card {
    background: rgba(5, 8, 25, 0.9);
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(120, 130, 255, 0.4);
    font-size: 14px;
    color: #e3e7ff;
}

.faq-list details {
    margin-bottom: 8px;
    background: rgba(5, 8, 25, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(99, 111, 230, 0.5);
    padding: 8px 10px;
    font-size: 14px;
}

.faq-list summary {
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "▾";
    float: right;
    opacity: 0.7;
}

.faq-list details[open] summary::after {
    transform: rotate(180deg);
}

.faq-list p {
    margin: 8px 0 2px;
    color: #c7d7ff;
}

/* Contacts */

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contacts-block {
    text-align: left;
    padding-left: 0;
}

.contacts-block p {
    margin: 0;
    font-size: 14px;
    color: #e3e7ff;
    line-height: 1.8;
}

.contacts-block a {
    color: #9aa7ff;
    text-decoration: none;
}

.contacts-block a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Mini player */

.mini-player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 6px 10px;
    background: rgba(4, 6, 20, 0.96);
    border-top: 1px solid rgba(120, 130, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-player-cover-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(141, 158, 255, 0.5);
    background: radial-gradient(circle, #252846, #08091a);
}

.mini-player-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-player-info {
    flex: 1;
    min-width: 0;
}

.mini-player-title {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-artist {
    font-size: 11px;
    color: #c7d7ff;
}

.mini-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-player-time {
    font-size: 11px;
    color: #e3e7ff;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    color: #02030a;
    cursor: pointer;
}

/* Footer */

.footer {
    padding: 20px 0 52px;
    background: #030414;
    border-top: 1px solid rgba(120, 130, 255, 0.4);
    margin-top: 32px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #c7d7ff;
}

.footer-links a {
    color: #c7d7ff;
    text-decoration: none;
    margin-left: 12px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-meta a {
    color: #9aa7ff;
    text-decoration: none;
    margin-left: 4px;
}

/* Links */

a {
    color: #9aa7ff;
}

a:hover {
    color: #ffffff;
}

/* Responsive */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .section {
        padding-top: 20px;
    }

    .genres-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacts-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nav {
        position: absolute;
        top: 52px;
        right: 16px;
        background: rgba(3, 5, 20, 0.98);
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid rgba(120, 130, 255, 0.5);
        flex-direction: column;
        gap: 6px;
        display: none;
    }

    .nav.open {
        display: flex;
    }

    .burger {
        display: flex;
    }

    /* Player mobile */
    .player-main {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .player-cover-wrapper {
        width: 100px;
        height: 100px;
        min-width: 100px;
        flex-shrink: 0;
    }

    .player-right {
        flex: 1;
        height: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
        gap: 12px;
        flex-shrink: 0;
    }

    .player-info {
        text-align: left;
        align-items: flex-start;
        margin-bottom: 0;
        height: 100px;
        justify-content: center;
    }

    .player-status {
        display: none;
    }

    .progress-bar-wrapper {
        display: none;
    }

    .player-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 0;
        margin-top: 8px;
        margin-bottom: 0;
        height: auto;
        position: relative;
        width: calc(100% + 100px + 12px);
        margin-left: calc(-100px - 12px);
    }

    .btn-dislike {
        position: absolute;
        left: 12px;
        transform: none;
        margin: 0;
    }

    .btn-mute {
        position: absolute;
        left: 50%;
        transform: translateX(calc(-50% - 30px));
        margin: 0;
    }

    .btn-play-pause {
        position: absolute;
        left: 50%;
        transform: translateX(calc(-50% + 30px));
        margin: 0;
    }

    .btn-like {
        position: absolute;
        right: 12px;
        transform: none;
        margin: 0;
    }

    .btn-dislike:hover {
        transform: translateY(-1px);
    }

    .btn-mute:hover {
        transform: translateX(calc(-50% - 30px)) translateY(-1px);
    }

    .btn-play-pause:hover {
        transform: translateX(calc(-50% + 30px)) translateY(-2px);
    }

    .btn-like:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .player-cover-wrapper {
        width: 100px;
        height: 100px;
        min-width: 100px;
    }

    .player-track-title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .player-track-artist {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .player-track-album {
        font-size: 11px;
        margin-bottom: 0;
    }

    .btn-control {
        width: 40px;
        height: 40px;
    }

    .btn-play-pause {
        font-size: 18px;
    }
}
