/* =====================================================================
   Servis sayfaları (döviz, hava, namaz, deprem) — tüm temalarda ortak
   ===================================================================== */
.sv { --sv-accent: var(--hs-primary, #c8102e); --sv-text: inherit; --sv-muted: #6b7280; --sv-border: #e5e7eb; --sv-surface: #fff; --sv-soft: #f5f6f8; --sv-radius: 14px; padding: 4px 0 24px; }
.sv-manset, .sv-portal, .sv-nova, .sv-akis, .sv-vitrin { --sv-accent: var(--mn-brand); --sv-muted: var(--mn-muted); --sv-border: var(--mn-border); --sv-surface: var(--mn-surface); --sv-soft: var(--mn-surface-2); }
.sv-dergi { --sv-accent: var(--dg-accent, #b8863f); --sv-radius: 6px; }
.sv-koyu { --sv-accent: var(--kd-accent, #4f7cff); --sv-muted: #8b8e97; --sv-border: #26282f; --sv-surface: #15171c; --sv-soft: #1b1d23; }

.sv-crumb { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--sv-muted); margin-bottom: 10px; }
.sv-crumb a { color: inherit; text-decoration: none; }
.sv-crumb i { font-size: 10px; }
.sv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.sv-head h1 { font-size: clamp(24px, 1rem + 1.5vw, 34px); font-weight: 800; margin: 0; letter-spacing: -.02em; }
.sv-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sv-tabs a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--sv-border); background: var(--sv-surface); color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; }
.sv-tabs a:hover { border-color: var(--sv-accent); }
.sv-tabs a.is-active { background: var(--sv-accent); border-color: var(--sv-accent); color: #fff; }

.sv-card { background: var(--sv-surface); border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 18px; margin-bottom: 18px; }
.sv-card h2 { font-size: 18px; font-weight: 800; margin: 0 0 14px; display: flex; gap: 8px; align-items: center; }
.sv-card h2 i { color: var(--sv-accent); }
.sv-note { font-size: 12.5px; color: var(--sv-muted); }
.sv-empty { text-align: center; padding: 50px 20px; border: 1.5px dashed var(--sv-border); border-radius: var(--sv-radius); color: var(--sv-muted); }
.sv-empty i { font-size: 36px; }

.sv-table-wrap { overflow-x: auto; }
.sv-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sv-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--sv-muted); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--sv-border); }
.sv-table td { padding: 12px 10px; border-bottom: 1px solid var(--sv-border); vertical-align: middle; }
.sv-table tr:last-child td { border-bottom: 0; }
.sv-table small { color: var(--sv-muted); }
.sv-table .text-end { text-align: right; }
.sv-chg { display: inline-flex; gap: 3px; align-items: center; font-weight: 700; font-size: 13px; color: var(--sv-muted); }
.sv-chg.is-up { color: #16a34a; }
.sv-chg.is-down { color: #e11d48; }

.sv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.sv-tile { background: var(--sv-surface); border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.sv-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--sv-accent); opacity: .07; }
.sv-tile-label { font-size: 13px; color: var(--sv-muted); font-weight: 600; }
.sv-tile strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }

.sv-city { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.sv-city label { font-weight: 700; }
.sv-city select { min-width: 220px; height: 44px; border-radius: 12px; border: 1px solid var(--sv-border); background: var(--sv-surface); color: inherit; padding: 0 12px; font-weight: 600; }
.sv-city button { height: 44px; border: 0; border-radius: 12px; padding: 0 16px; background: var(--sv-accent); color: #fff; font-weight: 700; }

.sv-weather { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; border-radius: calc(var(--sv-radius) + 4px); padding: 26px; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, #1d4ed8, #0ea5e9); box-shadow: 0 20px 40px -24px rgba(14, 165, 233, .8); }
.sv-wnow { display: flex; gap: 18px; align-items: center; }
.sv-wicon { font-size: 76px; line-height: 1; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .2)); }
.sv-wcity { display: block; font-weight: 700; opacity: .9; }
.sv-wtemp { display: block; font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.sv-wtext { font-weight: 600; opacity: .9; }
.sv-wfacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.sv-wfacts li { background: rgba(255, 255, 255, .14); border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 0 8px; }
.sv-wfacts i { grid-row: span 2; font-size: 20px; }
.sv-wfacts span { font-size: 12px; opacity: .85; }
.sv-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.sv-day { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 12px; background: var(--sv-soft); text-align: center; }
.sv-day i { font-size: 28px; color: var(--sv-accent); }
.sv-day-name { font-weight: 800; }
.sv-day-t small { color: var(--sv-muted); }
.sv-day-rain { font-size: 12px; color: var(--sv-muted); }

.sv-prayer { border-radius: calc(var(--sv-radius) + 4px); overflow: hidden; background: var(--sv-surface); border: 1px solid var(--sv-border); margin-bottom: 18px; }
.sv-pnext { padding: 26px; text-align: center; color: #fff; background: radial-gradient(circle at 20% 0%, #134e4a, #0f172a 70%); display: flex; flex-direction: column; gap: 4px; }
.sv-pnext strong { font-size: clamp(40px, 8vw, 64px); font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sv-pnext small { opacity: .75; }
.sv-ptimes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sv-ptime { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 6px; border-right: 1px solid var(--sv-border); }
.sv-ptime:last-child { border-right: 0; }
.sv-ptime span { font-size: 13px; color: var(--sv-muted); font-weight: 600; }
.sv-ptime b { font-size: 22px; font-variant-numeric: tabular-nums; }
.sv-ptime.is-next { background: color-mix(in srgb, var(--sv-accent) 10%, transparent); box-shadow: inset 0 -3px 0 var(--sv-accent); }
.sv-ptime.is-next b { color: var(--sv-accent); }
.sv-ptime.is-past { opacity: .5; }

.sv-qfilter { display: flex; gap: 6px; margin-bottom: 14px; }
.sv-qfilter button { border: 1px solid var(--sv-border); background: var(--sv-surface); color: inherit; border-radius: 99px; padding: 7px 14px; font-weight: 700; font-size: 13px; }
.sv-qfilter button.is-active { background: var(--sv-accent); border-color: var(--sv-accent); color: #fff; }
.sv-mag { display: inline-grid; place-items: center; min-width: 46px; height: 36px; border-radius: 10px; font-weight: 800; color: #fff; }
.sv-mag.is-2 { background: #22c55e; }
.sv-mag.is-3 { background: #eab308; }
.sv-mag.is-4 { background: #f97316; }
.sv-mag.is-5 { background: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .2); }
.sv-quakes a { color: var(--sv-muted); text-decoration: none; }
.sv-quakes tr[hidden] { display: none; }

@media (max-width: 767.98px) {
    .sv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sv-weather { grid-template-columns: 1fr; padding: 20px; }
    .sv-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sv-ptimes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sv-ptime:nth-child(3) { border-right: 0; }
    .sv-ptime:nth-child(-n+3) { border-bottom: 1px solid var(--sv-border); }
    .sv-city select { flex: 1; min-width: 0; }
}

/* ===== Canlı skor sayfası ===== */
.fb-league { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fb-league img { object-fit: contain; }
.fb-league strong { display: block; font-size: 18px; font-weight: 800; }
.fb-league span { font-size: 13px; color: var(--sv-muted); }
.fb-league .fb-livebadge { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: #fff; background: #e11d48; padding: 6px 12px; border-radius: 99px; }
.fb-livebadge i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: fbPulse 1.4s infinite; }
.fb-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--sv-soft); margin-bottom: 16px; }
.fb-tabs button { border: 0; background: none; color: var(--sv-muted); font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 10px; display: inline-flex; gap: 7px; align-items: center; }
.fb-tabs button.is-active { background: var(--sv-surface); color: inherit; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
[data-fb-pane][hidden] { display: none; }
.fb-card { padding: 16px 18px; }
.fb-round { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--sv-muted); padding: 12px 4px 4px; }
.fb-list { list-style: none; margin: 0; padding: 0; }
.fb-m { display: grid; grid-template-columns: 74px minmax(0, 1fr) 76px minmax(0, 1fr) 56px; align-items: center; gap: 10px; padding: 11px 6px; border-bottom: 1px solid var(--sv-border); }
.fb-m:last-child { border-bottom: 0; }
.fb-m.is-live { background: color-mix(in srgb, #e11d48 5%, transparent); border-radius: 10px; }
.fb-team { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 600; }
.fb-team.is-home { justify-content: flex-end; text-align: right; }
.fb-team.is-win { font-weight: 800; }
.fb-tn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-team img, .fb-tteam img { flex: none; object-fit: contain; }
.fb-nologo { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sv-soft); font-weight: 800; font-size: 12px; }
.fb-score { display: flex; justify-content: center; align-items: center; gap: 4px; min-height: 34px; border-radius: 10px; background: var(--sv-soft); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.fb-m.is-live .fb-score { background: #e11d48; color: #fff; }
.fb-time { font-size: 14px; font-weight: 700; }
.fb-score-sep { opacity: .5; }
.fb-st { font-size: 12px; font-weight: 700; color: var(--sv-muted); display: inline-flex; align-items: center; gap: 5px; }
.fb-st.is-live { color: #e11d48; }
.fb-st.is-live i { width: 7px; height: 7px; border-radius: 50%; background: #e11d48; animation: fbPulse 1.4s infinite; }
.fb-st.is-off { color: #d97706; }
.fb-m-meta { font-size: 11.5px; color: var(--sv-muted); text-align: right; }
.fb-flash { animation: fbFlash 1.6s ease; }
.fb-table td, .fb-table th { text-align: center; padding: 10px 6px; }
.fb-table td:nth-child(2), .fb-table th:nth-child(2) { text-align: left; }
.fb-tteam { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.fb-rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-weight: 800; font-size: 13px; background: var(--sv-soft); }
.fb-table tr.is-ucl .fb-rank { background: #1d4ed8; color: #fff; }
.fb-table tr.is-uel .fb-rank { background: #ea580c; color: #fff; }
.fb-table tr.is-uecl .fb-rank { background: #16a34a; color: #fff; }
.fb-table tr.is-rel .fb-rank { background: #dc2626; color: #fff; }
.fb-form { display: inline-flex; gap: 3px; }
.fb-form i { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; font-style: normal; color: #fff; background: #9ca3af; }
.fb-form i.is-w { background: #16a34a; }
.fb-form i.is-l { background: #dc2626; }
.fb-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--sv-muted); }
.fb-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.fb-legend .is-ucl::before { background: #1d4ed8; }
.fb-legend .is-uel::before { background: #ea580c; }
.fb-legend .is-uecl::before { background: #16a34a; }
.fb-legend .is-rel::before { background: #dc2626; }
@keyframes fbPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fbFlash { 0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, .6); } 100% { box-shadow: 0 0 0 14px rgba(225, 29, 72, 0); } }
@media (prefers-reduced-motion: reduce) { .fb-livebadge i, .fb-st.is-live i, .fb-flash { animation: none; } }
@media (max-width: 767.98px) {
    .fb-m { grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr); grid-template-areas: "st st st" "h s a"; gap: 6px 8px; padding: 10px 2px; }
    .fb-m-st { grid-area: st; }
    .fb-team.is-home { grid-area: h; }
    .fb-score { grid-area: s; font-size: 15px; }
    .fb-team.is-away { grid-area: a; }
    .fb-m-meta { display: none; }
    .fb-team img, .fb-nologo { width: 22px; height: 22px; }
    .fb-team { font-size: 13.5px; gap: 6px; }
    .fb-hide-sm { display: none; }
    .fb-tteam { min-width: 0; }
    .fb-tteam img { width: 20px; height: 20px; }
    .fb-table { font-size: 13px; }
    .fb-table td, .fb-table th { padding: 8px 3px; }
}

/* ---------- Nöbetçi eczaneler ---------- */
.ph-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ph-field { display: flex; flex-direction: column; gap: 5px; margin: 0; min-width: 0; }
.ph-field > span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sv-muted); }
.ph-field select { width: 100%; height: 48px; padding: 0 38px 0 14px; border-radius: 12px; border: 1px solid var(--sv-border); background: var(--sv-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23888' d='M1.6 4.6a.75.75 0 0 1 1.06 0L8 9.94l5.34-5.34a.75.75 0 1 1 1.06 1.06l-5.87 5.87a.75.75 0 0 1-1.06 0L1.6 5.66a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E") no-repeat right 14px center; color: inherit; font-size: 16px; font-weight: 600; -webkit-appearance: none; appearance: none; }
.ph-field select:focus { outline: none; border-color: var(--sv-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sv-accent) 20%, transparent); }
.ph-field select:disabled { opacity: .55; }
.ph-go { grid-column: 1 / -1; height: 44px; border: 0; border-radius: 12px; background: var(--sv-accent); color: #fff; font-weight: 700; }
.ph-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; background: color-mix(in srgb, #16a34a 10%, var(--sv-surface)); border: 1px solid color-mix(in srgb, #16a34a 25%, var(--sv-border)); font-size: 14px; }
.ph-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: #16a34a; color: #fff; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.ph-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: phPulse 1.6s infinite; }
@keyframes phPulse { 50% { opacity: .3; } }
.ph-count { margin-left: auto; font-weight: 800; }
.ph-stale { display: flex; gap: 8px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #f59e0b 14%, var(--sv-surface)); font-size: 13.5px; }
.ph-chips-wrap { position: relative; margin-bottom: 4px; }
.ph-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.ph-chips-wrap.can-prev .ph-chips { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px); mask-image: linear-gradient(90deg, transparent 0, #000 56px); }
.ph-chips-wrap.can-next .ph-chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); }
.ph-chips-wrap.can-prev.can-next .ph-chips { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
.ph-chips.is-drag { cursor: grabbing; user-select: none; }
.ph-chips.is-drag a { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .ph-chips { cursor: grab; } }
.ph-chips-arr { position: absolute; top: 2px; z-index: 2; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; border: 1px solid var(--sv-border); background: var(--sv-surface); color: inherit; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); cursor: pointer; }
.ph-chips-arr.is-prev { left: 0; }
.ph-chips-arr.is-next { right: 0; }
.ph-chips-arr:hover { border-color: var(--sv-accent); color: var(--sv-accent); }
@media (hover: none) { .ph-chips-arr { display: none; } }
.ph-chips::-webkit-scrollbar { display: none; }
.ph-chips a { flex: none; -webkit-user-drag: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--sv-border); background: var(--sv-surface); color: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ph-chips a.is-on { background: var(--sv-accent); border-color: var(--sv-accent); color: #fff; }
.ph-tools { display: flex; gap: 8px; margin-bottom: 14px; }
.ph-search { flex: 1; position: relative; margin: 0; min-width: 0; }
.ph-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--sv-muted); }
.ph-search input { width: 100%; height: 46px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--sv-border); background: var(--sv-surface); color: inherit; font-size: 16px; }
.ph-search input:focus { outline: none; border-color: var(--sv-accent); }
.ph-near { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--sv-border); background: var(--sv-surface); color: inherit; font-weight: 700; font-size: 14px; white-space: nowrap; }
.ph-near.is-on { background: var(--sv-accent); border-color: var(--sv-accent); color: #fff; }
.ph-near.is-busy { opacity: .6; }
@media (max-width: 420px) { .ph-near span { display: none; } .ph-near { width: 46px; justify-content: center; padding: 0; } }
.ph-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 768px) { .ph-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.ph-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--sv-radius); border: 1px solid var(--sv-border); background: var(--sv-surface); }
.ph-card[hidden] { display: none; }
.ph-card-top { display: flex; gap: 12px; align-items: flex-start; }
.ph-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #dc2626; color: #fff; font-size: 20px; }
.ph-card-txt { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ph-card h2 { flex-basis: 100%; margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; }
.ph-dist { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--sv-soft); color: var(--sv-muted); }
.ph-km { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--sv-accent) 14%, transparent); color: var(--sv-accent); }
.ph-km[hidden] { display: none; }
.ph-addr, .ph-note { display: flex; gap: 6px; margin: 0; font-size: 14px; line-height: 1.45; color: inherit; }
.ph-addr i, .ph-note i { color: var(--sv-muted); margin-top: 2px; }
.ph-note { font-size: 13px; color: var(--sv-muted); }
.ph-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 4px; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--sv-border); background: var(--sv-soft); color: inherit; font-weight: 700; font-size: 14px; text-decoration: none; text-align: center; }
.ph-btn:only-child { grid-column: 1 / -1; }
.ph-btn.is-call { background: #16a34a; border-color: #16a34a; color: #fff; }
.ph-btn:active { transform: scale(.98); }
.ph-none { text-align: center; color: var(--sv-muted); padding: 18px; }
