/* NanoScore — günlük futbol (SofaScore tarzı liste) */

.fd-body {
    min-height: 100vh;
}

.fd-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
}

.fd-top {
    position: sticky;
    top: 64px;
    z-index: 40;
    background: rgba(232, 238, 234, 0.92);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0 0.5rem;
    margin-bottom: 0.75rem;
}

.fd-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin: 0 0 0.2rem;
}

.fd-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.fd-title-row h1 {
    font-family: var(--font-display, inherit);
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    letter-spacing: -0.03em;
    margin: 0;
    line-height: 1.15;
}

.fd-sub {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.fd-top-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fd-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}

.fd-date-pick {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.fd-date-pick input {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem 0.5rem;
    background: #fff;
    font-family: inherit;
}

.fd-strip {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 0.65rem;
    scrollbar-width: thin;
}

.fd-strip-nav {
    flex: 0 0 auto;
    width: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
}

.fd-day {
    flex: 1 0 64px;
    min-width: 64px;
    text-align: center;
    text-decoration: none;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.45rem 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.fd-day .dow { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.fd-day .num { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }
.fd-day .tag { font-size: 0.62rem; font-weight: 800; color: var(--primary-color); }

.fd-day:hover { border-color: rgba(11,143,78,0.4); }
.fd-day.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: rgba(255,255,255,0.85);
}
.fd-day.active .num,
.fd-day.active .tag { color: #fff; }

.fd-day.today:not(.active) {
    border-color: rgba(11,143,78,0.45);
}

.fd-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.fd-tab {
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-weight: 750;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}

.fd-tab em {
    font-style: normal;
    opacity: 0.7;
    margin-left: 0.2rem;
}

.fd-tab.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: #fff;
}

.fd-list {
    display: grid;
    gap: 0.75rem;
}

.fd-league {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.fd-league-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.fd-league-id {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.fd-league-id img {
    object-fit: contain;
    flex-shrink: 0;
}

.fd-country {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 650;
}

.fd-league-name {
    display: block;
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.fd-live-pill {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--live-color, #E11D48);
    background: rgba(225, 29, 72, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    white-space: nowrap;
}

.fd-match {
    display: grid;
    grid-template-columns: 56px 1fr 42px auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.7rem 0.85rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.fd-match:last-child { border-bottom: none; }
.fd-match:hover { background: var(--secondary-color); }
.fd-match.is-live { background: rgba(225, 29, 72, 0.04); }
.fd-match.has-editorial {
    background: linear-gradient(90deg, rgba(184, 134, 11, 0.14) 0%, transparent 40%);
    box-shadow: inset 3px 0 0 #b8860b;
}
.fd-match.has-editorial.is-live {
    background: linear-gradient(90deg, rgba(184, 134, 11, 0.14) 0%, rgba(225, 29, 72, 0.04) 45%);
}

.fd-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    min-width: 28px;
}

.fd-editorial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #fff4d9;
    border: 1px solid #ead79a;
    color: #8a6d12;
    font-size: 0.85rem;
    line-height: 1;
}

.fd-time {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.fd-time.live { color: var(--live-color, #E11D48); }
.fd-time.ft { color: var(--text-muted); }

.fd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live-color, #E11D48);
    animation: fdPulse 1.4s ease-in-out infinite;
}

@keyframes fdPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.fd-teams {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.fd-team {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.fd-team img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.fd-team span {
    font-size: 0.9rem;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fd-team span.winner { font-weight: 800; }

.fd-score {
    display: grid;
    gap: 0.35rem;
    text-align: right;
    font-family: var(--font-display, inherit);
    font-weight: 800;
    font-size: 0.95rem;
}

.fd-score.live { color: var(--live-color, #E11D48); }

.fd-star {
    border: none;
    background: transparent;
    color: #c5d0c9;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.fd-star.on { color: #C9850C; }
.fd-star.ghost { color: #d7e0da; cursor: default; text-align: center; }

.fd-empty {
    background: #fff;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 1.25rem;
    text-align: center;
    color: var(--text-secondary);
}

.fd-foot {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.fd-foot a { color: var(--primary-color); font-weight: 700; text-decoration: none; }

@media (max-width: 640px) {
    .fd-page { padding: 0.75rem 0.65rem 2.5rem; }
    .fd-top { top: 64px; }
    .fd-match { grid-template-columns: 48px 1fr 36px auto; padding: 0.65rem 0.7rem; }
    .fd-team span { font-size: 0.84rem; }
}
