/**
 * Share dropdown styles for the podcast player.
 */

.bmwp-share-container {
    position: relative;
    display: inline-block;
}

.bmwp-player-share {
    flex-shrink: 0;
    width: auto;
    margin-left: auto;
}

.bmwp-player-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    color: #556566;
    cursor: pointer;
    box-shadow: none;
}

.bmwp-player-share-btn svg {
    display: block;
    width: 20px;
    height: 20px;
}

.bmwp-player-share-btn:hover,
.bmwp-player-share-btn:focus-visible {
    color: var(--primary, #009ca7);
    outline: none;
}

.bmwp-player-share-btn:focus-visible {
    outline: 2px solid var(--primary, #009ca7);
    outline-offset: 2px;
}

.bmwp-share-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 180px;
    background-color: #fff;
    border: 1px solid #d1d1d1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    pointer-events: none;
}

.bmwp-share-dropdown:not([hidden]) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.bmwp-share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: #374151;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.bmwp-share-option:hover {
    background: rgba(178, 170, 159, 0.1);
    color: var(--primary, #009ca7);
}

.bmwp-share-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #1f2937;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    pointer-events: none;
}

.bmwp-share-toast.bmwp-share-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bmwp-podcast-controls {
    overflow: visible;
}

.bmwp-podcast-content {
    overflow: visible;
}

.bmwp-podcast-player {
    overflow: visible;
}

.dian-podcast-item__player .bmwp-player-share-btn {
    color: #556566;
}

.dian-podcast-item.is-share-open {
    position: relative;
    z-index: 5;
}

.dian-podcast-item__player .bmwp-share-dropdown {
    z-index: 1001;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Subscribe footer — Figma 159:1803.
   Higher specificity to override inherited post-content link/paragraph styles
   (underline + font size) when the player is embedded inside post content. */
.dian-podcast-item__footer--subscribe .dian-podcast-item__footer-subscribe-label {
    margin: 0;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    color: #1e1e1e;
}

.dian-podcast-item__footer--subscribe .dian-podcast-platform-link,
.dian-podcast-item__footer--subscribe .dian-podcast-platform-link:hover,
.dian-podcast-item__footer--subscribe .dian-podcast-platform-link:focus-visible {
    text-decoration: none;
}

.dian-podcast-item__footer--subscribe .dian-podcast-platform-link,
.dian-podcast-item__footer--subscribe .dian-podcast-platform-link span {
    font-size: 14px;
    line-height: 18px;
}

.dian-podcast-item__footer--subscribe .dian-podcast-platform-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
