/* WD Podcasts v2 — Producer Portal (browse light). Studios design tokens. */
.wdp2 {
    --wdp2-orange: #f26722;
    --wdp2-orange-2: #f5a26b;
    --wdp2-dark: #1a1a1a;
    --wdp2-cream: #faebd7;
    --wdp2-border: rgba(242,103,34,.18);
    --wdp2-muted: #6b6b6b;
    font-family: 'Oswald', sans-serif;
    color: var(--wdp2-dark);
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 32px 64px;
    box-sizing: border-box;
}
.wdp2 *, .wdp2 *::before, .wdp2 *::after { box-sizing: border-box; }

.wdp2-eyebrow {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--wdp2-orange);
    margin-bottom: 6px;
}
.wdp2-h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0;
    line-height: 1.1;
}
.wdp2-sub { font-size: 1.05rem; font-weight: 500; color: var(--wdp2-muted); margin: 6px 0 0; }
.wdp2-msg { font-size: 1.05rem; font-weight: 400; color: var(--wdp2-muted); padding: 24px 0; }

/* Portal header row */
.wdp2-portal-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--wdp2-border);
    padding-bottom: 22px;
    margin-bottom: 30px;
}
.wdp2-portal-actions { display: flex; align-items: center; gap: 14px; }
.wdp2-search {
    font-family: inherit;
    font-size: .95rem;
    padding: 9px 14px;
    border: 2px solid var(--wdp2-border);
    border-radius: 6px;
    background: #fff;
    min-width: 200px;
}
.wdp2-search:focus { outline: none; border-color: var(--wdp2-orange); }
.wdp2-toggle {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
    color: var(--wdp2-muted);
    border: 2px solid var(--wdp2-border);
    border-radius: 6px;
    padding: 8px 16px;
    white-space: nowrap;
    transition: all .2s ease;
}
.wdp2-toggle:hover { border-color: var(--wdp2-orange); color: var(--wdp2-orange); }
.wdp2-toggle.is-on { background: var(--wdp2-orange); border-color: var(--wdp2-orange); color: #fff; }

/* Series grid */
.wdp2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.wdp2-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid var(--wdp2-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.wdp2-card:hover {
    border-color: var(--wdp2-orange);
    box-shadow: 0 8px 28px rgba(242,103,34,.12);
    transform: translateY(-2px);
}
.wdp2-card-art {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--wdp2-orange) 0%, #1a1a1a 130%);
    color: rgba(255,255,255,.92);
}
.wdp2-glyph { width: 46px; height: 46px; }
.wdp2-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.wdp2-card-title { font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.15; }
.wdp2-card-meta { font-size: .85rem; font-weight: 500; color: var(--wdp2-orange); text-transform: uppercase; letter-spacing: .06em; }
.wdp2-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.wdp2-card-cta { font-size: .85rem; font-weight: 600; color: var(--wdp2-muted); }
.wdp2-card:hover .wdp2-card-cta { color: var(--wdp2-orange); }

/* Badge / pill */
.wdp2-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--wdp2-dark);
    background: rgba(242,103,34,.12);
    border-radius: 999px;
    padding: 4px 12px;
}

/* Breadcrumb */
.wdp2-crumbs { font-size: .82rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 22px; color: var(--wdp2-muted); }
.wdp2-crumbs a { color: var(--wdp2-orange); text-decoration: none; }
.wdp2-crumbs a:hover { text-decoration: underline; }
.wdp2-crumb-sep { margin: 0 4px; opacity: .6; }
.wdp2-crumb-cur { color: var(--wdp2-dark); }

/* Show hero (L1) */
.wdp2-show-hero { display: flex; gap: 24px; align-items: center; margin-bottom: 30px; flex-wrap: wrap; }
.wdp2-show-art {
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    width: 150px; height: 150px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--wdp2-orange) 0%, #1a1a1a 130%);
    color: rgba(255,255,255,.92);
}
.wdp2-show-art .wdp2-glyph { width: 56px; height: 56px; }
.wdp2-show-meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* Episode list (L1) */
.wdp2-eplist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wdp2-border); }
.wdp2-eprow {
    display: flex; align-items: center; gap: 18px;
    padding: 16px 8px;
    border-bottom: 1px solid var(--wdp2-border);
}
.wdp2-epnum {
    flex: 0 0 auto; min-width: 64px;
    font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
    color: var(--wdp2-orange);
}
.wdp2-eptitle { flex: 1; font-size: 1.1rem; font-weight: 500; }
.wdp2-eprow.is-live { background: linear-gradient(90deg, rgba(244,67,54,.10), transparent); }
.wdp2-eplive {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #f44336;
}

/* Episode header (L2 stub) */
.wdp2-ep-head { margin-bottom: 16px; }

/* Buttons */
.wdp2-btn {
    display: inline-block;
    font-family: inherit; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    text-decoration: none;
    color: #fff; background: var(--wdp2-orange);
    border: 2px solid var(--wdp2-orange); border-radius: 6px;
    padding: 8px 20px;
    transition: background .2s ease;
}
.wdp2-btn:hover { background: #d9551a; border-color: #d9551a; color: #fff; }

@media (max-width: 700px) {
    .wdp2-portal-head { align-items: stretch; }
    .wdp2-portal-actions { width: 100%; }
    .wdp2-search { flex: 1; min-width: 0; }
    .wdp2-show-art { width: 110px; height: 110px; }
}

/* ── Episode workspace (L2) ── */
.wdp2-workspace .wdp2-ep-head { margin-bottom: 14px; }

.wdp2-tabs {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: stretch; gap: 2px;
    background: var(--wdp2-cream);
    border-bottom: 2px solid var(--wdp2-border);
    margin-bottom: 28px;
    overflow-x: auto;
}
.wdp2-tabs-spacer { flex: 1; }
.wdp2-tab {
    font-family: inherit; font-size: .92rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--wdp2-muted); background: none; border: none;
    border-bottom: 3px solid transparent;
    padding: 14px 18px; cursor: pointer; white-space: nowrap;
    transition: color .15s ease, border-color .15s ease;
}
.wdp2-tab:hover { color: var(--wdp2-dark); }
.wdp2-tab.is-active { color: var(--wdp2-orange); border-bottom-color: var(--wdp2-orange); }
.wdp2-tab-annotate { color: var(--wdp2-orange); }
.wdp2-tab-annotate:hover { color: #d9551a; }

.wdp2-panel { display: none; }
.wdp2-panel.is-active { display: block; }

/* Overview */
.wdp2-stats { display: flex; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.wdp2-stat {
    display: flex; flex-direction: column; gap: 2px;
    background: #fff; border: 2px solid var(--wdp2-border); border-radius: 10px;
    padding: 16px 24px; min-width: 130px;
}
.wdp2-stat-n { font-size: 2rem; font-weight: 700; color: var(--wdp2-orange); line-height: 1; }
.wdp2-stat-l { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--wdp2-muted); }
.wdp2-rec-summary { list-style: none; margin: 0; padding: 0; }
.wdp2-rec-summary li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--wdp2-border); }
.wdp2-rec-name { font-weight: 600; }
.wdp2-rec-meta { font-size: .85rem; color: var(--wdp2-muted); white-space: nowrap; }

/* Files — retention notice + countdown */
.wdp2-retention {
    background: rgba(242,103,34,.06); border: 1px solid var(--wdp2-border);
    border-left: 4px solid var(--wdp2-orange); border-radius: 10px;
    padding: 14px 18px; margin-bottom: 26px;
}
.wdp2-retention p { margin: 0 0 6px; font-size: .95rem; line-height: 1.5; }
.wdp2-retention p:last-child { margin-bottom: 0; }
.wdp2-retention-count { font-weight: 600; }
.wdp2-retention-countdown { color: var(--wdp2-orange); font-weight: 700; }
.wdp2-retention-countdown.is-soon { color: #d32f2f; }
.wdp2-retention-countdown.is-expired { color: #d32f2f; }
.wdp2-retention-date { color: var(--wdp2-muted); font-weight: 500; }

/* Files — record groups → packages → flat file list */
.wdp2-record { margin-bottom: 30px; }
.wdp2-record-head {
    font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
    padding-bottom: 8px; border-bottom: 2px solid var(--wdp2-orange); margin: 0 0 14px;
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.wdp2-record-date { font-size: .8rem; font-weight: 500; color: var(--wdp2-muted); text-transform: none; letter-spacing: 0; }
.wdp2-pkg { background: #fff; border: 2px solid var(--wdp2-border); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.wdp2-pkg-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(242,103,34,.05); flex-wrap: wrap; }
.wdp2-pkg-type { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: var(--wdp2-orange); border-radius: 4px; padding: 3px 9px; }
.wdp2-pkg-name { font-weight: 600; flex: 1; min-width: 140px; }
.wdp2-pkg-size { font-size: .85rem; color: var(--wdp2-muted); }
.wdp2-filelist { list-style: none; margin: 0; padding: 0; }
.wdp2-file { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--wdp2-border); }
.wdp2-file-name { flex: 1; font-size: .92rem; word-break: break-word; }
.wdp2-file-size { font-size: .8rem; color: var(--wdp2-muted); white-space: nowrap; }
.wdp2-file-dl { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--wdp2-orange); text-decoration: none; white-space: nowrap; }
.wdp2-file-dl:hover { text-decoration: underline; }

.wdp2-btn-sm { padding: 6px 14px; font-size: .78rem; }
.wdp2-msg-sm { padding: 8px 0; font-size: .9rem; }

/* Live-session banner (Join Live Studio / Logger View) */
.wdp2-live-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: #1a1a1a; color: #fff;
    border-radius: 10px; padding: 12px 18px; margin-bottom: 22px;
}
.wdp2-live-banner.is-live { background: linear-gradient(90deg, #2a1414, #1a1a1a); border: 1px solid rgba(242,103,34,.4); }
.wdp2-live-status { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 8px; }
.wdp2-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #f44336; animation: wdp2-pulse 1.5s infinite; }
@keyframes wdp2-pulse { 0%{box-shadow:0 0 0 0 rgba(244,67,54,.6);} 70%{box-shadow:0 0 0 8px rgba(244,67,54,0);} 100%{box-shadow:0 0 0 0 rgba(244,67,54,0);} }
.wdp2-live-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wdp2-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.wdp2-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

/* ── Studio Dashboard (operate dark) ── */
.wdp2-atem { background: #111; color: #eee; border: 1px solid #333; border-radius: 10px; padding: 20px; }
.wdp2-atem-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.wdp2-atem-head h4 { margin: 0; color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.wdp2-atem-tc { font-family: 'Courier New', monospace; font-size: 1.2rem; color: #aaa; }
.wdp2-atem-section { font-size: 1rem; color: #fff; margin: 22px 0 12px; border-bottom: 1px solid #333; padding-bottom: 5px; text-transform: uppercase; letter-spacing: .06em; }
.wdp2-atem-muted { color: #777; font-size: .85rem; font-weight: 400; }
.wdp2-tally { display: flex; gap: 14px; }
.wdp2-tally-box { flex: 1; padding: 14px; text-align: center; font-size: 1.3rem; font-weight: 700; text-transform: uppercase; border-radius: 6px; background: #222; color: #555; border: 2px solid #333; }
.wdp2-tally-box.is-rec { background: rgba(255,0,0,.18); color: #ff4444; border-color: #ff4444; box-shadow: 0 0 14px rgba(255,0,0,.25); }
.wdp2-tally-box.is-stby { background: rgba(0,255,0,.1); color: #2ecc40; border-color: #2ecc40; }
.wdp2-cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 10px; }
.wdp2-cam { background: #222; border: 2px solid #333; border-radius: 6px; padding: 10px; text-align: center; font-size: .85rem; font-weight: 600; color: #888; }
.wdp2-cam.is-rec { background: rgba(255,0,0,.15); color: #ff4444; border-color: #ff4444; }
.wdp2-cam.is-stby { background: rgba(0,255,0,.1); color: #2ecc40; border-color: #2ecc40; }
.wdp2-deliv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; }
.wdp2-deliv-card { background: #222; border: 1px solid #333; border-radius: 6px; padding: 12px; }
.wdp2-deliv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; color: #aaa; font-size: .8rem; }
.wdp2-pill { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; background: #555; color: #fff; }
.wdp2-pill.is-ready { background: #28a745; }
.wdp2-deliv-link { font-size: .8rem; color: #777; }
.wdp2-deliv-link a { color: #f26722; font-weight: 600; text-decoration: none; }
.wdp2-pipe { background: #1a1a1a; border: 1px solid #333; border-radius: 6px; padding: 14px; margin-bottom: 12px; }
.wdp2-pipe-name { color: #fff; font-weight: 700; margin-bottom: 10px; }
.wdp2-pipe-step { margin-bottom: 10px; }
.wdp2-pipe-label { display: flex; justify-content: space-between; font-size: .82rem; color: #aaa; margin-bottom: 5px; }
.wdp2-pipe-bar { height: 8px; background: #333; border-radius: 4px; overflow: hidden; }
.wdp2-pipe-fill { height: 100%; transition: width .5s ease; }
.wdp2-pipe-fill.is-complete { background: #28a745; }
.wdp2-pipe-fill.is-processing { background: #0d6efd; }
.wdp2-pipe-fill.is-waiting { background: #555; }
.wdp2-pipe-fill.is-failed { background: #dc3545; }

/* ── Session Config (operate dark, admin) ── */
.wdp2-cfg { background: #111; color: #eee; border: 1px solid #333; border-radius: 10px; padding: 22px; }
.wdp2-cfg-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; }
.wdp2-cfg-alert.is-ok { background: rgba(40,167,69,.18); color: #5cdb7a; border: 1px solid rgba(40,167,69,.4); }
.wdp2-cfg-alert.is-err { background: rgba(220,53,69,.18); color: #ff7a8a; border: 1px solid rgba(220,53,69,.4); }
.wdp2-cfg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.wdp2-cfg-card { background: #1e1e1e; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 20px; }
.wdp2-cfg-card h4 { color: #f26722; font-weight: 600; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 8px; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .04em; }
.wdp2-cfg label { color: #ddd; font-size: .85rem; font-weight: 600; }
.wdp2-cfg select, .wdp2-cfg input[type=text], .wdp2-cfg input[type=number], .wdp2-cfg textarea {
    background: #161616; border: 1px solid #444; color: #fff; border-radius: 6px; padding: 8px 10px; width: 100%; font-family: inherit; box-sizing: border-box;
}
.wdp2-cfg-check { display: flex; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; margin-bottom: 4px; }
.wdp2-cfg-check input { width: 17px; height: 17px; accent-color: #f26722; }
.wdp2-cfg-checks, .wdp2-cfg-cams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wdp2-cfg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.wdp2-cfg-row3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 14px 0; }
.wdp2-cfg-num, .wdp2-cfg-field { display: block; margin-top: 12px; }
.wdp2-cfg-num input { width: 110px; margin-top: 6px; }
.wdp2-cfg-field input, .wdp2-cfg-field textarea { margin-top: 6px; }
.wdp2-cfg-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
@media (max-width: 800px) { .wdp2-cfg-grid { grid-template-columns: 1fr; } }
