:root {
    --navy: #10172f;
    --purple: #4839f6;
    --purple-light: #eeeaff;
    --line: #e3e6ee;
    --page-width: 100%;
    --bottom-nav: 60px;
}

* { box-sizing: border-box; }
html { background: #f1f3f8; scroll-behavior: smooth; }
body {
    min-width: 320px;
    min-height: 100vh;
    max-width: var(--page-width);
    margin: 0 auto;
    color: var(--navy);
    background: #f0f0f0;
    font: 16px Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus-visible { outline: 3px solid #9e91ff; outline-offset: 3px; }
main{padding-bottom:50px;}

.site-header {
    height: 56px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: radial-gradient(circle at 14% 0%, rgba(82, 73, 237, .18), transparent 35%),
                linear-gradient(135deg, #10152b, #11182f);
}
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-button,
.search-submit {
    border: 0;
    color: #fff;
    background: none;
    cursor: pointer;
}
.header-button { width: 44px; height: 44px; padding: 9px; }
.header-button svg,
.search-submit svg,
.stat-icon svg,
.filter-button > svg,
.filter-group-toggle > svg:first-child,
.group-chevron,
.tone-meta svg,
.icon-button svg,
.download-button svg,
.load-more svg,
.nav-item svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.header-button svg, .search-submit svg { width: 100%; height: 100%; stroke-width: 1.8; }
.header-search {
    width: clamp(300px, 32vw, 595px);
    height: 40px;
    padding-left: 18px;
    border-radius: 22px;
    display: none;
    align-items: center;
    overflow: hidden;
    background: #3d4054;
}
.site-header.search-open .search-trigger { display: none; }
.site-header.search-open .header-search { display: flex; }
.header-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
    font: inherit;
}
.header-search input::placeholder { color: rgba(255, 255, 255, .95); opacity: 1; }
.search-submit { flex: 0 0 44px; width: 44px; height: 40px; padding: 8px 9px; }
.search-close { display: none; }

html.menu-open, html.menu-open body { overflow: hidden; overscroll-behavior: none; }
html.filter-modal-open { overscroll-behavior: none; }
.menu-backdrop {
    position: fixed;
    z-index: 40;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background: rgba(5, 8, 20, .22);
    cursor: pointer;
    transition: opacity .2s ease, visibility .2s ease;
}
.menu-backdrop.open { opacity: 1; visibility: visible; }
.menu-drawer {
    position: fixed;
    z-index: 50;
    inset: 0 0 0 auto;
    width: min(66vw, 500px);
    min-width: min(280px, 100vw);
    padding: 7px 12px max(28px, env(safe-area-inset-bottom));
    overflow-y: auto;
    visibility: hidden;
    color: #fff;
    background: #050505;
    box-shadow: -12px 0 36px rgba(0, 0, 0, .25);
    transform: translateX(102%);
    transition: transform .24s ease, visibility .24s ease;
}
.menu-drawer.open { visibility: visible; transform: translateX(0); }
.menu-close { position: absolute; top: 7px; right: 12px; }
.menu-groups { display: grid; }
.menu-group { padding: 12px 0; border-bottom: 1px solid #363636; }
.menu-group:first-child { padding: 0 52px 12px 0; }
.menu-group:first-child .menu-link { min-height: 44px; padding-block: 8px; }
.menu-group:last-of-type { border-bottom: 0; }
.menu-link {
    min-height: 36px;
    padding: 6px 0;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
    transition: color .2s ease;
}
.menu-link:hover, .menu-link:focus-visible { color: #a995ff; }
.menu-socials { padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.menu-socials a { min-height: 34px; display: inline-flex; align-items: center; color: #fff; font-size: 12px; }

.intro { padding: 17px 20px 14px; }
.intro h1 { margin: 0 0 14px; font-size: 24px; line-height: 1.1; letter-spacing: -.7px; }
.stats {
    display: grid;
    grid-template-columns: max-content minmax(8px, 1fr) max-content minmax(8px, 1fr) max-content;
    align-items: center;
    overflow: hidden;
}
.stat { min-width: 0; display: flex; align-items: center; gap: 8px; }
.stat:last-child { justify-self: end; }
.stat-divider { width: 1px; height: 40px; justify-self: center; background: #d8dce6; }
.stat-icon {
    flex: 0 0 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #e0e3ea;
    border-radius: 9px;
    color: #000;
    background: linear-gradient(145deg, #eee, #ddd);
}
.stat-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.stat-copy { min-width: 0; }
.stat-copy strong { display: block; white-space: nowrap; font-size: 18px; line-height: 1.05;color:#333; }
.stat-copy span { display: block; margin-top: 4px; white-space: nowrap; font-size: 12px; }

.filter-sentinel { height: 1px; margin-bottom: -1px; pointer-events: none; }
.filter-wrap {
    position: sticky;
    z-index: 20;
    top: 0;
    padding: 0 13px;
    margin:0 0 20px 0;
}
.filter-wrap.is-stuck {
    padding: 0;
    background: #0d1328;
    box-shadow: 0 8px 18px rgba(8, 12, 27, .28);
}
.filter-button {
    width: 100%;
    min-height: 58px;
    padding: 0 16px;
    border: 1.5px solid #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--purple);
    background: #fff;
    cursor: pointer;
    text-align: left;
}
.filter-wrap.is-stuck .filter-button { border: 0; color: #f2f3ff; background: #171e36; }
.filter-wrap.is-stuck .filter-count { color: #d8d5ff; background: #272e4d; }
.filter-wrap.is-stuck .filter-count::before { background: #7c70ff; }
.filter-button > svg { width: 23px; height: 23px; stroke-width: 1.65; }
.filter-title { flex: 1; white-space: nowrap; font-size: 16px; font-weight: 750; }
.filter-count { padding: 7px 10px; border-radius: 28px; white-space: nowrap; background: var(--purple-light); font-size: 13px; }
.filter-count::before { content: ""; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; display: inline-block; background: var(--purple); }
.filter-chevron { width: 14px !important; height: 14px !important; stroke-width: 3 !important; }
.filter-close-icon { display: none; width: 20px !important; height: 20px !important; stroke-width: 2 !important; }
.filter-button[aria-expanded="true"] { border-radius: 8px 8px 0 0; border-bottom-color: #dfe2ea; }
.filter-button[aria-expanded="true"] .filter-chevron { display: none; }
.filter-button[aria-expanded="true"] .filter-close-icon { display: block; }
.filter-panel {
    display: none;
    padding: 8px;
    border: 1.5px solid #333;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
}
.filter-panel.open { display: block; }
.filter-wrap.is-stuck .filter-panel.open {
    position: absolute;
    top: 100%;
    left: 50%;
    width: min(1200px, 100%);
    max-height: calc(100vh - 58px - var(--bottom-nav) - env(safe-area-inset-bottom) - 8px);
    max-height: calc(100dvh - 58px - var(--bottom-nav) - env(safe-area-inset-bottom) - 8px);
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    transform: translateX(-50%);
}
.filter-backdrop {
    position: fixed;
    z-index: 19;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background: rgba(55, 65, 81, .46);
    pointer-events: none;
    touch-action: none;
    transition: opacity .18s ease, visibility .18s ease;
}
.filter-backdrop.active { opacity: 1; visibility: visible; pointer-events: auto; }
.filter-form { display: grid; }
.filter-group { border-bottom: 1px solid #e1e4ea; }
.filter-group:last-child { border-bottom: 0; }
.filter-group-toggle {
    width: 100%;
    min-height: 48px;
    padding: 6px 12px;
    border: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}
.filter-group-toggle > svg:first-child { width: 20px; height: 20px; stroke-width: 1.8; }
.filter-group-toggle .group-label { flex: 1; }
.group-chevron { width: 16px; height: 16px; stroke-width: 2; transition: transform .2s ease; }
.filter-group-toggle[aria-expanded="true"] .group-chevron { transform: rotate(180deg); }
.filter-options { padding: 4px 12px 10px 42px; display: grid; background: #f3f4f6; }
.filter-options[hidden], .filter-options.is-multi[hidden] { display: none; }
.filter-option {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #30374b;
    font-size: 14px;
    cursor: pointer;
}
.filter-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice-mark {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #8b9099;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: #fff;
}
input[type="radio"] + .choice-mark { border-radius: 50%; }
.filter-option input:checked + .choice-mark { border-color: #348df5; box-shadow: 0 0 0 2px rgba(52, 141, 245, .12); }
.filter-option input:checked + .choice-mark::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #348df5; }
.filter-option input[type="radio"]:checked + .choice-mark::after { border-radius: 50%; }
.filter-options.is-multi { padding: 9px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.filter-options.is-multi .filter-option {
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid #dce0e9;
    border-radius: 8px;
    gap: 5px;
    background: #fff;
    font-size: 13px;
    line-height: 1.15;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.filter-options.is-multi .choice-mark { display: none; }
.filter-options.is-multi .filter-option:has(input:checked) { border-color: #a89fff; color: #3f32df; background: #f0eeff; }
.filter-options.is-multi .filter-option:has(input:checked)::before { content: "✓"; font-size: 12px; font-weight: 800; line-height: 1; }

.ringtone-list {
    padding: 0 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 12px;
    align-items: stretch;
}
.ringtone-card {
    --tone-gradient: linear-gradient(135deg, #f472b6, #a21caf);
    --tone-accent: #a21caf;
    --tone-accent-rgb: 162, 28, 175;
    min-width: 0;
    max-width: 100%;
    padding: 16px 13px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 7px rgba(24, 32, 61, .06);
}
.ringtone-card[data-sound-type="mantra"] { --tone-gradient: linear-gradient(135deg, #a78bfa, #6d28d9); --tone-accent: #6d28d9; --tone-accent-rgb: 109, 40, 217; }
.ringtone-card[data-sound-type="chant"] { --tone-gradient: linear-gradient(135deg, #818cf8, #4338ca); --tone-accent: #4338ca; --tone-accent-rgb: 67, 56, 202; }
.ringtone-card[data-sound-type="aarti"] { --tone-gradient: linear-gradient(135deg, #fb923c, #c2410c); --tone-accent: #c2410c; --tone-accent-rgb: 194, 65, 12; }
.ringtone-card[data-sound-type="bhajan"] { --tone-gradient: linear-gradient(135deg, #4ade80, #15803d); --tone-accent: #15803d; --tone-accent-rgb: 21, 128, 61; }
.ringtone-card[data-sound-type="bgm"] { --tone-gradient: linear-gradient(135deg, #60a5fa, #1d4ed8); --tone-accent: #1d4ed8; --tone-accent-rgb: 29, 78, 216; }
.ringtone-card[data-sound-type="instrumental"] { --tone-gradient: linear-gradient(135deg, #2dd4bf, #0f766e); --tone-accent: #0f766e; --tone-accent-rgb: 15, 118, 110; }
.ringtone-card[data-sound-type="damru"] { --tone-gradient: linear-gradient(135deg, #fbbf24, #a16207); --tone-accent: #a16207; --tone-accent-rgb: 161, 98, 7; }
.ringtone-card[data-sound-type="sfx"] { --tone-gradient: linear-gradient(135deg, #fb7185, #be123c); --tone-accent: #be123c; --tone-accent-rgb: 190, 18, 60; }
.ringtone-card[data-sound-type="notification"] { --tone-gradient: linear-gradient(135deg, #38bdf8, #0369a1); --tone-accent: #0369a1; --tone-accent-rgb: 3, 105, 161; }
.ringtone-card[data-sound-type="song"] { --tone-gradient: linear-gradient(135deg, #f472b6, #a21caf); --tone-accent: #a21caf; --tone-accent-rgb: 162, 28, 175; }
.ringtone-card[data-sound-type="remix"] { --tone-gradient: linear-gradient(135deg, #c084fc, #7c3aed); --tone-accent: #7c3aed; --tone-accent-rgb: 124, 58, 237; }
.tone-head { display: flex; align-items: flex-start; gap: 8px; }
.play-button {
    flex: 0 0 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--tone-gradient);
    box-shadow: 0 7px 18px rgba(var(--tone-accent-rgb), .16);
    cursor: pointer;
    touch-action: manipulation;
    transition: filter .2s ease, box-shadow .2s ease;
}
.play-button:hover { filter: saturate(1.08) brightness(.97); box-shadow: 0 9px 22px rgba(var(--tone-accent-rgb), .24); }
.play-disc { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: #fff; }
.play-disc svg { grid-area: 1 / 1; width: 30px; height: 30px; fill: currentColor; }
.play-loading-icon { display: none; fill: none !important; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 38 16; }
.play-button.is-loading .play-state-icon,
.detail-play-button.is-loading .play-state-icon { display: none; }
.play-button.is-loading .play-loading-icon,
.detail-play-button.is-loading .play-loading-icon { display: block; animation: audio-loading-spin .75s linear infinite; }
.play-button:disabled,
.detail-play-button:disabled { cursor: wait; }
.tone-copy { flex: 1; min-width: 0; }
.tone-copy h2 { min-height: 2.1rem; max-width: 310px; margin: 0; font-size: 16px; line-height: 1.05; overflow-wrap: anywhere; }
.tone-meta { display: flex; align-items: center; gap: 7px; color: #33405f; font-size: 12px; }
.tone-meta span { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.tone-meta svg { width: 16px; height: 16px; stroke-width: 1.5; }
.tone-meta i { width: 1px; height: 15px; background: #cfd3dc; }
.tone-actions { flex: 0 0 32px; display: flex; flex-direction: column; gap: 1px; }
.icon-button { width: 32px; height: 32px; padding: 6px; border: 0; color: #53607e; background: none; cursor: pointer; }
.icon-button svg { width: 100%; height: 100%; stroke-width: 1.7; }
.icon-button.heart.active svg { fill: #ef4e78; stroke: #ef4e78; }
.tags { margin-top: 2px; display: flex; flex-wrap: wrap; gap: 5px 7px; }
.tag { max-width: 100%; padding: 6px 9px; border: 1px solid #dce0ea; border-radius: 5px; font-size: 12px; line-height: 1.15; overflow-wrap: anywhere; transition: border-color .2s, color .2s; }
.tag:hover { border-color: var(--purple); color: var(--purple); }
.download-row { margin-top: auto; padding-top: 15px; display: flex; justify-content: flex-end; }
.download-button {
    min-width: 106px;
    height: 30px;
    padding: 0 10px;
    border-radius: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    background: var(--tone-accent);
    box-shadow: 0 5px 14px rgba(var(--tone-accent-rgb), .2);
    font-size: 12px;
    font-weight: 650;
    transition: filter .2s ease, box-shadow .2s ease;
}
.download-button:hover { filter: brightness(.9); box-shadow: 0 7px 18px rgba(var(--tone-accent-rgb), .3); }
.download-button svg { width: 18px; height: 18px; stroke-width: 1.8; }
.load-more {
    width: min(80%, 300px);
    min-height: 52px;
    margin: 18px auto 38px;
    border: 1.5px solid #cbc9ed;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #6259dc;
    background: #fff;
    box-shadow: 0 8px 22px rgba(54, 48, 145, .12);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.load-more:hover {
    border-color: #9891e5;
    color: #493fd1;
    background: #f8f7ff;
    box-shadow: 0 10px 25px rgba(54, 48, 145, .18);
}
.load-more svg { width: 18px; height: 18px; stroke-width: 2; }
.load-more.loading {
    cursor: wait;
    opacity: .82;
}
.load-more.loading svg {
    display: none;
    animation: none;
}
.load-more.loading::after {
    content: "";
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(98, 89, 220, .24);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.content-panel { margin:10px 10px 30px 10px;}
.content-panel h1.section_title,
.content-panel h2.section_title { margin-top:6px;margin-bottom:12px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 11px; }
.category {
    min-height: 76px;
    padding: 9px 4px;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--category-ink, #fff);
    text-align: center;
    background: var(--category-gradient);
    box-shadow: 0 6px 16px rgba(var(--category-rgb), .17);
    transition: filter .2s ease, box-shadow .2s ease;
}
.category:hover { filter: saturate(1.08) brightness(.97); box-shadow: 0 9px 21px rgba(var(--category-rgb), .27); }
.category:nth-child(8n+1) { --category-gradient: linear-gradient(225deg, #44bbcc -5%, #c779d0 53%, #feac5e 105%); --category-accent: #1a8291; --category-rgb: 26, 130, 145; }
.category:nth-child(8n+2) { --category-gradient: linear-gradient(225deg, #43cea2 -5%, #1579de 105%); --category-accent: #0d66bf; --category-rgb: 13, 102, 191; }
.category:nth-child(8n+3) { --category-gradient: linear-gradient(225deg, #d38312 -5%, #ee3ba7 106%); --category-accent: #d90986; --category-rgb: 217, 9, 134; }
.category:nth-child(8n+4) { --category-gradient: linear-gradient(45deg, #c84b5c -15%, #af7518 50%, #287a55 114%); --category-accent: #b42318; --category-rgb: 175, 117, 24; }
.category:nth-child(8n+5) { --category-gradient: linear-gradient(219deg, #3f8f43 -12%, #087529 114%); --category-accent: #047d14; --category-rgb: 4, 125, 20; }
.category:nth-child(8n+6) { --category-gradient: linear-gradient(49deg, #fc5c7d -14%, #6a82fb 104%); --category-accent: #2547f7; --category-rgb: 37, 71, 247; }
.category:nth-child(8n+7) { --category-gradient: linear-gradient(225deg, #c33764 -5%, #6f2dbd 105%); --category-accent: #7b1fa2; --category-rgb: 123, 31, 162; }
.category:nth-child(8n) { --category-gradient: linear-gradient(225deg, #098a9b -5%, #3548ba 105%); --category-accent: #2340b6; --category-rgb: 35, 64, 182; }
.category strong { font-size: 12px; line-height: 1.2; text-shadow: 0 1px 2px rgba(16, 23, 47, .16); }
.category span { margin-top: 8px; padding: 4px 9px; border-radius: 999px; color: var(--category-accent); background: rgba(255, 255, 255, .9); box-shadow: 0 2px 7px rgba(16, 23, 47, .1); font-size: 11px; }
.live { position: absolute; z-index: 3; top: 6px; left: 6px; padding: 2px 5px; border-radius: 5px; color: #fff; background: linear-gradient(90deg, #6041f7, #815bf9); font-size: 10px; font-weight: 700; }
.wallpaper-list {
    width: 100%;
    padding: 0 13px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 400px));
    gap: 10px;
    justify-content: space-evenly;
}
.wallpaper-list .wallpaper {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 9 / 16;
    flex: none;
    overflow: hidden;
    border-radius: 8px;
    background: #071326;
    box-shadow: 0 5px 15px rgba(8, 12, 27, .14);
    transition: filter .2s ease, box-shadow .2s ease;
}
.wallpaper-list .wallpaper-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wallpaper-list .wallpaper:hover { filter: brightness(1.06); box-shadow: 0 8px 20px rgba(8, 12, 27, .22); }

.wallpaper-hero { padding-top: 18px; }
.wallpaper-preview {
    flex: 0 0 auto;
    width: clamp(210px, 42vw, 320px);
    max-width: calc(100vw - 56px);
    margin-top: 16px;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: #071326;
}
.wallpaper-preview-video {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    background: #071326;
    contain: layout size paint;
}
.wallpaper-detail .detail-meta { margin-top: 14px; }
.wallpaper-detail .more-details { margin-top: 8px; }

.bottom-nav {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: 0;
    width: min(100%, var(--page-width));
    height: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    color: #fff;
    background: linear-gradient(100deg, #10182d, #0d1428);
    box-shadow: 0 -4px 4px rgba(8, 12, 27, .2);
    transform: translateX(-50%);
}
.nav-item { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; overflow: hidden; font-size: 11px; cursor: pointer; }
.nav-item.active { background: linear-gradient(135deg, #4049db, #5866ef); }
.nav-item svg { width: 27px; height: 27px; stroke-width: 1.55; }
.nav-item:nth-child(2) svg { width: 29px; height: 29px; }

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


.ringtone-detail {
    --tone-gradient: linear-gradient(225deg, #44bbcc -5%, #c779d0 53%, #feac5e 105%);
    --tone-accent: #1a8291;
    --tone-accent-rgb: 26, 130, 145;
    max-width: min(1200px, calc(100% - 20px));
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(24, 32, 61, .07);
    margin:10px;
}
.detail-author {
    min-height: 40px;
    padding: 0 12px 0 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.author-link {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.detail-actions { display: flex; align-items: center; gap: 2px; }
.detail-icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    color: #59647f;
    background: transparent;
    cursor: pointer;
}
.detail-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.detail-icon:hover { color: var(--purple); }
.detail-icon.heart.active svg { fill: #ef4e78; stroke: #ef4e78; }
.report-modal-open { overscroll-behavior: none; }
.report-modal {
    width: min(calc(100% - 24px), 430px);
    max-width: none;
    max-height: min(620px, calc(100dvh - 32px));
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    color: var(--navy);
    background: #fff;
    box-shadow: 0 24px 70px rgba(8, 12, 27, .28);
}
.report-modal::backdrop { background: rgba(8, 12, 27, .62); backdrop-filter: blur(2px); }
.report-modal-content { padding: 20px; }
.report-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.report-modal-header h2 { margin: 0; font-size: 21px; letter-spacing: -.3px; }
.report-modal-header p { margin: 6px 0 0; color: #59647f; font-size: 14px; line-height: 1.4; }
.report-modal-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: -8px -8px 0 0;
    padding: 11px;
    border: 0;
    border-radius: 50%;
    color: #59647f;
    background: transparent;
    cursor: pointer;
}
.report-modal-close:hover { color: var(--navy); background: #f1f3f8; }
.report-modal-close svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.report-reasons { margin-top: 18px; display: grid; gap: 8px; }
.report-reasons a {
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid #dde1eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    color: #26304d;
    background: #fff;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.report-reasons a:hover,
.report-reasons a:focus-visible { border-color: #e36a85; color: #a8173b; background: #fff5f7; }
.action-toast {
    position: fixed;
    z-index: 80;
    left: 50%;
    bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom) + 16px);
    max-width: calc(100% - 32px);
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: #17203a;
    box-shadow: 0 8px 24px rgba(8, 12, 27, .25);
    font-size: 14px;
    font-weight: 650;
    text-align: center;
    transform: translateX(-50%);
}
.action-toast[hidden] { display: none; }
.detail-hero {
    padding: 10px 4px 20px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.detail-hero h1 {
    max-width: 700px;
    margin: 0;
    text-align: center;
    font-size: clamp(18px, 4vw, 24px);
    line-height: 1.15;
    letter-spacing: -.7px;
}
.detail-play-button {
    width: 90px;
    height: 90px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: var(--tone-gradient);
    box-shadow: 0 12px 28px rgba(var(--tone-accent-rgb), .2);
    cursor: pointer;
    touch-action: manipulation;
    transition: filter .2s ease, box-shadow .2s ease;
}
.detail-play-button:hover { filter: saturate(1.08) brightness(.97); box-shadow: 0 15px 32px rgba(var(--tone-accent-rgb), .28); }
.detail-play-disc {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
}
.detail-play-disc svg { grid-area: 1 / 1; width: 48px; height: 48px; fill: currentColor; }
.detail-play-disc .play-loading-icon { width: 36px; height: 36px; }
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
@keyframes audio-loading-spin { to { transform: rotate(360deg); } }
.detail-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #33405f;
    font-size: 16px;
}
.detail-meta span { display: inline-flex; align-items: center; gap: 7px; }
.detail-meta svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.detail-meta i { width: 1px; height: 22px; background: #cfd3dc; }
.detail-tags {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    gap: 8px;
}
.detail-tags a{
    min-height: 36px;
    padding: 6px 9px;
    border: 1px solid #d7dce8;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    color: #26304d;
    font-size: 14px;
    overflow-wrap: anywhere;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.detail-tags a:hover { border-color: var(--purple); color: var(--purple); background: #f7f6ff; }
.platform-downloads {
    width: min(100%, 620px);
    margin-top: 12px;
    padding:0 20px;
    display: grid;
    gap: 12px;
}
.platform-download{
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    border-radius: 8px;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #16a34a, #10b981);
    box-shadow: 0 7px 18px rgba(72, 82, 223, .22);
    font-size: 16px;
}
.platform-download:hover { filter: brightness(.96); box-shadow: 0 9px 22px rgba(72, 82, 223, .3); }
.platform-download svg { flex: 0 0 24px; width: 24px; height: 24px; }
.platform-download size{font-size:12px;padding-left:5px;font-weight:normal;}
.more-details {
    width: 100%;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.detail-overview {
    position: relative;
    min-height: 74px;
    padding: 12px 50px 12px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-toggle {
    position: absolute;
    top: 50%;
    right: 2px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #202a47;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s ease, background .2s ease;
}
.detail-toggle:hover { color: var(--purple); background: #eeebff; }
.detail-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}
.more-details:not(.is-expanded) .detail-tag-collapsed { display: none; }
.more-details:not(.is-expanded) .detail-tags {
    max-height: 80px;
    overflow: hidden;
}
.more-details.is-expanded .detail-tags {
    max-height: none;
    overflow: visible;
}
.more-details.is-expanded .detail-toggle { color: var(--purple); background: #eeebff; }
.more-details.is-expanded .detail-toggle svg { transform: rotate(180deg); }
.detail-facts {
    margin: 0;
    padding: 14px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.detail-facts[hidden] { display: none; }
.detail-facts > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e1e4ed;
    border-radius: 9px;
    background: #fff;
}
.detail-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.detail-facts dt {
    margin-bottom: 5px;
    color: #65708a;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.detail-facts dd { margin: 0; color: #17203a; font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.recommendations { margin-top: 10px; }
h1.section_title,h2.section_title { margin: 10px; font-size: 16px; letter-spacing: -.4px;color:#777; }

.me-page {
    padding-bottom: calc(var(--bottom-nav) + 26px);
}
.me-profile {
    padding: 16px 16px 28px;
    display: grid;
    justify-items: center;
    background: #fff;
}
.me-avatar {
    width: clamp(132px, 29vw, 188px);
    height: clamp(132px, 29vw, 188px);
    border-radius: 50%;
    display: block;
    object-fit: cover;
    object-position: 50% 28%;
    background: #dde2ec;
}
.me-name {
    max-width: min(100%, 560px);
    margin: 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #030303;
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1.05;
    font-weight: 850;
    text-align: center;
    overflow-wrap: anywhere;
}
.verified-badge {
    width: clamp(20px, 4vw, 30px);
    height: clamp(20px, 4vw, 30px);
    fill: none;
    stroke: #63a9ff;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.me-tabs {
    border-bottom: 1px solid #6f6f6f;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    background: #fff;
}
.me-tab {
    position: relative;
    min-width: 0;
    min-height: 44px;
    padding: 0 10px 16px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #6f6f6f;
    font-size: clamp(16px, 3.8vw, 20px);
    line-height: 1;
    font-weight: 750;
    text-align: center;
    cursor: pointer;
    transition: color .2s ease;
}
.me-tab:hover,
.me-tab:focus-visible {
    color: #111;
}
.me-tab.active,
.me-tab[aria-selected="true"] {
    color: #050505;
}
.me-tab.active::after,
.me-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(56%, 190px);
    height: 6px;
    border-radius: 6px 6px 0 0;
    background: #050505;
    transform: translateX(-50%);
}
.me-tab-panel {
    min-height: 280px;
}
.me-tab-panel[hidden] {
    display: none;
}



.download-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(24, 32, 61, .07);
}
.download-status {
    padding: 28px 16px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.download-status h1 {
    max-width: 720px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    font-size: clamp(18px, 4vw, 24px);
    line-height: 1.15;
    letter-spacing: -.7px;
}

.ready-status {
    max-width: 680px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    text-align: center;
}
.ready-status[hidden],
.download-spinner[hidden],
.download-result-icon[hidden] {
    display: none;
}
.ready-status strong {
    max-width: 520px;
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.08;
    letter-spacing: -1px;
    color:#888;
}
.download-spinner {
    position: relative;
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: conic-gradient(#16a34a 0 18%, #e1e4ea 18% 100%);
    animation: download-spin 1.25s linear infinite;
}
.download-spinner::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 10px;
    border-radius: 50%;
    background: #fff;
}
.download-spinner.is-complete {
    background: #16a34a;
    animation: none;
    transform: none;
}
.download-check {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 52%;
    height: 52%;
    opacity: 0;
    fill: none;
    stroke: #16a34a;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translate(-50%, -50%);
}
.download-check path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}
.download-spinner.is-complete .download-check {
    opacity: 1;
}
.download-spinner.is-complete .download-check path {
    animation: download-check-draw .5s cubic-bezier(.65, 0, .35, 1) .08s forwards;
}
.download-spinner.is-complete::after {
    inset:6px;
}
.download-result-icon {
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.download-result-icon svg {
    display: none;
    width: 46px;
    height: 46px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.download-result-icon.is-success {
    color: #16a34a;
    background: #ecfdf3;
}
.download-result-icon.is-error {
    color: #d97706;
    background: #fffbeb;
}
.download-result-icon .download-result-error {
    stroke-width: 1.8;
}
.download-result-icon.is-success .download-result-success,
.download-result-icon.is-error .download-result-error {
    display: block;
}
.download-message {
    margin: 10px 0 0;
    color: #59647f;
    text-align: center;
    font-size: clamp(15px, 1.6vw, 22px);
    line-height: 1.35;
}
.download-progress {
    width: min(85%, 690px);
    height: 18px;
    margin-top: 28px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
    color: #0ea5b7;
}
.download-progress::-webkit-progress-bar { border-radius: inherit; background: #e5e7eb; }
.download-progress::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, #2563eb, #0ea5b7); }
.download-progress::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, #2563eb, #0ea5b7); }
.setup-guides {
    width: 100%;
    border-top: 1px solid var(--line);
    display: grid;
}
.setup-guide {
    border-bottom: 1px solid var(--line);
    background: #fafbfe;
}
.setup-guide:last-child { border-bottom: 0; }
.setup-guide summary {
    min-height: 72px;
    padding: 11px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #202a47;
    background: #fafbfe;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.setup-guide summary::-webkit-details-marker { display: none; }
.setup-guide-copy { min-width: 0; display: grid; gap: 3px; }
.setup-guide-copy strong { font-size: 16px; line-height: 1.25; }
.setup-guide-copy small { color: #5b6680; font-size: 12px; font-weight: 400; }
.setup-guide summary svg {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}
.setup-guide[open] summary {
    border-bottom: 1px solid var(--line);
    color: var(--purple);
    background: #f5f3ff;
}
.setup-guide[open] .setup-guide-copy small { color: #655ac7; }
.setup-guide[open] summary svg { transform: rotate(180deg); }
.setup-guide h2 {
    margin: 0;
    padding: 18px 24px 8px;
    color: #071126;
    background: #fff;
    font-size: clamp(18px, 3.2vw, 22px);
    line-height: 1.15;
    letter-spacing: 0;
}
.setup-guide ol {
    margin: 0;
    padding: 8px 28px 20px 48px;
    color: #3e4965;
    background: #fff;
    font-size: 14px;
    line-height: 1.55;
}
.setup-guide li { padding-left: 2px; }
.setup-guide li + li { margin-top: 8px; }

@keyframes download-spin { to { transform: rotate(360deg); } }
@keyframes download-check-draw { to { stroke-dashoffset: 0; } }


@media (max-width: 380px) {
    .detail-icon { width: 42px; padding-inline: 9px; }
    .detail-facts { grid-template-columns: 1fr; }
    .detail-facts > div:last-child:nth-child(odd) { grid-column: auto; }
    .platform-download { padding-inline: 14px; font-size: 14px; }
}

@media (max-width: 560px) {
    .desktop_only { display: none; }
    .site-header.search-open { gap: 8px; padding-inline: 10px; }
    .site-header.search-open .brand,
    .site-header.search-open .menu-button { display: none; }
    .site-header.search-open .header-actions { flex: 1; width: 100%; gap: 8px; }
    .site-header.search-open .header-search { flex: 1; width: auto; }
    .site-header.search-open .search-close { display: block; flex: 0 0 44px; }
    .stat { gap: 3px; }
    .stat-divider { height: 32px; }
    .stat-icon { flex-basis: 32px; height: 32px; border-radius: 8px; }
    .stat-icon svg { width: 20px; height: 20px; }
    .stat-copy{margin-right:10px;}
    .stat-copy strong { font-size: 15px; }
    .stat-copy span { font-size: 11px; }
    .filter-wrap { padding-inline: 10px; }
    .filter-wrap.is-stuck { padding-inline: 0; }
    .filter-button { padding-inline: 14px; gap: 10px; }
    .filter-count { padding-inline: 9px; }
    .ringtone-list { display: block; }
    .ringtone-card { margin-bottom: 12px; }
    .tone-head { gap: 10px; }
    .play-button { flex-basis: 52px; height: 52px; }
    .play-disc { width: 36px; height: 36px; }
    .play-disc svg { width: 34px; height: 34px; }
    .tone-copy h2 { line-height: 1; }
    .tone-meta { gap: 8px; font-size: 13px; }
    .tone-meta span { gap: 8px; }
    .tone-meta svg { width: 17px; height: 17px; }
    .tone-meta i { height: 16px; }
    .tone-actions { flex-basis: 40px; flex-direction: row; gap: 2px; }
    .icon-button { width: 36px; height: 40px; padding: 7px; }
    .tags {margin-top:10px; }
    .tag { padding-inline: 10px; }
    .detail-tags a { font-size: 12px; }
    .ringtone-card .download-button { height: 28px; padding: 0 6px 0 0; gap: 3px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .tone-actions { flex-basis: 74px; }
    .detail-actions { gap: 0; }
    .detail-play-button { width: 84px; height: 84px; }
    .platform-download { height: 50px; font-size: 15px; }
    .download-status { padding: 24px 14px 28px; }
    .download-status h1 { align-items: flex-start; gap: 9px; }
    .ready-status { flex-direction: column; gap: 18px; }
    .download-spinner { flex-basis: 68px; width: 68px; height: 68px; }
    .download-message { margin-top: 24px; }
    .download-progress { height: 14px; margin-top: 24px; }
    .setup-guide summary { min-height: 64px; padding-inline: 16px; }
    .setup-guide-copy strong { font-size: 15px; }
    .setup-guide ol { padding: 14px 18px 16px 38px; }
    .bottom-nav{height: calc(var(--bottom-nav) + env(safe-area-inset-bottom) - 8px);}
    .nav-item {gap:0;}
}

@media (min-width: 560px) {
    .wallpaper-list { grid-template-columns: repeat(4, minmax(0, 400px)); }
    .icon-button.heart{margin:-5px 0 5px 0;}
}

@media (min-width: 720px) {
    .detail-author { min-height: 60px; padding-inline: 14px 18px; }
    .author-link { font-size: 14px; }
    .detail-facts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .detail-facts > div:last-child:nth-child(odd) { grid-column: auto; }
    .download-status { padding: 34px 24px 46px; }
}

@media (min-width: 760px) {
    .wallpaper-list { grid-template-columns: repeat(5, minmax(0, 400px)); }
}

@media (min-width: 901px) {
    .intro { width: min(1200px, calc(100% - 38px)); margin-inline: auto; padding-inline: 0; }
    .filter-wrap { padding-inline: 0; }
    .filter-button, .filter-panel { width: min(1200px, calc(100% - 38px)); margin-inline: auto; }
}

@media (min-width: 960px) {
    .wallpaper-list { grid-template-columns: repeat(6, minmax(0, 400px)); }
    .ringtone-detail{margin:10px auto;}
}

@media (min-width: 1240px) {
    .intro { display: flex; align-items: center; gap: 40px; }
    .intro h1 { flex: 0 .25 auto; min-width: 0; margin: 0; overflow-wrap: anywhere; }
    .intro .stats { flex: 1 1 900px; min-width: 0; max-width: 900px; margin-left: auto; }
}

@media (max-height: 700px) {
    :root { --bottom-nav: 56px; }
    .site-header { height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .download-spinner { animation: none !important; }
    .play-loading-icon { animation: none !important; }
    .load-more.loading::after { animation: none !important; }
    .download-spinner.is-complete .download-check path {
        animation: none;
        stroke-dashoffset: 0;
    }
}
