/* TRF Canlı Skor – site tarafı */
.trf-cs {
	--trf-c: #e30a17;
	--trf-dark: #0b1f3a;
	--trf-bg: #fff;
	--trf-fg: #1d2327;
	--trf-mut: #6b7280;
	--trf-bd: #e5e7eb;
	--trf-soft: #f4f5f7;
	color: var(--trf-fg);
	font-size: 15px;
	line-height: 1.4;
	margin: 1.5em 0;
}
.trf-panel { --trf-dark: #0b1f3a; --trf-bg: #fff; --trf-fg: #1d2327; --trf-mut: #6b7280; --trf-bd: #e5e7eb; --trf-soft: #f4f5f7; }
.trf-cs *, .trf-cs *::before, .trf-cs *::after { box-sizing: border-box; }
.trf-cs-head { display: flex; align-items: center; gap: 10px; margin: 0 0 .8em; padding-bottom: .5em; border-bottom: 3px solid var(--trf-c); }
.trf-cs-brandlogo { height: 36px; width: auto; flex: none; }
.trf-cs-title { font-size: 1.15em; margin: 0; color: var(--trf-dark); text-transform: uppercase; letter-spacing: .02em; }
.trf-empty { color: var(--trf-mut); padding: 1em; text-align: center; border: 1px dashed var(--trf-bd); border-radius: 8px; margin: 0; }
.trf-fallback { padding-left: 1.2em; }

/* Kartlar */
.trf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.trf-card {
	display: block; background: var(--trf-bg); border: 1px solid var(--trf-bd); border-radius: 10px;
	padding: 10px 12px; color: inherit !important; text-decoration: none !important;
	transition: box-shadow .2s, transform .2s;
}
.trf-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
.trf-card.trf-st-canli, .trf-card.trf-st-devre { border-color: var(--trf-c); box-shadow: inset 0 0 0 1px var(--trf-c); }
.trf-card.trf-st-ertelendi, .trf-card.trf-st-iptal { opacity: .7; }
.trf-card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .78em; color: var(--trf-mut); margin-bottom: 8px; }
.trf-card-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.trf-side { min-width: 0; }
.trf-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.trf-away .trf-team { flex-direction: row-reverse; text-align: right; }
.trf-logo { width: 32px; height: 32px; object-fit: contain; flex: none; }
.trf-team-ph {
	display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
	background: var(--trf-soft); color: var(--trf-mut); font-size: .62em; font-weight: 700; letter-spacing: .02em;
}
.trf-team-name { font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.trf-win .trf-team-name { font-weight: 800; }
.trf-lose .trf-team-name { color: var(--trf-mut); font-weight: 500; }
.trf-center { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.trf-score { display: flex; gap: 6px; font-size: 1.55em; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.trf-score span, .trf-mc-score span { color: var(--trf-mut); font-weight: 400; }
.trf-vs { color: var(--trf-mut); font-weight: 700; }
.trf-card-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--trf-bd); font-size: .78em; color: var(--trf-mut); }
.trf-tv { color: var(--trf-c); font-weight: 700; white-space: nowrap; }
.trf-day { margin: 1.3em 0 .5em; font-size: .95em; color: var(--trf-dark); }
.trf-day:first-child { margin-top: 0; }

/* Durum rozetleri */
.trf-badge {
	display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px;
	background: var(--trf-soft); color: var(--trf-mut); font-size: .72em; font-weight: 700;
	letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.trf-badge-live { background: var(--trf-c); color: #fff; }
.trf-badge-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: trf-pulse 1.2s infinite; }
.trf-badge-ht { background: #fef3c7; color: #92400e; }
.trf-badge-ft { background: var(--trf-dark); color: #fff; }
.trf-badge-off { background: #fee2e2; color: #991b1b; }
@keyframes trf-pulse { 50% { opacity: .25; } }
.trf-flash { animation: trf-flash 1.8s ease; border-radius: 4px; }
@keyframes trf-flash { 0%, 30% { background: var(--trf-c); color: #fff; } 100% { background: transparent; } }

/* Maç merkezi */
.trf-mc-board {
	background: var(--trf-dark); background-image: linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.25)); color: #fff; border-radius: 14px;
	border-top: 5px solid var(--trf-c); overflow: hidden;
	padding: 16px 16px 20px; margin-bottom: 14px;
}
.trf-mc-board.trf-st-canli { box-shadow: 0 0 0 3px var(--trf-c); }
.trf-mc-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -4px 0 10px; font-size: .72em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.trf-mc-brand img { height: 28px; width: auto; }
.trf-mc-meta { text-align: center; font-size: .82em; opacity: .75; margin-bottom: 14px; }
.trf-mc-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.trf-mc-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.trf-mc-team strong { font-size: 1.05em; line-height: 1.2; }
.trf-mc-team small { opacity: .7; font-size: .8em; }
.trf-mc-logo { width: 64px; height: 64px; object-fit: contain; }
.trf-mc-logo.trf-team-ph { font-size: .95em; background: rgba(255,255,255,.1); color: #fff; }
.trf-mc-center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trf-mc-score { display: flex; gap: 10px; font-size: 2.6em; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.trf-mc-score.trf-vs { color: rgba(255,255,255,.6); font-size: 1.6em; }
.trf-mc-board .trf-badge:not(.trf-badge-live):not(.trf-badge-ht) { background: rgba(255,255,255,.15); color: #fff; }
.trf-mc-period { opacity: .7; font-size: .78em; }
.trf-embed { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 14px; }
.trf-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trf-btn {
	display: inline-block; background: var(--trf-c); color: #fff !important; text-decoration: none !important;
	padding: 10px 18px; border-radius: 8px; font-weight: 700;
}
.trf-mc-h { margin: .4em 0 .6em; font-size: 1em; }
.trf-timeline { list-style: none; margin: 0; padding: 0; border: 1px solid var(--trf-bd); border-radius: 10px; overflow: hidden; }
.trf-ev { display: grid; grid-template-columns: 64px 34px 1fr auto; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--trf-bd); background: var(--trf-bg); }
.trf-ev:first-child { border-top: 0; }
.trf-ev-home { border-left: 4px solid var(--trf-c); }
.trf-ev-away { border-left: 4px solid var(--trf-dark); }
.trf-ev-min { font-weight: 700; color: var(--trf-mut); font-variant-numeric: tabular-nums; }
.trf-ev-ico {
	display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
	background: var(--trf-soft); font-size: .72em; font-weight: 800;
}
.trf-evk-major .trf-ev-ico { background: var(--trf-c); color: #fff; }
.trf-evk-yellow .trf-ev-ico { background: #facc15; color: #422006; border-radius: 4px; width: 22px; }
.trf-evk-red .trf-ev-ico, .trf-evk-wicket .trf-ev-ico { background: #dc2626; color: #fff; border-radius: 4px; width: 22px; }
.trf-evk-wicket .trf-ev-ico { width: 30px; border-radius: 50%; }
.trf-ev-txt small { display: block; color: var(--trf-mut); font-size: .8em; }
.trf-ev-txt em { color: var(--trf-mut); }
.trf-ev-pts { font-weight: 800; color: var(--trf-c); }

/* Puan durumu */
.trf-table-wrap { overflow-x: auto; border: 1px solid var(--trf-bd); border-radius: 10px; }
.trf-table { width: 100%; border-collapse: collapse; font-size: .92em; margin: 0; background: var(--trf-bg); }
.trf-table th, .trf-table td { padding: 8px 6px; text-align: center; border: 0; border-bottom: 1px solid var(--trf-bd); white-space: nowrap; }
.trf-table thead th { background: var(--trf-dark); font-size: .8em; color: #fff; text-transform: uppercase; }
.trf-table tbody tr:last-child td { border-bottom: 0; }
.trf-table .trf-tl { text-align: left; }
.trf-table .trf-tl a { color: inherit; text-decoration: none; }
.trf-table .trf-logo { width: 24px; height: 24px; }
.trf-table tbody tr:first-child td:first-child { box-shadow: inset 3px 0 0 var(--trf-c); }
.trf-pts { font-weight: 800; }
.trf-f { display: inline-block; width: 20px; height: 20px; line-height: 20px; border-radius: 4px; margin: 0 1px; color: #fff; font-size: .72em; font-weight: 700; }
.trf-f-G { background: #16a34a; }
.trf-f-B { background: #9ca3af; }
.trf-f-M { background: #dc2626; }
.trf-legend { font-size: .75em; color: var(--trf-mut); margin: .5em 0 0; }

@media (max-width: 520px) {
	.trf-cards { grid-template-columns: 1fr; }
	.trf-mc-logo { width: 44px; height: 44px; }
	.trf-mc-score { font-size: 2em; }
	.trf-mc-team strong { font-size: .9em; }
	.trf-form-col { display: none; }
	.trf-table .trf-team-name { max-width: 120px; }
}

/* Branş sekmeleri */
.trf-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.trf-tab {
	appearance: none; border: 1px solid var(--trf-bd); background: var(--trf-bg); color: var(--trf-fg);
	border-radius: 99px; padding: 5px 12px; font: inherit; font-size: .85em; cursor: pointer; line-height: 1.3;
}
.trf-tab:hover { border-color: var(--trf-dark); }
.trf-tab-on { background: var(--trf-dark); border-color: var(--trf-dark); color: #fff; }

/* Kriket skoru */
.trf-cricket { font-size: 1.15em !important; align-items: baseline; }
.trf-cricket b { display: inline-flex; flex-direction: column; align-items: center; }
.trf-cricket small { font-size: .5em; font-weight: 600; opacity: .7; margin-top: 3px; }
.trf-mc-score.trf-cricket { font-size: 1.9em !important; }
.trf-bat { font-size: .9em; }
.trf-card-result { margin-top: 8px; font-size: .8em; font-weight: 600; color: var(--trf-dark); text-align: center; }

/* Maç tabelası ek bilgileri */
.trf-mc-info { text-align: center; font-size: .88em; margin-top: 12px; opacity: .9; }
.trf-outs { display: inline-flex; gap: 4px; vertical-align: middle; }
.trf-outs i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); }
.trf-outs i.on { background: var(--trf-c); border-color: var(--trf-c); }
.trf-line-wrap { overflow-x: auto; margin-top: 14px; }
.trf-line { width: 100%; border-collapse: collapse; font-size: .85em; font-variant-numeric: tabular-nums; margin: 0; color: #fff; background: transparent; }
.trf-line th, .trf-line td { padding: 4px 6px; text-align: center; border: 0; border-top: 1px solid rgba(255,255,255,.12); background: transparent; }
.trf-line thead th { border-top: 0; opacity: .7; font-weight: 600; }
.trf-line tbody th { text-align: left; font-weight: 700; }
.trf-line .trf-cur { background: rgba(255,255,255,.12); }
.trf-line .trf-tot { font-weight: 800; border-left: 1px solid rgba(255,255,255,.25); }

.trf-side-score { margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trf-side-score b { font-size: 1.1em; font-weight: 800; }
.trf-side-score small { color: var(--trf-mut); font-size: .75em; }
.trf-away .trf-side-score { text-align: right; }
.trf-sp-kriket .trf-card-body { grid-template-columns: 1fr auto 1fr; }
