/*
 * FINAL & COMPLETE Frontend Styles for Sovryn Transcripts Plugin
 */
:root {
    --st-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --st-font-serif: 'Georgia', 'Times New Roman', serif;
    --st-text-color: #333;
    --st-primary-color: #F8B400; /* Sovryn Yellow */
    --st-bg-color: #FFFFFF;
    --st-light-gray: #f7f7f7;
    --st-border-color: #e5e5e5;
    --st-header-height: 70px;
}
.st-container { position: relative; font-family: var(--st-font-sans); color: var(--st-text-color); }
.st-sticky-header { position: sticky; top: 0; z-index: 1000; width: 100%; height: var(--st-header-height); background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--st-border-color); display: flex; align-items: center; padding: 0 24px; }
.st-header-content { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.st-search-wrapper { flex-grow: 1; max-width: 400px; position: relative; }
.st-search-input { width: 100%; padding: 10px 15px; border: 1px solid var(--st-border-color); border-radius: 8px; font-size: 16px; }
.st-search-meta { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #888; display: flex; align-items: center; background: var(--st-bg-color); padding-left: 10px; }
.st-search-nav button { background: none; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; margin-left: 8px; padding: 2px 6px; font-size: 14px; }
.st-search-nav button:hover { background: #eee; }
.st-current-transcript-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 0.3s ease; text-align: right; }
.st-current-transcript-title.visible { opacity: 1; }

/* --- Side Navigation & TOC Tab --- */
.st-side-nav-wrapper { position: fixed; top: 50%; left: 0; transform: translateY(-50%); z-index: 1002; display: flex; flex-direction: column; }
.st-toc-tab { background: var(--st-primary-color); color: var(--st-text-color); border: none; padding: 15px 8px; cursor: pointer; writing-mode: vertical-rl; text-orientation: mixed; font-weight: bold; letter-spacing: 1px; }
.st-side-nav-button { background-color: #e0e0e0; color: #333; border: none; cursor: pointer; padding: 10px 8px; font-size: 12px; }
.st-side-nav-button:first-child { border-radius: 0 8px 0 0; }
.st-side-nav-button:last-child { border-radius: 0 0 8px 0; }
.st-side-nav-button:hover { background-color: #ccc; }
.st-toc-panel { position: fixed; top: 0; left: 0; width: 320px; height: 100vh; z-index: 1001; background: var(--st-bg-color); border-right: 1px solid var(--st-border-color); transform: translateX(-100%); transition: transform 0.3s ease-in-out; padding: 20px; overflow-y: auto; }
.st-toc-panel.is-open { transform: translateX(0); }
.st-toc-panel h3, .st-toc-panel ul, .st-toc-panel li a { /* Styles unchanged */ }

/* --- Main Content --- */
.st-main-content { padding: 40px 24px; max-width: 960px; margin: 0 auto; }
.st-transcript-section { padding-top: var(--st-header-height); margin-top: calc(var(--st-header-height) * -1); margin-bottom: 60px; }
.st-transcript-heading { border-bottom: 2px solid var(--st-border-color); padding-bottom: 15px; margin-bottom: 25px; font-size: 24px; font-weight: 700; }
.st-transcript-heading span { display: block; font-size: 14px; font-weight: 400; color: #777; margin-top: 8px; }
.st-transcript-text p { font-family: var(--st-font-serif); line-height: 1.8; font-size: 18px; margin-bottom: 1em; font-weight: 400; /* Makes text less "skinny" */ }
.st-timestamp { font-family: var(--st-font-sans); font-size: 16px; color: #000; }
mark, .current-match { background-color: #FFDE59; } /* Lighter yellow for better contrast */
.current-match { outline: 2px solid #D63638; }

/* --- Responsive --- */
@media (max-width: 1200px) { .st-current-transcript-title { display: none; } }
@media (max-width: 768px) { .st-header-content { flex-wrap: wrap; } .st-search-wrapper { order: 1; flex-basis: 100%; max-width: none; } .st-main-content { max-width: 100%; } }