/*
 * SITE: gravemistakespod.com -- gravemistakespod.com Grave Mistakes Player
 * gmpod-player.css: the complete look of the player. Seriously Simple Podcasting's
 * own player styles are switched off on player pages, so everything is here.
 * This same file can be uploaded into the Grave Mistakes Player Designs plugin.
 *
 * Change the look from the variables in the first block.
 */

.gmpod-slot {
    --gmpod-gold: #d69f3c;        /* site gold */
    --gmpod-cream: #fbe7ae;       /* paper */
    --gmpod-paper: #fff8e6;       /* control bar */
    --gmpod-brown: #8a5414;       /* panels, caption bar */
    --gmpod-ember: #b8621b;       /* icons, progress, show title */
    --gmpod-ink: #2a1806;         /* darkest text and outlines */
    --gmpod-font-title: 'Jolly Lodger', 'Creepster', fantasy;
    --gmpod-font-type: 'Special Elite', 'Courier Prime', 'Courier New', monospace;
    --gmpod-fa: 'Font Awesome 6 Free', 'Font Awesome 6 Pro', 'Font Awesome 7 Free', 'FontAwesome';
    --gmpod-art: clamp(112px, 26vw, 190px);
    --gmpod-overlap: 16px;        /* how far the control bar tucks under the artwork */
    --gmpod-panel-z: 9991;

    position: relative;
    margin: 1.5em auto 2em;
    max-width: 720px;
}

/* ------------------------------------------------------------------ the block that moves */
.gmpod-unit {
    position: relative;
    color: var(--gmpod-ink);
}
.gmpod-unit *,
.gmpod-unit *::before,
.gmpod-unit *::after { box-sizing: border-box; }

.gmpod-unit--top {
    position: fixed;
    z-index: var(--gmpod-panel-z);
    margin: 0;
    padding: 10px 10px 0;
    will-change: transform;
}

.gmpod-backdrop {
    position: fixed;
    inset: 0;
    z-index: calc(var(--gmpod-panel-z, 9991) - 1);
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(255, 236, 180, .55), transparent 60%),
        #d69f3c;
    opacity: 0;
    visibility: hidden;
    transition-property: opacity, visibility;
    transition-timing-function: ease;
}
.gmpod-backdrop--on { opacity: 1; visibility: visible; }

/* ------------------------------------------------------------------ player stage */
.gmpod-stage {
    position: relative;
    padding-left: calc(var(--gmpod-art) - var(--gmpod-overlap));
}

/* Seriously Simple Podcasting's markup, restyled */
.gmpod-unit .castos-player,
.gmpod-unit .castos-player .player,
.gmpod-unit .castos-player .player__main {
    position: static;
    display: block;
    background: none;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    max-width: none;
    width: auto;
    font-family: var(--gmpod-font-type);
}
.gmpod-unit .hide,
.gmpod-unit .player-panels-nav,
.gmpod-unit .player-panels,
.gmpod-unit .ssp-sr-announce { display: none !important; }
.gmpod-unit .screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.gmpod-unit .player__artwork {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: var(--gmpod-art);
    aspect-ratio: 1 / 1;
    z-index: 2;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(42, 24, 6, .5), 0 0 0 2px rgba(42, 24, 6, .55);
}
.gmpod-unit .player__artwork img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    max-width: none;
}

.gmpod-unit .player__body {
    display: block;
    padding: 0;
    width: auto;
}
.gmpod-unit .currently-playing {
    text-align: center;
    padding: 0 6px 8px calc(var(--gmpod-overlap) + 4px);
    margin: 0;
}
.gmpod-unit .player__podcast-title {
    font-family: var(--gmpod-font-title);
    font-size: clamp(22px, 4.6vw, 34px);
    line-height: 1;
    color: var(--gmpod-ember);
    text-shadow: 1px 1px 0 var(--gmpod-ink), -1px 1px 0 var(--gmpod-ink), 1px -1px 0 var(--gmpod-ink), -1px -1px 0 var(--gmpod-ink);
    letter-spacing: .01em;
    margin: 0 0 4px;
    opacity: 1;
}
.gmpod-unit .player__episode-title {
    font-family: var(--gmpod-font-type);
    font-weight: 700;
    font-size: clamp(14px, 3.4vw, 22px);
    line-height: 1.2;
    color: var(--gmpod-ink);
    margin: 0;
}
.gmpod-unit .player__episode-title::before { content: var(--gmpod-se, ''); }

/* The white control bar */
.gmpod-unit .play-progress {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "bar bar" "play ctrl";
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
    margin: 0;
    padding: 14px 22px 12px calc(var(--gmpod-overlap) + 18px);
    background: var(--gmpod-paper);
    border-radius: 0 26px 26px 0;
    box-shadow: inset 0 -2px 0 rgba(42, 24, 6, .08);
}
.gmpod-unit .play-progress > div:not(.play-pause-controls) { display: contents; }

.gmpod-unit .ssp-progress {
    grid-area: bar;
    display: flex;
    height: 10px;
    margin: 0;
    border-radius: 5px;
    background: rgba(138, 84, 20, .2);
    cursor: pointer;
    overflow: hidden;
}
.gmpod-unit .progress__filled {
    display: block;
    flex: 0 0 0;
    background: var(--gmpod-ember);
    border-radius: 5px;
}

.gmpod-unit .play-pause-controls {
    grid-area: play;
    display: flex;
    align-items: center;
    margin: 0;
}
.gmpod-unit .play-btn,
.gmpod-unit .pause-btn {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--gmpod-ink);
    background: #fff;
    color: var(--gmpod-ember);
    box-shadow: 0 2px 0 var(--gmpod-ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-image: none;
}
.gmpod-unit .play-btn::before,
.gmpod-unit .pause-btn::before {
    font-family: var(--gmpod-fa);
    font-weight: 900;
    font-size: 18px;
    line-height: 1;
}
.gmpod-unit .play-btn::before { content: "\f04b"; margin-left: 3px; }
.gmpod-unit .pause-btn::before { content: "\f04c"; }
.gmpod-unit .ssp-loader { width: 30px; height: 30px; }

.gmpod-unit .ssp-playback {
    grid-area: ctrl;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0;
}
.gmpod-unit .playback__controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.gmpod-unit .player-btn {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent none;
    color: var(--gmpod-ember);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gmpod-font-type);
}
.gmpod-unit .player-btn::before {
    font-family: var(--gmpod-fa);
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
}
.gmpod-unit .player-btn__volume::before { content: "\f028"; }
.gmpod-unit .player-btn__volume.off::before { content: "\f6a9"; }
.gmpod-unit .player-btn__rwd::before { content: "\f2ea"; font-size: 24px; }
.gmpod-unit .player-btn__fwd::before { content: "\f2f9"; font-size: 24px; }
.gmpod-unit .player-btn__rwd::after,
.gmpod-unit .player-btn__fwd::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -42%);
    font: 700 8px/1 var(--gmpod-font-type);
    color: var(--gmpod-ink);
}
.gmpod-unit .player-btn__rwd::after { content: "10"; }
.gmpod-unit .player-btn__fwd::after { content: "30"; }
.gmpod-unit .player-btn__speed {
    width: auto;
    min-width: 44px;
    height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    border: 2px solid var(--gmpod-ember);
    font-weight: 700;
    font-size: 13px;
}
.gmpod-unit .player-btn__speed::before { content: none; }
.gmpod-unit .player-btn:hover,
.gmpod-unit .play-btn:hover,
.gmpod-unit .pause-btn:hover { color: var(--gmpod-ink); }

.gmpod-unit .playback__timers {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font: 700 12px/1.1 var(--gmpod-font-type);
    color: var(--gmpod-ink);
    white-space: nowrap;
}

/* ------------------------------------------------------------------ captions */
.gmpod-captions {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(2 * 1.35em + 14px);
    margin: 6px 0 0 calc(-1 * var(--gmpod-overlap));
    padding: 7px 18px 7px calc(var(--gmpod-overlap) + 18px);
    background: linear-gradient(90deg, var(--gmpod-brown) 0%, #a86c22 55%, rgba(214, 159, 60, 0) 100%);
    border-radius: 0 0 0 0;
    font: 700 clamp(12px, 2.6vw, 15px)/1.35 var(--gmpod-font-type);
    color: var(--gmpod-cream);
    text-align: center;
    text-shadow: 0 1px 2px rgba(42, 24, 6, .9), 0 0 6px rgba(42, 24, 6, .6);
    transition: opacity .2s ease;
}
.gmpod-cue {
    margin: 0;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gmpod-cc-off .gmpod-captions,
.gmpod-no-captions .gmpod-captions { display: none; }
.gmpod-btn.cc-toggle[aria-pressed="false"] { opacity: .45; }

/* ------------------------------------------------------------------ button row */
.gmpod-bar {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 14px 0 0;
}
.gmpod-track {
    flex: 1 1 auto;
    display: flex;
    justify-content: safe center;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px;
}
.gmpod-track::-webkit-scrollbar { display: none; }

.gmpod-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--gmpod-ember);
    font-size: 27px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease, transform .15s ease;
}
.gmpod-btn:hover { color: var(--gmpod-ink); }
.gmpod-btn.is-open {
    background: var(--gmpod-brown);
    color: var(--gmpod-cream);
    box-shadow: 0 0 0 2px var(--gmpod-ink);
}
.gmpod-btn[hidden] { display: none; }

.gmpod-arrow {
    flex: 0 0 auto;
    width: 30px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--gmpod-ink);
    font-size: 18px;
    cursor: pointer;
}
.gmpod-arrow[hidden] { display: inline-block; visibility: hidden; }

.gmpod-unit button:focus-visible,
.gmpod-unit a:focus-visible,
.gmpod-panel-scroll:focus-visible {
    outline: 3px solid var(--gmpod-ink);
    outline-offset: 2px;
}
.gmpod-panel-scroll:focus { outline: none; }

/* ------------------------------------------------------------------ panel */
.gmpod-panel {
    position: relative;
    margin: 10px 0 0;
    background: var(--gmpod-brown);
    color: var(--gmpod-cream);
    border: 3px solid var(--gmpod-ink);
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
    box-shadow: 0 -4px 18px rgba(42, 24, 6, .25);
    opacity: 0;
    transform: translateY(14px);
    transition-property: opacity, transform;
    transition-timing-function: ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.gmpod-panel[hidden] { display: none; }
.gmpod-panel--in { opacity: 1; transform: translateY(0); }

.gmpod-close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 2px solid var(--gmpod-cream);
    border-radius: 50%;
    background: var(--gmpod-ink);
    color: var(--gmpod-cream);
    font-size: 18px;
    cursor: pointer;
}

.gmpod-panel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 20px 22px calc(28px + env(safe-area-inset-bottom, 0px));
    font: 400 16px/1.65 var(--gmpod-font-type);
    scrollbar-color: var(--gmpod-gold) transparent;
}
.gmpod-panel-scroll::-webkit-scrollbar { width: 8px; }
.gmpod-panel-scroll::-webkit-scrollbar-thumb { background: var(--gmpod-gold); border-radius: 4px; }

.gmpod-sec[hidden] { display: none; }
.gmpod-sec h2,
.gmpod-sec h3 {
    font-family: var(--gmpod-font-title);
    font-weight: 400;
    color: var(--gmpod-gold);
    text-shadow: 1px 1px 0 var(--gmpod-ink), -1px 1px 0 var(--gmpod-ink), 1px -1px 0 var(--gmpod-ink), -1px -1px 0 var(--gmpod-ink);
    line-height: 1.1;
    margin: 0 48px .6em 0;
}
.gmpod-sec h2 { font-size: clamp(26px, 6vw, 36px); }
.gmpod-sec h3 { font-size: clamp(21px, 4.6vw, 27px); margin-top: 1.2em; }
.gmpod-sec p { margin: 0 0 1em; }
.gmpod-sec a { color: var(--gmpod-cream); text-decoration: underline; text-underline-offset: 3px; }
.gmpod-sec a:hover { color: #fff; }
.gmpod-sec table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 14px; }
.gmpod-sec th, .gmpod-sec td { border: 1px solid rgba(251, 231, 174, .35); padding: 6px 8px; vertical-align: top; text-align: left; }

.gmpod-more,
.gmpod-less {
    border: 0;
    background: none;
    padding: 0;
    color: var(--gmpod-gold);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}
.gmpod-disclaimer {
    margin: 1.2em 0;
    padding: 12px 14px;
    border-left: 4px solid var(--gmpod-gold);
    background: rgba(42, 24, 6, .25);
    font-size: 14px;
}
.gmpod-disclaimer p:last-of-type { margin-bottom: .5em; }

.gmpod-tags,
.gmpod-warnings {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.gmpod-tags li a,
.gmpod-tags li span,
.gmpod-warnings li {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    border: 2px solid var(--gmpod-gold);
    color: var(--gmpod-cream);
    text-decoration: none;
    font-size: 14px;
}
.gmpod-tags li a:hover { background: var(--gmpod-gold); color: var(--gmpod-ink); }

.gmpod-apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
}
.gmpod-apps a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 13px;
    text-align: center;
}
.gmpod-apps img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    filter: sepia(.6) saturate(1.2);
    transition: filter .2s ease;
}
.gmpod-apps a:hover img,
.gmpod-apps a:focus-visible img { filter: none; }

.gmpod-share { display: flex; flex-direction: column; gap: 8px; }
.gmpod-share .social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid rgba(251, 231, 174, .4);
    border-radius: 10px;
    text-decoration: none;
    word-break: break-all;
}
.gmpod-share .social-link i { width: 1.2em; text-align: center; }
.gmpod-share .social-link.copied { border-color: var(--gmpod-gold); }
.gmpod-share .social-link.copied::after { content: "Copied"; margin-left: auto; color: var(--gmpod-gold); font-weight: 700; }

/* Transcript: a white, fixed-size box in the middle of the panel that scrolls on its own */
.gmpod-sec.gmpod-transcript:not([hidden]) {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.gmpod-transcript-box {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    color: var(--gmpod-ink);
    border: 3px solid var(--gmpod-ink);
    border-radius: 8px;
    padding: 16px 18px;
    font: 400 15px/1.7 var(--gmpod-font-type);
    white-space: pre-wrap;
    word-wrap: break-word;
    resize: none;
}
.gmpod-transcript-dl { margin: 10px 0 0; font-size: 14px; }

/* ------------------------------------------------------------------ byline */
.gmpod-byline { display: flex; flex-direction: column; gap: 2px; }
.gmpod-byline-date { font-size: .92em; opacity: .85; }

/* ------------------------------------------------------------------ while a panel is open */
html.gmpod-locked { overflow: hidden; }
.gm-gravestone-overlay,
.gm-logo-overlay {
    transition: opacity .3s ease, visibility 0s linear 0s;
}
.gm-panel-open .gm-gravestone-overlay,
.gm-panel-open .gm-logo-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
}

/* ------------------------------------------------------------------ phones */
@media (max-width: 600px) {
    .gmpod-slot { --gmpod-overlap: 12px; margin: 1em auto 1.5em; }
    .gmpod-unit .play-progress {
        padding: 12px 12px 10px calc(var(--gmpod-overlap) + 10px);
        column-gap: 8px;
        border-radius: 0 20px 20px 0;
    }
    .gmpod-unit .player-btn { width: 40px; height: 40px; }
    .gmpod-unit .ssp-playback { gap: 4px 8px; }
    .gmpod-unit .playback__controls { gap: 2px; }
    .gmpod-panel-scroll { padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
    .gmpod-unit--top { padding: 6px 6px 0; }
}
@media (max-width: 420px) {
    .gmpod-slot { --gmpod-art: 104px; }
    .gmpod-unit .playback__timers { flex-basis: 100%; justify-content: center; }
}
@media (pointer: coarse) {
    .gmpod-unit .player-btn { min-width: 44px; min-height: 44px; }
    .gmpod-unit .player-btn__speed { min-height: 34px; }
}

/* Phones turned sideways: a compact player so the panel still has room. */
@media (orientation: landscape) and (max-height: 520px) {
    .gmpod-slot { --gmpod-art: 84px; }
    .gmpod-unit .player__podcast-title { font-size: 20px; }
    .gmpod-unit .player__episode-title { font-size: 13px; }
    .gmpod-unit .currently-playing { padding-bottom: 4px; }
    .gmpod-unit .play-progress { padding-top: 8px; padding-bottom: 6px; row-gap: 4px; }
    .gmpod-captions { min-height: 0; padding-top: 4px; padding-bottom: 4px; }
    .gmpod-cue { -webkit-line-clamp: 1; }
    .gmpod-bar { margin-top: 6px; }
    .gmpod-btn { width: 44px; height: 44px; font-size: 22px; }
}

/* Motion off for people who ask for it */
@media (prefers-reduced-motion: reduce) {
    .gmpod-panel,
    .gmpod-backdrop,
    .gm-gravestone-overlay,
    .gm-logo-overlay,
    .gmpod-btn,
    .gmpod-captions { transition: none !important; }
}
