/* ============================================================
   MP3-JUICE.APP - Main Stylesheet v4.0
   Mobile-First | All Devices Optimized
   Breakpoints:
     xs  : < 360px  (small Android, iPhone SE old)
     sm  : 360-480px (iPhone SE, small Android)
     md  : 481-768px (iPhone Plus, large Android, iPad mini)
     lg  : 769-1024px (iPad, tablets)
     xl  : > 1024px (desktop)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    --primary: #1676c2;
    --primary-dark: #0f5fa0;
    --accent: #4c956c;
    --accent-light: #5daf80;
    --white: #ffffff;
    --text-light: rgba(255,255,255,0.85);
    --text-muted: rgba(255,255,255,0.6);
    --card-bg: rgba(255,255,255,0.1);
    --card-border: rgba(255,255,255,0.15);
    --shadow-sm: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.18);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --max-width: 680px;
    --transition: all 0.25s ease;
    /* Spacing scale */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 20px;
    --space-lg: 32px;
    --space-xl: 48px;
    /* Touch targets (min 44px per Apple HIG) */
    --touch-min: 44px;
    /* Safe area insets for iPhone notch/home bar */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* hapus tap highlight biru di Android/iOS */
}

html {
    -webkit-text-size-adjust: 100%; /* cegah auto zoom font di iOS */
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(160deg, #0d4f8c 0%, #1676c2 45%, #1a8fd1 100%);
    background-attachment: fixed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport height untuk mobile browser dengan toolbar */
    overflow-x: hidden;
    /* Safe area padding untuk iPhone X/notch */
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    padding-bottom: var(--safe-bottom);
}

/* ============================================================
   SEO HIDDEN H1
   ============================================================ */
#page-seo-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   WRAPPER — padding samping konsisten semua halaman
   ============================================================ */
#header, #languages, #logo, form,
#trust-badges, #features, #how-it-works,
#faq-section, #text, #results, #footer, #changelog {
    padding-left: max(16px, var(--safe-left));
    padding-right: max(16px, var(--safe-right));
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
    max-width: var(--max-width);
    border-bottom: 1px rgba(255,255,255,0.18) solid;
    margin: 0 auto;
    padding-top: max(12px, var(--safe-top));
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--touch-min);
}

#header a {
    color: var(--white);
    text-decoration: none;
    margin-right: 10px;
    font-size: 13px;
    opacity: 0.85;
    transition: var(--transition);
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
}

#header a:hover, #header a:focus { opacity: 1; }
#header a:last-of-type { margin-right: 0; }

#header div:last-of-type a {
    font-weight: 700;
    font-size: 13px;
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.2px;
    transition: var(--transition);
    white-space: nowrap;
}

#header div:last-of-type a:hover {
    background: rgba(255,255,255,0.25);
}

#lang-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.25s ease;
    display: inline-block;
}

#language[aria-expanded="true"] #lang-arrow {
    transform: rotate(180deg);
}

/* ============================================================
   LANGUAGE SWITCHER DROPDOWN
   ============================================================ */
#languages {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px max(16px, var(--safe-left));
    display: none;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px rgba(255,255,255,0.15) solid;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

#languages a {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    background: rgba(255,255,255,0.12);
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--transition);
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

#languages a span {
    font-weight: 400;
    font-size: 12px;
    opacity: 0.75;
}

#languages a:hover,
#languages a:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-1px);
}

/* ============================================================
   LOGO
   ============================================================ */
#logo {
    text-align: center;
    max-width: var(--max-width);
    margin: var(--space-lg) auto var(--space-md);
}

#logo img {
    width: 200px;          /* fixed — tidak berubah apapun yang terjadi */
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: none;      /* matikan semua transisi pada logo */
    transform: none !important; /* cegah transform dari parent */
}

/* ============================================================
   SEARCH FORM
   ============================================================ */
form {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 620px;
    border-radius: var(--radius-md);
    margin: 0 auto;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1000;
    overflow: visible;
}

form > div { position: relative; overflow: visible; }

#input {
    position: relative;
    display: flex;
    overflow: visible;
}

form div div:nth-of-type(1) { display: flex; }

form input {
    font-size: 16px; /* min 16px cegah auto-zoom iOS */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    height: 52px;
    border: none;
    outline: none;
}

form input[type="text"] {
    color: #1a3a5c;
    background: #ffffff;
    width: 80%;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 0 16px;
    transition: var(--transition);
    /* cegah zoom di iOS saat focus — font sudah 16px */
    -webkit-appearance: none;
    appearance: none;
}

form input[type="text"]:focus {
    box-shadow: inset 0 0 0 2px rgba(76,149,108,0.5);
    position: relative;
    z-index: 1;
}

form input[type="submit"] {
    color: var(--white);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    font-weight: 700;
    font-size: 14px;
    width: 20%;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
    min-height: var(--touch-min);
}

form input[type="submit"]:active {
    background: linear-gradient(135deg, var(--accent-light) 0%, #6dc494 100%);
    transform: scale(0.98);
}

@media (hover: hover) {
    form input[type="submit"]:hover {
        background: linear-gradient(135deg, var(--accent-light) 0%, #6dc494 100%);
        transform: translateY(-1px);
    }
}

/* ============================================================
   LOADER
   ============================================================ */
#lookup {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    width: 20%;
    height: 52px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0; right: 0;
    z-index: 1;
}

.loader {
    display: block;
    border: 3px rgba(255,255,255,0.3) solid;
    border-top: 3px var(--white) solid;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    height: 22px;
    width: 22px;
}

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

/* ============================================================
   RESULTS
   ============================================================ */
#results {
    display: none;
    max-width: var(--max-width);
    margin: 20px auto;
}

iframe { border: none; }

.result {
    background: var(--white);
    max-width: 620px;
    border-radius: var(--radius-sm);
    margin: 0 auto 8px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

@media (hover: hover) {
    .result:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
}

.result div:nth-of-type(1) {
    color: #003261;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 600;
    font-size: 14px;
}

.result div:nth-of-type(2) {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.result a {
    color: var(--white);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    text-decoration: none;
    min-width: 100px;
    height: var(--touch-min);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    padding: 0 12px;
}

.result a:nth-of-type(3) { min-width: 60px; }
.result a:last-of-type {
    color: var(--accent);
    background: transparent;
    min-width: 60px;
    border: 2px solid var(--accent);
    margin-right: 0;
}

#player {
    background: rgba(255,255,255,0.1);
    max-width: 620px;
    border-radius: var(--radius-sm);
    margin: 0 auto 8px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ============================================================
   SUGGESTION AUTOCOMPLETE
   ============================================================ */
#suggestion {
    display: none;
    position: absolute;
    background: var(--white);
    border: 1px solid #d0d9e8;
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    overflow: hidden;
    z-index: 99999;
    width: 80%;         /* sama dengan lebar input text */
    top: 52px;          /* sama dengan tinggi input */
    left: 0;
    box-shadow: 0 10px 36px rgba(0,0,0,0.22);
    max-height: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll di iOS */
}

.suggestion-item {
    padding: 13px 16px;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: #1a3a5c;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f4f8;
}

.suggestion-item:last-child { border-bottom: none; }

.suggestion-item:hover,
.suggestion-item:active,
.suggestion-item.active {
    background: #f0f7ff;
    color: var(--accent);
}

/* ============================================================
   TRUST BADGES SECTION
   ============================================================ */
#trust-badges {
    max-width: var(--max-width);
    margin: var(--space-md) auto 0;
}

.trust-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 16px 8px;
    flex-wrap: nowrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 12px;
    flex: 1;
    min-width: 0;
}

.trust-number {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.trust-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.trust-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
#features {
    max-width: var(--max-width);
    margin: var(--space-lg) auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px 14px;
    text-align: center;
    transition: var(--transition);
}

@media (hover: hover) {
    .feature-card:hover {
        background: rgba(255,255,255,0.18);
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.2);
        border-color: rgba(255,255,255,0.3);
    }
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 14px rgba(76,149,108,0.35);
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 18px;
    color: var(--white);
}

.feature-card h3 {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.1px;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
#how-it-works {
    max-width: var(--max-width);
    margin: var(--space-lg) auto;
}

.section-title {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.steps-container {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.step {
    flex: 1;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (hover: hover) {
    .step:hover {
        background: rgba(255,255,255,0.18);
        transform: translateY(-3px);
    }
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(76,149,108,0.35);
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}

.step-content p {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
}

.step-arrow {
    color: rgba(255,255,255,0.35);
    font-size: 16px;
    flex-shrink: 0;
    align-self: center;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
#faq-section {
    max-width: var(--max-width);
    margin: var(--space-lg) auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover { border-color: rgba(255,255,255,0.28); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    gap: 12px;
    transition: background 0.2s;
    min-height: var(--touch-min);
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
}

.faq-question:hover,
.faq-question:focus { background: rgba(255,255,255,0.06); outline: none; }

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    opacity: 0.7;
    font-size: 12px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer.open {
    max-height: 300px;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.7;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 12px 18px 16px;
    margin: 0;
}

/* ============================================================
   MAIN TEXT / ARTICLE SECTION
   ============================================================ */
#text {
    max-width: var(--max-width);
    margin: var(--space-lg) auto;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 24px 20px;
}

#text h1, #text h2, #text h3, #text h4 {
    color: var(--white);
    font-weight: 700;
    margin: 18px 0 10px;
    line-height: 1.35;
}

#text h1 { font-size: 20px; margin-top: 0; }
#text h2 { font-size: 17px; }
#text h3 { font-size: 15px; }
#text h4 { font-size: 14px; }

#text p {
    color: var(--text-light);
    line-height: 1.75;
    font-size: 13.5px;
    margin: 10px 0;
}

#text a { color: #7dd4f0; text-decoration: none; }
#text a:hover { text-decoration: underline; }

#text ol, #text ul {
    color: var(--text-light);
    line-height: 1.75;
    padding-left: 18px;
    font-size: 13.5px;
    list-style-position: outside;
    list-style-type: decimal;
}

#text ul { list-style-type: disc; }
#text li { margin-bottom: 8px; }
#text li strong { color: var(--white); }

/* ============================================================
   LEGACY TEXT2 (for other pages)
   ============================================================ */
#text2 {
    background: var(--white);
    max-width: 620px;
    border-radius: var(--radius-sm);
    margin: 0 auto 36px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

#text2 h2 { color: #1a3a5c; font-size: 17px; margin: 18px 0 8px; }
#text2 p { color: #434343; line-height: 1.7; margin: 8px 0; font-size: 14px; }
#text2 p a { color: #434343; }
#text2 .b { font-weight: bold; }
#text2 .u { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    text-align: center;
    max-width: var(--max-width);
    border-top: 1px rgba(255,255,255,0.18) solid;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: max(24px, var(--safe-bottom));
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
}

#footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 8px 10px;
    font-size: 13px;
    transition: var(--transition);
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
}

#footer a:hover, #footer a:focus { color: var(--white); }

#changelog {
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
    max-width: var(--max-width);
    margin: 16px auto 8px;
}

/* ============================================================
   MARGIN UTILITY
   ============================================================ */
#margin { margin-top: 20px; }

/* ============================================================
   RESPONSIVE — TABLET (481px – 768px)
   iPhone Plus, large Android, small iPad
   ============================================================ */
@media only screen and (max-width: 768px) {
    :root { --space-lg: 24px; }

    #logo { margin: var(--space-md) auto 16px; }
    #logo img { width: 200px; max-width: 200px; }

    form input[type="text"] { width: 78%; }
    form input[type="submit"] { width: 22%; }
    #lookup { width: 22%; }
    #suggestion { width: 78%; }

    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .trust-item { padding: 6px 8px; }
    .trust-number { font-size: 20px; }
    .trust-label { font-size: 9px; }

    .section-title { font-size: 18px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 480px)
   iPhone SE, standard Android
   ============================================================ */
@media only screen and (max-width: 480px) {
    :root {
        --space-lg: 20px;
        --space-md: 16px;
        --radius-md: 14px;
        --radius-lg: 20px;
    }

    body { font-size: 13px; }

    #header { padding-top: max(10px, var(--safe-top)); }
    #header a { font-size: 12px; margin-right: 6px; }
    #header a:nth-of-type(2) { display: none; } /* sembunyikan Contact di mobile */

    #logo { margin: 16px auto 14px; }
    #logo img { width: 200px; max-width: 200px; }

    /* Search form — full width feel di mobile */
    form { padding: 10px; border-radius: var(--radius-sm); }
    form input { height: 50px; }
    form input[type="text"] {
        width: 74%;
        padding: 0 12px;
        font-size: 16px; /* WAJIB 16px+ agar tidak auto-zoom di iOS */
        border-radius: 8px 0 0 8px;
    }
    form input[type="submit"] {
        width: 26%;
        font-size: 12px;
        border-radius: 0 8px 8px 0;
    }
    #lookup { width: 26%; height: 50px; border-radius: 0 8px 8px 0; }
    #suggestion { width: 74%; top: 50px; }

    /* Trust badges — 2 kolom di hp kecil */
    .trust-inner {
        flex-wrap: wrap;
        padding: 12px 8px;
        border-radius: var(--radius-md);
        gap: 8px;
    }
    .trust-divider { display: none; }
    .trust-item {
        flex: 0 0 calc(50% - 8px);
        padding: 8px 4px;
        border-radius: var(--radius-sm);
        background: rgba(255,255,255,0.06);
    }
    .trust-number { font-size: 20px; }
    .trust-label { font-size: 9px; }

    /* Features — 2 kolom */
    .features-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .feature-card { padding: 16px 10px; border-radius: var(--radius-sm); }
    .feature-icon { width: 42px; height: 42px; margin-bottom: 10px; }
    .feature-icon i { font-size: 16px; }
    .feature-card h3 { font-size: 12px; }
    .feature-card p { font-size: 10.5px; }

    /* How it works — vertikal */
    .steps-container { flex-direction: column; gap: 6px; }
    .step { padding: 16px 14px; flex-direction: row; text-align: left; gap: 14px; border-radius: var(--radius-sm); }
    .step-number { margin: 0; flex-shrink: 0; width: 36px; height: 36px; font-size: 15px; }
    .step-content h3 { font-size: 13px; margin-bottom: 4px; }
    .step-content p { font-size: 11px; }
    .step-arrow { display: none; }
    .section-title { font-size: 16px; margin-bottom: 14px; }

    /* FAQ */
    .faq-question { padding: 14px 14px; font-size: 13px; }
    .faq-answer p { font-size: 12.5px; padding: 10px 14px 14px; }

    /* Text article */
    #text { padding: 18px 16px; border-radius: var(--radius-sm); }
    #text h1 { font-size: 18px; }
    #text h2 { font-size: 16px; }
    #text h3 { font-size: 14px; }
    #text p, #text li { font-size: 13px; }

    /* Results */
    .result { padding: 12px; }
    .result a { font-size: 12px; min-width: 80px; height: 40px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 360px)
   iPhone SE 1st gen, small Android (Redmi, Realme entry)
   ============================================================ */
@media only screen and (max-width: 360px) {
    :root { --space-md: 12px; }

    form input[type="text"] { width: 70%; padding: 0 10px; }
    form input[type="submit"] { width: 30%; font-size: 11px; }
    #lookup { width: 30%; }
    #suggestion { width: 70%; }

    .trust-number { font-size: 18px; }
    .trust-label { font-size: 8px; letter-spacing: 0; }

    .features-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .feature-card { padding: 12px 8px; }
    .feature-icon { width: 36px; height: 36px; }
    .feature-icon i { font-size: 14px; }
    .feature-card h3 { font-size: 11px; }
    .feature-card p { display: none; } /* terlalu sempit, sembunyikan deskripsi */

    .section-title { font-size: 15px; }
    .faq-question { font-size: 12.5px; padding: 12px 12px; }
    #text { padding: 16px 14px; }

    #footer a { padding: 6px 8px; font-size: 12px; }
}

/* ============================================================
   RESPONSIVE — LANDSCAPE PHONE (max-height: 450px)
   iPhone landscape, Android landscape
   ============================================================ */
@media only screen and (max-height: 450px) and (orientation: landscape) {
    #logo { margin: 10px auto 10px; }
    #logo img { width: 200px; max-width: 200px; }

    form { padding: 8px; }
    form input { height: 44px; }
    #lookup { height: 44px; }

    #trust-badges { margin: 10px auto 0; }
    .trust-inner { padding: 8px; }
    .trust-number { font-size: 16px; }

    #features { margin: 16px auto; }
    .features-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .feature-card { padding: 12px 8px; }
    .feature-icon { width: 36px; height: 36px; margin-bottom: 8px; }

    #how-it-works, #faq-section { margin: 16px auto; }
    .steps-container { flex-direction: row; }
    .step { padding: 12px 8px; }
    .step-arrow { display: flex; }
}

/* ============================================================
   SOUTH AFRICA CHART SECTION
   ============================================================ */
#chart-za {
    max-width: var(--max-width);
    margin: 28px auto;
    padding: 0 max(16px, var(--safe-left));
}

.chart-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(0,134,62,0.25) 0%, rgba(255,184,0,0.15) 50%, rgba(0,134,62,0.1) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,184,0,0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chart-flag-icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.chart-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 4px 0;
    letter-spacing: -0.2px;
}

.chart-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.chart-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
    cursor: pointer;
}

.chart-item:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.chart-rank {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    line-height: 1;
}

.chart-rank-top {
    color: #fbbf24;
    text-shadow: 0 0 12px rgba(251,191,36,0.5);
}

.chart-crown {
    display: block;
    font-size: 10px;
    text-align: center;
    margin-bottom: 1px;
    filter: drop-shadow(0 0 4px rgba(251,191,36,0.8));
}

.chart-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chart-song-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.chart-artist {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.chart-genre-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
    display: none; /* hidden on mobile, shown on tablet+ */
}

.chart-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    font-family: inherit;
    min-height: 32px;
    white-space: nowrap;
}

.chart-dl-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.04);
}

.chart-dl-btn:active {
    transform: scale(0.97);
}

/* Tablet: show genre badge */
@media (min-width: 480px) {
    .chart-genre-badge { display: inline-block; }
    .chart-title { font-size: 17px; }
    .chart-song-title { font-size: 14px; }
    .chart-artist { font-size: 12px; }
    .chart-dl-btn { font-size: 12px; padding: 8px 14px; }
}

/* Desktop */
@media (min-width: 769px) {
    .chart-item { padding: 14px 18px; gap: 16px; }
    .chart-rank { min-width: 32px; font-size: 16px; }
    .chart-header { padding: 20px 24px; }
    .chart-flag-icon { font-size: 48px; }
}

/* ============================================================
   2026 MODERN AESTHETIC & ARTICLES HUB REDESIGN
   ============================================================ */

/* Hero Section */
.hero-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 18px;
    padding: 0 16px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #e0f2fe;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.hero-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    margin: 0 auto;
}

/* Trending Chips */
#trending-chips {
    max-width: 620px;
    margin: 12px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
}

.chip-label {
    font-size: 12px;
    font-weight: 700;
    color: #fde047;
    margin-right: 2px;
}

.trend-chip {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 5px 12px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.trend-chip:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Trust Badges Grid */
#trust-badges.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 680px;
    margin: 20px auto 0;
    padding: 0 16px;
}

.trust-item {
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.trust-icon {
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.trust-content strong {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trust-content span {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sections Common Header */
.section-header {
    text-align: center;
    margin-bottom: 22px;
    padding: 0 12px;
}

.section-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a7f3d0;
    margin-bottom: 8px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Articles Hub Section */
#articles-hub.articles-hub-section {
    max-width: 960px;
    margin: 36px auto;
    padding: 0 16px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.article-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.article-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.article-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #7dd3fc;
}

.article-read-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
}

.article-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.article-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #38bdf8;
}

.article-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.article-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #38bdf8;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.article-link:hover {
    color: #7dd3fc;
}

.article-link:hover .arr {
    transform: translateX(4px);
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Features Showcase Grid */
#features.features-section {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 28px;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
}

.feature-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* 3 Easy Steps Section */
#how-it-works.how-section {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 16px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.step-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 24px 20px;
    position: relative;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-align: left;
}

.step-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.38);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.step-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.step-num-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.step-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a7f3d0;
}

.step-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.step-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* Modern Multi-Column Footer */
#main-footer {
    background: rgba(9, 24, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 48px;
    padding: 44px 20px 24px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-container {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1.6fr 1fr 1fr;
    gap: 28px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-desc {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.f-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #93c5fd;
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0 0 6px 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.4;
}

.footer-links li a:hover {
    color: #38bdf8;
    transform: translateX(3px);
}

.footer-bottom {
    max-width: 1040px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-disclaimer {
    margin: 0;
    line-height: 1.5;
}

.footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    #trust-badges.trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 18px;
    }
}

/* ============================================================
   PRINT — sembunyikan elemen tidak perlu saat print
   ============================================================ */
@media print {
    #header, #languages, #logo, form, #trust-badges,
    #features, #how-it-works, #faq-section, #footer, #chart-za { display: none; }
    body { background: white; }
    #text { border: none; background: white; color: black; }
    #text h1, #text h2, #text h3, #text h4, #text p, #text li { color: black; }
}