/* ============================================================
   PodcastHub — Modern Premium Light Theme Styles (Isolated Canvas)
   ============================================================ *//* ── Typography and Base Resets ──────────────────────────── */@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

html.ph-isolated-html,
body.ph-isolated-body {margin:          0 !important;
    padding:         0 !important;
    background-color:#f8fafc !important;
    color:           #0f172a !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size:       16px;
    line-height:     1.5;
    -webkit-font-smoothing: antialiased;}/* Base resets inside the app wrapper */


/* Scoped CSS Reset to prevent theme styling leak */
.ph-app,
.ph-app *,
.ph-app *::before,
.ph-app *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.ph-app button,
.ph-app input,
.ph-app select,
.ph-app textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;}

/* Guard: never let the scoped reset break the Dashicons icon font */
.ph-app .dashicons,
.ph-app .dashicons::before {
    font-family: dashicons !important;
    font-style: normal;
    font-weight: normal;
    speak: never;
    display: inline-block;
    text-decoration: inherit;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;}
.ph-app ul,
.ph-app ol {
    list-style: none;}
.ph-app a {
    text-decoration: none;
    color: inherit !important;}

.ph-app {
    min-height:      100vh;
    display:         flex;
    flex-direction:  column;
    box-sizing:      border-box;}/* ── Custom Light Theme Properties ────────────────────────── */


:root {/* Indigo 500 *//* Indigo 600 */
    --ph-bg:            #f8fafc;
    --ph-surface:       #ffffff;
    --ph-surface-2:     #f1f5f9;
    --ph-border:        #e2e8f0;
    --ph-accent:        #6366f1; 
    --ph-accent-hover:  #4f46e5; 
    --ph-accent-glow:   rgba(99, 102, 241, 0.12);
    --ph-green:         #10b981;
    --ph-red:           #ef4444;
    --ph-text:          #0f172a;
    --ph-text-muted:    #64748b;
    --ph-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ph-font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
    --ph-radius:        16px;
    --ph-radius-sm:     8px;
    --ph-shadow:        0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --ph-shadow-lg:     0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);}/* ── Custom Scrollbar ─────────────────────────────────────── */


.ph-app ::-webkit-scrollbar {
    width:  8px;
    height: 8px;}
.ph-app ::-webkit-scrollbar-track {
    background: var(--ph-bg) !important;}
.ph-app ::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 4px;}
.ph-app ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;}/* ── Nav Header ──────────────────────────────────────────── */


.ph-header {
    background:    var(--ph-surface) !important;
    border-bottom: 1px solid var(--ph-border);
    padding:       16px 40px !important;
    display:       flex;
    justify-content: space-between;
    align-items:   center;
    box-shadow:    var(--ph-shadow);}

.ph-logo {
    display:       flex;
    align-items:   center;
    gap:           10px;
    text-decoration: none;}

.ph-logo-icon {
    font-size:     1.8rem;}

.ph-logo-text {
    font-family:   var(--ph-font-heading);
    font-size:     1.4rem;
    font-weight:   800;
    color:         var(--ph-text) !important;
    background:    linear-gradient(to right, var(--ph-accent), var(--ph-accent-hover)) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;}

.ph-nav-menu {
    display:     flex;
    align-items: center;
    gap:         24px;}

.ph-nav-link {
    text-decoration: none;
    color:           var(--ph-text-muted) !important;
    font-weight:     500;
    font-size:       0.95rem;
    transition:      color 0.2s;}

.ph-nav-link:hover {
    color: var(--ph-accent) !important;}

.ph-nav-link.is-active {
    color:       var(--ph-accent) !important;
    font-weight: 600;}

.ph-header-auth {
    display:     flex;
    align-items: center;
    gap:         12px;
    justify-content: space-between;
    width: 100%;
}

.ph-btn-secondary {
    border:          1px solid var(--ph-border);
    background:      var(--ph-surface) !important;
    color:           var(--ph-text) !important;
    border-radius:   var(--ph-radius-sm);
    padding:         8px 18px !important;
    font-weight:     600;
    font-size:       0.9rem;
    cursor:          pointer;
    text-decoration: none;
    transition:      all 0.2s;}

.ph-btn-secondary:hover {
    background: var(--ph-surface-2) !important;}

.ph-btn-primary {
    background:      var(--ph-accent) !important;
    color:           #fff !important;
    border:          none;
    border-radius:   var(--ph-radius-sm);
    padding:         9px 20px !important;
    font-weight:     600;
    font-size:       0.9rem;
    cursor:          pointer;
    text-decoration: none;
    transition:      all 0.2s;}

.ph-btn-primary:hover {
    background: var(--ph-accent-hover) !important;
    transform:  translateY(-1px);}/* ── Container Layout ─────────────────────────────────────── */


.ph-main-container {
    flex:    1;
    padding: 40px !important;
    max-width: 1400px;
    margin:  0 auto !important;
    width:   100%;}

@media (max-width: 768px) {
    .ph-header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
    }
    .ph-main-container {
        padding: 20px;
    }
}
    
/* ── Auth Cards ───────────────────────────────────────────── */
.ph-auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px !important;}

.ph-auth-card-light {
    background:    var(--ph-surface) !important;
    border:        1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    padding:       40px !important;
    max-width:     480px;
    width:         100%;
    box-shadow:    var(--ph-shadow-lg);
    text-align:    center;
    animation:     ph-fade-in 0.3s ease-out;}

@keyframes ph-fade-in {
    from { opacity: 0; transform: translateY(12px);}
    to { opacity: 1; transform: translateY(0);}
}

.ph-auth-card-light h2 {
    font-family:   var(--ph-font-heading);
    font-weight:   800;
    font-size:     1.75rem;
    margin:        0 0 10px !important;
    color:         var(--ph-text) !important;}

.ph-auth-card-light p.ph-auth-subtitle {
    color:         var(--ph-text-muted) !important;
    margin:        0 0 32px !important;
    font-size:     0.95rem;}/* ── Forms Control ────────────────────────────────────────── */


.ph-form-group {
    margin-bottom: 20px !important;
    text-align:    left;}

.ph-form-group label {
    display:       block;
    font-weight:   600;
    font-size:     0.88rem;
    color:         var(--ph-text) !important;
    margin-bottom: 8px !important;}

.ph-input,
.ph-textarea,
.ph-select {
    width:          100%;
    background:     var(--ph-surface) !important;
    border:         1px solid var(--ph-border);
    border-radius:  var(--ph-radius-sm);
    color:          var(--ph-text) !important;
    padding:        12px 16px !important;
    font-size:      0.95rem;
    transition:     all 0.2s;
    font-family:    inherit;}

.ph-input:focus,
.ph-textarea:focus,
.ph-select:focus {
    outline:      none;
    border-color: var(--ph-accent);
    box-shadow:   0 0 0 3px var(--ph-accent-glow);}

.ph-textarea {
    resize: vertical;}

.ph-checkbox-label {
    display:     flex;
    align-items: flex-start;
    gap:         10px;
    font-size:   0.9rem;
    color:       var(--ph-text-muted) !important;
    cursor:      pointer;}

.ph-checkbox-label input {
    margin-top: 4px !important;}

.ph-checkbox-label strong {
    color: var(--ph-text) !important;}

.ph-btn-submit {
    width:          100%;
    background:     var(--ph-accent) !important;
    color:          #fff !important;
    border:         none;
    border-radius:  var(--ph-radius-sm);
    padding:        14px !important;
    font-size:      0.95rem;
    font-weight:    700;
    cursor:         pointer;
    transition:     all 0.2s;
    text-align:     center;}

.ph-btn-submit:hover {
    background: var(--ph-accent-hover) !important;}

.ph-auth-footer {
    margin-top: 24px !important;
    font-size:  0.9rem;
    color:      var(--ph-text-muted) !important;}

.ph-auth-footer a {
    color:           var(--ph-accent) !important;
    text-decoration: none;
    font-weight:     600;}

.ph-auth-footer a:hover {
    text-decoration: underline;}/* Alerts */


.ph-alert {
    padding:       12px 16px !important;
    border-radius: var(--ph-radius-sm);
    margin-bottom: 24px !important;
    font-size:     0.9rem;
    text-align:    left;}

.ph-alert--error {
    background:    #fef2f2 !important;
    border:        1px solid #fee2e2;
    color:         #b91c1c !important;}

.ph-alert--success {
    background:    #ecfdf5 !important;
    border:        1px solid #d1fae5;
    color:         #047857 !important;}

.ph-alert ul {
    margin:  0 !important;
    padding: 0 0 0 16px !important;}/* ── Creator Dashboard layout ────────────────────────────── */


.ph-dashboard-container {
    display:               grid;
    grid-template-columns: 280px 1fr;
    min-height:            100vh;
    background:            var(--ph-bg) !important;}

@media (max-width: 1024px) {
    .ph-dashboard-container {
        grid-template-columns: 1fr;
    }
}

.ph-dashboard-sidebar {
    background:    var(--ph-surface) !important;
    border-right:  1px solid var(--ph-border);
    padding:       32px 24px !important;
    display:       flex;
    flex-direction:column;}

.ph-profile-summary {
    display:       flex;
    align-items:   center;
    gap:           16px;
    margin-bottom: 40px !important;}

.ph-avatar-wrap img {
    border-radius: 50%;
    border:        2px solid var(--ph-accent);
    width:         48px;
    height:        48px;}

.ph-profile-info h3 {
    margin:      0 0 4px !important;
    font-size:   1rem;
    font-weight: 700;
    color:       var(--ph-text) !important;}

.ph-role-badge {
    display:       inline-block;
    font-size:     0.7rem;
    font-weight:   700;
    background:    var(--ph-accent-glow) !important;
    color:         var(--ph-accent) !important;
    padding:       2px 8px !important;
    border-radius: 12px;
    text-transform: uppercase;}

.ph-sidebar-nav {
    flex: 1;}

.ph-sidebar-nav ul {
    list-style: none;
    margin:     0 !important;
    padding:    0 !important;
    display:    flex;
    flex-direction: column;
    gap: 6px;}

.ph-sidebar-nav li a {
    display:       flex;
    align-items:   center;
    gap:           12px;
    padding:       12px 16px !important;
    border-radius: var(--ph-radius-sm);
    color:         var(--ph-text-muted) !important;
    text-decoration: none;
    font-size:     0.95rem;
    font-weight:   500;
    transition:    all 0.2s;}

.ph-sidebar-nav li a:hover {
    background: var(--ph-bg) !important;
    color:      var(--ph-text) !important;}

.ph-sidebar-nav li.is-active a {
    background: var(--ph-accent) !important;
    color:      #fff !important;}

.ph-sidebar-nav li.is-active a:hover {
    background: var(--ph-accent-hover) !important;
    color:      #fff !important;}

.ph-nav-logout:hover {
    color: var(--ph-red) !important;}

.ph-dashboard-content {
    padding: 40px !important;}

@media (max-width: 640px) {
    .ph-dashboard-content {
        padding: 20px;
    }
}

.ph-tab-header {
    margin-bottom: 32px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;}

.ph-tab-header-titles h1,
.ph-tab-header h1 {
    font-family: var(--ph-font-heading);
    font-size:   1.8rem;
    font-weight: 800;
    margin:      0 0 6px !important;
    color:       var(--ph-text) !important;}

.ph-tab-header-titles p,
.ph-tab-header p {
    color:  var(--ph-text-muted) !important;
    margin: 0 !important;
    font-size: 0.95rem;}/* ── Dashboard Cards & Stats ────────────────────────────── */


.ph-stats-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap:                   24px;
    margin-bottom:         32px !important;}

.ph-stat-card {
    background:    var(--ph-surface) !important;
    border:        1px solid var(--ph-border);
    border-radius: var(--ph-radius-sm);
    padding:       24px !important;
    display:       flex;
    align-items:   center;
    gap:           20px;
    box-shadow:    var(--ph-shadow);
    transition:    transform 0.2s;}

.ph-stat-card:hover {
    transform: translateY(-2px);}

.ph-stat-card__icon {
    font-size:     2rem;
    background:    var(--ph-bg) !important;
    width:         56px;
    height:        56px;
    display:       flex;
    align-items:   center;
    justify-content: center;
    border-radius: 12px;}

.ph-stat-card__data {
    display:        flex;
    flex-direction: column;}

.ph-stat-card__label {
    font-size:   0.8rem;
    font-weight: 700;
    color:       var(--ph-text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;}

.ph-stat-card__value {
    font-size:   1.75rem;
    font-weight: 800;
    color:       var(--ph-text) !important;
    margin-top:  4px !important;
    line-height: 1;}/* Panels */


.ph-panel {
    background:    var(--ph-surface) !important;
    border:        1px solid var(--ph-border);
    border-radius: var(--ph-radius-sm);
    padding:       32px !important;
    box-shadow:    var(--ph-shadow);
    margin-bottom: 32px !important;}

.ph-panel-header {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    margin-bottom:   24px !important;}

.ph-panel-header h2 {
    margin:      0 !important;
    font-family: var(--ph-font-heading);
    font-size:   1.25rem;
    font-weight: 700;
    color:       var(--ph-text) !important;}/* Responsive tables */


.ph-table-responsive {
    width: 100%;
    overflow-x: auto;}

.ph-table {
    width:           100%;
    border-collapse: collapse;
    text-align:      left;}

.ph-table th {
    padding:        12px 16px !important;
    font-size:      0.8rem;
    font-weight:    700;
    color:          var(--ph-text-muted) !important;
    text-transform: uppercase;
    border-bottom:  1px solid var(--ph-border);}

.ph-table td {
    padding:       16px !important;
    font-size:     0.95rem;
    border-bottom: 1px solid var(--ph-border);
    color:         var(--ph-text) !important;
    vertical-align: middle;}

.ph-table tr:hover td {
    background-color: var(--ph-bg) !important;}

.ph-table-img {
    width:         48px;
    height:        48px;
    border-radius: 6px;
    object-fit:    cover;}

.ph-badge-status {
    display:       inline-block;
    font-size:     0.75rem;
    font-weight:   700;
    padding:       4px 10px !important;
    border-radius: 12px;
    text-transform: uppercase;}

.ph-badge-status--publish,
.ph-badge-status--approved {
    background: #d1fae5 !important;
    color:      #065f46 !important;}

.ph-badge-status--pending,
.ph-badge-status--submitted {
    background: #fef3c7 !important;
    color:      #92400e !important;}

.ph-badge-status--draft {
    background: #f1f5f9 !important;
    color:      #475569 !important;}

.ph-badge-status--rejected {
    background: #fee2e2 !important;
    color:      #991b1b !important;}

.ph-table-actions {
    display:    flex;
    gap:        8px;}

.ph-btn-action {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    width:           34px;
    height:          34px;
    background:      var(--ph-surface) !important;
    border:          1px solid var(--ph-border);
    border-radius:   6px;
    color:           var(--ph-text-muted) !important;
    cursor:          pointer;
    text-decoration: none;
    transition:      all 0.2s;}

.ph-btn-action:hover {
    border-color:    var(--ph-accent);
    color:           var(--ph-accent) !important;
    background:      var(--ph-bg) !important;}

.ph-btn-action--danger:hover {
    background:      #fee2e2 !important;
    border-color:    #fca5a5;
    color:           var(--ph-red) !important;}

.ph-empty-state {
    text-align: center;
    padding:    64px 32px !important;}

.ph-empty-state__icon {
    font-size:     3.5rem;
    width:         3.5rem;
    height:        3.5rem;
    display:       block;
    margin:        0 auto 20px !important;}

.ph-empty-state h3 {
    font-family: var(--ph-font-heading);
    margin:      0 0 8px !important;
    font-size:   1.2rem;
    color:       var(--ph-text) !important;}

.ph-empty-state p {
    margin: 0 !important;
    color:  var(--ph-text-muted) !important;
    font-size: 0.95rem;}/* ── Explore Grid Page ───────────────────────────────────── */


.ph-explore-header {
    background:    linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%) !important;
    padding:       64px 40px !important;
    border-radius: var(--ph-radius);
    margin-bottom: 40px !important;
    text-align:    center;}

.ph-explore-header h1 {
    font-family: var(--ph-font-heading);
    font-size:   2.5rem;
    font-weight: 800;
    margin:      0 0 12px !important;
    color:       #1e1b4b !important;}

.ph-explore-header p {
    color:      #4338ca !important;
    max-width:  600px;
    margin:     0 auto !important;
    font-size:  1.1rem;}

.ph-search-bar {
    display:   flex;
    gap:       16px;
    max-width: 680px;
    margin:    -28px auto 40px !important;
    background: var(--ph-surface) !important;
    padding:   8px !important;
    border-radius: var(--ph-radius);
    box-shadow: var(--ph-shadow-lg);
    border:    1px solid var(--ph-border);}

.ph-search-bar input {
    flex: 1;
    border: none;
    padding: 12px 16px !important;
    font-size: 1rem;
    outline: none;}

.ph-search-bar button {
    background: var(--ph-accent) !important;
    color:      #fff !important;
    border:     none;
    border-radius: var(--ph-radius-sm);
    padding:    12px 24px !important;
    font-weight: 600;
    cursor:     pointer;
    transition: background 0.2s;}

.ph-search-bar button:hover {
    background: var(--ph-accent-hover) !important;}

.ph-filter-container {
    display:       flex;
    flex-wrap:     wrap;
    gap:           12px;
    margin-bottom: 40px !important;
    justify-content: center;}

.ph-filter-pill {
    background:      var(--ph-surface) !important;
    border:          1px solid var(--ph-border);
    border-radius:   30px;
    padding:         8px 18px !important;
    font-size:       0.9rem;
    font-weight:     500;
    color:           var(--ph-text-muted) !important;
    text-decoration: none;
    transition:      all 0.2s;}

.ph-filter-pill:hover,
.ph-filter-pill.is-active {
    background: var(--ph-accent) !important;
    color:      #fff !important;
    border-color: var(--ph-accent);}

.ph-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap:                   32px;}

.ph-card {
    background:    var(--ph-surface) !important;
    border:        1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    overflow:      hidden;
    box-shadow:    var(--ph-shadow);
    transition:    all 0.2s;
    text-decoration: none;
    color:         inherit !important;
    display:       flex;
    flex-direction: column;}

.ph-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ph-shadow-lg);}

.ph-card-cover-wrap {/* 1:1 Aspect Ratio */
    width:     100%;
    padding-top: 100% !important; 
    position:  relative;
    background: var(--ph-surface-2) !important;}

.ph-card-cover {
    position:   absolute;
    top:        0;
    left:       0;
    width:      100%;
    height:     100%;
    object-fit: cover;}

.ph-card-content {
    padding: 20px !important;
    flex:    1;
    display: flex;
    flex-direction: column;}

.ph-card-category {
    font-size:     0.75rem;
    font-weight:   700;
    color:         var(--ph-accent) !important;
    text-transform: uppercase;
    margin-bottom: 8px !important;}

.ph-card-title {
    font-family:   var(--ph-font-heading);
    font-size:     1.1rem;
    font-weight:   700;
    margin:        0 0 8px !important;
    color:         var(--ph-text) !important;
    line-height:   1.3;}

.ph-card-author {
    font-size:     0.85rem;
    color:         var(--ph-text-muted) !important;
    margin-top:    auto !important;
    display:       flex;
    justify-content: space-between;
    align-items:   center;}

.ph-badge-explicit {
    background:    #fee2e2 !important;
    color:         #b91c1c !important;
    font-size:     0.65rem;
    font-weight:   700;
    padding:       2px 6px !important;
    border-radius: 4px;}/* ── Single Podcast Page ────────────────────────────────── */


.ph-podcast-hero {
    background: var(--ph-surface) !important;
    border:     1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    padding:    40px !important;
    display:    grid;
    grid-template-columns: 240px 1fr;
    gap:        40px;
    box-shadow: var(--ph-shadow);
    margin-bottom: 40px !important;}

@media (max-width: 768px) {
    .ph-podcast-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ph-podcast-hero-cover {
        margin: 0 auto;
    }
}

.ph-podcast-hero-cover {
    width:         240px;
    height:        240px;
    border-radius: var(--ph-radius);
    object-fit:    cover;
    box-shadow:    var(--ph-shadow-lg);}

.ph-podcast-hero-content {
    display: flex;
    flex-direction: column;}

.ph-podcast-title {
    font-family: var(--ph-font-heading);
    font-size:   2.5rem;
    font-weight: 800;
    margin:      0 0 12px !important;
    color:       var(--ph-text) !important;}

.ph-podcast-meta-row {
    display:   flex;
    flex-wrap: wrap;
    gap:       16px;
    align-items: center;
    margin-bottom: 20px !important;}

.ph-podcast-author {
    font-weight: 600;}

.ph-pill {
    background:    var(--ph-surface-2) !important;
    color:         var(--ph-text-muted) !important;
    font-size:     0.85rem;
    padding:       4px 12px !important;
    border-radius: 20px;}

.ph-podcast-desc {
    font-size:  1.05rem;
    color:      var(--ph-text-muted) !important;
    margin:     0 0 24px !important;
    line-height:1.6;}

.ph-podcast-actions {
    display:     flex;
    gap:         16px;
    margin-top:  auto !important;}

.ph-btn-follow {
    display:    inline-flex;
    align-items:center;
    gap:        8px;}/* ── Single Episode & Custom Player ─────────────────────── */


.ph-episode-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap:     40px;}

@media (max-width: 1024px) {
    .ph-episode-layout {
        grid-template-columns: 1fr;
    }
}

.ph-episode-main {}

.ph-episode-sidebar {}/* Custom Player Container */


.ph-player-card {
    background:    linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
    border-radius: var(--ph-radius);
    padding:       32px !important;
    color:         #fff !important;
    box-shadow:    var(--ph-shadow-lg);
    margin-bottom: 32px !important;
    position:      relative;
    overflow:      hidden;}

.ph-player-card--video-meta {
    padding: 20px 28px !important;
    margin-top: -8px !important;}

/* Decorative ambient blobs */
.ph-player-blob {
    position:      absolute;
    border-radius: 50%;
    pointer-events:none;
    filter:        blur(48px);
    opacity:       0.18;}

.ph-player-blob--1 {
    width:      220px;
    height:     220px;
    background: #6366f1;
    top:        -60px;
    right:      -60px;}

.ph-player-blob--2 {
    width:      160px;
    height:     160px;
    background: #818cf8;
    bottom:     -40px;
    left:       -40px;}

.ph-player-title {
    font-family:   var(--ph-font-heading);
    font-size:     1.5rem;
    font-weight:   800;
    margin:        0 0 6px !important;}

.ph-player-subtitle {
    color:         #c7d2fe !important;
    font-size:     0.95rem;
    margin:        0 0 24px !important;}

.ph-player-controls {
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             24px;
    margin-bottom:   24px !important;}

.ph-btn-player {
    background:      none !important;
    border:          none;
    color:           #c7d2fe !important;
    font-size:       1.5rem;
    cursor:          pointer;
    transition:      color 0.2s, transform 0.1s ease;}

.ph-btn-player:hover {
    color: #fff !important;
    transform: scale(1.1);}

.ph-btn-player--play {
    width:           56px;
    height:          56px;
    background:      #fff !important;
    color:           #312e81 !important;
    border-radius:   50%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       1.3rem;
    box-shadow:      0 8px 16px rgba(0,0,0,0.2);
    transition:      transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;}

.ph-btn-player--play:hover {
    color:           #312e81 !important;
    transform:       scale(1.08);
    box-shadow:      0 10px 20px rgba(255, 255, 255, 0.35) !important;}

.ph-btn-player--skip {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    width:           44px;
    height:          44px;
    border-radius:   50%;
    background:      rgba(255,255,255,0.08) !important;
    color:           #c7d2fe !important;
    line-height:     1;
    transition:      background 0.2s ease, transform 0.15s ease;}

.ph-btn-player--skip:hover {
    background:  rgba(255,255,255,0.18) !important;
    color:       #fff !important;
    transform:   scale(1.1);}

.ph-player-progress-bar {
    display:     flex;
    align-items: center;
    gap:         12px;
    margin-bottom: 24px !important;}

.ph-player-time {
    font-size: 0.8rem;
    color:     #c7d2fe !important;
    width:     45px;}

.ph-player-slider-wrap {
    flex:     1;
    position: relative;
    height:   4px;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 3px;
    cursor:   pointer;
    transition: height 0.2s ease;}

.ph-player-slider-wrap:hover {
    height: 6px;}

.ph-player-slider-fill {
    height:   100%;
    background: var(--ph-accent) !important;
    border-radius: 3px;
    width:    0%;}

.ph-player-knob {
    position:  absolute;
    top:       50%;
    left:      0%;
    width:     12px;
    height:    12px;
    background:#fff !important;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;}

.ph-player-slider-wrap:hover .ph-player-knob {
    transform: translate(-50%, -50%) scale(1.35);}

.ph-player-slider-wrap.is-dragging {
    height:  7px;
    cursor:  grabbing;}

.ph-player-slider-wrap.is-dragging .ph-player-knob {
    transform: translate(-50%, -50%) scale(1.6);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.18), 0 2px 6px rgba(0,0,0,0.4);}

.ph-player-slider-wrap,
.ph-player-volume-slider {
    user-select: none;
    -webkit-user-select: none;}

.ph-player-meta-row {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    border-top:      1px solid rgba(255,255,255,0.1);
    padding-top:     20px !important;}

.ph-player-volume-wrap {
    display:     flex;
    align-items: center;
    gap:         8px;
    color:       #c7d2fe !important;}

.ph-player-volume-slider {
    width:   80px;
    height:  4px;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 2px;
    cursor:  pointer;
    position: relative;
    transition: height 0.2s ease;}

.ph-player-volume-wrap:hover .ph-player-volume-slider {
    height: 6px;}

.ph-player-volume-fill {
    height: 100%;
    background: #fff !important;
    width: 80%;
    border-radius: 2px;}

.ph-player-speed {
    background: rgba(255,255,255,0.1) !important;
    border:     none;
    color:      #fff !important;
    padding:    6px 12px !important;
    border-radius: 20px;
    font-size:  0.85rem;
    font-weight:600;
    cursor:     pointer;
    transition: background 0.2s ease, transform 0.1s ease;}

.ph-player-speed:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: scale(1.05);}/* Accordion for transcript */


.ph-accordion {
    border:        1px solid var(--ph-border);
    background:    var(--ph-surface) !important;
    border-radius: var(--ph-radius-sm);
    margin-bottom: 24px !important;
    overflow:      hidden;}

.ph-accordion-header {
    padding:         18px 24px !important;
    background:      var(--ph-surface) !important;
    font-weight:     700;
    cursor:          pointer;
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    user-select:     none;}

.ph-accordion-content {
    padding:      0 24px 24px !important;
    color:        var(--ph-text-muted) !important;
    display:      none;
    line-height:  1.6;}/* Comments and Star rating styling */


.ph-reviews-box {
    margin-top: 40px !important;}

.ph-rating-stars {
    display:        inline-flex;
    flex-direction: row-reverse;
    gap:            4px;}

.ph-rating-stars input[type="radio"] {
    display: none;}

.ph-rating-stars label {
    font-size: 1.2rem;
    color:     #cbd5e1 !important;
    cursor:    pointer;
    transition: color 0.1s;}

.ph-rating-stars label:hover,
.ph-rating-stars label:hover ~ label,
.ph-rating-stars input[type="radio"]:checked ~ label {/* Golden Yellow */
    color: #f59e0b !important;}

.ph-comments-list {
    list-style: none;
    padding:    0 !important;
    margin:     24px 0 0 !important;
    display:    flex;
    flex-direction: column;
    gap:        20px;}

.ph-comment {
    background:    var(--ph-surface) !important;
    border:        1px solid var(--ph-border);
    border-radius: var(--ph-radius-sm);
    padding:       20px !important;}

.ph-comment-meta {
    display:       flex;
    align-items:   center;
    gap:           12px;
    margin-bottom: 8px !important;}

.ph-comment-meta strong {
    color: var(--ph-text) !important;}

.ph-comment-date {
    font-size: 0.8rem;
    color:     var(--ph-text-muted) !important;}

.ph-comment-rating {
    margin-left: auto !important;
    color:       #f59e0b !important;}

.ph-comment-content p {
    margin: 0 !important;
    color:  var(--ph-text) !important;}

.ph-comment-form {
    background:    var(--ph-surface) !important;
    border:        1px solid var(--ph-border);
    border-radius: var(--ph-radius-sm);
    padding:       24px !important;
    margin-top:    32px !important;}/* Custom golden stars in comments list */


.ph-star--filled {
    color: #f59e0b !important;}
.ph-star--empty {
    color: #e2e8f0 !important;}/* ── Creator Profile ────────────────────────────────────── */


.ph-creator-hero {
    background:    var(--ph-surface) !important;
    border:        1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    padding:       40px !important;
    text-align:    center;
    box-shadow:    var(--ph-shadow);
    margin-bottom: 40px !important;}

.ph-creator-avatar {
    width:         96px;
    height:        96px;
    border-radius: 50%;
    border:        3px solid var(--ph-accent);
    margin-bottom: 16px !important;}

.ph-creator-name {
    font-family: var(--ph-font-heading);
    font-size:   2rem;
    font-weight: 800;
    margin:      0 0 6px !important;
    color:       var(--ph-text) !important;}

.ph-creator-joined {
    font-size: 0.85rem;
    color:     var(--ph-text-muted) !important;
    margin-bottom: 16px !important;}

.ph-creator-bio {
    max-width: 600px;
    margin:    0 auto 24px !important;
    color:     var(--ph-text-muted) !important;
    line-height: 1.6;}/* Sidebar Nav Icons (Dashicons integration) */


.ph-sidebar-nav li a .ph-nav-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--ph-text-muted) !important;
    transition: color 0.2s;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;}

.ph-sidebar-nav li:hover a .ph-nav-icon {
    color: var(--ph-text) !important;}

.ph-sidebar-nav li.is-active a .ph-nav-icon {
    color: #fff !important;}/* ── ph-btn-action--warn ────────────────────────────────────────── */


.ph-btn-action--warn {
    color: var(--ph-warning, #d97706) !important;
    border-color: var(--ph-warning, #d97706);}
.ph-btn-action--warn:hover {
    background: rgba(217,119,6,.08) !important;}/* ╔═══════════════════════════════════════════════════════════════╗
   ║  TALK SECTION STYLES                                          ║
   ╚═══════════════════════════════════════════════════════════════╝ */



.ph-talk-page {
    max-width: 900px;
    margin: 0 auto !important;
    padding: 40px 20px 80px !important;
    width: 100%;}/* Header bar */


.ph-talk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px !important;
    flex-wrap: wrap;}
.ph-talk-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ph-text) !important;
    margin: 0 0 4px !important;}
.ph-talk-header p {
    color: var(--ph-text-muted) !important;
    margin: 0 !important;
    font-size: 0.9rem;}/* Category tabs */


.ph-talk-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px !important;}
.ph-talk-cat-tab {
    display: inline-block;
    padding: 6px 16px !important;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ph-text-muted) !important;
    border: 1.5px solid var(--ph-border);
    text-decoration: none;
    transition: all .18s;
    background: #fff !important;}
.ph-talk-cat-tab:hover {
    color: var(--ph-accent) !important;
    border-color: var(--ph-accent);}
.ph-talk-cat-tab.is-active {
    background: var(--ph-accent) !important;
    color: #fff !important;
    border-color: var(--ph-accent);}/* Category badges (on cards) */


.ph-talk-cat-badge {
    display: inline-block;
    padding: 3px 10px !important;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: #e0e7ff !important;
    color: #4338ca !important;}
.ph-talk-cat-badge--feedback      { background:#fef3c7 !important; color:#92400e !important;}
.ph-talk-cat-badge--announcements { background:#dcfce7 !important; color:#166534 !important;}
.ph-talk-cat-badge--show-discussion { background:#fce7f3 !important; color:#9d174d !important;}

.ph-talk-date {
    font-size: 0.78rem;
    color: var(--ph-text-muted) !important;}/* Thread card */


.ph-talk-list {
    display: flex;
    flex-direction: column;
    gap: 16px;}
.ph-talk-card {
    background: #fff !important;
    border: 1.5px solid var(--ph-border);
    border-radius: var(--ph-radius, 12px);
    padding: 20px 20px 16px !important;
    position: relative;
    transition: border-color .18s, box-shadow .18s;}
.ph-talk-card:hover {
    border-color: var(--ph-accent);
    box-shadow: 0 4px 16px rgba(99,102,241,.08);}
.ph-talk-card__body { flex: 1;}
.ph-talk-card__meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px !important;}
.ph-talk-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px !important;
    line-height: 1.35;}
.ph-talk-card__title a {
    color: var(--ph-text) !important;
    text-decoration: none;
    transition: color .15s;}
.ph-talk-card__title a:hover { color: var(--ph-accent) !important;}
.ph-talk-card__excerpt {
    font-size: 0.88rem;
    color: var(--ph-text-muted) !important;
    margin: 0 0 14px !important;
    line-height: 1.5;}
.ph-talk-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--ph-text-muted) !important;}
.ph-talk-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--ph-text) !important;}
.ph-talk-avatar {
    border-radius: 50%;
    display: block;}
.ph-talk-card__counts .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    margin-right: 2px !important;}/* Delete button on card */


.ph-talk-card .ph-talk-delete-thread,
.ph-talk-card .ph-talk-delete-reply {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 4px !important;
    opacity: 0;
    transition: opacity .15s;}
.ph-talk-card:hover .ph-talk-delete-thread { opacity: 1;}/* Pinned badge */


.ph-talk-pinned {
    position: absolute;
    top: 14px;
    left: 14px;
    color: var(--ph-accent) !important;
    font-size: 1rem;}/* ── Modal ─────────────────────────────────────────────────────── */


.ph-talk-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;}
.ph-talk-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.45) !important;
    backdrop-filter: blur(4px);}
.ph-talk-modal__panel {
    position: relative;
    background: #fff !important;
    border-radius: 16px;
    padding: 32px !important;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    z-index: 1;
    animation: phModalIn .2s ease;}
@keyframes phModalIn {
    from { opacity:0; transform: translateY(-16px) scale(.97);}
    to   { opacity:1; transform: translateY(0)      scale(1);}
}
.ph-talk-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px !important;}
.ph-talk-modal__header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 !important;}
.ph-talk-modal__close {
    background: none !important;
    border: none;
    cursor: pointer;
    color: var(--ph-text-muted) !important;
    padding: 4px !important;
    line-height: 1;
    transition: color .15s;}
.ph-talk-modal__close:hover { color: var(--ph-danger, #ef4444) !important;}
.ph-talk-modal__close .dashicons { font-size: 1.4rem;}/* ── Single Thread View ────────────────────────────────────────── */


.ph-talk-thread-view { padding-top: 8px !important;}
.ph-talk-breadcrumb { margin-bottom: 20px !important;}
.ph-talk-breadcrumb a {
    color: var(--ph-accent) !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;}
.ph-talk-breadcrumb a:hover { text-decoration: underline;}
.ph-talk-thread-post {
    background: #fff !important;
    border: 1.5px solid var(--ph-border);
    border-radius: var(--ph-radius, 12px);
    padding: 28px !important;
    margin-bottom: 32px !important;}
.ph-talk-thread-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 16px !important;
    color: var(--ph-text) !important;}
.ph-talk-thread-body p {
    color: var(--ph-text) !important;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 !important;
    white-space: pre-wrap;}/* Replies */


.ph-talk-replies-wrap { margin-top: 4px !important;}
.ph-talk-replies-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ph-text-muted) !important;
    margin: 0 0 16px !important;
    display: flex;
    align-items: center;
    gap: 6px;}
.ph-talk-replies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px !important;}
.ph-talk-reply {
    background: #fff !important;
    border: 1.5px solid var(--ph-border);
    border-radius: var(--ph-radius, 12px);
    padding: 18px 20px !important;
    position: relative;}
.ph-talk-reply__author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px !important;}
.ph-talk-reply__author strong {
    font-size: 0.9rem;
    color: var(--ph-text) !important;
    display: block;
    margin-bottom: 2px !important;}
.ph-talk-reply__body p {
    margin: 0 !important;
    color: var(--ph-text) !important;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;}
.ph-talk-reply .ph-talk-delete-reply {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none !important;
    border: none;
    cursor: pointer;
    color: var(--ph-danger, #ef4444) !important;
    opacity: 0;
    transition: opacity .15s;
    padding: 4px !important;}
.ph-talk-reply:hover .ph-talk-delete-reply { opacity: 1;}/* Reply form */


.ph-talk-reply-form {
    background: #f8fafc !important;
    border: 1.5px solid var(--ph-border);
    border-radius: var(--ph-radius, 12px);
    padding: 24px !important;
    margin-top: 24px !important;}
.ph-talk-reply-form h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ph-text) !important;
    margin: 0 0 16px !important;}/* Login prompt */


.ph-talk-login-prompt {
    background: #f8fafc !important;
    border: 1.5px solid var(--ph-border);
    border-radius: var(--ph-radius, 12px);
    padding: 20px 24px !important;
    margin-top: 24px !important;
    color: var(--ph-text-muted) !important;
    font-size: 0.9rem;}
.ph-talk-login-prompt a {
    color: var(--ph-accent) !important;
    font-weight: 600;
    text-decoration: none;}
.ph-talk-login-prompt a:hover { text-decoration: underline;}