@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

:root {
    --podcast-card-bg-gradient-1: #2b314e;
    --podcast-card-bg-gradient-2: #101522;
    --podcast-card-text-color: #f5f6ff;
    --podcast-card-padding: 28px;
    --podcast-card-border-radius: 24px;
    --podcast-card-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    --podcast-card-gap: 24px;

    --podcast-badge-bg: rgba(255, 255, 255, 0.12);
    --podcast-badge-color: #f8f9ff;
    --podcast-badge-font-size: 0.8rem;

    --podcast-title-font-size: 1.8rem;
    --podcast-title-color: #f5f6ff;
    --podcast-description-color: rgba(255, 255, 255, 0.78);
    --podcast-description-font-size: 1rem;

    --podcast-button-bg-gradient-1: #7c61ff;
    --podcast-button-bg-gradient-2: #5cd6ff;
    --podcast-button-color: #ffffff;
    --podcast-button-font-size: 1rem;
    --podcast-button-padding: 18px 28px;
    --podcast-button-border-radius: 999px;
    --podcast-button-shadow: 0 18px 42px rgba(92, 214, 255, 0.28);

    --podcast-float-bg: rgba(15, 55, 25, 0.96);
    --podcast-float-border-color: rgba(88, 214, 120, 0.32);
    --podcast-float-label-color: #ffffff;
    --podcast-float-button-gradient-1: #28a745;
    --podcast-float-button-gradient-2: #3ebd57;
    --podcast-float-button-color: #ffffff;
    --podcast-float-padding: 14px 18px;
    --podcast-float-border-radius: 999px;
    --podcast-float-shadow: 0 22px 72px rgba(0, 0, 0, 0.30);

    --podcast-cover-width: 260px;
    --podcast-cover-border-radius: 24px;
    --podcast-cover-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    --podcast-cover-height: auto;

    --podcast-margin-top: 30px;
    --podcast-margin-bottom: 30px;
}

@media (max-width: 760px) {
    :root {
        --podcast-card-padding: 20px;
        --podcast-card-gap: 16px;
        --podcast-cover-height: 280px;
        --podcast-margin-top: 20px;
        --podcast-margin-bottom: 20px;
    }
}

.podcast-button-box {
    margin: var(--podcast-margin-top) 0 var(--podcast-margin-bottom) 0;
    display: flex;
    justify-content: center;
    font-family: 'Vazir', sans-serif;
}

.podcast-card {
    background: linear-gradient(135deg, var(--podcast-card-bg-gradient-1) 0%, var(--podcast-card-bg-gradient-2) 100%);
    border-radius: var(--podcast-card-border-radius);
    box-shadow: var(--podcast-card-shadow);
    color: var(--podcast-card-text-color);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--podcast-card-gap);
    max-width: 820px;
    padding: var(--podcast-card-padding);
    width: 100%;
    position: relative;
}

.podcast-cover {
    border-radius: var(--podcast-cover-border-radius);
    overflow: hidden;
    min-width: 200px;
    max-width: var(--podcast-cover-width);
    box-shadow: var(--podcast-cover-shadow);
    height: var(--podcast-cover-height);
}

.podcast-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-card__info {
    display: grid;
    gap: 10px;
}

.podcast-button-box .podcast-float-box {
    background: var(--podcast-float-bg) !important;
    border: 1px solid var(--podcast-float-border-color) !important;
    border-radius: var(--podcast-float-border-radius);
    box-shadow: var(--podcast-float-shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: var(--podcast-float-padding);
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 999999;
    backdrop-filter: blur(16px);
    max-width: 420px;
    min-width: 280px;
    width: auto;
    font-family: 'Vazir', sans-serif;
}

.podcast-float-box.hidden {
    display: none !important;
}

.podcast-button-box .podcast-float-play-button {
    align-items: center;
    background: linear-gradient(135deg, var(--podcast-float-button-gradient-1) 0%, var(--podcast-float-button-gradient-2) 100%) !important;
    border: none;
    border-radius: var(--podcast-float-border-radius);
    color: var(--podcast-float-button-color) !important;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 10px;
    letter-spacing: 0.01em;
    padding: var(--podcast-float-padding);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.podcast-button-box .podcast-float-play-button:hover,
.podcast-button-box .podcast-float-play-button:focus {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.podcast-float-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}
.podcast-float-icon::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 6px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid var(--podcast-float-button-color);
}

.podcast-button-box .podcast-float-label {
    color: var(--podcast-float-label-color) !important;
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.podcast-badge {
    background: var(--podcast-badge-bg);
    border-radius: 999px;
    color: var(--podcast-badge-color);
    display: inline-block;
    font-size: var(--podcast-badge-font-size);
    letter-spacing: 0.08em;
    padding: 10px 16px;
    text-transform: uppercase;
}

.podcast-button-box .podcast-button-title {
    font-size: var(--podcast-title-font-size);
    margin: 0;
    color: var(--podcast-title-color) !important;
}

.podcast-description {
    color: var(--podcast-description-color);
    line-height: 1.7;
    margin: 0;
    max-width: 620px;
    font-size: var(--podcast-description-font-size);
}

.podcast-card__actions {
    align-items: center;
    display: flex;
    justify-content: center;
}

.podcast-play-button {
    align-items: center;
    background: linear-gradient(135deg, var(--podcast-button-bg-gradient-1) 0%, var(--podcast-button-bg-gradient-2) 100%);
    border: none;
    border-radius: var(--podcast-button-border-radius);
    box-shadow: var(--podcast-button-shadow);
    color: var(--podcast-button-color) !important;
    cursor: pointer;
    display: inline-flex;
    font-size: var(--podcast-button-font-size);
    font-weight: 700;
    gap: 12px;
    letter-spacing: 0.01em;
    padding: var(--podcast-button-padding);
    text-transform: uppercase;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
    font-family: 'Vazir', sans-serif;
}

.podcast-play-button:hover,
.podcast-play-button:focus {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.podcast-icon {
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 48%),
                radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.12), transparent 42%);
    border-radius: 50%;
    display: inline-block;
    height: 20px;
    position: relative;
    width: 20px;
}

.podcast-icon::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid currentColor;
}

@media (max-width: 760px) {
    .podcast-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--podcast-card-padding);
    }

    .podcast-cover {
        max-width: 100%;
        min-width: 100%;
        height: 280px;
        margin-bottom: 20px;
    }

    .podcast-cover img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .podcast-card__info {
        gap: 8px;
    }

    .podcast-button-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    .podcast-description {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .podcast-badge {
        font-size: 0.7rem;
        padding: 8px 12px;
    }

    .podcast-play-button {
        font-size: 0.9rem;
        padding: 14px 22px;
        width: 100%;
        justify-content: center;
    }

    .podcast-card__actions {
        justify-content: center;
    }

    .podcast-float-box {
        left: 10px;
        bottom: 10px;
        max-width: calc(100vw - 40px);
        padding: 12px 14px;
        min-width: auto;
        flex-wrap: wrap;
        width: 100%;
    }

    .podcast-float-label {
        white-space: normal;
        font-size: 0.85rem;
    }

    .podcast-float-play-button {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .podcast-button-box {
        margin: 20px 10px;
    }
}

@media (max-width: 480px) {
    :root {
        --podcast-card-padding: 16px;
        --podcast-title-font-size: 1.3rem;
        --podcast-description-font-size: 0.85rem;
        --podcast-button-font-size: 0.8rem;
        --podcast-button-padding: 12px 18px;
    }

    .podcast-card {
        gap: 12px;
    }

    .podcast-cover {
        height: 240px;
        max-width: 100%;
    }

    .podcast-button-title {
        font-size: 1.3rem;
    }

    .podcast-description {
        font-size: 0.85rem;
    }

    .podcast-badge {
        font-size: 0.65rem;
        padding: 6px 10px;
    }

    .podcast-play-button {
        font-size: 0.8rem;
        padding: 12px 18px;
        gap: 8px;
    }

    .podcast-button-box .podcast-float-box {
        left: 8px;
        bottom: 8px;
        max-width: calc(100vw - 32px);
        gap: 8px;
    }

    .podcast-float-label {
        font-size: 0.75rem;
        display: none;
    }

    .podcast-float-play-button {
        padding: 10px 12px;
        font-size: 0.75rem;
        gap: 6px;
    }

    .podcast-float-icon {
        width: 18px;
        height: 18px;
    }

    .podcast-button-box {
        margin: 16px 8px;
    }
}
