/* ============================================================
   FONT SETTINGS
   ============================================================ */
* { font-family: 'Poppins', sans-serif; }

/* ============================================================
   CSS VARIABLES — Light mode (default)
   Dark mode applied via body.dark-mode
   Header/footer are EXCLUDED from dark mode by design
   ============================================================ */
:root {
    --bg-page:        #f0f4f2;
    --bg-col:         #ffffff;
    --bg-right:       #f9f9f9;
    --bg-desc:        #f9f9f9;
    --text-main:      #1e2e2c;
    --text-muted:     #5a7470;
    --text-sub:       #666;
    --border-col:     #e2ebe8;
    --sermon-bg:      #ffffff;
    --sermon-hover:   0 6px 24px rgba(76,114,108,0.13);
    --progress-track: #e5e7eb;
    --right-col-head: #4c726c;
    --card-shadow:    0 2px 12px rgba(76,114,108,0.07);
    --toggle-bg:      #d1deda;
}
body.dark-mode {
    background: #0e1a18;
    --bg-page:        #0e1a18;
    --bg-col:         #13211f;
    --bg-right:       #1a2e2b;
    --bg-desc:        #1a2e2b;
    --text-main:      #e8f0ee;
    --text-muted:     #8ab5af;
    --text-sub:       #7aa8a2;
    --border-col:     #1e3530;
    --sermon-bg:      #13211f;
    --sermon-hover:   0 6px 28px rgba(76,114,108,0.28);
    --progress-track: #1e3530;
    --right-col-head: #73a15b;
    --card-shadow:    0 2px 16px rgba(0,0,0,0.3);
    --toggle-bg:      #1e3530;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeInUp     { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
@keyframes shimmer      { 0%,100% { opacity:0.6; } 50% { opacity:1; } }
@keyframes pulseGlow    { 0%,100% { box-shadow:0 0 0 0 rgba(115,161,91,0.55); } 70% { box-shadow:0 0 0 8px rgba(115,161,91,0); } }
@keyframes playPulse    { 0%,100% { box-shadow:0 0 0 0 rgba(115,161,91,0.7), 0 2px 10px rgba(115,161,91,0.35); } 60% { box-shadow:0 0 0 7px rgba(115,161,91,0), 0 2px 10px rgba(115,161,91,0.35); } }
@keyframes slideInLeft  { from { opacity:0; transform:translateX(-18px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX(18px); } to { opacity:1; transform:translateX(0); } }
@keyframes headingIn    { from { opacity:0; transform:translateY(-14px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes underlineGrow { from { width:0; } to { width:60%; } }
@keyframes amp-spin        { to { transform:rotate(360deg); } }
@keyframes amp-speakerRing { 0%  { transform:scale(0.85); opacity:0.8; } 100% { transform:scale(1.25); opacity:0; } }
@keyframes amp-barBounce1  { 0%,100% { height:4px;  } 50% { height:14px; } }
@keyframes amp-barBounce2  { 0%,100% { height:14px; } 50% { height:5px;  } }
@keyframes amp-barBounce3  { 0%,100% { height:7px;  } 50% { height:16px; } }
@keyframes amp-slideUp     { from { transform:translateY(30px); opacity:0; } to { transform:translateY(0); opacity:1; } }
@keyframes amp-fadeIn      { from { opacity:0; } to { opacity:1; } }

/* ============================================================
   PAGE BACKGROUND
   ============================================================ */
body {
    background: var(--bg-page);
    transition: background 0.4s ease, color 0.4s ease;
    margin: 0;
}

/* ============================================================
   DARK / LIGHT TOGGLE BUTTON
   Fixed top-right — does NOT affect header/footer
   ============================================================ */
#themeToggle {
    position: fixed;
    top: 90px;
    right: 18px;
    z-index: 9999;
    width: 48px;
    height: 26px;
    border-radius: 50px;
    background: var(--toggle-bg);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
#themeToggle::after {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    margin-left: 3px;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23f4a93d'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3' stroke='%23f4a93d' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='12' y1='21' x2='12' y2='23' stroke='%23f4a93d' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64' stroke='%23f4a93d' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78' stroke='%23f4a93d' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='1' y1='12' x2='3' y2='12' stroke='%23f4a93d' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='21' y1='12' x2='23' y2='12' stroke='%23f4a93d' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36' stroke='%23f4a93d' stroke-width='2' stroke-linecap='round'/%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22' stroke='%23f4a93d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
body.dark-mode #themeToggle {
    background: #2a4a44;
}
body.dark-mode #themeToggle::after {
    transform: translateX(22px);
    background-color: #1a1a2e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='%23c8d8f0'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
}

/* ============================================================
   CONTAINER
   ============================================================ */
body.dark-mode .three-column-container {
    background: var(--bg-page);
}
.three-column-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 40px;
    animation: fadeInUp 0.6s ease both;
}

/* ============================================================
   MAIN CATEGORY HEADING — capitalized, bold, underline, icon
   ============================================================ */
.main-category {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 28px;
    color: #4c726c;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: headingIn 0.7s cubic-bezier(0.22,1,0.36,1) both;
}
/* Book icon before heading */
.main-category::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c726c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 016.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 014 19.5v-15A2.5 2.5 0 016.5 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}
/* Underline bar */
.main-category::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 0;
    background: linear-gradient(to right, #73a15b, #4c726c);
    border-radius: 2px;
    animation: underlineGrow 0.8s ease 0.4s forwards;
}
body.dark-mode .main-category { color: #73a15b; }
body.dark-mode .main-category::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2373a15b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 016.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 014 19.5v-15A2.5 2.5 0 016.5 2z'/%3E%3C/svg%3E");
}

/* ============================================================
   COLUMNS LAYOUT
   ============================================================ */
.columns {
    display: flex;
    gap: 20px;
}

/* Left Column */
.left-column {
    flex: 1;
    max-height: 520px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(76,114,108,0.3) transparent;
    animation: slideInLeft 0.6s ease 0.15s both;
}
.left-column::-webkit-scrollbar       { width: 4px; }
.left-column::-webkit-scrollbar-track { background: transparent; }
.left-column::-webkit-scrollbar-thumb { background: rgba(76,114,108,0.3); border-radius: 4px; }

/* Center Column */
.center-column {
    flex: 2;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Right Column */
.right-column {
    flex: 1;
    background: var(--bg-right);
    border-radius: 14px;
    padding: 18px;
    border: 1px solid var(--border-col);
    transition: background 0.4s ease, border-color 0.4s ease;
    animation: slideInRight 0.6s ease 0.15s both;
}
.right-column h2 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 0;
    color: var(--right-col-head);
    transition: color 0.4s ease;
}

/* ============================================================
   MAIN CATEGORY DESCRIPTION BOX
   ============================================================ */
.main-category-description-box {
    background: var(--bg-desc);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 4px solid #73a15b;
    transition: background 0.4s ease;
    animation: fadeInUp 0.5s ease 0.25s both;
}
.main-category-description-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 17px;
    transition: color 0.4s ease;
}
.main-category-description-box p {
    margin: 0;
    color: var(--text-sub);
    line-height: 1.65;
    font-size: 14px;
    transition: color 0.4s ease;
}

/* ============================================================
   LEFT COLUMN — SUBCATEGORY BUTTONS
   ============================================================ */
.category-parent {
    background: linear-gradient(135deg, #4c726c 0%, #3d5e59 100%);
    color: #fff;
    border-left: 4px solid #73a15b;
    padding: 13px 14px;
    border-radius: 10px;
    margin-bottom: 9px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(76,114,108,0.15);
    position: relative;
    overflow: hidden;
    /* staggered entry animation handled by JS class or inline delay */
    animation: slideInLeft 0.45s ease both;
}
/* Subtle shimmer line on hover */
.category-parent::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}
.category-parent:hover::after { left: 130%; }

.category-parent:hover {
    background: linear-gradient(135deg, #73a15b 0%, #5a8a4a 100%) !important;
    border-left-color: #fff !important;
    transform: translateX(4px);
    box-shadow: 0 4px 18px rgba(115,161,91,0.28);
}

.category-parent h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    line-height: 1.4;
}

/* ── Play icon — replaces blue arrow ── */
.category-parent .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.35);
    font-size: 0;             /* hide the original ▶ text character */
    position: relative;
    transition: all 0.3s ease;
    animation: playPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
/* CSS-drawn white play triangle */
.category-parent .arrow::after {
    content: '';
    display: block;
    width: 0; height: 0;
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 2px;
    transition: border-color 0.3s ease;
}
.category-parent:hover .arrow {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.12);
    animation: none;
}
.category-parent.open .arrow {
    transform: rotate(90deg);
    animation: none;
}
.category-parent.active .arrow {
    background: rgba(211,175,55,0.3);
    border-color: #d3af37;
    animation: none;
}
.category-parent.active .arrow::after {
    border-color: transparent transparent transparent #d3af37;
}
.category-parent.active h3,
.category-parent.active span { color: #d3af37 !important; }

.category-child-list    { display: none; }
.category-child-list li { display: none; }

/* ============================================================
   CENTER COLUMN — AUDIO PLAYLIST ITEMS
   ============================================================ */
.sermon-item {
    background: var(--sermon-bg);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    transition: box-shadow 0.3s ease, transform 0.25s ease, background 0.4s ease;
    border: 1px solid var(--border-col);
    box-shadow: var(--card-shadow);
    animation: fadeInUp 0.4s ease both;
}
.sermon-item:hover {
    box-shadow: var(--sermon-hover);
    transform: translateY(-2px);
}

.sermon-title {
    font-weight: 600;
    font-size: 14.5px;
    flex: 1;
    color: var(--text-main);
    line-height: 1.45;
    transition: color 0.4s ease;
}

.sermon-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Play button — white glowing rounded button ── */
.control-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #73a15b, #4c726c);
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(115,161,91,0.6);
    animation: playPulse 2.2s ease-in-out infinite;
    font-size: 13px;
    flex-shrink: 0;
}
.control-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(115,161,91,0.5);
    animation: none;
    background: linear-gradient(135deg, #7db362, #3d5e59);
    color: #ffffff !important;
    background-color: unset !important;
}
.control-btn i { color: #ffffff !important; font-size: 12px; }

/* Download & share buttons */
.download-btn,
.share-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-col);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #73a15b;
    transition: all 0.3s ease;
    font-size: 13px;
    flex-shrink: 0;
}
.download-btn:hover,
.share-btn:hover {
    background: rgba(115,161,91,0.1);
    color: #4c726c;
    transform: scale(1.1);
}

.progress-bar {
    width: 90px;
    height: 4px;
    background: var(--progress-track);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.4s ease;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #73a15b, #a8d08d);
    width: 0%;
    border-radius: 4px;
    transition: width 0.2s linear;
}

.time-display {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 32px;
    text-align: right;
    transition: color 0.4s ease;
}

/* ============================================================
   RIGHT COLUMN — SUBCATEGORY DETAILS
   ============================================================ */
.sub-category-description h4 {
    font-size: 15px;
    font-weight: 700;
    color: #4c726c;
    margin: 0 0 8px;
}
body.dark-mode .sub-category-description h4 { color: #73a15b; }
.sub-category-description p {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-sub);
    margin: 0;
    transition: color 0.4s ease;
}

/* ============================================================
   INSTRUCTION / LOADING TEXT
   ============================================================ */
.instruction-text {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 20px;
    font-size: 13px;
    transition: color 0.4s ease;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 14px;
    animation: shimmer 1.5s ease-in-out infinite;
    transition: color 0.4s ease;
}
.loading-indicator i { margin-right: 8px; color: #73a15b; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
button:focus, .category-parent:focus {
    outline: 3px solid #d3af37;
    outline-offset: 2px;
}
button:focus:not(:focus-visible),
.category-parent:focus:not(:focus-visible) { outline: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .columns { flex-wrap: wrap; gap: 15px; }
    .left-column, .center-column, .right-column { flex: 1 1 100%; }
    .right-column  { order: 1; margin-bottom: 15px; }
    .left-column   { order: 2; flex: 1 1 40%; max-height: 350px; }
    .center-column { order: 3; flex: 1 1 55%; }
    .main-category { font-size: 24px; margin-bottom: 20px; }
}
@media (max-width: 768px) {
    .three-column-container { padding: 15px 15px 30px; }
    .columns { flex-direction: column; gap: 12px; }
    .left-column, .center-column, .right-column { width: 100%; flex: 1 1 100%; }
    .right-column  { order: 1; padding: 12px; margin-bottom: 10px; max-height: none; }
    .center-column { order: 2; }
    .left-column   { order: 3; max-height: 300px; }
    .main-category { font-size: 20px; margin-bottom: 18px; gap: 9px; }
    .main-category::before { width: 22px; height: 22px; }
    .sermon-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .sermon-controls { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
    .progress-bar { flex-grow: 1; width: auto; min-width: 80px; }
    .category-parent h3 { font-size: 13px; }
    .category-parent { padding: 11px 12px; }
    .main-category-description-box { padding: 12px; }
    .category-parent:hover,
    .category-parent.active {
        background: linear-gradient(135deg, #000 0%, #111 100%) !important;
        color: #d3af37 !important;
        border-left-color: #d3af37 !important;
    }
    .category-parent:hover h3,
    .category-parent:hover .arrow::after,
    .category-parent.active h3 { color: #d3af37 !important; }
}
@media (max-width: 480px) {
    .three-column-container { padding: 10px 10px 24px; }
    .main-category { font-size: 17px; letter-spacing: 0.8px; }
    .sermon-item { padding: 12px; }
    .sermon-title { font-size: 13px; }
    .control-btn  { width: 30px; height: 30px; font-size: 11px; }
    .download-btn, .share-btn { width: 26px; height: 26px; font-size: 11px; }
    .progress-bar { min-width: 60px; height: 3px; }
    .time-display { font-size: 10px; }
    .right-column { padding: 10px; }
    .right-column h2 { font-size: 15px; }
}

/* ============================================================
   AUDIO MODAL PLAYER
   Prefixed amp- — safe, won't clash with anything above
   ============================================================ */

/* Backdrop */
.amp-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(6px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: amp-fadeIn 0.25s ease;
}
.amp-backdrop.amp-open { display: flex; }

/* Panel */
.amp-panel {
    background: #0f0f0f;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    position: relative;
    z-index: 100000;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.75);
    animation: amp-slideUp 0.3s ease;
}

/* Close */
.amp-close {
    position: absolute;
    top: 14px; right: 14px;
    background: rgba(255,255,255,0.1);
    color: white; border: none;
    width: 30px; height: 30px;
    border-radius: 50%; cursor: pointer;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: background 0.2s;
    line-height: 1; font-family: inherit;
}
.amp-close:hover { background: rgba(255,255,255,0.22); }

/* Cover */
.amp-cover {
    width: 100%; height: 155px;
    background: linear-gradient(135deg, #1c3d2a 0%, #0e2419 50%, #091610 100%);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.amp-cover::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 65% 35%, rgba(115,161,91,0.28), transparent 60%);
}
.amp-speaker-wrap {
    width: 90px; height: 90px;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}
.amp-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(115,161,91,0.5); opacity: 0; }
.amp-ring-1 { width: 90px;  height: 90px; }
.amp-ring-2 { width: 116px; height: 116px; border-color: rgba(115,161,91,0.3); }
.amp-ring-3 { width: 144px; height: 144px; border-color: rgba(115,161,91,0.15); }
.amp-speaker-wrap.amp-playing .amp-ring-1 { opacity:1; animation: amp-speakerRing 1.5s ease-out infinite; }
.amp-speaker-wrap.amp-playing .amp-ring-2 { opacity:1; animation: amp-speakerRing 1.5s ease-out 0.4s infinite; }
.amp-speaker-wrap.amp-playing .amp-ring-3 { opacity:1; animation: amp-speakerRing 1.5s ease-out 0.8s infinite; }
.amp-speaker-svg { position: relative; z-index: 2; filter: drop-shadow(0 0 8px rgba(115,161,91,0.4)); transition: filter 0.3s; }
.amp-speaker-wrap.amp-playing .amp-speaker-svg { filter: drop-shadow(0 0 16px rgba(115,161,91,0.9)) drop-shadow(0 0 32px rgba(115,161,91,0.4)); }
.amp-bars { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.amp-bar  { width: 3px; background: #a8d08d; border-radius: 2px; transition: height 0.2s; }
.amp-bar-1 { height: 6px; }
.amp-bar-2 { height: 12px; }
.amp-bar-3 { height: 8px; }
.amp-speaker-wrap.amp-playing .amp-bar-1 { animation: amp-barBounce1 0.7s ease-in-out infinite; }
.amp-speaker-wrap.amp-playing .amp-bar-2 { animation: amp-barBounce2 0.7s ease-in-out 0.15s infinite; }
.amp-speaker-wrap.amp-playing .amp-bar-3 { animation: amp-barBounce3 0.7s ease-in-out 0.3s infinite; }

/* Info */
.amp-info { width: 100%; text-align: center; padding: 20px 28px 8px; background: #0f0f0f; }
.amp-title { font-weight: 700; font-size: 15px; color: #fff; line-height: 1.45; margin-bottom: 4px; }
.amp-meta  { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.4px; }

/* Progress */
.amp-progress-wrap { width: calc(100% - 56px); margin: 18px 28px 0; }
.amp-time-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.amp-time-cur { font-size: 11px; font-weight: 600; color: #73a15b; }
.amp-time-rem { font-size: 11px; color: rgba(255,255,255,0.3); }
.amp-progress {
    width: 100%; height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px; position: relative;
    cursor: pointer; overflow: visible;
}
.amp-progress-fill {
    width: 0%; height: 100%;
    background: linear-gradient(to right, #73a15b, #a8d08d);
    border-radius: 10px; transition: width 0.2s linear; position: relative;
}
.amp-progress-fill::after {
    content: '';
    position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
    width: 11px; height: 11px; background: white; border-radius: 50%;
    box-shadow: 0 0 6px rgba(115,161,91,0.8); opacity: 0; transition: opacity 0.2s;
}
.amp-progress:hover .amp-progress-fill::after { opacity: 1; }

/* Speed */
.amp-speed-row {
    display: flex; justify-content: center; gap: 6px;
    padding: 12px 28px 4px; background: #0f0f0f;
}
.amp-speed-btn {
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 20px;
    padding: 4px 10px; font-size: 11px; font-weight: 700;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.amp-speed-btn:hover    { background: rgba(115,161,91,0.15); color: #73a15b; border-color: rgba(115,161,91,0.3); }
.amp-speed-btn.amp-active { background: rgba(115,161,91,0.18); color: #73a15b; border-color: #73a15b; }

/* Controls */
.amp-controls {
    display: flex; justify-content: center; align-items: center;
    gap: 12px; padding: 14px 28px 28px; background: #0f0f0f;
}
.amp-controls button { border: none; cursor: pointer; transition: all 0.2s; font-family: inherit; outline: none; }
.amp-play-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: #73a15b; display: flex; align-items: center; justify-content: center;
    padding: 0; box-shadow: 0 4px 20px rgba(115,161,91,0.45);
}
.amp-play-btn::after {
    content: ''; display: block; width: 0; height: 0; border-style: solid;
    border-width: 9px 0 9px 17px; border-color: transparent transparent transparent white;
    margin-left: 3px;
}
.amp-play-btn:hover { transform: scale(1.08); background: #7db362; box-shadow: 0 6px 28px rgba(115,161,91,0.6); }
.amp-pause-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,0.08); display: flex; align-items: center;
    justify-content: center; gap: 5px; padding: 0;
    border: 1.5px solid rgba(255,255,255,0.15) !important;
}
.amp-pause-btn::before,
.amp-pause-btn::after {
    content: ''; display: block;
    width: 4px; height: 16px; background: white; border-radius: 2px;
}
.amp-pause-btn:hover { background: rgba(255,255,255,0.15); }
.amp-dl-btn, .amp-share-btn {
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6);
    padding: 10px 15px; border-radius: 30px; font-size: 12px;
    border: 1px solid rgba(255,255,255,0.1) !important;
}
.amp-dl-btn:hover, .amp-share-btn:hover { background: rgba(255,255,255,0.13); color: white; }
.amp-hidden { display: none !important; }

/* Modal responsive */
@media (max-width: 480px) {
    .amp-panel { width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; position: fixed; bottom: 0; left: 0; }
    .amp-backdrop { align-items: flex-end; }
    .amp-cover { height: 130px; }
    .amp-speaker-wrap { width: 76px; height: 76px; }
    .amp-info { padding: 14px 20px 6px; }
    .amp-title { font-size: 13px; }
    .amp-progress-wrap { width: calc(100% - 40px); margin: 14px 20px 0; }
    .amp-speed-row { gap: 5px; padding: 10px 20px 2px; }
    .amp-speed-btn { padding: 4px 8px; font-size: 10px; }
    .amp-controls { gap: 10px; padding: 12px 20px 24px; }
    .amp-play-btn, .amp-pause-btn { width: 48px; height: 48px; }
    .amp-dl-btn, .amp-share-btn { padding: 8px 12px; font-size: 11px; }
}
@media (max-width: 360px) {
    .amp-speed-row { gap: 4px; padding: 8px 14px 2px; }
    .amp-speed-btn { padding: 3px 7px; font-size: 10px; }
    .amp-controls { gap: 8px; padding: 10px 14px 22px; }
    .amp-dl-btn, .amp-share-btn { padding: 7px 10px; font-size: 11px; }
}