/* TSB Episode Player — v1.0.8 */

@font-face {
    font-family: 'OZIK';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url('/wp-content/uploads/OZIK-Black.woff2') format('woff2'),
         url('/wp-content/uploads/OZIK-Black.woff') format('woff');
}

.tsb-player {
    background: #1e2736;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    margin: 1.5em 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1;
    box-sizing: border-box;
}

/* ── Subscriber: green artwork panel ── */
.tsb-player--subscriber .tsb-player__artwork {
    background: #189658;
}

/* ── Artwork column ── */
.tsb-player__artwork {
    flex-shrink: 0 !important;
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    overflow: hidden !important;
    background: #283040;
    display: block !important;
}

.tsb-player--public .tsb-player__artwork {
    background: #2c6fbb;
}

.tsb-player__artwork-img {
    width: 80px !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    object-fit: cover !important;
    display: block !important;
}

.tsb-player__artwork-fallback {
    width: 80px !important;
    height: 80px !important;
    background: #283040;
    display: block !important;
}

/* ── Controls column ── */
.tsb-player__body {
    flex: 1;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
}

.tsb-player__title {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* ── Transport row ── */
.tsb-player__transport {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsb-player__play-btn,
.tsb-player__mute-btn {
    flex-shrink: 0 !important;
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 6px !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: background 0.15s;
    line-height: 1 !important;
    box-shadow: none !important;
    text-indent: 0 !important;
}

.tsb-player__play-btn { width: 30px !important; height: 30px !important; }
.tsb-player__mute-btn { width: 28px !important; height: 28px !important; }

.tsb-player__play-btn:hover,
.tsb-player__mute-btn:hover {
    background: rgba(255,255,255,0.14) !important;
}

.tsb-player__play-btn i,
.tsb-player__mute-btn i {
    font-size: 15px !important;
    line-height: 1 !important;
    pointer-events: none;
    display: block !important;
    width: auto !important;
    height: auto !important;
}

.tsb-player .tsb-player__hidden {
    display: none !important;
}

.tsb-player__current,
.tsb-player__duration-display {
    font-size: 11px;
    color: #8899aa;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    min-width: 30px;
}

.tsb-player__duration-display { text-align: right; }

/* ── Progress bar ── */
.tsb-player__progress {
    flex: 1;
    height: 4px;
    background: #3a4558;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    outline: none;
}

.tsb-player__progress:focus-visible {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}

.tsb-player__bar {
    width: 0%;
    height: 100%;
    border-radius: 2px;
    background: #189658;
    pointer-events: none;
}

.tsb-player--public .tsb-player__bar {
    background: #2c6fbb;
}

/* ── CTA (public player) ── */
div.tsb-player .tsb-player__cta {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    background: none !important;
    border: none !important;
}

div.tsb-player .tsb-player__cta a,
div.tsb-player .tsb-player__cta a:link,
div.tsb-player .tsb-player__cta a:visited,
div.tsb-player .tsb-player__cta a:hover,
div.tsb-player .tsb-player__cta a:active {
    color: #ffc54e !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 11px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-style: normal !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    transition: none !important;
    letter-spacing: normal !important;
    line-height: 1.3 !important;
}

div.tsb-player .tsb-player__cta a:hover {
    color: #ffc54e !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    background: none !important;
    transition: none !important;
}

/* ── Subscriber badge ("TSB+ Player") ── */
div.tsb-player--subscriber .tsb-player__badge {
    color: #189658 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    line-height: 1.3 !important;
}

/* ── Locked state ── */
.tsb-player--locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    text-align: center;
    min-height: 130px;
}

.tsb-player__lock-icon {
    font-size: 40px;
    color: #3a4558;
    margin-bottom: 10px;
    line-height: 1;
}

.tsb-player__locked-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.tsb-player__locked-msg {
    margin: 0 0 18px;
    font-size: 14px;
    color: #c8d6e5;
    line-height: 1.6;
}

.tsb-player__sub-btn {
    display: inline-block;
    background: #189658;
    color: #fff !important;
    font-family: OZIK, sans-serif !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.15s;
    line-height: 1.2;
}

.tsb-player__sub-btn:hover { background: #147d4a; }
