* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-surface: #1e1e1e;
    --bg-surface-hover: #2a2a2a;
    --bg-talk-bar: #252525;
    --bg-talk-bar-hover: #2d2d2d;
    --bg-comment-bar: #252525;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: #333333;
    --border-light: #2a2a2a;
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-muted: rgba(99, 102, 241, 0.1);
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --nav-bg: #0f0f0f;
    --nav-border: #222222;
    
    --shadow-color: rgba(0, 0, 0, 0.3);
    --modal-overlay: rgba(0, 0, 0, 0.7);
    
    --background: var(--bg-primary);
    --surface: var(--bg-surface);
    --text: var(--text-primary);
    
    --tier-0: #64748b;
    --tier-1: #3b82f6;
    --tier-2: #0ea5e9;
    --tier-3: #06b6d4;
    --tier-4: #14b8a6;
    --tier-5: #10b981;
    --tier-6: #22c55e;
    --tier-7: #84cc16;
    --tier-8: #a3e635;
    --tier-9: #facc15;
    --tier-10: #fbbf24;
    --tier-11: #f59e0b;
    --tier-12: #fb923c;
    --tier-13: #f97316;
    --tier-14: #ef4444;
    --tier-15: #dc2626;
    --tier-16: #b91c1c;
    --tier-17: #991b1b;
    --tier-18: #7f1d1d;
    --tier-19: #450a0a;
}

.tier-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.tier-badge.tier-0 { background: linear-gradient(135deg, var(--tier-0), #475569); }
.tier-badge.tier-1 { background: linear-gradient(135deg, var(--tier-1), #2563eb); }
.tier-badge.tier-2 { background: linear-gradient(135deg, var(--tier-2), #0284c7); }
.tier-badge.tier-3 { background: linear-gradient(135deg, var(--tier-3), #0891b2); }
.tier-badge.tier-4 { background: linear-gradient(135deg, var(--tier-4), #0d9488); }
.tier-badge.tier-5 { background: linear-gradient(135deg, var(--tier-5), #059669); }
.tier-badge.tier-6 { background: linear-gradient(135deg, var(--tier-6), #16a34a); }
.tier-badge.tier-7 { background: linear-gradient(135deg, var(--tier-7), #65a30d); color: #1a1a1a; text-shadow: none; }
.tier-badge.tier-8 { background: linear-gradient(135deg, var(--tier-8), #84cc16); color: #1a1a1a; text-shadow: none; }
.tier-badge.tier-9 { background: linear-gradient(135deg, var(--tier-9), #eab308); color: #1a1a1a; text-shadow: none; }
.tier-badge.tier-10 { background: linear-gradient(135deg, var(--tier-10), #f59e0b); color: #1a1a1a; text-shadow: none; }
.tier-badge.tier-11 { background: linear-gradient(135deg, var(--tier-11), #d97706); }
.tier-badge.tier-12 { background: linear-gradient(135deg, var(--tier-12), #ea580c); }
.tier-badge.tier-13 { background: linear-gradient(135deg, var(--tier-13), #dc2626); }
.tier-badge.tier-14 { background: linear-gradient(135deg, var(--tier-14), #b91c1c); }
.tier-badge.tier-15 { background: linear-gradient(135deg, var(--tier-15), #991b1b); }
.tier-badge.tier-16 { background: linear-gradient(135deg, var(--tier-16), #7f1d1d); }
.tier-badge.tier-17 { background: linear-gradient(135deg, var(--tier-17), #450a0a); }
.tier-badge.tier-18 { background: linear-gradient(135deg, var(--tier-18), #450a0a); }
.tier-badge.tier-19 { background: linear-gradient(135deg, var(--tier-19), #1c1917); color: #fef2f2; }

.username-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.username-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.expiration {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.expiration-warning {
    color: var(--error);
    font-weight: 600;
}

.permanent {
    color: var(--success);
    font-weight: 600;
    font-size: 0.9em;
}

.private-indicator {
    color: var(--warning);
    font-size: 0.9em;
}

.only-me-indicator {
    color: var(--info);
    font-size: 0.9em;
}

.paid-indicator {
    color: var(--success);
    font-weight: 600;
    font-size: 0.9em;
}

.talk-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
}

.talk-category {
    color: var(--text-secondary);
}

.talk-category .subcategory {
    color: var(--text-muted);
}

.talk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.talk-tag {
    background: var(--primary-muted);
    color: var(--primary);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    color: var(--text-primary);
}

header {
    background: var(--nav-bg, var(--bg-primary));
    border-bottom: 1px solid var(--nav-border, var(--border));
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

main {
    flex: 1;
    padding: 2rem 1rem;
}

footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-account {
    display: inline-block;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-account:hover {
    background: var(--border);
    transform: translateY(-2px);
}

.create-feed-form, .feed-created {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.create-feed-form h2 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="url"],
.input-title, .input-name, .input-username {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-surface);
    color: var(--text-primary);
}

select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: inherit;
}

select option {
    background: var(--bg-surface);
    color: var(--text-primary);
}

input[type="text"]:focus, .input-title:focus, .input-name:focus, .input-username:focus {
    outline: none;
    border-color: var(--primary);
}

button {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-record, .btn-create, .btn-submit {
    background: var(--primary);
    color: white;
}

.btn-record:hover, .btn-create:hover, .btn-submit:hover {
    background: var(--primary-hover);
}

.btn-create:disabled, .btn-submit:disabled {
    background: var(--secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-stop, .btn-discard, .btn-cancel {
    background: var(--error);
    color: white;
    margin-left: 0.5rem;
}

.btn-record-more {
    background: var(--secondary);
    color: white;
    margin-right: 0.5rem;
}

.recording-active {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.recording-indicator {
    color: var(--error);
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.recorded-audios {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--error);
}

.creating-feed {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feed-url {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.url-display {
    flex: 1;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-copy {
    background: var(--secondary);
    color: white;
}

.btn-view-feed {
    display: inline-block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.how-it-works {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

.how-it-works ol {
    margin-left: 1.5rem;
}

.how-it-works li {
    margin-bottom: 0.5rem;
}

.feed-header {
    margin-bottom: 1rem;
}

.filter-group-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--bg-surface);
    border-radius: 8px;
}

.filter-group-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.filter-group-tab:hover {
    border-color: var(--group-color, var(--primary));
    color: var(--group-color, var(--primary));
}

.filter-group-tab.active {
    background: var(--group-color, var(--primary));
    border-color: var(--group-color, var(--primary));
    color: white;
}

.btn-back {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1rem;
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    cursor: pointer;
}

.btn-back:hover {
    color: var(--primary);
}

.feed-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feed-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.separator {
    margin: 0 0.5rem;
}

.feed-audio {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.original-audio {
    margin-bottom: 1rem;
}

.audio-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.audio-player {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-play, .btn-stop {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

audio {
    display: none;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-buffered {
    position: absolute;
    height: 100%;
    background: var(--text-secondary);
    border-radius: 3px;
    opacity: 0.2;
    transition: width 0.15s ease-out;
}

.progress-played {
    position: absolute;
    height: 100%;
    background: #93c5fd;
    border-radius: 3px;
    opacity: 0.5;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 10;
}

.progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.progress-bar:hover .progress-handle {
    transform: translate(-50%, -50%) scale(1.1);
}

.time-display {
    font-size: 0.875rem;
    color: var(--text-secondary);
    min-width: 80px;
}

.audio-player.buffering .btn-play {
    opacity: 0.7;
}

.loading-spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.audio-error {
    font-size: 0.75rem;
    color: var(--error, #ef4444);
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
}

.blocked-message {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error, #ef4444);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.btn-comment-main {
    width: 100%;
    background: var(--primary);
    color: white;
    margin-top: 1rem;
}

.main-comment-form {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.comment-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.comment-input .input-username {
    flex: 1;
    min-width: 200px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.comments-section h2 {
    margin: 0;
}

.btn-filter {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-filter:hover {
    background: var(--border);
}

.filter-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-panel h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
    width: 100%;
    margin-top: 0.5rem;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-apply-filter {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-apply-filter:hover {
    background: var(--primary-hover);
}

.btn-clear-filter {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.no-comments {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.comment-item {
    background: var(--bg-comment-bar);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: opacity 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.comment-item.comment-active {
    border: 2px solid var(--primary);
    background: var(--bg-surface);
    opacity: 1 !important;
}

.comment-item.comment-in-chain {
    background: rgba(var(--primary-rgb, 59, 130, 246), 0.05);
    opacity: 1 !important;
}

.comment-item.comment-descendant {
    background: rgba(var(--primary-rgb, 59, 130, 246), 0.08);
}

.comment-item.comment-in-chain .comment-actions {
    opacity: 0;
    pointer-events: none;
}

.comment-item.comment-faded {
    opacity: 0.5;
}

.comment-item.comment-faded .comment-actions {
    opacity: 0;
    pointer-events: none;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.audio-number {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.comment-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.comment-actions-header {
    display: none;
    align-items: center;
    gap: 0.25rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-comment-bar);
    padding-left: 0.5rem;
}

.comment-item:hover .comment-info {
    opacity: 0;
    pointer-events: none;
}

.comment-item:hover .comment-actions-header {
    display: flex;
}

.comment-actions-header button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
}

.comment-actions-header button:hover {
    background: var(--bg-secondary);
}

.comment-profile-pic-link {
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.comment-profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-profile-pic-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 600;
}

.creator-badge {
    color: var(--primary);
}

.user-id {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.comment-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.comment-audio {
    margin-bottom: 0;
}

.comment-item.deleted-comment {
    opacity: 0.5 !important;
}

.comment-item.deleted-comment .comment-actions-header {
    display: none !important;
}

.btn-reply {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reply:hover {
    background: var(--border);
}

.reply-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.reply-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.guest-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.guest-id {
    font-family: monospace;
}

.replies {
    margin-top: 1rem;
}

.loading-container, .not-found {
    text-align: center;
    padding: 4rem 1rem;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.loading-spinner {
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.btn-home {
    display: inline-block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.audio-number {
    display: inline-block;
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.audio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.audio-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-share {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-share:hover {
    background: var(--border);
}

.btn-like {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-like:hover {
    background: #fef3c7;
    border-color: #fbbf24;
    transform: scale(1.05);
}

.highlighted {
    animation: highlight-pulse 3s ease-in-out;
    border: 6px solid #2563eb !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%) !important;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.8), 0 10px 25px rgba(37, 99, 235, 0.3) !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

@keyframes highlight-pulse {
    0%, 100% { 
        background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.8), 0 10px 25px rgba(37, 99, 235, 0.3);
        border-color: #2563eb;
        transform: scale(1.02);
    }
    50% { 
        background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
        box-shadow: 0 0 50px rgba(29, 78, 216, 1), 0 15px 35px rgba(29, 78, 216, 0.4);
        border-color: #1d4ed8;
        transform: scale(1.03);
    }
}

.btn-delete-feed, .btn-delete-comment {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-delete-feed:hover, .btn-delete-comment:hover {
    background: rgba(239, 68, 68, 0.3);
}

.btn-export, .btn-import {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--info);
    color: var(--info);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-export:hover, .btn-import:hover {
    background: rgba(59, 130, 246, 0.3);
}

.btn-export:disabled, .btn-import:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-settings {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-settings:hover {
    background: rgba(99, 102, 241, 0.3);
}

.btn-favorite {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
    line-height: 1;
}

.btn-favorite:hover {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.btn-favorite.favorited {
    color: #ffd700;
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
}

.btn-favorite:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay, rgba(0, 0, 0, 0.5));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 60px var(--shadow-color, rgba(0, 0, 0, 0.5));
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--text-primary);
}

.settings-modal {
    max-width: 500px;
}

.settings-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.settings-modal .modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0.25rem;
}

.btn-close-modal:hover {
    color: var(--text-primary);
}

.settings-modal .modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.settings-group {
    margin-bottom: 1.25rem;
}

.settings-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.settings-group.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.settings-group.checkbox-group input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.settings-group .input-text,
.settings-group .input-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
}

.settings-group .input-text:focus,
.settings-group .input-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.settings-group .hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.settings-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.settings-modal .btn-cancel {
    background: var(--bg-surface-hover);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.settings-modal .btn-cancel:hover {
    background: var(--border);
}

.settings-modal .btn-save {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.settings-modal .btn-save:hover:not(:disabled) {
    background: var(--primary-dark);
}

.settings-modal .btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.settings-modal .loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
    animation: none;
    padding: 2rem;
    color: var(--text-muted);
    margin: 0 auto;
}

.settings-modal .loading-spinner::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.settings-region {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.settings-region-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.settings-region .settings-group:last-child {
    margin-bottom: 0;
}

.btn-report {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--warning);
    color: var(--warning);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-report:hover {
    background: rgba(245, 158, 11, 0.3);
}

.report-reason-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    margin: 1rem 0;
}

.btn-submit-report {
    background: var(--error);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-submit-report:hover:not(:disabled) {
    background: #b91c1c;
}

.btn-submit-report:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-message {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
}

.feed-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-auto-play {
    background: var(--success);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-auto-play:hover {
    background: #15803d;
    transform: translateY(-2px);
}

.account-page {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
}

.auth-forms {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 2rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form {
    margin-top: 1rem;
}

.input-text {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--bg-surface);
    color: var(--text-primary);
}

.input-text:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-logout {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-logout:hover {
    background: #b91c1c;
}

.account-info {
    text-align: center;
}

.user-details {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

.tag-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag-input-container input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
}

.tags-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-chip {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.8;
}

.tag-remove:hover {
    opacity: 1;
}

.category-selects .category-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-selects select {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--bg-primary);
}

.privacy-options {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}

.privacy-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.privacy-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.privacy-option:hover {
    background: var(--border);
}

.privacy-option input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.privacy-option .option-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.privacy-option .option-text strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.privacy-option .option-text small {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.paid-content-section {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.paid-options {
    margin-top: 1rem;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.paid-option {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.paid-option label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.input-price {
    width: 100px;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.input-preview,
.input-timeout {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    max-width: 300px;
}

.verify-email-page {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
}

.verifying, .verification-success, .verification-error {
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 3rem 2rem;
}

.verifying h2 {
    margin: 1rem 0 0.5rem 0;
}

.verification-success h1 {
    color: var(--success);
    margin-bottom: 1rem;
}

.verification-error h1 {
    color: var(--error);
    margin-bottom: 1rem;
}

.verification-success p, .verification-error p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .create-feed-form, .feed-created, .main-comment-form {
        padding: 1.5rem;
    }
    
    .comment-input {
        flex-direction: column;
    }
    
    .comment-input .input-username {
        width: 100%;
    }
    
    .audio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.password-prompt {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.password-prompt h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.password-prompt p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.password-form {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 60px var(--shadow-color, rgba(0, 0, 0, 0.5));
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.password-input {
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.password-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-submit-password {
    background: var(--primary);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit-password:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.password-prompt .btn-home {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.password-prompt .btn-home:hover {
    opacity: 0.8;
}

.name-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-change-username {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.btn-change-username:hover {
    transform: scale(1.2);
}

.comment-input .name-input-wrapper {
    width: 100%;
}

.comment-input .name-input-wrapper .input-username {
    flex: 1;
}

.reply-input .name-input-wrapper {
    width: 100%;
}

.reply-input .name-input-wrapper .input-username {
    flex: 1;
}

.deleted-comment {
    background: var(--bg-surface-hover) !important;
    border-color: var(--border) !important;
    opacity: 0.7;
}

.deleted-message {
    padding: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    background: var(--bg-surface-hover);
    border: 1px dashed var(--border);
    border-radius: 8px;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.deleted-icon {
    font-size: 1.2rem;
    opacity: 0.6;
}

.banned-user,
.banned-comment {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: var(--error) !important;
    opacity: 0.8;
}

.banned-comment .comment-header {
    opacity: 0.7;
}

.banned-message {
    padding: 1rem;
    color: var(--error);
    font-weight: 600;
    text-align: center;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--error);
    border-radius: 6px;
    margin: 0.5rem 0;
}

.banned-username {
    color: var(--error);
    font-weight: 600;
}

.logged-in-user {
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.logged-in-user strong {
    color: var(--primary);
}

.deleted-audio {
    opacity: 0.7;
}

.deleted-badge {
    background: var(--error);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.deleted-audio-placeholder {
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-secondary);
    min-height: 44px;
}

.deleted-audio-placeholder .deleted-text {
    font-style: italic;
}

.deleted-audio-placeholder .deleted-info {
    font-size: 0.85rem;
}

.input-invalid {
    border-color: var(--error) !important;
    color: var(--error) !important;
    font-weight: 600 !important;
}

.invalid-ids-message {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.invalid-ids {
    color: var(--error);
    font-weight: 600;
}

.btn-delete-audio {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s;
}

.btn-delete-audio:hover {
    opacity: 1;
    background: rgba(220, 38, 38, 0.1);
}

.feature-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.feature-locked input {
    cursor: not-allowed;
}

.feature-upgrade-hint {
    font-size: 0.75rem;
    color: var(--secondary);
    margin-left: 0.5rem;
    font-weight: 500;
}

.btn-follow {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--primary);
    border-radius: 20px;
    background: transparent;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-follow:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-follow.following {
    background: var(--primary);
    color: white;
}

.btn-follow.following:hover:not(:disabled) {
    background: var(--error);
    border-color: var(--error);
}

.btn-follow.following:hover .follow-text::after {
    content: 'Unfollow';
}

.btn-follow.following:hover .follow-text {
    visibility: hidden;
    position: relative;
}

.btn-follow.following:hover .follow-text::after {
    visibility: visible;
    position: absolute;
    left: 0;
}

.btn-follow:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-follow .spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-follow-small {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 12px;
}

.creator-with-follow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-follow-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.follow-stat {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.follow-stat strong {
    color: var(--text-primary);
    font-weight: 600;
}

.youtube-import-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.btn-youtube {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-youtube:hover {
    background: #cc0000;
}

.youtube-modal {
    max-width: 500px;
}

.youtube-url-input {
    display: flex;
    gap: 0.5rem;
}

.youtube-url-input input {
    flex: 1;
}

.btn-fetch {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-fetch:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.youtube-preview {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-surface);
    border-radius: 8px;
    margin: 1rem 0;
}

.youtube-thumbnail {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
}

.youtube-info {
    flex: 1;
    min-width: 0;
}

.youtube-info .video-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.youtube-info .video-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.5rem;
}

.btn-extract {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-extract:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.paid-content-settings {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    background: var(--bg-surface);
}

.paid-content-settings .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.paid-content-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.paid-option {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.paid-option label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.paid-option input[type="number"],
.paid-option select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.paid-option input[type="number"] {
    width: 120px;
}

.paid-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--warning);
    color: #000;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.paid-badge-locked {
    background: var(--error);
    color: white;
}

/* TalkCard Bar Component - Unified Design */
.talk-card-bar {
    display: flex;
    align-items: stretch;
    height: 60px;
    background: var(--bg-talk-bar);
    border-radius: 30px 12px 12px 30px;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.1s, background 0.2s;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.talk-card-bar:hover {
    background: var(--bg-talk-bar-hover);
    box-shadow: 0 2px 8px var(--shadow-color, rgba(0,0,0,0.15));
    transform: translateY(-1px);
}

.talk-card-bar.expiring-soon {
    box-shadow: 0 0 0 2px var(--warning, #f59e0b);
}

.talk-card-bar.playing {
    box-shadow: 0 0 0 2px var(--primary);
}

.talk-card-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.talk-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.talk-card-avatar .avatar-letter {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.talk-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
}

.talk-card-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.talk-card-bar .talk-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.talk-card-bar .talk-title.untitled {
    color: var(--text-secondary);
    font-style: italic;
}

.talk-card-bar .talk-creator {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.talk-card-bar .tier-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    background: var(--primary-muted);
    color: var(--primary);
    font-weight: 600;
}

.talk-card-bottom {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.talk-card-bar .badge {
    font-size: 0.7rem;
}

.talk-card-bar .badge-private {
    color: var(--warning, #f59e0b);
}

.talk-card-bar .badge-invite {
    color: var(--accent, #9333ea);
}

.talk-card-bar .badge-password {
    color: var(--text-secondary);
}

.talk-card-bar .category-badge {
    background: var(--accent-light, rgba(147, 51, 234, 0.1));
    color: var(--accent, #9333ea);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

.talk-card-bar .tag-badge {
    background: var(--bg-surface-hover);
    color: var(--text-secondary);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.65rem;
}

.talk-card-bar .stat {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.talk-card-bar .talk-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.talk-card-bar .talk-expires {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.talk-card-bar .talk-expires.expiring-soon {
    color: var(--warning, #f59e0b);
    font-weight: 500;
}

.talk-card-bar .talk-permanent {
    font-size: 0.7rem;
}

.talk-card-audio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem;
    background: var(--bg-surface-hover);
    border-left: 1px solid var(--border);
}

.talk-card-bar .btn-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.talk-card-bar .btn-play:hover {
    background: var(--primary-hover);
    transform: scale(1.08);
}

.talk-card-bar .btn-play.playing {
    background: var(--success, #22c55e);
}

.talk-card-bar .audio-duration {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 35px;
    text-align: center;
}

.talk-card-bar .no-audio {
    font-size: 1.2rem;
    opacity: 0.5;
}

/* When no audio section, adjust border-radius */
.talk-card-bar:not(:has(.talk-card-audio)) {
    border-radius: 30px 12px 12px 30px;
}

.talk-card-bar:not(:has(.talk-card-audio)) .talk-card-content {
    padding-right: 1rem;
}

.talk-card .shared-by {
    font-weight: 500;
}

/* Notification Styles */
.page-header.centered {
    text-align: center;
    margin-bottom: 1.5rem;
}

.page-header.centered h1 {
    margin: 0;
    font-size: 1.5rem;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notification-item:hover {
    border-color: var(--primary);
    background: var(--bg-surface-hover);
}

.notification-item.unread {
    border-left: 3px solid var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-hover);
    border-radius: 50%;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.notification-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-actions {
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.notification-item:hover .notification-actions {
    opacity: 1;
}

.unread-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.notifications-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.btn-mark-all-read {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-mark-all-read:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Footer separator */
.footer-separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
}
