/**
 * FeelMusic Post Components Stylesheet
 * Loaded on Frontend, WordPress Gutenberg Block Editor, and AI Post Studio
 *
 * Provides visual cards, callout tips, sound matrices, comparison tables,
 * pros/cons boxes, and verdict badges to eliminate walls of text.
 */

/* ==========================================================================
   1. Highlight & At-A-Glance Card
   ========================================================================== */
.fm-card-highlight {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #cbd5e1;
    border-left: 5px solid #6366f1;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 24px 0 28px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.06);
}

.fm-card-highlight-hd {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4338ca;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-highlight-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fm-highlight-list li {
    font-size: 14.5px;
    line-height: 1.55;
    color: #1e293b;
    margin: 0 !important;
    padding-left: 4px;
}

.fm-highlight-list li strong {
    color: #0f172a;
    font-weight: 700;
}

/* ==========================================================================
   2. Callout Boxes (Tips, Cautions, Notes)
   ========================================================================== */
.fm-callout {
    border-radius: 10px;
    padding: 16px 20px;
    margin: 22px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.fm-callout-hd {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fm-callout p {
    margin: 0 0 6px !important;
    font-size: 14px;
    line-height: 1.6;
}

.fm-callout p:last-child {
    margin-bottom: 0 !important;
}

/* Pro Tip */
.fm-callout-tip {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #a7f3d0;
    border-left: 5px solid #10b981;
}

.fm-callout-tip .fm-callout-hd {
    color: #065f46;
}

.fm-callout-tip p {
    color: #064e3b;
}

/* Caution / Warning */
.fm-callout-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
}

.fm-callout-warning .fm-callout-hd {
    color: #92400e;
}

.fm-callout-warning p {
    color: #78350f;
}

/* Info Note */
.fm-callout-info {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #bfdbfe;
    border-left: 5px solid #3b82f6;
}

.fm-callout-info .fm-callout-hd {
    color: #1e40af;
}

.fm-callout-info p {
    color: #1e3a8a;
}

/* ==========================================================================
   3. Sound Profile Matrix / Rating Breakdown Card
   ========================================================================== */
.fm-sound-matrix {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 26px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.fm-sound-matrix-hd {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f172a;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.fm-sound-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 600px) {
    .fm-sound-grid {
        grid-template-columns: 1fr;
    }
}

.fm-sound-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    transition: transform 0.15s ease;
}

.fm-sound-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.fm-sound-label {
    font-weight: 700;
    font-size: 13.5px;
    color: #1e293b;
}

.fm-sound-score {
    background: linear-gradient(135deg, #c2185b 0%, #db2777 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.fm-sound-card p {
    margin: 0 !important;
    font-size: 12.5px;
    line-height: 1.5;
    color: #64748b;
}

/* ==========================================================================
   4. Who Should Buy vs. Who Should Skip Card
   ========================================================================== */
.fm-who-buy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 26px 0;
}

@media (max-width: 600px) {
    .fm-who-buy {
        grid-template-columns: 1fr;
    }
}

.fm-who-card {
    border-radius: 10px;
    padding: 16px 18px;
}

.fm-who-card h4 {
    margin: 0 0 10px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fm-who-card ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fm-who-card li {
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 !important;
    padding-left: 20px;
    position: relative;
}

.fm-who-yes {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
}

.fm-who-yes h4 {
    color: #15803d;
}

.fm-who-yes li {
    color: #14532d;
}

.fm-who-yes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #16a34a;
    font-weight: 800;
}

.fm-who-no {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
}

.fm-who-no h4 {
    color: #b91c1c;
}

.fm-who-no li {
    color: #7f1d1d;
}

.fm-who-no li::before {
    content: "✕";
    position: absolute;
    left: 0;
    top: 0;
    color: #dc2626;
    font-weight: 800;
}

/* ==========================================================================
   5. Technical Specifications Table
   ========================================================================== */
.fm-spec-wrap,
figure.wp-block-table.fm-spec-table {
    margin: 26px 0 !important;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.fm-spec-table,
figure.wp-block-table.fm-spec-table table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 14px;
    margin: 0 !important;
    background: #ffffff;
}

.fm-spec-table thead th,
.fm-spec-table tr:first-child th:only-child,
.fm-spec-table th[colspan],
figure.wp-block-table.fm-spec-table table thead th,
figure.wp-block-table.fm-spec-table table tr:first-child th:only-child,
figure.wp-block-table.fm-spec-table table th[colspan] {
    background: linear-gradient(135deg, #c2185b 0%, #db2777 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 12px 18px;
    text-align: left;
    font-size: 14.5px;
    letter-spacing: 0.02em;
    border: none !important;
}

.fm-spec-table tbody td,
.fm-spec-table tbody th,
figure.wp-block-table.fm-spec-table table tbody td,
figure.wp-block-table.fm-spec-table table tbody th {
    padding: 10px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.fm-spec-table tbody tr:last-child td,
.fm-spec-table tbody tr:last-child th,
figure.wp-block-table.fm-spec-table table tbody tr:last-child td,
figure.wp-block-table.fm-spec-table table tbody tr:last-child th {
    border-bottom: none;
}

.fm-spec-table tbody tr:nth-child(even),
figure.wp-block-table.fm-spec-table table tbody tr:nth-child(even) {
    background: #fafafa;
}

.fm-spec-table tbody tr:hover,
figure.wp-block-table.fm-spec-table table tbody tr:hover {
    background: #f1f5f9;
}

.fm-spec-table tbody th,
figure.wp-block-table.fm-spec-table table tbody th {
    font-weight: 600;
    color: #334155;
    width: 38%;
    text-align: left;
    background: transparent;
}

.fm-spec-table tbody td,
figure.wp-block-table.fm-spec-table table tbody td {
    color: #0f172a;
    font-weight: 500;
}

/* ==========================================================================
   6. Pros & Cons Side-by-Side Cards
   ========================================================================== */
.fm-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 26px 0;
}

@media (max-width: 600px) {
    .fm-pros-cons {
        grid-template-columns: 1fr;
    }
}

.fm-pros {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 5px solid #16a34a;
    padding: 16px 20px;
    border-radius: 10px;
}

.fm-cons {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 5px solid #dc2626;
    padding: 16px 20px;
    border-radius: 10px;
}

.fm-pros h4,
.fm-cons h4 {
    margin: 0 0 12px !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fm-pros h4 {
    color: #16a34a;
}

.fm-cons h4 {
    color: #dc2626;
}

.fm-pros ul,
.fm-cons ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fm-pros li,
.fm-cons li {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 !important;
    padding-left: 20px;
    position: relative;
}

.fm-pros li {
    color: #14532d;
}

.fm-cons li {
    color: #7f1d1d;
}

.fm-pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #16a34a;
    font-weight: 800;
}

.fm-cons li::before {
    content: "✕";
    position: absolute;
    left: 0;
    top: 0;
    color: #dc2626;
    font-weight: 800;
}

/* ==========================================================================
   7. FeelMusic Verdict Box
   ========================================================================== */
.fm-verdict {
    display: flex;
    gap: 20px;
    align-items: center;
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 100%);
    border: 1px solid #fbcfe8;
    border-left: 5px solid #db2777;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 30px 0;
    box-shadow: 0 4px 16px rgba(219, 39, 119, 0.08);
}

@media (max-width: 500px) {
    .fm-verdict {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}

.fm-verdict-ring {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #db2777 0%, #e11d48 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(219, 39, 119, 0.35);
}

.fm-verdict-ring small {
    font-size: 10px;
    opacity: 0.9;
    font-weight: 600;
}

.fm-verdict-body h3 {
    margin: 0 0 6px !important;
    font-size: 16px !important;
    font-weight: 800;
    color: #9d174d;
}

.fm-verdict-body p {
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

/* ==========================================================================
   8. Affiliate Buy Box
   ========================================================================== */
.fm-buy-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 28px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.fm-buy-box-hd {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
    letter-spacing: 0.06em;
}

.fm-buy-box-name {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a;
    margin: 0 0 14px !important;
}

.fm-buy-btn-wrap {
    margin: 12px 0 10px;
}

.fm-buy-box .fm-btn {
    display: inline-block;
    background: linear-gradient(135deg, #c2185b 0%, #db2777 100%);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(194, 24, 91, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fm-buy-box .fm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(194, 24, 91, 0.35);
    color: #ffffff !important;
}

.fm-affiliate-note {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 10px;
}

/* ==========================================================================
   Amazon.in Dynamic Affiliate Deal Box & CTA
   ========================================================================== */
.fm-amazon-deal-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-top: 4px solid #ff9900;
    border-radius: 14px;
    padding: 24px 26px;
    margin: 32px 0;
    text-align: center;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fm-amazon-deal-box:hover {
    box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.11);
}

.fm-amazon-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.fm-amazon-product-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    margin: 0 0 10px !important;
}

.fm-amazon-perks {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0 18px;
    font-size: 12.5px;
    color: #475569;
    font-weight: 600;
}

.fm-amazon-perk-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
}

.fm-amazon-btn-wrap {
    margin: 16px 0 12px;
}

.fm-amazon-cta-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff9900 0%, #e67a00 100%) !important;
    color: #111827 !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    padding: 13px 32px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.42) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
    letter-spacing: 0.01em;
}

.fm-amazon-cta-btn:hover {
    background: linear-gradient(135deg, #ffaa1d 0%, #f08200 100%) !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 153, 0, 0.58) !important;
}

.fm-amazon-cta-btn svg {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    fill: currentColor;
}

.fm-amazon-disclaimer {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 12px;
    line-height: 1.5;
}

/* ==========================================================================
   9. Scannable Typography (Short Paragraphs & Bold Lead-ins)
   ========================================================================== */
.editor-styles-wrapper .fm-card-highlight,
.editor-styles-wrapper .fm-callout,
.editor-styles-wrapper .fm-sound-matrix,
.editor-styles-wrapper .fm-who-buy,
.editor-styles-wrapper .fm-spec-wrap,
.editor-styles-wrapper .fm-pros-cons,
.editor-styles-wrapper .fm-verdict,
.editor-styles-wrapper .fm-buy-box,
.editor-styles-wrapper .fm-card-news,
.editor-styles-wrapper .fm-compare-table,
.editor-styles-wrapper .fm-compare-winner,
.editor-styles-wrapper .fm-faq-section {
    box-sizing: border-box;
}

/* Ensure editor wrapper inherits full colors */
.wp-block-freeform .fm-card-highlight,
.wp-block-html .fm-card-highlight,
.wp-block-freeform .fm-callout,
.wp-block-html .fm-callout,
.wp-block-freeform .fm-sound-matrix,
.wp-block-html .fm-sound-matrix,
.wp-block-freeform .fm-who-buy,
.wp-block-html .fm-who-buy,
.wp-block-freeform .fm-pros-cons,
.wp-block-html .fm-pros-cons,
.wp-block-freeform .fm-verdict,
.wp-block-html .fm-verdict,
.wp-block-freeform .fm-spec-wrap,
.wp-block-html .fm-spec-wrap,
.wp-block-freeform .fm-card-news,
.wp-block-html .fm-card-news,
.wp-block-freeform .fm-compare-winner,
.wp-block-html .fm-compare-winner,
.wp-block-freeform .fm-faq-section,
.wp-block-html .fm-faq-section {
    margin: 20px 0;
}

/* ==========================================================================
   10. News & Breaking Tech Card
   ========================================================================== */
.fm-card-news {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1.5px solid #fed7aa;
    border-left: 5px solid #ea580c;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 24px 0 28px;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.07);
}

.fm-card-news-hd {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c2410c;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-news-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fm-news-list li {
    font-size: 14.5px;
    line-height: 1.55;
    color: #1e293b;
    margin: 0 !important;
    padding-left: 4px;
}

.fm-news-list li strong {
    color: #9a3412;
    font-weight: 700;
}

/* ==========================================================================
   11. Head-to-Head Comparison Matrix & Winner Banner
   ========================================================================== */
.fm-compare-wrap,
figure.wp-block-table.fm-compare-table {
    margin: 28px 0 !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #cbd5e1;
}

.fm-compare-table,
figure.wp-block-table.fm-compare-table table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 14px;
    margin: 0 !important;
    background: #ffffff;
}

.fm-compare-table thead th,
figure.wp-block-table.fm-compare-table table thead th {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    padding: 14px 18px;
    text-align: left;
    font-size: 14.5px;
    letter-spacing: 0.02em;
    border: none !important;
}

.fm-compare-table thead th:nth-child(2) {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%) !important;
}

.fm-compare-table thead th:nth-child(3) {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%) !important;
}

.fm-compare-table tbody td,
.fm-compare-table tbody th,
figure.wp-block-table.fm-compare-table table tbody td,
figure.wp-block-table.fm-compare-table table tbody th {
    padding: 12px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.fm-compare-table tbody tr:last-child td,
.fm-compare-table tbody tr:last-child th,
figure.wp-block-table.fm-compare-table table tbody tr:last-child td,
figure.wp-block-table.fm-compare-table table tbody tr:last-child th {
    border-bottom: none;
}

.fm-compare-table tbody tr:nth-child(even),
figure.wp-block-table.fm-compare-table table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.fm-compare-table tbody th,
figure.wp-block-table.fm-compare-table table tbody th {
    font-weight: 700;
    color: #334155;
    width: 32%;
    background: transparent;
}

.fm-compare-winner {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid #86efac;
    border-left: 5px solid #16a34a;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 28px 0;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.08);
}

.fm-compare-winner-hd {
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #15803d;
    margin-bottom: 8px;
}

.fm-compare-winner h3,
.fm-compare-winner h4 {
    margin: 0 0 10px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #14532d;
}

.fm-compare-winner p {
    margin: 0 !important;
    font-size: 14.5px;
    line-height: 1.6;
    color: #166534;
}

/* ==========================================================================
   12. Conversational FAQ Section (2026 AI Overviews & GEO Extraction)
   ========================================================================== */
.fm-faq-section {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 26px;
    margin: 32px 0 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.fm-faq-hd {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 12px;
}

.fm-faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fm-faq-item:last-child {
    margin-bottom: 0;
}

.fm-faq-item:hover {
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.08);
}

.fm-faq-q {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px !important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.fm-faq-a {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
    margin: 0 !important;
}

/* ==========================================================================
   13. Mobile Visual Engagement Components (Indian Smartphone First)
   ========================================================================== */

/* Quick Takeaway / Verdict Pill Bar */
.fm-takeaway-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

.fm-pill-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fm-pill-stat span.fm-pill-icon {
    font-size: 15px;
}

.fm-pill-stat.is-battery { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.fm-pill-stat.is-sound { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.fm-pill-stat.is-price { background: #fdf2f8; border-color: #fbcfe8; color: #9d174d; }
.fm-pill-stat.is-gaming { background: #faf5ff; border-color: #e9d5ff; color: #6b21a8; }

/* In-The-Box Unboxing Grid (Chips/Badges instead of plain text) */
.wp-block-group.fm-box-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0 24px !important;
}

.wp-block-group.fm-box-grid > .wp-block-group__inner-container,
.wp-block-group__inner-container:has(> .fm-box-item),
.fm-box-grid:not(.wp-block-group) {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.wp-block-group.fm-box-grid > p.fm-box-item,
.wp-block-group.fm-box-grid > .fm-box-item,
.wp-block-group__inner-container > p.fm-box-item,
.fm-box-grid .fm-box-item,
.fm-box-item {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.fm-box-item .fm-box-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

@media (max-width: 540px) {
    .wp-block-group.fm-box-grid > .wp-block-group__inner-container,
    .wp-block-group__inner-container:has(> .fm-box-item),
    .fm-box-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .wp-block-group.fm-box-grid > p.fm-box-item,
    .wp-block-group__inner-container > p.fm-box-item,
    .fm-box-grid .fm-box-item,
    .fm-box-item {
        padding: 9px 10px !important;
        font-size: 12.5px !important;
    }
}

/* Mobile Quick Test Summary Card */
.fm-test-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #cbd5e1;
    border-left: 5px solid #0284c7;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 20px 0;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.06);
}

.fm-test-card-hd {
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0369a1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fm-test-card p {
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #1e293b !important;
    margin: 0 !important;
}

/* Comparison Round Header with Mini Score Bar */
.fm-round-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 22px;
    margin: 24px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.fm-round-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.fm-round-title {
    font-size: 16.5px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fm-round-winner-badge {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 9999px;
    white-space: nowrap;
}

.fm-round-scores {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13.5px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 14px;
    margin: 0 0 14px 0 !important;
}

.fm-round-scores strong {
    color: #0f172a;
}

.fm-score-divider {
    color: #cbd5e1;
    font-weight: bold;
}

.fm-round-factor {
    margin: 14px 0 0 0 !important;
    padding: 11px 15px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    font-size: 13.5px;
    color: #1e3a8a;
    line-height: 1.55;
}

.fm-round-factor strong {
    color: #1d4ed8;
}

/* Enhanced Mobile Readability Tweaks (Screen width < 680px) */
@media (max-width: 680px) {
    /* Short paragraph typography for easy scanning */
    .fm-entry p,
    .editor-styles-wrapper p {
        font-size: 15.5px !important;
        line-height: 1.65 !important;
        margin-bottom: 16px !important;
    }

    /* Sound matrix mobile grid: single column with clean spacing */
    .fm-sound-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .fm-sound-card {
        padding: 12px 14px !important;
    }

    /* Spec table and comparison table scroll smoothly on phone */
    .fm-spec-wrap,
    .fm-compare-wrap,
    figure.wp-block-table.fm-spec-table,
    figure.wp-block-table.fm-compare-table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin: 20px 0 !important;
        border-radius: 10px;
    }

    .fm-spec-table,
    .fm-compare-table,
    figure.wp-block-table.fm-spec-table table,
    figure.wp-block-table.fm-compare-table table {
        min-width: 320px;
        font-size: 13.5px !important;
    }

    .fm-spec-table tbody td,
    .fm-spec-table tbody th,
    .fm-compare-table tbody td,
    .fm-compare-table tbody th,
    figure.wp-block-table.fm-spec-table table tbody td,
    figure.wp-block-table.fm-spec-table table tbody th,
    figure.wp-block-table.fm-compare-table table tbody td,
    figure.wp-block-table.fm-compare-table table tbody th {
        padding: 10px 12px !important;
    }

    /* Cards and Callouts comfortable padding */
    .fm-card-highlight,
    .fm-card-news,
    .fm-callout,
    .fm-pros,
    .fm-cons,
    .fm-who-card,
    .fm-verdict,
    .fm-compare-winner,
    .fm-faq-section,
    .fm-round-card {
        padding: 16px 16px !important;
        border-radius: 10px !important;
        margin: 20px 0 !important;
    }

    .fm-round-hd {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .fm-round-title {
        font-size: 15.5px !important;
    }

    .fm-round-scores {
        font-size: 12.5px !important;
        padding: 6px 10px !important;
        gap: 6px !important;
    }

    .fm-round-factor {
        font-size: 13px !important;
        padding: 9px 12px !important;
    }

    /* Verdict score ring mobile layout */
    .fm-verdict {
        flex-direction: column !important;
        text-align: center !important;
        gap: 14px !important;
    }

    .fm-verdict-ring {
        margin: 0 auto !important;
    }

    /* Buy box button stretches to full width for effortless mobile tapping */
    .fm-buy-box .fm-btn,
    .wp-block-button.fm-btn .wp-block-button__link {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 12px 16px !important;
        font-size: 15px !important;
        box-sizing: border-box !important;
    }

    /* Video embed box mobile adjustment */
    .fm-video-embed-box {
        padding: 16px 14px !important;
        margin: 22px 0 26px !important;
    }

    .fm-video-title {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   17. Relevant Video Embed & Media Box (SEO & Dwell Time)
   ========================================================================== */
/* Section heading that precedes the standalone embed */
h3.fm-video-section-hd {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 32px 0 8px !important;
    padding: 0;
}

/* === New standalone wp:embed block format ===
   fm-video-embed-box is a className on the <figure> element itself. */
figure.wp-block-embed.fm-video-embed-box {
    background: #0f172a;
    border: 1.5px solid #334155;
    border-radius: 14px;
    overflow: hidden;
    margin: 0 0 34px !important;
    padding: 0 !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

figure.wp-block-embed.fm-video-embed-box .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
}

figure.wp-block-embed.fm-video-embed-box .wp-block-embed__wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}

figure.wp-block-embed.fm-video-embed-box figcaption.wp-element-caption,
figure.wp-block-embed.fm-video-embed-box .wp-element-caption {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 !important;
    padding: 10px 18px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    text-align: left;
}

/* === Legacy: old wp:group wrapper format (backward compat for older saved posts) === */
.wp-block-group.fm-video-embed-box {
    background: #0f172a;
    border: 1.5px solid #334155;
    border-radius: 14px;
    padding: 22px 24px;
    margin: 30px 0 34px;
    color: #f8fafc;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

.fm-video-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.fm-video-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 11px;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.45);
}

.fm-video-badge .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    line-height: 15px;
}

.fm-video-title {
    font-size: 18.5px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff !important;
    margin: 0 !important;
}

.fm-video-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.fm-video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Legacy: inner embed/iframe selectors for the old wp:group wrapper format */
.wp-block-group.fm-video-embed-box .wp-block-embed,
.wp-block-group.fm-video-embed-box figure.wp-block-embed {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.wp-block-group.fm-video-embed-box .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.wp-block-group.fm-video-embed-box .wp-block-embed iframe,
.wp-block-group.fm-video-embed-box figure.wp-block-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

/* Legacy paragraph caption */
.fm-video-caption {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 14px 0 0 !important;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fm-video-caption em {
    color: #cbd5e1;
    font-style: normal;
}

/* ==========================================================================
   17B. Dual-Language Video Switcher (2-in-1 English + Hindi Tabs)
   ========================================================================== */
.fm-video-switcher-box,
div.wp-block-feelmusic-dual-video,
div.fm-editor-dual-video {
    background: #090d16 !important;
    border: 1.5px solid #1e293b !important;
    border-top: 3.5px solid #dc2626 !important;
    border-radius: 16px !important;
    padding: 22px 24px 24px !important;
    margin: 34px 0 38px !important;
    color: #f8fafc !important;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.fm-video-switcher-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.fm-video-switcher-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

.fm-video-card-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 5px 13px !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.45) !important;
    line-height: 1.2 !important;
}

.fm-video-card-badge .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    line-height: 14px !important;
}

.fm-video-hint-badge {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    margin-left: 2px !important;
}

/* Tabs switcher pills container */
.fm-video-switcher-tabs {
    display: inline-flex !important;
    background: #020617 !important;
    border: 1.5px solid #1e293b !important;
    border-radius: 9999px !important;
    padding: 4px !important;
    gap: 4px !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Tab button - bulletproof override of theme button defaults */
.fm-video-switcher-box button.fm-video-tab,
div.fm-editor-dual-video button.fm-video-tab,
button.fm-video-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 7px 16px !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
}

.fm-video-switcher-box button.fm-video-tab:hover,
div.fm-editor-dual-video button.fm-video-tab:hover,
button.fm-video-tab:hover {
    color: #f1f5f9 !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Active English Tab */
.fm-video-switcher-box button.fm-video-tab.is-active,
div.fm-editor-dual-video button.fm-video-tab.is-active,
button.fm-video-tab.is-active {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45) !important;
    font-weight: 700 !important;
}

/* Active Hindi Tab */
.fm-video-switcher-box button.fm-video-tab[data-lang="hi"].is-active,
div.fm-editor-dual-video button.fm-video-tab[data-lang="hi"].is-active,
button.fm-video-tab[data-lang="hi"].is-active {
    background: #ea580c !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.45) !important;
}

.fm-tab-flag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.fm-flag-svg {
    border-radius: 2px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* Video Panes */
.fm-video-pane {
    position: relative !important;
    width: 100% !important;
}

.fm-pane-video-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 14px !important;
    line-height: 1.4 !important;
}

/* Video Responsive 16:9 Player */
.fm-video-responsive {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #000000 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55) !important;
}

.fm-video-responsive iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

/* Video Caption */
.fm-video-switcher-box .fm-video-caption,
div.fm-editor-dual-video .fm-video-caption,
.fm-video-caption {
    font-size: 13px !important;
    color: #94a3b8 !important;
    line-height: 1.5 !important;
    margin: 14px 0 0 !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
    text-align: left !important;
}

.fm-video-caption em {
    color: #cbd5e1 !important;
    font-style: normal !important;
}

/* Badge for Hindi single video */
.fm-badge-hindi {
    background: #ea580c !important;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.45) !important;
}

/* Editor preview placeholders */
.fm-video-placeholder {
    padding: 24px !important;
    background: #020617 !important;
    border: 1.5px dashed #334155 !important;
    border-radius: 10px !important;
    text-align: center !important;
    color: #cbd5e1 !important;
    margin-bottom: 12px !important;
}

.fm-video-placeholder p {
    margin: 0 0 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
}




