* {
    box-sizing: border-box;
}

:root {
    --bg: #0d0b0a;
    --panel: #171211;
    --panel2: #1c1715;
    --border: #2b2422;
    --orange: #e44a2b;
    --orange-hover: #d43e1e;
    --text: #e9e5e4;
    --muted: #8a8380;
    --dim: #5c5552;
    --green: #22a55a;
    --radius: 14px;
    --radius-sm: 10px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(1100px 550px at 85% 0%, rgba(228, 74, 43, 0.1), transparent 60%), var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.database-content {
    flex: 1;
    min-width: 0;
}

.database-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 24px 80px;
    font-size: 14px;
}

.kicker {
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 2.5px;
    margin-bottom: 8px;
}

.big-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.intro {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    max-width: 820px;
    margin-bottom: 34px;
}

/* table */
.database-table {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.database-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #1c1715;
    border-bottom: 1px solid var(--border);
}

.db-col {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--dim);
    text-transform: uppercase;
}

.db-col.title { flex: 2; }
.db-col.size { flex: 1; }
.db-col.files { flex: 1; }
.db-col.dl { flex: 1.2; }

.database-rows {
    display: flex;
    flex-direction: column;
}

.database-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid #241d1a;
}

.database-row:last-child { border-bottom: none; }

.database-row:hover { background: rgba(255, 255, 255, 0.02); }

.database-row .db-col { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* title - blurred premium */
.db-title {
    flex: 2;
    position: relative;
}

.db-title .blurred-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    filter: blur(5px);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.db-title .premium-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #f0a48e;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.db-title .premium-lock i { color: var(--orange); font-size: 12px; }

/* size + files - visible */
.db-size {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.db-files {
    flex: 1;
    font-size: 13px;
    color: var(--muted);
}

/* download - blurred premium */
.db-dl {
    flex: 1.2;
    position: relative;
}

.db-dl .blurred-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    filter: blur(4px);
    user-select: none;
    border: 1px solid #3a322e;
    border-radius: 8px;
    padding: 8px 14px;
    background: #1c1715;
}

.db-dl .blurred-btn i { color: var(--orange); }

.db-dl .premium-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #f0a48e;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.db-dl .premium-lock i { color: var(--orange); font-size: 12px; }

/* ---------- Light theme ---------- */
html[data-theme="light"] {
    --bg: #f2efec;
    --panel: #ffffff;
    --panel2: #f2ece8;
    --border: #e3dcd7;
    --text: #221d1a;
    --muted: #6f6761;
    --dim: #9b938c;
}

html[data-theme="light"] body {
    background: radial-gradient(1100px 550px at 85% 0%, rgba(228, 74, 43, 0.05), transparent 60%), var(--bg);
}

html[data-theme="light"] .big-title { color: #1c1714; }
html[data-theme="light"] .database-head { background: #f7f3f0; }
html[data-theme="light"] .database-row { border-bottom: 1px solid #ece5df; }
html[data-theme="light"] .database-row:hover { background: rgba(0, 0, 0, 0.03); }
html[data-theme="light"] .db-title .blurred-text { color: #221d1a; }
html[data-theme="light"] .db-dl .blurred-btn { border-color: #d8cfc9; background: #f2ece8; }
html[data-theme="light"] .db-dl .blurred-btn { color: #221d1a; }

@media (max-width: 760px) {
    .big-title { font-size: 34px; }
    .database-row { flex-wrap: wrap; }
    .db-title { flex: 1 1 100%; }
    .db-size, .db-files { flex: 1 1 auto; }
    .db-dl { flex: 1 1 100%; margin-top: 6px; }
}