:root {
    color-scheme: dark;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #000;
    color: #f3f3f4;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #000;
}

body {
    overflow-x: hidden;
}

button,
a {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}


/* ==========================================================
   3-COLUMN SHELL
   ========================================================== */

.site-layout {
    display: grid;

    grid-template-columns:
        250px
        600px
        330px;

    gap: 0 18px;

    width: 1236px;
    max-width: 100%;

    margin: 0 auto;
}


/* ==========================================================
   LEFT SIDEBAR
   ========================================================== */

.left-inner {
    position: sticky;
    top: 0;

    height: 100vh;

    padding: 16px;
}

.main-brand {
    display: flex;
    align-items: center;

    width: fit-content;

    gap: 11px;

    margin-bottom: 22px;

    text-decoration: none;
}

.main-brand img {
    width: 44px;
    height: 44px;

    object-fit: contain;

    border-radius: 13px;
}

.main-brand strong,
.main-brand small {
    display: block;
}

.main-brand strong {
    font-size: 20px;
    line-height: 1;
}

.main-brand small {
    margin-top: 4px;

    color: #71717a;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .14em;
    text-transform: uppercase;
}

.primary-nav {
    display: grid;
    gap: 4px;
}

.primary-nav a {
    display: flex;
    align-items: center;

    width: fit-content;

    gap: 17px;

    padding: 12px 16px;

    border-radius: 999px;

    color: #e7e7e9;

    text-decoration: none;

    font-size: 19px;
}

.primary-nav a span {
    display: inline-grid;
    place-items: center;

    width: 25px;

    font-size: 22px;
}

.primary-nav a:hover,
.primary-nav a.active {
    background: #171719;
}

.new-pod-button {
    width: 210px;

    margin-top: 22px;

    padding: 14px 20px;

    border: 0;
    border-radius: 999px;

    background:
        linear-gradient(
            100deg,
            #ff2d95,
            #a855f7
        );

    color: white;

    font-weight: 800;
}


/* ==========================================================
   CENTER FEED — EXACTLY 600PX DESKTOP
   ========================================================== */

.feed-column {
    width: 600px;
    min-height: 100vh;

    border-left:
        1px solid #252529;

    border-right:
        1px solid #252529;
}

.feed-header {
    position: sticky;
    top: 0;
    z-index: 30;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    height: 54px;

    border-bottom:
        1px solid #252529;

    background:
        rgba(0, 0, 0, .88);

    backdrop-filter:
        blur(18px);
}

.feed-tab {
    position: relative;

    border: 0;

    background: transparent;
    color: #777780;

    font-weight: 600;
}

.feed-tab:hover {
    background: #0e0e10;
}

.feed-tab.active {
    color: #f4f4f5;
}

.feed-tab.active::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 48px;
    height: 4px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #ff2d95,
            #a855f7
        );

    transform:
        translateX(-50%);
}

.loading {
    padding: 60px 20px;

    color: #777780;

    text-align: center;
}


/* ==========================================================
   POD CARD
   ========================================================== */

.pod-card {
    position: relative;

    overflow: hidden;

    padding:
        18px
        18px
        17px;

    border-bottom:
        1px solid #252529;

    background:
        #050506;
}

.pod-card::before {
    content: "";

    position: absolute;

    z-index: 0;

    top: -175px;
    right: -170px;

    width: 420px;
    height: 420px;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(255, 45, 149, .15),
            rgba(168, 85, 247, .08) 38%,
            rgba(56, 189, 248, .025) 60%,
            transparent 72%
        );

    filter: blur(10px);
}

.pod-card.is-active::after {
    content: "";

    position: absolute;

    z-index: 4;

    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background:
        linear-gradient(
            #ff2d95,
            #a855f7,
            #38bdf8
        );
}

.pod-head {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 10px;
}

.avatar {
    display: grid;
    place-items: center;

    flex:
        0 0 42px;

    width: 42px;
    height: 42px;

    overflow: hidden;

    border-radius: 50%;

    background: #292930;

    color: white;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;
}

.avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.author {
    min-width: 0;
}

.author strong,
.author span {
    display: block;
}

.author strong {
    overflow: hidden;

    color: #f5f5f5;

    font-size: 14px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.author span {
    margin-top: 2px;

    color: #74747d;

    font-size: 12px;
}

.follow-button {
    margin-left: auto;

    padding:
        7px
        12px;

    border:
        1px solid #34343a;

    border-radius: 999px;

    background: transparent;
    color: #dddde0;

    font-size: 11px;
    font-weight: 700;
}

.pod-copy {
    position: relative;
    z-index: 2;

    margin-top: 15px;
}



.topic-row {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 10px;
}

.topic {
    padding:
        4px
        8px;

    border:
        1px solid #2d2d34;

    border-radius: 999px;

    color: #909099;

    font-size: 10px;
}


/* ==========================================================
   PLAYER — NORMAL FLOW, NO DESCRIPTION OVERLAP
   ========================================================== */

.player {
    position: relative;
    z-index: 2;

    margin-top: 15px;

    padding:
        12px
        13px;

    border:
        1px solid #2b2b31;

    border-radius: 16px;

    background:
        rgba(0, 0, 0, .82);
}

.player-top {
    display: flex;
    align-items: center;

    gap: 10px;
}

.play {
    display: grid;
    place-items: center;

    flex:
        0 0 40px;

    width: 40px;
    height: 40px;

    border: 0;
    border-radius: 50%;

    background: #f5f5f6;
    color: #050506;

    font-weight: 900;
}

.waveform {
    --progress: 0%;

    position: relative;

    flex: 1;

    height: 52px;

    cursor: pointer;
}

.waveform::before,
.waveform-fill {
    content: "";

    position: absolute;

    inset: 0;

    -webkit-mask:
        var(--wave)
        center
        /
        100% 100%
        no-repeat;

    mask:
        var(--wave)
        center
        /
        100% 100%
        no-repeat;
}

.waveform::before {
    background: #36363f;
}

.waveform-fill {
    width: var(--progress);

    right: auto;

    background:
        linear-gradient(
            180deg,
            #ff4ca0 5%,
            #c24dff 48%,
            #38bdf8 95%
        );
}

.waveform.no-wave {
    height: 44px;

    border-radius: 8px;

    background:
        repeating-linear-gradient(
            90deg,
            #34343b 0 3px,
            transparent 3px 7px
        );
}

.waveform.no-wave::before,
.waveform.no-wave .waveform-fill {
    display: none;
}

.player-time {
    min-width: 42px;

    color: #82828b;

    font-size: 10px;

    text-align: right;
}

.player-meta {
    display: flex;
    justify-content: space-between;

    margin-top: 6px;

    color: #6f6f78;

    font-size: 10px;
}

.preview-status.full {
    color: #ff72b5;
}

.pod-actions {
    position: relative;
    z-index: 2;

    display: flex;

    gap: 21px;

    margin-top: 12px;
}

.pod-actions button,
.source-link {
    border: 0;

    padding: 0;

    background: transparent;
    color: #777780;

    font-size: 12px;

    text-decoration: none;
}

.pod-actions button:hover,
.source-link:hover {
    color: #ff4ca0;
}


/* ==========================================================
   RIGHT SIDEBAR
   ========================================================== */

.right-inner {
    position: sticky;
    top: 0;

    display: grid;

    gap: 14px;

    max-height: 100vh;

    padding:
        10px
        0
        30px;

    overflow-y: auto;
}

.search-box {
    display: flex;
    align-items: center;

    gap: 9px;

    height: 44px;

    padding:
        0
        15px;

    border:
        1px solid #303036;

    border-radius: 999px;

    background: #070708;
    color: #707079;

    font-size: 13px;
}

.side-card {
    padding:
        14px
        15px;

    border:
        1px solid #2b2b31;

    border-radius: 16px;

    background: #050506;
}

.side-card h2 {
    margin:
        0
        0
        11px;

    font-size: 18px;
}

.side-card p {
    margin: 0;

    color: #92929a;

    font-size: 13px;
    line-height: 1.45;
}

.side-signup {
    width: 100%;

    margin-top: 13px;

    padding:
        10px
        14px;

    border: 0;
    border-radius: 999px;

    background: #f4f4f5;
    color: #080809;

    font-weight: 800;
}

.trend {
    padding:
        9px
        0;

    border-top:
        1px solid #18181b;
}

.trend:first-child {
    border-top: 0;
}

.trend small,
.trend strong {
    display: block;
}

.trend small {
    color: #66666f;

    font-size: 10px;
}

.trend strong {
    margin-top: 3px;

    font-size: 13px;
}

.side-footer {
    padding:
        0
        7px;

    color: #5e5e67;

    font-size: 10px;
}

.side-footer a {
    color: #92929a;
}


/* ==========================================================
   SIGNUP / SIGN-IN POPUP
   ========================================================== */

.auth-overlay {
    position: fixed;

    z-index: 1000;

    inset: 0;

    display: grid;
    place-items: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, .65);

    backdrop-filter:
        blur(8px);

    transition:
        opacity .18s ease;
}

.auth-overlay.hidden {
    display: none;
}

.auth-modal {
    position: relative;

    width: min(
        100%,
        430px
    );

    padding:
        31px
        30px
        24px;

    border:
        1px solid #323239;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 90% 0,
            rgba(255, 45, 149, .14),
            rgba(168, 85, 247, .055) 35%,
            #0c0c0e 65%
        );

    box-shadow:
        0
        30px
        90px
        rgba(0, 0, 0, .72);
}

.auth-close {
    position: absolute;

    right: 15px;
    top: 13px;

    width: 35px;
    height: 35px;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #85858e;

    font-size: 25px;
}

.auth-close:hover {
    background: #1d1d21;
    color: white;
}

.auth-logo {
    width: 54px;
    height: 54px;

    margin-bottom: 18px;
}

.auth-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 15px;
}

.auth-modal h2 {
    margin: 0;

    font-size: 29px;

    letter-spacing: -.035em;
}

.auth-modal > p {
    margin:
        9px
        0
        21px;

    color: #9c9ca5;

    font-size: 14px;
    line-height: 1.5;
}

.auth-actions {
    display: grid;

    gap: 9px;
}

.auth-primary,
.auth-secondary {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 45px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;
}

.auth-primary {
    background:
        linear-gradient(
            100deg,
            #ff2d95,
            #a855f7
        );

    color: white;
}

.auth-secondary {
    border:
        1px solid #3a3a42;

    background: #111114;
    color: white;
}

.continue-listening {
    width: 100%;

    margin-top: 12px;

    border: 0;

    background: transparent;
    color: #92929b;

    font-size: 12px;

    text-decoration: underline;
}

.auth-modal > small {
    display: block;

    margin-top: 13px;

    color: #606069;

    font-size: 10px;

    text-align: center;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1120px) {

    .site-layout {
        grid-template-columns:
            88px
            600px;

        width: 688px;
    }

    .right-rail {
        display: none;
    }

    .main-brand div {
        display: none;
    }

    .primary-nav a {
        width: 54px;

        overflow: hidden;

        padding:
            12px
            14px;

        font-size: 0;
    }

    .primary-nav a span {
        font-size: 23px;
    }

    .new-pod-button {
        width: 52px;
        height: 52px;

        overflow: hidden;

        padding: 0;

        font-size: 0;
    }

    .new-pod-button::after {
        content: "+";

        font-size: 24px;
    }

}


@media (max-width: 720px) {

    .site-layout {
        display: block;

        width: 100%;
    }

    .left-rail,
    .right-rail {
        display: none;
    }

    .feed-column {
        width: 100%;

        border: 0;
    }

    .pod-card {
        padding:
            17px
            15px;
    }


}


.auth-status {
    margin-top: 12px;

    padding:
        10px
        12px;

    border:
        1px solid #34343b;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, .035);

    color: #aaaab3;

    font-size: 11px;
    line-height: 1.4;

    text-align: center;
}

.auth-status[hidden] {
    display: none;
}

button.auth-primary,
button.auth-secondary {
    width: 100%;
    cursor: pointer;
}

button.auth-primary {
    border: 0;
}

/* BEGIN TAPPODS V4I WAVEFORM + ORB */

/* Make feed cards capable of hosting the animated orb */
.feed-card,
.feed-item,
.post-card,
.pod-card,
article {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Keep actual content above the orb glow */
.feed-card > *,
.feed-item > *,
.post-card > *,
.pod-card > *,
article > * {
    position: relative;
    z-index: 1;
}

/* Animated radial-gradient orb behind the pod card */
.feed-card::before,
.feed-item::before,
.post-card::before,
.pod-card::before,
article::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    left: -90px;
    top: -80px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.22;
    filter: blur(68px) saturate(125%);
    border-radius: 999px;
    background:
        radial-gradient(
            circle at 35% 35%,
            rgba(255, 45, 149, 0.52) 0%,
            rgba(202, 70, 255, 0.32) 38%,
            rgba(67, 81, 255, 0.14) 68%,
            rgba(0, 0, 0, 0) 100%
        );
    transform: translate3d(0, 0, 0) scale(1);
    animation: tappodsOrbFloat 18s ease-in-out infinite alternate;
}

/* Slightly stronger motion/brightness on hover */
.feed-card:hover::before,
.feed-item:hover::before,
.post-card:hover::before,
.pod-card:hover::before,
article:hover::before {
    opacity: 0.28;
    animation-duration: 10s;
}

/* Bigger waveform region */
.waveform,
.audio-waveform,
.pod-waveform,
[data-waveform],
.waveform-wrap,
.player-waveform {
    min-height: 56px !important;
    height: 56px !important;
    display: flex;
    align-items: center;
}

/* If waveform is rendered into canvas/svg, force more visual height */
.waveform canvas,
.audio-waveform canvas,
.pod-waveform canvas,
[data-waveform] canvas,
.waveform-wrap canvas,
.player-waveform canvas,
.waveform svg,
.audio-waveform svg,
.pod-waveform svg,
[data-waveform] svg,
.waveform-wrap svg,
.player-waveform svg {
    height: 56px !important;
    min-height: 56px !important;
    width: 100% !important;
    opacity: 1 !important;
}

/* Give the whole audio player more breathing room */
.audio-player,
.pod-player,
.player,
.feed-player,
[data-player] {
    min-height: 88px !important;
}

/* Make the playhead/progress area feel easier to read */
.audio-player,
.pod-player,
.player,
.feed-player,
[data-player] {
    border-radius: 18px;
}

/* Slight emphasis for timing/labels */
.player-time,
.audio-time,
.waveform-time,
.preview-label,
.full-label {
    font-size: 12px !important;
    line-height: 1.2 !important;
    opacity: 0.96 !important;
}

/* Orb animation path */
@keyframes tappodsOrbFloat {
    0% {
        transform: translate3d(-18px, -12px, 0) scale(0.96);
    }
    18% {
        transform: translate3d(36px, -26px, 0) scale(1.04);
    }
    38% {
        transform: translate3d(78px, 12px, 0) scale(1.10);
    }
    58% {
        transform: translate3d(20px, 58px, 0) scale(1.03);
    }
    78% {
        transform: translate3d(-30px, 26px, 0) scale(0.98);
    }
    100% {
        transform: translate3d(54px, -8px, 0) scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .feed-card::before,
    .feed-item::before,
    .post-card::before,
    .pod-card::before,
    article::before {
        animation: none !important;
    }
}

/* END TAPPODS V4I WAVEFORM + ORB */


/* BEGIN TAPPODS V4J BRAND */

.main-brand img {
    width: 38px !important;
    height: 38px !important;
    object-fit: contain;
    border-radius: 13px;
    filter: invert(1);
}

/* END TAPPODS V4J BRAND */


/* BEGIN TAPPODS V4J DESCRIPTION */

.pod-description:empty {
    display: none !important;
}


/* END TAPPODS V4J DESCRIPTION */


/* BEGIN TAPPODS V4J WAVEFORM */

.waveform {
    min-height: 82px !important;
    height: 82px !important;
}

.player {
    padding-top: 14px !important;
    padding-bottom: 13px !important;
}

.player-top {
    min-height: 82px;
}

.waveform::before,
.waveform-fill {
    background-size: 100% 100%;
}

.play {
    flex: 0 0 44px !important;

    width: 44px !important;
    height: 44px !important;
}

/*
 * The darker unplayed waveform needs to remain visible,
 * not disappear into the player background.
 */
.waveform::before {
    background: #4b4b55 !important;
    opacity: .82;
}

.waveform-fill {
    background:
        linear-gradient(
            180deg,
            #ff4ca0 0%,
            #ff2f9d 28%,
            #c24dff 62%,
            #38bdf8 100%
        ) !important;

    filter:
        saturate(1.12)
        drop-shadow(
            0 0 5px
            rgba(255, 45, 149, .22)
        );
}

/* END TAPPODS V4J WAVEFORM */


/* BEGIN TAPPODS V4J ORB */

.pod-card::before {
    width: 460px !important;
    height: 460px !important;

    top: -190px !important;
    left: -125px !important;
    right: auto !important;

    opacity: .26 !important;

    filter:
        blur(72px)
        saturate(140%) !important;

    background:
        radial-gradient(
            circle at 42% 42%,
            rgba(255, 39, 151, .48) 0%,
            rgba(205, 63, 255, .29) 31%,
            rgba(100, 75, 255, .15) 53%,
            rgba(36, 184, 255, .07) 69%,
            transparent 78%
        ) !important;

    animation:
        tappodsOrbTravel
        8.5s
        cubic-bezier(.45, 0, .55, 1)
        infinite
        alternate !important;

    will-change:
        transform;
}


@keyframes tappodsOrbTravel {

    0% {
        transform:
            translate3d(
                -35px,
                -10px,
                0
            )
            scale(.94);
    }

    25% {
        transform:
            translate3d(
                105px,
                22px,
                0
            )
            scale(1.06);
    }

    50% {
        transform:
            translate3d(
                205px,
                105px,
                0
            )
            scale(1.13);
    }

    75% {
        transform:
            translate3d(
                90px,
                165px,
                0
            )
            scale(1.02);
    }

    100% {
        transform:
            translate3d(
                -10px,
                70px,
                0
            )
            scale(.97);
    }

}

/* END TAPPODS V4J ORB */


/* BEGIN TAPPODS V4L AUTH LOGO */

.auth-logo {
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    filter: invert(1);
}

/* END TAPPODS V4L AUTH LOGO */

.pod-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    color: #dfdfdf;
    font-size: 15px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}
