/* GTX Racelab Tips – Clean White Card Design */
.grl-section {
    /* background: #f0f2f6; */
    /* border-radius: 16px; */
    /* padding: 28px 28px 32px; */
    font-family: sans-serif;
    /* box-sizing: border-box; */
}

/* Header — single plain text line only */
.grl-header {
    margin-bottom: 20px;
}
.grl-title {
    /* font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #8a93a8;
    text-transform: uppercase;
    margin: 0; */

    font-size: 15px;
    font-weight: 100;
    letter-spacing: 1px;
    color: rgb(68, 77, 90);
    text-transform: uppercase;
    margin: 0;
}

/* Scroll wrapper — horizontal scroll when cards > 3 */
.grl-cards-outer {
    overflow-x: auto;
    overflow-y: hidden;
    /* hide scrollbar but keep functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.grl-cards-outer::-webkit-scrollbar { display: none; }

.grl-cards {
    display: flex;
    flex-direction: row;
    gap: 16px;
    /* Prevent wrapping — always side by side */
    flex-wrap: nowrap;
}

/* Card — fixed width so they don't shrink */
.grl-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    border: 1px solid #e8eaf0;
    min-height: 180px;
    /* Fixed width — show ~3 cards, scroll for more */
    flex: 0 0 calc(33.333% - 11px);
    min-width: 220px;
    box-sizing: border-box;
}

/* ── Card header row ── */
.grl-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

/* Program number badge */
.grl-badge-num {
    width: 38px; height: 38px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; color: #fff;
    flex-shrink: 0;
}
.grl-badge-silk {
    width: 38px; height: 38px;
    border-radius: 9px; object-fit: contain;
    background: #f0f2f5; flex-shrink: 0;
}

.grl-card-title-wrap { flex: 1; min-width: 0; }
.grl-horse-name {
    font-size: 15px; font-weight: 700; color: #0d1b3e;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.2;
}
.grl-race-label {
    font-size: 11px; color: #8a93a8; margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Odds */
.grl-odds-wrap { text-align: right; flex-shrink: 0; }
.grl-odds-num  {
    font-size: 17px; font-weight: 800;
    color: #b8960a; line-height: 1;
}
.grl-odds-type {
    font-size: 10px; font-weight: 600;
    color: #aab4c8; letter-spacing: 0.4px; margin-top: 1px;
}

/* ── Comment ── */
.grl-comment-wrap {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 14px;
    scrollbar-width: none;
}
.grl-comment-wrap::-webkit-scrollbar { display: none; }
.grl-comment-empty { min-height: 0; }

.grl-comment-text {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #3a4a6b;
}

/* ── Footer ── */
.grl-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 11px;
    border-top: 1px solid #f0f2f5;
    margin-top: auto;
}
.grl-brand-dot {
    font-size: 10px; font-weight: 700;
    color: #b8960a; letter-spacing: 0.8px;
}
.grl-slip-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #0d1b3e;
    letter-spacing: 0.2px;
    padding: 0;
    transition: opacity .15s;
}
.grl-slip-btn:hover { opacity: 0.65; }

/* Loading / Empty / Error */
.grl-loading {
    display: flex; align-items: center; gap: 10px;
    padding: 40px 24px; color: #5a7099; font-size: 13px; width: 100%;
}
.grl-spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(0,0,0,.08); border-top-color: #b8960a;
    border-radius: 50%; animation: grl-spin .7s linear infinite; flex-shrink: 0;
}
@keyframes grl-spin { to { transform: rotate(360deg); } }
.grl-empty {
    width: 100%; text-align: center;
    padding: 40px 24px; color: #5a7099; font-size: 13px;
}
.grl-empty-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.grl-error {
    margin-top: 10px; background: rgba(200,50,50,.08);
    border-radius: 8px; padding: 10px 16px;
    font-size: 12px; color: #c0392b;
}

/* Responsive */
@media (max-width: 700px) {
    /* .grl-section { padding: 16px 12px 20px; } */
    .grl-card { flex: 0 0 80vw; min-width: 240px; }
}
