/* TDH Narration Player — atmospheric, dark, gothic-leaning */

.tdh-narration {
    margin: 0 0 2rem;
    padding: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #0a0a0c 0%, #15151a 50%, #0a0a0c 100%);
    color: #e8e6e1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(180, 150, 100, 0.12);
    overflow: hidden;
    position: relative;
}

.tdh-narration::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(180, 90, 60, 0.08), transparent 60%);
    pointer-events: none;
}

.tdh-narration__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    position: relative;
}

.tdh-narration__play {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(180, 150, 100, 0.35);
    background: linear-gradient(180deg, #2a2024 0%, #1a1316 100%);
    color: #e8e6e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 0;
}

.tdh-narration__play:hover {
    transform: scale(1.04);
    border-color: rgba(200, 170, 120, 0.6);
    box-shadow: 0 0 18px rgba(200, 130, 80, 0.25);
}

.tdh-narration__play:focus-visible {
    outline: 2px solid rgba(220, 180, 130, 0.8);
    outline-offset: 2px;
}

.tdh-narration__play svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.tdh-narration__icon-pause { display: none; }
.tdh-narration.is-playing .tdh-narration__icon-play { display: none; }
.tdh-narration.is-playing .tdh-narration__icon-pause { display: block; }

.tdh-narration__meta {
    flex: 1 1 auto;
    min-width: 0;
}

.tdh-narration__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(200, 170, 120, 0.85);
    margin-bottom: 0.15rem;
}

.tdh-narration__title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #e8e6e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
}

.tdh-narration__progress {
    cursor: pointer;
}

.tdh-narration__bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.tdh-narration__fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #b0552c 0%, #d8a05a 100%);
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(200, 130, 80, 0.5);
}

.tdh-narration__times {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: rgba(232, 230, 225, 0.55);
    font-variant-numeric: tabular-nums;
}

.tdh-narration__controls {
    flex: 0 0 auto;
}

.tdh-narration__rate {
    background: transparent;
    color: rgba(232, 230, 225, 0.7);
    border: 1px solid rgba(180, 150, 100, 0.25);
    border-radius: 14px;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
    min-width: 44px;
}

.tdh-narration__rate:hover {
    color: #e8e6e1;
    border-color: rgba(200, 170, 120, 0.6);
}

@media (max-width: 480px) {
    .tdh-narration__inner { padding: 0.85rem 1rem; gap: 0.75rem; }
    .tdh-narration__play { width: 44px; height: 44px; }
    .tdh-narration__title { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tdh-narration__play, .tdh-narration__fill { transition: none; }
}
