@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   AI QUICK READ — IFELDSMART.AI EXACT ACCENT THEME
   ============================================================ */

:root {
    --qr-brand: #faa71a;        /* blog theme golden orange */
    --qr-brand-dark: #f57c00;   /* blog theme deep orange */
    --qr-brand-hover: #e0940f;
    --qr-border: #e2e8f0;
    --qr-text-dark: #0a1128;
    --qr-text-muted: #4b5563;
}

/* === Card Wrapper === */
.quick-read-card {
    position: relative;
    border: 1px solid rgba(250, 167, 26, 0.25);
    border-radius: 16px;
    margin: 2.8rem 0 2.2rem 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
    z-index: 1;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 20px rgba(250, 167, 26, 0.05);
}

.quick-read-card:hover {
    box-shadow: 0 8px 30px rgba(250, 167, 26, 0.1);
    border-color: rgba(250, 167, 26, 0.4);
}

/* === Solid top orange accent bar === */
.quick-read-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--qr-brand) 0%, var(--qr-brand-dark) 100%);
    z-index: 2;
}

/* === Header === */
.quick-read-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 10px 20px;
    background: transparent;
    cursor: pointer;
    user-select: none;
}

.quick-read-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qr-header-sparkle {
    color: var(--qr-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.qr-header-sparkle svg {
    display: block;
    width: 18px;
    height: 18px;
}

.quick-read-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--qr-text-dark);
    letter-spacing: -0.01em;
}

.quick-read-toggle-btn {
    background: none;
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.25s ease;
}

.quick-read-toggle-btn:hover {
    color: var(--qr-text-muted);
}

.quick-read-card.collapsed .chevron-icon {
    transform: rotate(180deg);
}

/* === Content Body === */
.quick-read-content {
    background: #ffffff;
    transition: max-height 0.3s ease-out;
}

.quick-read-inner {
    padding: 0 20px 16px 20px;
}

/* === CTA State === */
.quick-read-cta-state {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: 4px 4px;
    gap: 16px;
    transition: all 0.2s ease;
}

.quick-read-cta-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    text-align: left;
}

.quick-read-cta-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--qr-text-dark);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.cta-highlight-italic {
    color: var(--qr-brand);
    font-style: italic;
    font-weight: 700;
}

.quick-read-cta-subtext {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    color: var(--qr-text-muted);
    line-height: 1.4;
}

/* === Generate AI Summary Button — blog theme golden orange === */
.generate-summary-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #f57c00;
    border: none;
    outline: none;
    border-radius: 9999px;
    padding: 11px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    isolation: isolate;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 0 12px rgba(250, 167, 26, 0.15), 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Rotating conic gradient circle — creates the spinning border */
.generate-summary-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    aspect-ratio: 1;
    background: conic-gradient(#faa71a, #f57c00, #fff8e7, #f57c00, #faa71a);
    border-radius: 50%;
    z-index: -2;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center center;
    animation: rotateGlow 3.5s linear infinite;
    transition: all 0.3s ease;
}

/* White inner mask — reveals only the border ring */
.generate-summary-btn::after {
    content: '';
    position: absolute;
    top: 1.5px;
    left: 1.5px;
    right: 1.5px;
    bottom: 1.5px;
    background: #ffffff;
    border-radius: 9999px;
    z-index: -1;
    transition: background 0.3s ease;
}

@keyframes rotateGlow {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Button Content Container */
.generate-summary-btn-content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    color: inherit;
    transition: color 0.3s ease;
}

.btn-sparkle-icon {
    fill: currentColor;
    width: 14px;
    height: 14px;
    display: inline-block;
    flex-shrink: 0;
    transition: fill 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Hover: lift + glow */
.generate-summary-btn:hover {
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 0 20px rgba(250, 167, 26, 0.45), 0 8px 30px rgba(245, 124, 0, 0.25) !important;
}

/* Hover: fill inner with blog theme golden orange + diagonal shine sweep */
.generate-summary-btn:hover::after {
    background-image:
        linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.4) 45%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.4) 55%, transparent 65%),
        linear-gradient(135deg, #faa71a 0%, #f57c00 50%, #faa71a 100%) !important;
    background-size: 200% 100%, 100% 100% !important;
    animation: shineSweep 2.2s infinite linear !important;
    border-radius: 9999px;
    top: 0; left: 0; right: 0; bottom: 0;
}

/* Pause the border rotation while filled */
.generate-summary-btn:hover::before {
    animation-play-state: paused !important;
}

@keyframes shineSweep {
    0%   { background-position: -150% 0, 0 0; }
    100% { background-position: 250% 0, 0 0; }
}

.generate-summary-btn:hover .generate-summary-btn-content {
    color: #ffffff !important;
}

.generate-summary-btn:hover .btn-sparkle-icon {
    fill: #ffffff !important;
    transform: rotate(180deg);
}

.generate-summary-btn:active {
    transform: translateY(1px) scale(0.96) !important;
    box-shadow: 0 0 10px rgba(250, 167, 26, 0.2) !important;
}

/* === Loading State === */
.quick-read-loading-state {
    padding: 12px 4px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qr-skeleton-line-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qr-skeleton-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.qr-skeleton-bar::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.qr-skeleton-bar.bar-1 { width: 90%; }
.qr-skeleton-bar.bar-2 { width: 75%; }
.qr-skeleton-bar.bar-3 { width: 60%; }

.qr-loading-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--qr-text-muted);
}

.qr-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(227, 111, 29, 0.15);
    border-top-color: var(--qr-brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Dynamic Summary Sparkle List Items === */
.quick-read-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 4px 0 0 0;
    list-style: none;
}

.qr-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.qr-bullet-sparkle {
    color: var(--qr-brand);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 700;
    margin-top: 5px;
    flex-shrink: 0;
}

.qr-bullet-body {
    display: inline;
    font-size: 0.90rem;
    line-height: 1.6;
    font-family: 'Outfit', sans-serif;
}

.qr-bullet-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--qr-text-dark);
    letter-spacing: -0.01em;
}

.qr-bullet-desc {
    color: #334155;
    font-weight: 400;
    font-family: 'Outfit', sans-serif;
}

/* === Ask AI Bar — Rounded Peach Prompt Box === */
.quick-read-ask-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px 16px;
    background: #fffbf7;
    border: 1px solid #ffe8cc;
    border-radius: 12px;
    margin-top: 16px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
}

.quick-read-ask-bar:hover {
    background: #fff7ed;
    border-color: #ffd4a3;
    box-shadow: 0 2px 8px rgba(255, 143, 0, 0.05);
}

.ask-badge-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff0da;
    color: var(--qr-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ask-badge-sparkle {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.ask-ai-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    margin: 0 12px;
    overflow: hidden;
    text-align: left;
}

.ask-ai-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--qr-brand);
    letter-spacing: 0.08em;
    font-family: 'Space Grotesk', sans-serif;
}

.ask-question-prompt {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    color: var(--qr-text-dark);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ask-submit-btn-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--qr-brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ask-submit-btn-circle svg {
    stroke-width: 2.5px;
}

.quick-read-ask-bar:hover .ask-submit-btn-circle {
    background-color: var(--qr-brand-hover);
    transform: translateX(3px);
}

/* === Ask AI Answer Panel Styles === */
.ask-ai-answer-panel {
    border-top: 1px dashed #ffd4a3;
    margin-top: 12px;
    padding-top: 12px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.ask-ai-answer-loading {
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.ask-ai-answer-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #334155;
    font-weight: 400;
    text-align: left;
    margin-bottom: 2px;
}

.ask-ai-answer-cta {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.ask-ai-cta-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(135deg, #faa71a, #f57c00);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(250, 167, 26, 0.15);
}

.ask-ai-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(250, 167, 26, 0.25);
}

@keyframes qr-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === Responsive Overrides === */
@media (max-width: 991px) {
    .quick-read-cta-state {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }

    .quick-read-cta-left {
        justify-content: center;
    }

    .generate-summary-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .quick-read-header {
        padding: 14px 16px 10px 16px;
    }

    .quick-read-inner {
        padding: 0 16px 16px 16px;
    }

    .quick-read-cta-text {
        font-size: 0.82rem;
    }

    .qr-bullet-body {
        font-size: 0.88rem;
    }

    .ask-ai-label {
        font-size: 0.65rem;
    }

    .ask-question-prompt {
        font-size: 0.8rem;
    }
}

@media (min-width: 992px) {
    .blog-content-col {
        margin-top: -10px;
    }
}

@media (max-width: 1024px) {
    .quick-read-card {
        margin: 0px 0 1.5rem 0;
    }
}

/* ============================================================
   READ ALOUD PLAYER — WEB SPEECH INTEGRATION
   ============================================================ */
.read-aloud-mini-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    font-family: 'Outfit', sans-serif;
}

/* Mini Button (Default State) */
.mini-player-button {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #faa71a 0%, #f57c00 100%);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(250, 167, 26, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    border: 2.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
}

.mini-player-button:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 40px rgba(250, 167, 26, 0.5), 0 8px 20px rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
}

.mini-player-button::after {
    content: 'Click to listen to article';
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mini-player-button::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mini-player-button:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.mini-player-button:hover::before {
    opacity: 1;
}

.mini-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-icon {
    color: white;
    position: relative;
    z-index: 2;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

.mini-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.mini-label {
    font-size: 9px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Expanded Player */
.expanded-player {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    border-radius: 26px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 8px 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px) scale(0.92);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    min-width: auto;
    width: fit-content;
    backdrop-filter: blur(20px);
}

.read-aloud-mini-player.expanded .expanded-player {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: all;
}

.read-aloud-mini-player.expanded .mini-player-button {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.read-aloud-mini-player.playing .mini-player-button {
    animation: playingPulse 2s ease-in-out infinite;
}

@keyframes playingPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(250, 167, 26, 0.4); }
    50% { box-shadow: 0 8px 24px rgba(250, 167, 26, 0.6), 0 0 0 8px rgba(250, 167, 26, 0.1); }
}

.player-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Player Buttons */
.player-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    position: relative;
    flex-shrink: 0;
}

.player-btn svg {
    width: 15px;
    height: 15px;
}

.btn-label {
    font-size: 8px;
    font-weight: 800;
    color: #64748b;
    margin-left: 2px;
}

.player-btn:hover {
    background: #e2e8f0;
    transform: scale(1.1);
}

.player-btn:active {
    transform: scale(0.96);
}

/* Play/Pause Button */
.play-pause-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #faa71a 0%, #f57c00 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(250, 167, 26, 0.3);
}

.play-pause-btn svg {
    width: 16px;
    height: 16px;
}

.play-pause-btn:hover {
    background: linear-gradient(135deg, #e0940f 0%, #faa71a 100%);
    box-shadow: 0 7px 20px rgba(250, 167, 26, 0.45);
}

.play-pause-btn .pause-icon {
    display: none !important;
}

.play-pause-btn.playing .play-icon {
    display: none !important;
}

.play-pause-btn.playing .pause-icon {
    display: block !important;
}

/* Skip Buttons */
.skip-btn {
    width: 38px;
    height: 38px;
    position: relative;
    overflow: visible;
}

.skip-btn:active {
    transform: scale(0.92);
}

.skip-btn.skipping {
    animation: skipPulse 0.3s ease;
}

@keyframes skipPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); background: rgba(250, 167, 26, 0.15); }
}

.skip-label {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 8px;
    font-weight: 800;
    color: #64748b;
}

/* Speed Control */
.speed-control-wrapper {
    position: relative;
}

.speed-btn {
    width: 40px;
    height: 34px;
    border-radius: 17px;
}

.speed-value {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
}

.speed-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 80px;
}

.speed-dropdown.active {
    display: flex;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.speed-option {
    padding: 8px 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.speed-option:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.speed-option.active {
    background: rgba(250, 167, 26, 0.1);
    color: #faa71a;
}

/* Voice Control */
.voice-control-wrapper {
    position: relative;
}

.voice-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.voice-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 110px;
    z-index: 1000;
}

.voice-dropdown.active {
    display: flex;
    animation: dropdownFadeIn 0.2s ease;
}

.voice-option {
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-option svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.voice-option:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.voice-option:hover svg {
    opacity: 1;
}

.voice-option.active {
    background: rgba(250, 167, 26, 0.1);
    color: #faa71a;
}

.voice-option.active svg {
    opacity: 1;
    fill: #faa71a;
}

/* Close Button */
.close-player-btn {
    width: 34px;
    height: 34px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
}

.close-player-btn:hover {
    background: rgba(250, 167, 26, 0.1);
    color: #faa71a;
    transform: scale(1.1) rotate(90deg);
}

.close-player-btn:active {
    transform: scale(0.95) rotate(90deg);
}

/* Hidden State */
.read-aloud-mini-player.hidden {
    display: none;
}

/* Text Highlighting - Real-Time Sentence Highlighting */
.reading-highlight {
    background: linear-gradient(120deg, rgba(255, 193, 7, 0.35) 0%, rgba(255, 152, 0, 0.35) 100%);
    padding: 2px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
    animation: highlightPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
    position: relative;
}

@keyframes highlightPulse {
    0%, 100% {
        background: linear-gradient(120deg, rgba(255, 193, 7, 0.35) 0%, rgba(255, 152, 0, 0.35) 100%);
        box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.25);
    }
    50% {
        background: linear-gradient(120deg, rgba(255, 193, 7, 0.45) 0%, rgba(255, 152, 0, 0.45) 100%);
        box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.35);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .read-aloud-mini-player {
        bottom: 20px;
        right: 20px;
    }
    .mini-player-button {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    .mini-icon {
        width: 18px;
        height: 18px;
    }
    .mini-label {
        font-size: 8px;
    }
    .expanded-player {
        min-width: calc(100vw - 80px);
        max-width: 340px;
        right: -20px;
        padding: 6px 12px;
        border-radius: 22px;
    }
    .player-content {
        gap: 6px;
    }
    .player-btn {
        width: 30px;
        height: 30px;
    }
    .player-btn svg {
        width: 13px;
        height: 13px;
    }
    .play-pause-btn {
        width: 36px;
        height: 36px;
    }
    .play-pause-btn svg {
        width: 14px;
        height: 14px;
    }
    .speed-btn {
        width: 36px;
        height: 30px;
    }
    .speed-value {
        font-size: 10px;
    }
    .voice-btn {
        width: 30px;
        height: 30px;
    }
    .close-player-btn {
        width: 30px;
        height: 30px;
    }
}
