/* ═══════════════════════════════════════════
   JINGLES SECTION
═══════════════════════════════════════════ */

/* ── XXL Jingle Pack Banner ── */
.xxl-pack-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #0a3fa8 0%, #1a6fe8 60%, #3b8fff 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(26, 111, 232, 0.25);
    position: relative;
    overflow: hidden;
}

.xxl-pack-banner::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.xxl-pack-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 30%;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.xxl-pack-left {
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 1;
}

.xxl-pack-badge {
    background: #ffb100;
    color: #1a1a2e;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 6px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 4px;
}

.xxl-pack-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xxl-pack-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.xxl-pack-title i {
    color: #ffb100;
}

.xxl-pack-sub {
    margin: 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    line-height: 1.5;
}

.xxl-pack-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #ffffff;
    color: #1a6fe8;
    font-size: 14px;
    font-weight: 800;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.xxl-pack-cta:hover {
    background: #eff5ff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .xxl-pack-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .xxl-pack-cta {
        width: 100%;
        justify-content: center;
    }
}

#jingles {
    padding: 3rem 0;
}

/* ── Header ── */
.jingles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e0e8ff;
}

.jingles-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a6fe8;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.jingles-count-badge {
    font-size: 13px;
    font-weight: 600;
    color: #7a9fd8;
}

/* ── Search bar — copied from .search-container / .search-input ── */
.jingles-search-container {
    margin-bottom: 12px;
    position: relative;
}

#jingles .page-content {
    display: block;
}

.jingles-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #c8daff;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: #1a1a2e;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 80, 200, 0.02);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.jingles-search-input:focus {
    border-color: #1a6fe8;
    box-shadow: 0 0 0 3px rgba(26, 111, 232, 0.12);
}

.jingles-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a9fd8;
    pointer-events: none;
    font-size: 15px;
}

/* ── Controls bar — copied from .controls-bar ── */
.jingles-controls-bar {
    background: #ffffff;
    border: 1px solid #e2eaff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.jingles-filters-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.jingles-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

/* ── Pills — copied from .filter-btn ── */
.j-pill {
    background: #fff;
    border: 1px solid #c8daff;
    color: #1a6fe8;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.j-pill:hover {
    background: #eff5ff;
    border-color: #1a6fe8;
}

.j-pill.active {
    background: #1a6fe8;
    border-color: #1a6fe8;
    color: #fff;
}

.divider-pipe {
    width: 1px;
    height: 20px;
    background-color: #c8daff;
    flex-shrink: 0;
}

/* ── Right side: volume + stop ── */
.jingles-controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.jingles-volume-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a9fd8;
    font-size: 14px;
}

.jingles-volume-wrap input[type="range"] {
    width: 80px;
    accent-color: #1a6fe8;
    cursor: pointer;
}

.control-label {
    font-size: 11px;
    font-weight: 800;
    color: #1a3d6e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.btn-stop-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff5f5;
    border: 1px solid #ffd0d0;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #c0392b;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    font-family: inherit;
}

.btn-stop-all:hover {
    background: #ffe0e0;
}

/* ── Grid ── */
.jingles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ── Card — Soundboard Style ── */
.jingle-card {
    background: #fff;
    border: 1px solid #e2eaff;
    border-radius: 14px;
    overflow: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1 / 1;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}

.jingle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 111, 232, 0.12);
}

.jingle-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.jingle-tag {
    font-size: 10px;
    font-weight: 700;
    color: #7a9fd8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f0f4ff;
    padding: 4px 8px;
    border-radius: 6px;
}

.btn-favorite {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #c8daff;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
    flex-shrink: 0;
}

.btn-favorite.active,
.btn-favorite:hover {
    color: #ffb100;
}

.jingle-keybind-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #1a1a2e;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 3;
}

/* ── Central Play Button ── */
.jingle-play-center {
    align-self: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #1a6fe8;
    color: #fff;
    border: none;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(26, 111, 232, 0.25);
    padding-left: 4px; /* visually center play icon */
}

.jingle-play-center:hover {
    background: #0a4fc4;
    transform: scale(1.08);
}

.jingle-play-center.is-playing {
    background: #ff5f56;
    box-shadow: 0 8px 20px rgba(255, 95, 86, 0.25);
    padding-left: 0; /* pause icon is centered natively */
}

.jingle-play-center:disabled {
    background: #c8daff;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* ── Bottom Info ── */
.jingle-card-bottom {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.jingle-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.jingle-duration {
    font-size: 11px;
    font-weight: 600;
    color: #8fa6ca;
}

.jingle-dl-btn-corner {
    position: absolute;
    bottom: 16px;
    right: 16px;
    color: #a9c0e4;
    font-size: 16px;
    transition: color 0.2s, transform 0.2s;
}

.jingle-dl-btn-corner:hover {
    color: #1a6fe8;
    transform: translateY(-2px);
}

.jingle-discord-banner {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, #0a3fa8 0%, #1a6fe8 60%, #3b8fff 100%);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 8px 30px rgba(26, 111, 232, 0.24);
    position: relative;
    overflow: hidden;
}

.jingle-discord-banner::before {
    content: '';
    position: absolute;
    top: -34px;
    right: -28px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.jingle-discord-banner::after {
    content: '';
    position: absolute;
    bottom: -48px;
    left: 24%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.jingle-discord-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.jingle-discord-banner-badge {
    background: #d8e7ff;
    color: #164492;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 4px 9px;
    border-radius: 6px;
    align-self: flex-start;
    margin-top: 2px;
}

.jingle-discord-banner-copy h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
}

.jingle-discord-banner-copy h3 i {
    color: #a9c8ff;
    margin-right: 6px;
}

.jingle-discord-banner-copy p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.jingle-discord-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    color: #1a6fe8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    transition: background 0.15s, transform 0.15s;
    position: relative;
    z-index: 1;
}

.jingle-discord-banner-btn:hover {
    background: #eff5ff;
    transform: translateY(-1px);
}

/* ── State messages ── */
.jingles-state-msg {
    color: #7a9fd8;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 3rem 0;
}

.jingles-state-msg.is-error {
    color: #e05;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .jingles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .jingles-controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .jingles-filters-left {
        flex-wrap: wrap;
        gap: 10px;
    }

    .divider-pipe {
        display: none;
    }

    .jingles-controls-right {
        justify-content: flex-end;
    }

    .jingle-discord-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .jingle-discord-banner-btn {
        width: 100%;
    }
}

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

@media (max-width: 480px) {
    .jingles-grid {
        grid-template-columns: 1fr;
    }
}