:root {
    --primary: #d6336c;
    --primary-dark: #a61e4d;
    --bg: #fafbfc;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.08);
    --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 상단 고지 배너 */
.disclaimer {
    background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 100%);
    color: #9a3412;
    font-size: .82rem;
    padding: 11px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #fed7aa;
}
.disclaimer .track {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 28s linear infinite;
    font-weight: 500;
    letter-spacing: .3px;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 컨테이너 */
.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 60px;
}

/* 헤더 */
.site-header {
    text-align: center;
    margin-bottom: 36px;
}
.site-header .logo {
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, #e11d48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -1px;
}
.site-header .tagline {
    color: var(--text-muted);
    font-size: .95rem;
    margin-bottom: 28px;
}

/* 검색 */
.search {
    display: flex;
    max-width: 540px;
    margin: 0 auto;
    gap: 10px;
    background: var(--surface);
    padding: 6px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.search input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    outline: none;
}
.search input::placeholder { color: #9ca3af; }
.search button {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    transition: transform .15s, box-shadow .15s;
    white-space: nowrap;
}
.search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(214,51,108,.35);
}

.search-hint {
    text-align: center;
    color: var(--text-muted);
    margin: 14px 0 0;
    font-size: .88rem;
}

.search-info {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: .9rem;
}
.search-info strong { color: var(--text); }
.search-info .reset {
    color: var(--primary);
    margin-left: 12px;
    text-decoration: none;
    font-weight: 600;
}

/* 링크 리스트 */
.list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #f9a8d4;
}
.card img {
    width: 130px;
    min-height: 130px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}
.card .body {
    padding: 18px 22px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -.3px;
}
.card p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 4px;
}
.card .url-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-size: .75rem;
    color: var(--primary);
    background: #fdf2f8;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    max-width: fit-content;
}
.card .url-tag::before {
    content: '→';
    font-size: .9rem;
}

.empty {
    text-align: center;
    color: var(--text-muted);
    padding: 72px 20px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

/* 푸터 */
.site-footer {
    text-align: center;
    margin-top: 56px;
    color: #9ca3af;
    font-size: .82rem;
}
.site-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }

/* 반응형 */
@media (max-width: 600px) {
    .container { padding: 32px 16px 48px; }
    .site-header .logo { font-size: 2rem; }
    .search { border-radius: 14px; }
    .search button { padding: 12px 20px; }
    .card img { width: 100px; min-height: 100px; }
    .card .body { padding: 14px 16px; }
}
