:root {
    --bg: #0b0e14;
    --panel: #0f1720;
    --muted: #9aa1ab;
    --accent: #1f6feb;
    --green: #2fb56b;
    --orange: #ff9b2e;
    --border: rgba(255,255,255,0.04);
    --card-shadow: 0 12px 30px rgba(2,6,23,0.7);
    font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
}

* {
    box-sizing: border-box;
}

html,body {
    height: 100%;
    margin: 0;
    background: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px), var(--bg);
    background-size: 40px 40px;
    color: #eaf0ff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app {
    width: 1100px;
    max-width: calc(100% - 40px);
    margin: 40px auto;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.panel {
    background: linear-gradient(180deg, rgba(22,26,33,0.9), rgba(12,15,20,0.95));
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 14px;
}

.left {
    width: 290px;
}

.left .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    margin-bottom: 12px;
}

.mode-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mode {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s, transform .06s;
    background: rgba(255,255,255,0.01);
}

.mode:hover {
    background: rgba(255,255,255,0.03);
    transform: translateY(-1px);
}

.mode.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 6px 20px rgba(31,111,235,0.15);
}

.mode .count {
    color: var(--muted);
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.center {
    width: 450px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-icons {
    display: flex;
    gap: 8px;
    background: #121622;
    padding: 8px;
    border-radius: 6px;
    align-items: center;
}

.icon-btn {
    width: 44px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    transition: all .12s;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.03);
    color: #fff;
    transform: translateY(-2px);
}

.icon-btn.active {
    background: rgba(31,111,235,0.11);
    color: var(--accent);
    border: 1px solid rgba(31,111,235,0.12);
}

.card {
    padding: 14px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(7,10,15,0.6), rgba(12,16,20,0.5));
    border: 1px solid var(--border);
}

.title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    background: #0b0f15;
    border: 1px solid rgba(255,255,255,0.03);
}

.input input {
    background: transparent;
    border: none;
    outline: none;
    color: #eaf0ff;
    font-size: 14px;
}

.small {
    width: 110px;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.btn-play {
    flex: 1;
    background: var(--green);
    color: #fff;
    border: none;
    padding: 12px 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
}

.btn-short {
    width: 54px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.right {
    width: 260px;
}

.info {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width:1050px) {
    .app {
        flex-direction: column;
        align-items: center;
    }

    .left,.center,.right {
        width: 100%;
    }

    .center {
        order: 2;
    }

    .right {
        order: 3;
    }

    .left {
        order: 1;
    }
}