/* ── R-Box Pearl section ── */

.rbox-section {
    position: relative;
    overflow: hidden;
    padding: 28px 0 40px;
}

.rbox-section__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #024166 0%, #024166 50%, #012140 50%, #012140 100%);
    pointer-events: none;
}

.rbox-section__watermark {
    position: absolute;
    top: 28px;
    left: 48%;
    transform: translateX(-50%);
    margin: 0;
    width: 100%;
    max-width: 331px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 62px;
    line-height: 90px;
    text-align: center;
    text-transform: capitalize;
    color: rgba(255, 230, 221, 0.12);
    pointer-events: none;
    z-index: 0;
}

.rbox-section__inner {
    position: relative;
    z-index: 1;
    max-width: 1650px;
    margin: 0 auto;
    padding: 127px 24px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.rbox-section__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.rbox-section__product {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 328px;
    min-height: 205px;
}

.rbox-section__glow {
    position: absolute;
    width: 140%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(36, 189, 255, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.rbox-section__device {
    position: relative;
    z-index: 1;
    width: min(100%, 316px);
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.rbox-section__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: 100%;
    max-width: 325px;
}

.rbox-section__copy {
    text-align: center;
    color: #fff;
}

.rbox-section__heading {
    margin: 0 0 8px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    text-transform: capitalize;
}

.rbox-section__description {
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
}

.rbox-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 195px;
}

.rbox-features__item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 8px 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(185, 225, 255, 0.42);
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    text-transform: capitalize;
    color: #fff;
    align-items: flex-start;
}

.rbox-features__item::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #24bdff;
    box-shadow: 0 0 8px rgba(36, 189, 255, 0.8);
    margin-top: 3%;
}

.rbox-section__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.rbox-section__footer-text {
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #fff;
    text-transform: capitalize;
}

.rbox-section__download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    color: #fff !important;
    text-decoration: none;
    text-transform: capitalize;
    transition: opacity 0.15s;
}

.rbox-section__download:hover {
    opacity: 0.85;
}

.rbox-section__download svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(15, 1, 1, 0.92);
    background: rgba(255, 255, 255, 0.08);
}


/* All Mobiles */

@media (max-width: 767px) {
    .progress-bar {
        height: 10px !important;
    }
    .now-playing {
        max-width: 345px;
        padding: 19px;
    }
    .player-btn--play {
        width: 67px;
    }
    .player-btn--skip svg {
        width: 32px;
        height: 32px;
    }
}


/* ══════════════════════════════════════
   TABLET (768px – 1023px)
   ══════════════════════════════════════ */

@media (min-width: 768px) and (max-width: 1023px) {
    .rbox-section {
        padding: 48px 0 56px;
    }
    .rbox-section__watermark {
        font-size: 100px;
        line-height: 120px;
        max-width: 640px;
    }
    .rbox-section__inner {
        padding: 100px 32px 0;
        gap: 40px;
    }
    .rbox-section__main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: start;
        width: 100%;
    }
    .rbox-section__product {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
        min-height: 280px;
    }
    .rbox-section__device {
        max-width: 440px;
    }
    .rbox-section__content {
        display: contents;
    }
    .rbox-section__copy {
        text-align: left;
        max-width: none;
    }
    .rbox-section__heading {
        font-size: 28px;
        line-height: 36px;
    }
    .rbox-section__description {
        font-size: 16px;
        line-height: 24px;
    }
    .rbox-features {
        max-width: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .rbox-features__item {
        font-size: 14px;
        /* padding: 12px 16px; */
        padding: 8px 12px;
    }
    .rbox-section__footer {
        flex-direction: row;
        justify-content: center;
        gap: 32px;
        flex-wrap: wrap;
        padding-top: 16px;
    }
    .rbox-section__footer-text {
        font-size: 16px;
        line-height: 24px;
        text-align: left;
        max-width: 480px;
    }
    .rbox-section__download {
        font-size: 18px;
    }
}


/* ══════════════════════════════════════
   DESKTOP (≥ 1024px)
   ══════════════════════════════════════ */

@media (min-width: 1024px) {
    .rbox-section {
        padding: 91px 0 0;
        min-height: 1003px;
    }
    .rbox-section__bg {
        background: linear-gradient(90deg, #024166 0%, #024166 50%, #012140 50%, #012140 100%);
    }
    .rbox-section__watermark {
        top: 15px;
        max-width: 1192px;
        font-size: 200px;
        font-weight: 600;
        line-height: 208px;
    }
    .rbox-section__inner {
        /* padding: 250px 0px 64px; */
        padding: 250px 54px 64px;
        gap: 48px;
    }
    .rbox-section__main {
        display: grid;
        grid-template-columns: minmax(0, 505px) minmax(280px, 1fr) 414px;
        grid-template-areas: "copy product features";
        align-items: start;
        gap: 48px 64px;
        width: 100%;
    }
    .rbox-section__product {
        grid-area: product;
        max-width: none;
        min-height: 459px;
        margin-top: -69px;
    }
    .rbox-section__device {
        width: min(100%, 604px);
        max-width: 604px;
    }
    .rbox-section__content {
        display: contents;
    }
    .rbox-section__copy {
        grid-area: copy;
        position: relative;
        text-align: left;
        padding: 10px 0 0px 0px;
        margin-top: 15px;
    }
    .rbox-section__copy::before {
        content: "";
        position: absolute;
        left: -189px;
        top: 0;
        width: 303px;
        height: 260px;
        min-height: 226px;
        background: rgba(16, 144, 229, 0.42);
        z-index: -1;
    }
    .rbox-section__heading {
        font-size: 44px;
        line-height: 54px;
        margin-bottom: 18px;
    }
    .rbox-section__description {
        font-size: 19px;
        font-weight: 500;
        line-height: 34px;
        /* max-width: 512px; */
        /* width: 510px; */
        max-width: 100%;
        width: 100%;
    }
    .rbox-features {
        grid-area: features;
        max-width: 414px;
        gap: 12px;
        margin-top: -20px;
    }
    .rbox-features__item {
        /* justify-content: flex-end; */
        flex-direction: row-reverse;
        padding: 16px 16px;
        border-radius: 8px;
        white-space: nowrap;
        font-size: 22px;
        line-height: 34px;
        text-align: right;
        flex-direction: row !important;
    }
    .rbox-features__item::before {
        width: 16px;
        height: 16px;
    }
    .rbox-section__footer {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 480px;
        padding-top: 16px;
    }
    .rbox-section__footer-text {
        font-size: 20px;
        line-height: 54px;
        max-width: 732px;
        text-align: left;
    }
    .rbox-section__download {
        font-size: 26px;
        line-height: 34px;
        flex-shrink: 0;
    }
    .rbox-section__download svg {
        width: 56px;
        height: 56px;
        padding: 12px;
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    .rbox-section__inner {
        padding: 200px 48px 48px;
    }
    .rbox-section__main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px;
        gap: 32px;
    }
    .rbox-section__copy {
        padding-left: 80px;
    }
    .rbox-section__heading {
        font-size: 36px;
        line-height: 44px;
        text-align: center;
        display: block;
    }
    .rbox-section__main {
        display: block;
    }
    .rbox-section__content {
        min-width: 100% !important;
    }
    .rbox-section__description {
        min-width: 100% !important;
        text-align: center;
    }
    .rbox-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 12px;
        width: 100%;
        justify-content: center;
        margin: 15px 0 0;
        padding: 0;
        min-width: 100%;
    }
    .rbox-section__footer {
        gap: 120px;
    }
}

@media (min-width: 1280px) {
    .rbox-section__main {
        grid-template-columns: 410px 1fr 414px;
    }
}


/* player css */

.player-card {
    position: fixed;
    display: block;
    visibility: visible;
    width: 90%;
    bottom: 10px;
    left: 50%;
    height: 107px;
    transform: translateX(-50%);
    z-index: 999;
    padding: 9px 26px 9px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e3a4c 0%, #2b5266 50%, #1e3a4c 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #fff;
}

.pause-icon {
    position: relative;
    width: 15px;
    height: 18px;
    color: currentColor;
}

.pause-icon::before,
.pause-icon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 5px;
    height: 18px;
    background-color: currentColor;
    border-radius: 1px;
}

.pause-icon::before {
    left: 0;
}

.pause-icon::after {
    right: 0;
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.station-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.station-label {
    color: #ffffff;
}

.chevrons {
    display: flex;
    gap: 2px;
    color: #ffffff;
}

.chevron {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor;
}

.station-title {
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.25s ease;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.station-title:hover {
    color: #ffffff;
    transform: scale(1.02);
}

.minimize-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.minimize-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.minimize-icon {
    width: 12px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

.player-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 20%;
}

.album-art {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.album-art a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.track-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.track-title a {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.track-artist a,
.track-artist span {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72) !important;
}

.controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: background 0.2s ease, transform 0.1s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.control-btn:active {
    transform: scale(0.96);
}

.control-btn.skip {
    width: 42px;
    height: 42px;
}

.control-btn.play {
    width: 58px;
    height: 58px;
    background: #ffffff;
    color: #0ea5e9;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

.control-btn.play:hover {
    background: #f8fbff;
}

.control-btn.pause:hover {
    background: #f8fbff;
}

.skip-icon {
    display: flex;
    align-items: center;
    gap: 1px;
}

.skip-bar {
    width: 3px;
    height: 12px;
    background: currentColor;
    border-radius: 1px;
}

.skip-triangle {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.skip-triangle.forward {
    border-left: 10px solid currentColor;
}

.skip-triangle.backward {
    border-right: 10px solid currentColor;
}

.play-icon {
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid currentColor;
    margin-left: 3px;
}

.control-btn.pause {
    width: 58px;
    height: 58px;
    background: #ffffff;
    color: #0ea5e9;
    box-shadow: 0 4px 16px rgb(14 165 233 / 35%);
}

.progress-area {
    /* width: 70%; */
    width: 57%;
    margin-bottom: 16px;
}

.time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 21px;
    background: rgba(216, 242, 255, 1) !important;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
    border-radius: 10px 10px 10px 10px;
    transition: width 1s linear;
}

.track-title,
.track-artist {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-label {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #f97316;
}


/* Gives the rotation real 3D depth (vanishing-point effect) */

.rbox-section__product {
    perspective: 1200px;
}


/* Fallback (only if WebGL fails): gentle 3D turn on hover, no auto motion */

.rbox-section__device {
    transform-style: preserve-3d;
    backface-visibility: visible;
    will-change: transform;
    /* promotes to its own GPU layer */
    transition: transform 0.6s ease;
}

.rbox-section__device:hover {
    transform: rotateY(28deg);
}