/* ETFnow HOT TOP15 — hetf-card 스타일 (light, embed 전용) */
@import url("https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/static/woff2/SUIT.css");

:root {
    --sans: "SUIT Variable", "SUIT", "Pretendard Variable", Pretendard, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "SUIT Variable", "SUIT", "Pretendard Variable", Pretendard, "DM Mono",
        "Courier New", monospace;
    --heading: var(--sans);

    --bg: #f3f5f9;
    --bg2: #e8ecf3;
    --card: #ffffff;
    --card2: #f5f7fb;
    --border: #d8dde8;
    --border2: #b8becc;
    --accent: #b8860b;
    --cyan: #1a7fa3;
    --text: #1a1d2e;
    --text2: #4b5263;
    --muted: #8b93a5;
    --up: #c44040;
    --down: #4a6faf;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.etfnow-embed-body {
    margin: 0;
    padding: 0;
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
    background: transparent;
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.up {
    color: var(--up);
}

.down {
    color: var(--down);
}

.neutral {
    color: var(--muted);
}

.top5-wrap {
    margin: 0;
    padding: 0;
}

.top5-label {
    font-family: var(--heading);
    font-size: 16.5px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 7px;
    padding: 0 0 0 8px;
    display: flex;
    align-items: center;
    gap: 2px;
    letter-spacing: -0.02em;
}

.tag-hash {
    color: var(--accent);
    font-weight: 800;
    margin-right: 1px;
}

.embed-meta {
    margin: 0 0 8px;
    padding: 0 0 0 8px;
    font-size: 10px;
    color: var(--muted);
    font-family: var(--mono);
}

.embed-error {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
}

.hetf-swiper-wrap {
    position: relative;
    padding: 0 0 0.25rem;
}

.hetf-swiper-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.375rem;
    padding: 0 0.125rem;
}

.hetf-swiper-nav {
    display: flex;
    gap: 0.375rem;
}

.hetf-swiper-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--text2);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.hetf-swiper-btn:hover:not(.swiper-button-disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--card2);
}

.hetf-swiper-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

.hetf-swiper-btn svg {
    width: 0.875rem;
    height: 0.875rem;
}

.hetf-swiper {
    overflow: hidden;
    padding: 0.375rem 0 0.5rem;
}

.hetf-swiper .swiper-wrapper {
    align-items: stretch;
    justify-content: flex-start;
}

.hetf-swiper .swiper-slide {
    width: min(194px, 78vw);
    height: auto;
    opacity: 0.52;
    transform: scale(0.94);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.hetf-swiper .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hetf-swiper-pagination {
    position: relative;
    margin-top: 0.375rem;
    text-align: center;
}

.hetf-swiper-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: var(--border2);
    opacity: 1;
    margin: 0 3px;
    transition: background 0.2s, transform 0.2s;
}

.hetf-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--accent);
    transform: scale(1.2);
}

.hetf-card {
    display: block;
    width: 100%;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 12px 14px 10px 18px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    --hetf-accent: var(--border2);
}

.hetf-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--hetf-accent);
}

.swiper-slide-active .hetf-card {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hetf-card:hover {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.hetf-card.hetf-up {
    --hetf-accent: var(--up);
}

.hetf-card.hetf-down {
    --hetf-accent: var(--down);
}

.hetf-rank {
    position: absolute;
    top: 0;
    right: 0;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: #a8b0bc;
    padding: 3px 8px;
    border-radius: 0 var(--radius) 0 var(--radius);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hetf-rank-1,
.hetf-rank-2,
.hetf-rank-3 {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    padding: 4px 9px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.hetf-rank-1 {
    background: #e0a020;
}

.hetf-rank-2 {
    background: #7c8594;
}

.hetf-rank-3 {
    background: #b86b3c;
}

.hetf-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0;
    padding-right: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hetf-chg {
    font-family: var(--mono);
    font-size: 22px;
    font-weight: 800;
    margin: 10px 0 8px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 0.98;
}

.hetf-surge {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--cyan);
    font-weight: 700;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    line-height: 1.15;
}

.hetf-surge .surge-price {
    font-size: 11.5px;
    color: var(--text);
    font-weight: 800;
}

.hetf-surge .surge-vol {
    font-size: 10px;
    color: var(--text2);
    font-weight: 700;
}

.hetf-divider {
    border: none;
    border-top: 1px dashed var(--border2);
    margin: 10px 0;
}

.hetf-h-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hetf-h-label span {
    font-weight: 800;
    letter-spacing: 0;
}

.hetf-h-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.hetf-h-name {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text2);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hetf-h-chg {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    flex-shrink: 0;
    width: 52px;
    text-align: right;
}

.hetf-h-w {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted);
    flex-shrink: 0;
    width: 38px;
    text-align: right;
}
