/* NanoScore — günlük futbol (dark + sidebar) */

.fd-body {
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-primary);
}

.fd-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
}

.fd-main { min-width: 0; }

.fd-top {
    position: sticky;
    top: 64px;
    z-index: 40;
    background: rgba(18, 18, 20, 0.92);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.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;
    color: #fff;
}

.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: #121214;
    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: var(--card-bg);
    color: #fff;
    font-family: inherit;
    color-scheme: dark;
}

.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: var(--card-bg);
    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: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.45rem 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

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

.fd-day:hover { border-color: rgba(163, 230, 53, 0.45); }
.fd-day.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: rgba(18, 18, 20, 0.85);
}
.fd-day.active .num,
.fd-day.active .tag { color: #121214; }

.fd-day.today:not(.active) {
    border-color: rgba(163, 230, 53, 0.45);
}

.fd-tabs {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid var(--border-color);
}

.fd-tab {
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0.55rem 0.15rem 0.65rem;
    font-weight: 750;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    border-bottom: 2px solid transparent;
}

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

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

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

.fd-league {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.fd-league-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    background: var(--surface-2, #22252c);
    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: #fff;
    text-decoration: none;
}

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

/* Ortak satır: .ns-match (match-row.php) — .fd-* legacy alias */
.fd-match,
.fd-layout .ns-match {
    display: grid;
    grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.2fr) auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.fd-match:last-child,
.fd-layout .ns-match:last-child { border-bottom: none; }
.fd-match:hover,
.fd-layout .ns-match:hover { background: rgba(255, 255, 255, 0.03); }
.fd-match.is-live,
.fd-layout .ns-match.is-live { background: rgba(225, 29, 72, 0.06); }

.fd-actions,
.fd-layout .ns-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.fd-detail-btn,
.fd-layout .ns-detail-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: var(--surface-2, #22252c);
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

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

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

.fd-dot,
.fd-layout .ns-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,
.fd-layout .ns-teams {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

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

.fd-team img,
.fd-layout .ns-team img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
    background: #111;
    flex-shrink: 0;
}

.fd-team span,
.fd-layout .ns-team span {
    font-size: 0.9rem;
    font-weight: 650;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.fd-score {
    display: none;
}

.fd-analysis,
.fd-layout .ns-analysis {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.fd-chip,
.fd-layout .ns-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.fd-chip.is-locked .fd-chip-text,
.fd-layout .ns-chip.is-locked .ns-chip-text {
    filter: blur(3px);
    user-select: none;
}

.ns-badge {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 900;
    color: #121214;
}

.ns-badge--gold { background: var(--gold, #d4a017); color: #1a1400; }
.ns-badge--plat { background: #6b7280; color: #fff; }

.fd-chip-text,
.fd-layout .ns-chip-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fd-star,
.fd-layout .ns-star {
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.fd-star.on,
.fd-layout .ns-star.on { color: var(--primary-color); }
.fd-star.ghost,
.fd-layout .ns-star.ghost { color: #374151; cursor: default; }

.fd-league-head,
.fd-layout .ns-league-head {
    border-left: 3px solid var(--primary-color, #a3e635);
}

.fd-empty {
    background: var(--card-bg);
    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; }

/* HABERLER sidebar */
.ns-news {
    position: sticky;
    top: 80px;
}

.ns-news__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ns-news__title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
}

.ns-news__icon { color: var(--primary-color); }

.ns-news__list {
    display: grid;
    gap: 0.65rem;
}

.ns-news__card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem;
}

.ns-news__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.ns-news__thumb {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
}

.ns-news__thumb--ph {
    display: inline-grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-weight: 900;
    font-size: 0.75rem;
}

.ns-news__card-title {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.ns-news__card-sum {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.ns-news__blur { filter: blur(3px); user-select: none; }
.ns-news__lock {
    margin-top: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary-color);
}
.ns-news__empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1rem;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
}

@media (max-width: 980px) {
    .fd-layout {
        grid-template-columns: 1fr;
    }
    .ns-news { position: static; }
}

@media (max-width: 640px) {
    .fd-layout { padding: 0.75rem 0.65rem 2.5rem; }
    .fd-match,
    .fd-layout .ns-match {
        grid-template-columns: 48px 1fr;
        grid-template-areas:
            "time teams"
            "analysis analysis"
            ". actions";
    }
    .fd-time, .fd-layout .ns-time { grid-area: time; }
    .fd-teams, .fd-layout .ns-teams { grid-area: teams; }
    .fd-analysis, .fd-layout .ns-analysis { grid-area: analysis; }
    .fd-actions, .fd-layout .ns-actions { grid-area: actions; justify-content: flex-start; }
}
