/* Taç Turnuvası — kırmızı tema + sakura */

/* ——— Sayfa arka planı (görsel yok) ——— */
body.tac-turnuvasi-page {
    background: linear-gradient(
        160deg,
        #0a0a0e 0%,
        #0c0a0c 50%,
        #100608 100%
    ) !important;
    background-image: none !important;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    body.tac-turnuvasi-page {
        background-attachment: scroll;
    }
}

body.tac-turnuvasi-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 70% 50% at 10% 6%, rgba(239, 68, 68, 0.22) 0%, transparent 58%);
}

body.tac-turnuvasi-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 60% 45% at 90% 94%, rgba(220, 38, 38, 0.18) 0%, transparent 52%);
}

/* Kırmızı sakura yağmuru */
.tac-sakura-fall {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.tac-petal {
    position: absolute;
    top: -5%;
    left: calc(var(--x, 50) * 1%);
    width: var(--sz, 8px);
    height: calc(var(--sz, 8px) * 1.15);
    background: radial-gradient(ellipse at 35% 25%, rgba(252, 165, 165, 0.75), rgba(220, 38, 38, 0.35));
    border-radius: 150% 0 150% 150%;
    opacity: 0;
    animation: tac-sakura-fall var(--dur, 14s) var(--delay, 0s) linear infinite;
    will-change: transform, opacity;
}

@keyframes tac-sakura-fall {
    0% {
        transform: translateY(-8vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    8% {
        opacity: var(--op, 0.3);
    }
    92% {
        opacity: var(--op, 0.3);
    }
    100% {
        transform: translateY(108vh) translateX(var(--drift, 20px)) rotate(540deg);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tac-sakura-fall {
        display: none;
    }
}

body.tac-turnuvasi-page .forum-background,
body.tac-turnuvasi-page .forum-content {
    background: transparent !important;
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --tac-bg-deep: #0a0a0e;
    --tac-bg-panel: #16161c;
    --tac-bg-card: #1c1c24;
    --tac-bg-card-hover: #242430;
    --tac-border: rgba(255, 255, 255, 0.08);
    --tac-border-strong: rgba(244, 63, 94, 0.16);
    --tac-accent: #f43f5e;
    --tac-accent-soft: rgba(244, 63, 94, 0.12);
    --tac-accent-mid: rgba(244, 63, 94, 0.22);
    --tac-accent-border: rgba(244, 63, 94, 0.34);
    --tac-gold: #f43f5e;
    --tac-gold-light: #fda4af;
    --tac-green: #22c55e;
}

.tac-turnuvasi-page .forum-background {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.tac-turnuvasi-page .tt-page-wrap {
    max-width: none;
    width: 100%;
    padding: 0;
    text-align: left;
    overflow-x: hidden;
}

.tac-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.25rem;
}

/* ——— Panel sistemi ——— */
.tac-panel {
    background: linear-gradient(160deg, rgba(22, 22, 28, 0.97) 0%, rgba(14, 14, 18, 0.98) 100%);
    border: 1px solid var(--tac-border-strong);
    border-radius: 18px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tac-panel-hero {
    background: linear-gradient(135deg, rgba(28, 10, 16, 0.98) 0%, rgba(14, 10, 14, 0.99) 55%, rgba(22, 8, 12, 0.98) 100%);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* Bölüm başlıkları */
.tac-section-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1.15rem;
    color: #f1f5f9;
    letter-spacing: 0.01em;
}

.tac-section-title iconify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: var(--tac-accent-soft);
    color: var(--tac-gold-light);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Şampiyon */
.tac-champion-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    margin-bottom: 1.75rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(48, 38, 8, 0.95) 0%, rgba(24, 20, 8, 0.98) 50%, rgba(36, 28, 6, 0.95) 100%);
    border: 1px solid rgba(234, 179, 8, 0.4);
    box-shadow:
        0 12px 48px rgba(234, 179, 8, 0.1),
        inset 0 1px 0 rgba(253, 224, 71, 0.1);
}

.tac-champion-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 1.35rem;
    color: #fde047;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    order: 0;
}

.tac-champion-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    order: 1;
}

.tac-champion-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(234, 179, 8, 0.45);
    box-shadow: 0 0 24px rgba(234, 179, 8, 0.15);
}

.tac-champion-logo img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
}

.tac-champion-name {
    font-size: 1.85rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fef9c3, #fde047);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Meta */
.tac-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.tac-meta-card {
    padding: 1rem 1.15rem;
    border-radius: 14px;
    text-align: left;
    background: var(--tac-bg-card);
    border: 1px solid var(--tac-border);
}

.tac-meta-card label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.85);
    margin-bottom: 0.4rem;
}

.tac-meta-card span {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
}

/* Katılan takımlar */
.tac-teams-section {
    margin-bottom: 1.75rem;
    padding: 1.5rem 1.6rem;
    border-radius: 18px;
}

.tac-teams-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tac-team-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.95rem 0.5rem 0.5rem;
    border-radius: 12px;
    background: var(--tac-bg-card);
    border: 1px solid var(--tac-border);
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

a.tac-team-chip {
    text-decoration: none;
    cursor: pointer;
}

.tac-team-chip:hover {
    background: var(--tac-bg-card-hover);
    border-color: var(--tac-border-strong);
    transform: translateY(-1px);
}

.tac-team-chip-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--tac-border);
}

.tac-team-chip-logo img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    object-fit: cover;
}

/* Ödüller */
.tac-prizes-section {
    margin-bottom: 1.75rem;
    padding: 1.5rem 1.6rem;
    border-radius: 18px;
}

.tac-prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.tac-prize-card {
    padding: 1.2rem 1.3rem;
    border-radius: 14px;
    text-align: left;
    background: var(--tac-bg-card);
    border: 1px solid var(--tac-border);
}

.tac-prize-card h4 {
    margin: 0 0 0.5rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.tac-prize-card p {
    margin: 0;
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.55;
}

/* ——— Ödül nadirlik renkleri (altın / gümüş / bronz) ——— */
.tac-prize-card.tac-prize-gold {
    background: linear-gradient(145deg, rgba(48, 38, 8, 0.95), rgba(24, 20, 8, 0.98));
    border-color: rgba(234, 179, 8, 0.45);
    box-shadow:
        0 4px 20px rgba(234, 179, 8, 0.08),
        inset 0 1px 0 rgba(253, 224, 71, 0.12);
}

.tac-prize-card.tac-prize-gold h4 {
    color: #fde047;
    text-shadow: 0 0 12px rgba(234, 179, 8, 0.2);
}

.tac-prize-card.tac-prize-gold p {
    color: #d6d3a8;
}

.tac-prize-card.tac-prize-silver {
    background: linear-gradient(145deg, rgba(36, 40, 48, 0.95), rgba(20, 24, 32, 0.98));
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow:
        0 4px 20px rgba(148, 163, 184, 0.06),
        inset 0 1px 0 rgba(226, 232, 240, 0.08);
}

.tac-prize-card.tac-prize-silver h4 {
    color: #e2e8f0;
}

.tac-prize-card.tac-prize-silver p {
    color: #94a3b8;
}

.tac-prize-card.tac-prize-bronze {
    background: linear-gradient(145deg, rgba(48, 28, 14, 0.95), rgba(28, 18, 10, 0.98));
    border-color: rgba(180, 83, 9, 0.42);
    box-shadow:
        0 4px 20px rgba(180, 83, 9, 0.06),
        inset 0 1px 0 rgba(251, 146, 60, 0.08);
}

.tac-prize-card.tac-prize-bronze h4 {
    color: #fb923c;
}

.tac-prize-card.tac-prize-bronze p {
    color: #a8a29e;
}

.tac-publish-bar {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tac-admin-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tac-admin-bar .tt-btn {
    justify-content: center;
}

.tac-frozen-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    max-width: 52rem;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 0.85rem;
    background: rgba(34, 197, 94, 0.08);
    color: #d1fae5;
    text-align: left;
}

.tac-frozen-banner iconify-icon {
    font-size: 1.25rem;
    color: #4ade80;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.tac-frozen-banner strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #86efac;
}

.tac-frozen-banner p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(209, 250, 229, 0.85);
}

.tac-edit-mode-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    max-width: 52rem;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 0.85rem;
    background: rgba(251, 191, 36, 0.08);
    color: #fef3c7;
    text-align: left;
}

.tac-edit-mode-banner iconify-icon {
    font-size: 1.25rem;
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.tac-edit-mode-banner strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #fde68a;
}

.tac-edit-mode-banner p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(254, 243, 199, 0.85);
}

.tac-member-view-toggle {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 1200;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--tac-accent-border);
    border-radius: 999px;
    background: rgba(28, 28, 36, 0.94);
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tac-member-view-toggle:hover {
    background: rgba(36, 36, 48, 0.98);
    border-color: var(--tac-accent);
    transform: translateX(-50%) translateY(-1px);
}

.tac-member-view-toggle iconify-icon {
    font-size: 1rem;
    color: var(--tac-gold-light);
}

.tac-member-view-toggle--active {
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.92);
}

.tac-member-view-toggle--active iconify-icon {
    color: #94a3b8;
}

@media (max-width: 640px) {
    .tac-member-view-toggle {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        transform: none;
        justify-content: center;
        width: auto;
    }

    .tac-member-view-toggle:hover {
        transform: translateY(-1px);
    }
}

.tac-panel-hero--has-image {
    overflow: hidden;
}

.tac-hero-image-wrap {
    margin: -1.5rem -2rem 1.15rem;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    max-height: 220px;
}

.tac-hero-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.tac-settings-preview {
    margin: 0.75rem 0 0.25rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--tac-border);
    background: var(--tac-bg-card);
}

.tac-settings-preview img {
    display: block;
    width: 100%;
    max-height: 160px;
    object-fit: cover;
}

.tac-settings-status {
    margin: 0.25rem 0 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: 0.82rem;
    color: #94a3b8;
    background: var(--tac-bg-card);
    border: 1px solid var(--tac-border);
}

.tac-settings-footer {
    gap: 0.75rem;
}

.tac-settings-footer .tac-delete-btn {
    margin-right: auto;
}

.tac-delete-btn {
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}

.tac-delete-btn:hover {
    border-color: rgba(239, 68, 68, 0.55) !important;
    background: rgba(239, 68, 68, 0.12) !important;
    color: #fecaca !important;
}

/* ===== BRACKET — tam genişlik panel ===== */
.tac-bracket-fullbleed {
    width: 100%;
    max-width: 100%;
    position: relative;
    left: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 0 0.75rem;
    box-sizing: border-box;
    margin-bottom: 2rem;
    overflow-x: hidden;
}

.tac-bracket-fullbleed .tac-section-title {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.25rem;
}

.tac-bracket-panel > .tac-section-title {
    justify-content: center;
    width: 100%;
    text-align: center;
}

.tac-bracket-sections {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin: 0 auto 1rem;
    max-width: 1200px;
    padding: 0 0.25rem;
}

.tac-section-chip {
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    white-space: nowrap;
}

.tac-section-chip:hover {
    background: var(--tac-accent-soft);
    border-color: var(--tac-accent-border);
    color: #fff;
}

.tac-section-chip.tac-active {
    background: var(--tac-accent-mid);
    border-color: var(--tac-accent-border);
    color: #fff;
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.2);
}

.tac-bracket-section-hint {
    text-align: center;
    margin: -0.35rem 0 1rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.tac-bracket-section-hint strong {
    color: var(--tac-gold-light);
    font-weight: 700;
}

.tac-round-label {
    text-align: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.55rem;
    padding: 0.28rem 0.35rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tac-bracket-panel {
    border-radius: 20px;
    padding: 1.35rem 1.25rem 1.5rem;
    background: #111116;
    border: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    transition: max-width 0.3s ease, padding 0.3s ease;
}

/* Panel genişliği — sütun + takım sayısına göre (tüm görünümler) */
.tac-bracket-panel--cols-1 { max-width: min(100%, 460px); }
.tac-bracket-panel--cols-2 { max-width: min(100%, 760px); }
.tac-bracket-panel--cols-3 { max-width: min(100%, 1000px); }
.tac-bracket-panel--cols-4 { max-width: min(100%, 1140px); }
.tac-bracket-panel--cols-5 { max-width: min(100%, 1240px); }
.tac-bracket-panel--cols-6 { max-width: min(100%, 1380px); }

.tac-bracket-focused .tac-bracket-arena,
.tac-bracket-full .tac-bracket-arena {
    min-height: 0 !important;
    overflow-x: auto;
    overflow-y: visible;
}

.tac-bracket-arena {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 1rem 0.5rem;
    min-height: 200px;
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 12px;
    background: var(--tac-bg-deep);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tac-bracket-fit {
    position: relative;
    width: 100%;
}

.tac-bracket-scroll {
    position: relative;
    width: 100%;
    padding: 0.25rem 0 1rem;
}

.tac-bracket-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.tac-bracket-svg path.tac-connector {
    stroke: rgba(244, 63, 94, 0.28);
    stroke-width: 2;
    fill: none;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.tac-bracket {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(var(--tac-rounds, 4), minmax(0, 1fr));
    column-gap: var(--tac-col-gap, 14px);
    align-items: start;
    z-index: 2;
}

.tac-round {
    position: relative;
    min-width: 0;
}

.tac-round-track {
    position: relative;
    width: 100%;
    height: var(--tac-track-h, 600px);
}

.tac-match-slot {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 2;
}

/* Maç bloğu — kart + alt bilgi */
.tac-match-wrap {
    width: 100%;
    cursor: pointer;
}

.tac-match-meta {
    margin-top: 0.35rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0 0 var(--tac-card-radius, 12px) var(--tac-card-radius, 12px);
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: none;
    min-height: var(--tac-meta-h, 54px);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tac-match-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    font-size: 0.62rem;
    line-height: 1.25;
    min-width: 0;
}

.tac-match-meta-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.tac-match-meta-label iconify-icon {
    font-size: 0.68rem;
    color: #94a3b8;
}

.tac-match-meta-value {
    color: #cbd5e1;
    font-weight: 600;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tac-match-meta-row--result .tac-match-meta-value {
    color: var(--tac-gold-light);
}

.tac-match-wrap:has(.tac-match-final) .tac-match-meta {
    border-color: rgba(244, 63, 94, 0.2);
    background: rgba(20, 8, 12, 0.55);
}

/* Maç kartı */
.tac-match-card {
    position: relative;
    width: 100%;
    height: var(--tac-card-h, 96px);
    display: flex;
    flex-direction: column;
    border-radius: var(--tac-card-radius, 12px) var(--tac-card-radius, 12px) 0 0;
    background: var(--tac-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
    overflow: hidden;
}

.tac-match-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #f43f5e, #be123c);
    border-radius: 3px 0 0 3px;
    opacity: 0.7;
}

.tac-match-wrap:hover .tac-match-card {
    transform: translateY(-1px);
    border-color: var(--tac-accent-border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.tac-match-card.tac-match-final {
    background: linear-gradient(135deg, #2a1018 0%, #1a0a10 100%);
    border-color: rgba(244, 63, 94, 0.35);
}

.tac-match-card.tac-match-final::before {
    background: linear-gradient(180deg, #fb7185, #be123c);
}

.tac-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding: 0.18rem 0.55rem 0.18rem 0.65rem;
    font-size: var(--tac-header-fs, 0.58rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
    color: #64748b;
}

.tac-match-header-round {
    color: #94a3b8;
}

.tac-match-header-bo {
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: var(--tac-accent-soft);
    color: var(--tac-gold-light);
    font-size: 0.58rem;
    font-weight: 800;
    border: 1px solid var(--tac-accent-border);
}

.tac-match-team.tac-empty {
    color: #64748b;
    font-weight: 500;
}

.tac-match-team.tac-empty .tac-match-team-name {
    font-style: normal;
    color: #94a3b8;
}

.tac-match-teams {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.tac-match-team {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: var(--tac-team-gap, 0.45rem);
    padding: 0 var(--tac-team-px, 0.75rem);
    font-size: var(--tac-team-fs, 0.85rem);
    font-weight: 600;
    flex: 1 1 0;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s, opacity 0.2s;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.tac-match-team:last-child {
    border-bottom: none;
}

.tac-match-team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    align-self: center;
}

.tac-match-team-logo {
    width: min(var(--tac-logo, 28px), 100%);
    height: min(var(--tac-logo, 28px), 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    padding: 0;
    line-height: 1;
    align-self: center;
}

.tac-match-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border: none;
    border-radius: 0;
    background: none;
}

.tac-match-team-logo iconify-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 100%;
    line-height: 1;
}

.tac-match-team.tac-winner {
    background: rgba(34, 197, 94, 0.12);
    box-shadow: inset 3px 0 0 rgba(74, 222, 128, 0.7);
}

.tac-match-team.tac-winner .tac-match-team-name {
    font-weight: 700;
    color: #ecfdf5;
}

.tac-match-team.tac-loser {
    background: rgba(239, 68, 68, 0.07);
    box-shadow: inset 3px 0 0 rgba(248, 113, 113, 0.35);
    opacity: 0.72;
}

.tac-match-team.tac-loser .tac-match-team-name {
    color: rgba(254, 202, 202, 0.55);
    font-weight: 500;
}

.tac-match-team.tac-loser .tac-match-team-logo {
    opacity: 0.5;
    filter: saturate(0.4);
}

.tac-match-team.tac-empty {
    color: #475569;
    font-weight: 500;
}

.tac-match-team.tac-empty .tac-match-team-name {
    font-style: italic;
}

.tac-remove-team-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    font-size: 12px;
    line-height: 1;
    z-index: 10;
}

.tac-remove-team-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.15);
}

.tac-match-team:has(.tac-remove-team-btn):hover .tac-remove-team-btn {
    opacity: 1;
}

.tac-slot-placeable:hover {
    background: var(--tac-accent-soft);
}

.tac-match-card.tac-has-winner .tac-match-team.tac-winner {
    animation: tac-win-pulse 0.5s ease;
}

@keyframes tac-win-pulse {
    0% { background: rgba(34, 197, 94, 0.22); }
    100% { background: rgba(34, 197, 94, 0.12); }
}

/* Podyum */
.tac-podium-section {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    padding: 1.6rem 1.5rem;
    border-radius: 18px;
}

.tac-podium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.15rem;
}

.tac-podium-card {
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    background: var(--tac-bg-card);
    border: 1px solid var(--tac-border);
}

.tac-podium-card.tac-gold {
    background: linear-gradient(160deg, rgba(48, 38, 8, 0.96), rgba(22, 18, 8, 0.99));
    border-color: rgba(234, 179, 8, 0.42);
    box-shadow: 0 8px 32px rgba(234, 179, 8, 0.1);
}

.tac-podium-card.tac-gold .tac-podium-place {
    color: #eab308;
}

.tac-podium-card.tac-gold .tac-podium-name {
    color: #fde047;
}

.tac-podium-card.tac-silver {
    background: linear-gradient(160deg, rgba(36, 40, 48, 0.96), rgba(18, 22, 30, 0.99));
    border-color: rgba(148, 163, 184, 0.38);
    box-shadow: 0 8px 32px rgba(148, 163, 184, 0.06);
}

.tac-podium-card.tac-silver .tac-podium-place {
    color: #94a3b8;
}

.tac-podium-card.tac-silver .tac-podium-name {
    color: #e2e8f0;
}

.tac-podium-card.tac-bronze {
    background: linear-gradient(160deg, rgba(48, 28, 14, 0.96), rgba(26, 16, 10, 0.99));
    border-color: rgba(180, 83, 9, 0.4);
    box-shadow: 0 8px 32px rgba(180, 83, 9, 0.08);
}

.tac-podium-card.tac-bronze .tac-podium-place {
    color: #d97706;
}

.tac-podium-card.tac-bronze .tac-podium-name {
    color: #fb923c;
}

.tac-podium-place {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    margin-bottom: 0.85rem;
    font-weight: 700;
}

.tac-podium-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--tac-border);
    margin: 0 auto;
}

.tac-podium-logo img {
    width: 56px;
    height: 56px;
    border-radius: 13px;
    object-fit: cover;
}

.tac-podium-name {
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0.75rem 0 0.35rem;
    color: #f1f5f9;
}

.tac-podium-prize {
    font-size: 0.84rem;
    color: #94a3b8;
    margin: 0;
}

/* Sayfa başlığı override */
.tac-turnuvasi-page .tt-page-header.tac-panel-hero {
    margin-bottom: 1.75rem;
}

.tac-turnuvasi-page .tt-page-title {
    background: linear-gradient(135deg, #fecdd3, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tac-turnuvasi-page .tt-page-title iconify-icon {
    color: var(--tac-gold);
    -webkit-text-fill-color: initial;
}

/* —— Dominara tarzı modallar —— */
body.tac-modal-open {
    overflow: hidden;
}

.tac-turnuvasi-page .tac-dm-modal {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-top: max(1rem, 5rem);
}

.tac-turnuvasi-page .tac-dm-modal.tac-dm-modal--open {
    display: flex;
}

.tac-turnuvasi-page .tac-dm-modal[hidden]:not(.tac-dm-modal--open) {
    display: none !important;
}

.tac-turnuvasi-page .tac-dm-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 4, 8, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tac-turnuvasi-page .tac-dm-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 36rem);
    max-height: min(92vh, 720px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(
        160deg,
        rgba(18, 8, 12, 0.98) 0%,
        rgba(36, 10, 18, 0.96) 42%,
        rgba(12, 10, 16, 0.99) 100%
    );
    border: 2px solid rgba(244, 63, 94, 0.32);
    border-radius: 1.15rem;
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.68),
        0 0 0 1px rgba(253, 164, 175, 0.06) inset,
        0 0 48px rgba(244, 63, 94, 0.1);
    animation: tac-dm-modal-in 0.28s ease-out;
}

.tac-turnuvasi-page .tac-dm-modal__panel--match {
    width: min(100%, 52rem);
    max-height: min(94vh, 820px);
}

.tac-turnuvasi-page .tac-dm-modal__panel.tac-modal--wide {
    width: min(1180px, 96vw);
    max-height: min(94vh, 920px);
}

.tac-turnuvasi-page .tac-dm-modal__panel--teams {
    width: min(100%, 44rem);
}

.tac-turnuvasi-page .tac-dm-modal__panel--settings {
    width: min(100%, 32rem);
}

@keyframes tac-dm-modal-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tac-turnuvasi-page .tac-dm-modal__panel {
        animation: none;
    }
}

.tac-turnuvasi-page .tac-dm-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 3;
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.38);
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tac-turnuvasi-page .tac-dm-modal__close:hover {
    background: rgba(244, 63, 94, 0.18);
    border-color: rgba(244, 63, 94, 0.42);
    color: #fff;
}

.tac-turnuvasi-page .tac-dm-modal__head {
    flex-shrink: 0;
    padding: 1.15rem 2.75rem 0.85rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.06) 0%, transparent 100%);
}

.tac-turnuvasi-page .tac-dm-modal__title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--tac-gold-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.35;
}

.tac-turnuvasi-page .tac-dm-modal__sub {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.62);
    line-height: 1.45;
}

.tac-turnuvasi-page .tac-dm-modal__body {
    padding: 1rem 1.2rem 1.2rem;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    min-width: 0;
    touch-action: pan-y;
}

.tac-turnuvasi-page .tac-dm-modal__foot {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.85rem 1.2rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
}

.tac-turnuvasi-page .tac-dm-modal__foot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-left: auto;
}

.tac-turnuvasi-page .tac-dm-modal .tt-form-group {
    margin-bottom: 0.85rem;
}

.tac-turnuvasi-page .tac-dm-modal .tt-form-group:last-child {
    margin-bottom: 0;
}

.tac-turnuvasi-page .tac-dm-modal .tt-form-input:focus {
    border-color: var(--tac-accent-border);
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.12);
}

.tac-turnuvasi-page .tac-modal-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.22);
    color: rgba(253, 164, 175, 0.95);
    font-size: 0.82rem;
    font-weight: 600;
}

.tac-turnuvasi-page .tac-modal-section {
    margin-top: 1rem;
}

.tac-turnuvasi-page .tac-modal-section__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.45);
    margin-bottom: 0.55rem;
}

.tac-turnuvasi-page .tac-modal-card {
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.tac-turnuvasi-page .tac-modal-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tac-gold-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(244, 63, 94, 0.06);
}

.tac-turnuvasi-page .tac-modal-card__body {
    padding: 0.85rem;
}

.tac-turnuvasi-page .tac-modal-card__step {
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.78);
}

.tac-turnuvasi-page .tac-modal-hint {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.55);
}

.tac-turnuvasi-page .tac-schedule-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
}

.tac-turnuvasi-page .tac-schedule-field--time {
    min-width: 7.5rem;
}

.tac-turnuvasi-page .tac-schedule-save {
    width: fit-content;
    margin-top: 0.5rem;
}

.tac-turnuvasi-page .tac-form-group {
    margin-bottom: 0.75rem;
    text-align: left;
}

.tac-turnuvasi-page .tac-form-group:last-child {
    margin-bottom: 0;
}

.tac-turnuvasi-page .tac-form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.62);
    margin-bottom: 0.35rem;
}

.tac-turnuvasi-page .tac-form-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.85rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(244, 63, 94, 0.22);
    background: rgba(0, 0, 0, 0.38);
    color: #f1f5f9;
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tac-turnuvasi-page .tac-form-input:focus {
    outline: none;
    border-color: rgba(244, 63, 94, 0.48);
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.12);
}

.tac-turnuvasi-page .tac-form-select {
    cursor: pointer;
    color-scheme: dark;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.35rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fda4af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
}

.tac-turnuvasi-page .tac-form-select option {
    background: #1a1014;
    color: #f1f5f9;
}

.tac-turnuvasi-page .tac-modal-card--schedule .tac-modal-card__body {
    padding: 1rem 1.15rem 1.15rem;
}

.tac-turnuvasi-page .tac-game-admin-bar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
}

.tac-stream-watch-btn--solid {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.5);
    color: #fecdd3;
}

.tac-stream-watch-btn--solid:hover {
    background: rgba(244, 63, 94, 0.3);
    border-color: rgba(244, 63, 94, 0.62);
    color: #fff;
}

.tac-stream-watch-btn--danger {
    border-color: rgba(239, 68, 68, 0.42);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

.tac-stream-watch-btn--danger:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.58);
    color: #fecaca;
}

.tac-turnuvasi-page .tac-game-stream-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
    align-items: center;
}

@media (max-width: 480px) {
    .tac-turnuvasi-page .tac-dm-modal {
        padding: 0.65rem;
        padding-top: max(0.65rem, 4.5rem);
    }

    .tac-turnuvasi-page .tac-dm-modal__panel.tac-modal--wide {
        width: 100%;
    }

    .tac-turnuvasi-page .tac-schedule-row {
        grid-template-columns: 1fr;
    }

    .tac-turnuvasi-page .tac-dm-modal__foot {
        flex-direction: column;
        align-items: stretch;
    }

    .tac-turnuvasi-page .tac-dm-modal__foot-actions {
        margin-left: 0;
        width: 100%;
    }

    .tac-turnuvasi-page .tac-dm-modal__foot-actions .tt-btn {
        flex: 1;
    }
}

.tac-action-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0;
}

.tac-action-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid var(--tac-border-strong);
    background: rgba(28, 28, 36, 0.85);
    color: #fff;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.tac-action-btn:hover {
    background: var(--tac-bg-card-hover);
    border-color: var(--tac-accent-border);
    transform: translateY(-1px);
}

.tac-action-btn.tac-primary {
    background: var(--tac-accent-soft);
    border-color: var(--tac-accent-border);
    color: var(--tac-gold-light);
}

.tac-match-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    max-height: min(440px, 52vh);
    overflow-x: hidden;
    overflow-y: auto;
    margin-top: 0.75rem;
    width: 100%;
    min-width: 0;
    scrollbar-color: rgba(244, 63, 94, 0.45) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
}

.tac-match-list::-webkit-scrollbar {
    width: 8px;
}

.tac-match-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.tac-match-list::-webkit-scrollbar-thumb {
    background: rgba(244, 63, 94, 0.4);
    border-radius: 999px;
}

.tac-match-list--valorant {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    overflow-x: hidden;
}

.tac-turnuvasi-page .tac-match-list--valorant > .tac-modal-card__step {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tac-turnuvasi-page .tac-match-list--valorant .tac-val-match-item {
    width: 100%;
    box-sizing: border-box;
}

.tac-turnuvasi-page .tac-match-import-panel {
    width: 100%;
    min-width: 0;
    margin-top: 1rem;
    overflow-x: hidden;
}

.tac-turnuvasi-page .tac-modal-card--import {
    width: 100%;
}

.tac-turnuvasi-page .tac-modal-card--import .tac-modal-card__head {
    padding: 0.9rem 1.15rem;
    font-size: 0.95rem;
}

.tac-turnuvasi-page .tac-modal-card--import .tac-modal-card__body {
    padding: 1rem 1.15rem 1.2rem;
    overflow-x: hidden;
}

.tac-turnuvasi-page .tac-import-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.85rem;
    max-height: min(440px, 52vh);
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 0.75rem;
    width: 100%;
    scrollbar-color: rgba(244, 63, 94, 0.45) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
}

.tac-turnuvasi-page .tac-import-teams::-webkit-scrollbar {
    width: 8px;
}

.tac-turnuvasi-page .tac-import-teams::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.tac-turnuvasi-page .tac-import-teams::-webkit-scrollbar-thumb {
    background: rgba(244, 63, 94, 0.4);
    border-radius: 999px;
}

.tac-turnuvasi-page .tac-import-team-col {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.tac-turnuvasi-page .tac-import-team-head {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(253, 164, 175, 0.88);
    padding: 0 0.1rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tac-turnuvasi-page .tac-import-team-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.tac-import-empty--inline {
    padding: 0.65rem 0.5rem;
    text-align: center;
    font-size: 0.78rem;
}

.tac-turnuvasi-page .tac-modal-card--import .tac-modal-card__step {
    font-size: 0.88rem;
}

.tac-turnuvasi-page .tac-modal-card--import .tac-modal-hint {
    font-size: 0.84rem;
}

.tac-import-empty {
    margin: 0;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(203, 213, 225, 0.55);
}

.tac-val-match-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.6rem;
    background: rgba(28, 28, 36, 0.75);
    border: 1px solid var(--tac-border);
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.tac-turnuvasi-page .tac-import-team-list .tac-val-match-item:hover {
    border-color: var(--tac-accent-border);
    background: rgba(244, 63, 94, 0.08);
    transform: translateY(-1px);
}

.tac-val-match-item__name {
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.95);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tac-val-match-item__meta {
    font-size: 0.74rem;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.62);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tac-val-match-item:hover {
    border-color: var(--tac-accent-border);
    background: rgba(244, 63, 94, 0.08);
    transform: translateY(-1px);
}

.tac-team-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
    max-height: 340px;
    overflow-y: auto;
}

.tac-team-pick-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(28, 28, 36, 0.8);
    border: 1px solid var(--tac-border);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.tac-team-pick-item:hover {
    border-color: var(--tac-accent-border);
    background: rgba(244, 63, 94, 0.1);
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.12);
    transform: translateY(-1px);
}

.tac-team-pick-name {
    min-width: 0;
    flex: 1;
}

.tac-team-pick-status {
    flex-shrink: 0;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.32);
    background: rgba(251, 191, 36, 0.1);
    color: #fde68a;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Yükleme / hata durumu */
.tac-loading-box {
    padding: 2rem;
    text-align: center;
    border-radius: 18px;
    max-width: 28rem;
    margin: 0 auto;
}

.tac-loading-spinner {
    font-size: 2.5rem;
    color: var(--tac-gold);
    margin-bottom: 1rem;
    display: block;
}

/* ——— Önizleme modu ——— */
.tac-preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    background: linear-gradient(90deg, rgba(36, 10, 16, 0.97), rgba(20, 8, 12, 0.98));
    border-bottom: 1px solid rgba(244, 63, 94, 0.22);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tac-gold-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.tac-preview-banner iconify-icon {
    color: var(--tac-gold);
    font-size: 1rem;
}

.tac-preview-banner-link {
    margin-left: 0.5rem;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.85;
}

.tac-preview-banner-link:hover {
    opacity: 1;
    color: var(--tac-gold);
}

body.tac-preview-active {
    padding-top: 2.5rem;
}

body.tac-preview-editor-open {
    padding-right: 320px;
}

.tac-preview-editor {
    position: fixed;
    top: 2.5rem;
    right: 0;
    bottom: 0;
    width: 320px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #14141a 0%, #0e0e12 100%);
    border-left: 1px solid rgba(244, 63, 94, 0.14);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease;
}

.tac-preview-editor--hidden {
    transform: translateX(100%);
}

.tac-preview-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid var(--tac-border);
    flex-shrink: 0;
}

.tac-preview-editor-head h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tac-gold-light);
}

.tac-preview-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--tac-border);
    border-radius: 8px;
    background: var(--tac-bg-card);
    color: #94a3b8;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.tac-preview-toggle:hover {
    border-color: var(--tac-accent-border);
    color: var(--tac-gold);
}

.tac-preview-editor-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 1rem 1.25rem;
}

.tac-preview-group {
    margin-bottom: 0.85rem;
}

.tac-preview-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.tac-preview-label span {
    color: var(--tac-gold);
    font-weight: 800;
}

.tac-preview-input {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--tac-border);
    background: var(--tac-bg-card);
    color: #f1f5f9;
    font-size: 0.84rem;
    font-family: inherit;
    box-sizing: border-box;
}

.tac-preview-input:focus {
    outline: none;
    border-color: var(--tac-accent-border);
}

.tac-preview-textarea {
    resize: vertical;
    min-height: 3rem;
}

.tac-preview-range {
    width: 100%;
    accent-color: var(--tac-gold);
}

.tac-preview-hint {
    margin: 0.35rem 0 0;
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.4;
}

.tac-preview-check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    line-height: 1.35;
}

.tac-preview-check-label input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--tac-gold);
}

.tac-preview-details {
    margin: 0.5rem 0 1rem;
    border: 1px solid var(--tac-border);
    border-radius: 10px;
    overflow: hidden;
}

.tac-preview-details summary {
    padding: 0.65rem 0.75rem;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    background: var(--tac-bg-card);
    user-select: none;
}

.tac-preview-teams {
    padding: 0.5rem 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 320px;
    overflow-y: auto;
}

.tac-preview-team-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.tac-preview-team-num {
    width: 1.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #64748b;
    text-align: right;
    flex-shrink: 0;
}

.tac-preview-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tac-preview-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    z-index: 1100;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(244, 63, 94, 0.35);
    background: linear-gradient(135deg, #2a1018, #1a0a10);
    color: var(--tac-gold);
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tac-preview-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 28px rgba(244, 63, 94, 0.18);
}

@media (max-width: 900px) {
    body.tac-preview-editor-open {
        padding-right: 0;
    }

    .tac-preview-editor {
        width: min(100vw, 320px);
    }
}

.tac-match-result-panel {
    margin-top: 1rem;
}

.tac-game-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tac-game-tab {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--tac-border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.tac-game-tab.tac-active {
    background: var(--tac-accent-soft);
    border-color: var(--tac-accent-border);
    color: #fff;
}

.tac-game-tab.tac-game-tab--has-stream {
    border-color: rgba(244, 63, 94, 0.45);
}

.tac-game-tab-stream {
    display: inline-flex;
    margin-left: 0.35rem;
    color: #fda4af;
    font-size: 0.75rem;
}

.tac-game-single-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}

.tac-game-stream-bar {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--tac-border);
    background: rgba(255, 255, 255, 0.03);
}

.tac-game-stream-bar--live {
    border-color: rgba(244, 63, 94, 0.35);
    background: rgba(244, 63, 94, 0.08);
}

.tac-game-stream-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f1f5f9;
}

.tac-game-stream-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(244, 63, 94, 0.18);
    color: #fda4af;
}

.tac-game-stream-badge--empty {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

.tac-game-stream-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.tac-game-stream-watch {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
}

.tac-stream-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.65rem 1.05rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.12);
    color: #fda4af;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s, color 0.2s;
}

button.tac-stream-watch-btn {
    appearance: none;
    -webkit-appearance: none;
}

.tac-stream-watch-btn:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.55);
    color: #fff;
    transform: translateY(-1px);
}

.tac-match-stream-badge {
    color: #fda4af;
    font-weight: 600;
    font-size: 0.78rem;
}

.tac-match-meta-row--stream .tac-match-meta-label iconify-icon {
    color: #fda4af;
}

.tac-match-meta-row--stream .tac-match-meta-label iconify-icon {
    color: #fda4af;
}

/* —— Maç sonucu scoreboard tipografi —— */
.tac-turnuvasi-page .tac-valorant-result {
    position: relative;
    isolation: isolate;
    --tac-vr-data-color: rgba(241, 245, 249, 0.92);
    font-family: "Poppins", system-ui, -apple-system, sans-serif;
    padding: 1.15rem 1.1rem 1.2rem;
    border-radius: 0.85rem;
    background: rgba(10, 8, 12, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.tac-turnuvasi-page .tac-valorant-result--map::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: var(--tac-vr-map-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

.tac-turnuvasi-page .tac-valorant-result--map::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(8, 6, 10, 0.88) 0%,
        rgba(8, 6, 10, 0.72) 45%,
        rgba(8, 6, 10, 0.9) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.tac-turnuvasi-page .tac-valorant-result--map > * {
    position: relative;
    z-index: 2;
}

.tac-turnuvasi-page .tac-vr-head {
    text-align: center;
    margin-bottom: 0.85rem;
}

.tac-turnuvasi-page .tac-vr-roster-warning {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    padding: 0.72rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.34);
    background: rgba(251, 191, 36, 0.1);
    color: #fde68a;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
}

.tac-turnuvasi-page .tac-vr-roster-warning iconify-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 0.95rem;
    color: #fbbf24;
}

.tac-turnuvasi-page .tac-vr-head__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #f8fafc;
    line-height: 1.3;
}

.tac-turnuvasi-page .tac-vr-head__map {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(253, 164, 175, 0.88);
}

.tac-turnuvasi-page .tac-vr-score {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.tac-turnuvasi-page .tac-vr-score-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 5.5rem;
    padding: 0.65rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid transparent;
}

.tac-turnuvasi-page .tac-vr-score-side--win {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
}

.tac-turnuvasi-page .tac-vr-score-side--loss {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}

.tac-turnuvasi-page .tac-vr-score-side--draw {
    background: rgba(251, 146, 60, 0.12);
    border-color: rgba(251, 146, 60, 0.35);
}

.tac-turnuvasi-page .tac-vr-score__label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.52);
    margin-bottom: 0.25rem;
}

.tac-turnuvasi-page .tac-vr-score-side--win .tac-vr-score__value {
    color: #4ade80;
}

.tac-turnuvasi-page .tac-vr-score-side--loss .tac-vr-score__value {
    color: #f87171;
}

.tac-turnuvasi-page .tac-vr-score-side--draw .tac-vr-score__value {
    color: #fdba74;
}

.tac-turnuvasi-page .tac-vr-score__value {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.tac-turnuvasi-page .tac-vr-score__sep {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.35);
    user-select: none;
}

.tac-turnuvasi-page .tac-vr-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

.tac-turnuvasi-page .tac-vr-team-col {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tac-turnuvasi-page .tac-vr-team-col--second {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    padding-left: 1rem;
}

.tac-turnuvasi-page .tac-vr-team-title {
    margin: 0 0 0.55rem;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
}

.tac-turnuvasi-page .tac-vr-team-title--win {
    color: rgba(134, 239, 172, 0.95);
}

.tac-turnuvasi-page .tac-vr-team-title--loss {
    color: rgba(252, 165, 165, 0.95);
}

.tac-turnuvasi-page .tac-vr-team-title--draw {
    color: rgba(253, 186, 116, 0.95);
}

.tac-turnuvasi-page .tac-vr-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.4rem;
}

.tac-turnuvasi-page .tac-vr-table thead th {
    background: transparent !important;
    backdrop-filter: none;
    border-bottom: none !important;
    font-weight: 600;
}

.tac-turnuvasi-page .tac-vr-th {
    padding: 0.35rem 0.5rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.48);
    text-align: center;
    vertical-align: middle;
    background: transparent !important;
    border: none;
}
.tac-turnuvasi-page .tac-vr-th--player {
    text-align: left;
    padding-left: 0.65rem;
}

.tac-turnuvasi-page .tac-valorant-result .player-row.tac-vr-row {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.55rem;
    margin-bottom: 0;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left-width: 3px;
}

.tac-turnuvasi-page .tac-valorant-result .player-row.tac-vr-row.won {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.14) 0%, rgba(34, 197, 94, 0.04) 100%);
    border-left-color: rgba(74, 222, 128, 0.75);
}

.tac-turnuvasi-page .tac-valorant-result .player-row.tac-vr-row.lost {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.14) 0%, rgba(239, 68, 68, 0.04) 100%);
    border-left-color: rgba(248, 113, 113, 0.75);
}

.tac-turnuvasi-page .tac-valorant-result .player-row.tac-vr-row td {
    padding: 0.45rem 0.5rem !important;
    border-radius: 0 !important;
    vertical-align: middle !important;
    background: transparent !important;
    color: inherit;
    font-family: inherit;
}

.tac-turnuvasi-page .tac-valorant-result .player-row.tac-vr-row td:first-child {
    padding-left: 0.65rem !important;
    border-left: none;
}

.tac-turnuvasi-page .tac-vr-cell--player {
    text-align: left !important;
}

.tac-turnuvasi-page .tac-vr-cell--char,
.tac-turnuvasi-page .tac-vr-cell--stat {
    text-align: center !important;
}

.tac-turnuvasi-page .tac-vr-player {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.tac-turnuvasi-page .tac-vr-player__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.tac-turnuvasi-page .tac-vr-player__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    line-height: 1.25;
}

.tac-turnuvasi-page .tac-vr-player__name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tac-vr-data-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tac-turnuvasi-page .tac-vr-player__nick {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tac-vr-data-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tac-turnuvasi-page .tac-vr-char-img {
    width: 34px;
    height: 34px;
    border-radius: 0.35rem;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

.tac-turnuvasi-page .tac-vr-stat {
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--tac-vr-data-color);
    letter-spacing: 0.01em;
}

.tac-turnuvasi-page .tac-vr-stat--kda {
    font-size: 0.78rem;
    color: var(--tac-vr-data-color);
}

.tac-turnuvasi-page .tac-vr-empty {
    margin: 0;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(203, 213, 225, 0.55);
}

@media (max-width: 768px) {
    .tac-turnuvasi-page .tac-vr-team-col--second {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        padding-top: 0.85rem;
    }

    .tac-turnuvasi-page .tac-vr-score__value {
        font-size: 1.55rem;
    }

    .tac-turnuvasi-page .tac-vr-th:nth-child(3),
    .tac-turnuvasi-page .tac-vr-row .tac-vr-cell:nth-child(3) {
        display: none;
    }
}

/* Ekstrem durum */
.tac-extreme-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.12rem 0.45rem;
    border: 1px solid rgba(251, 146, 60, 0.45);
    border-radius: 5px;
    background: rgba(251, 146, 60, 0.12);
    color: #fdba74;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tac-extreme-btn:hover {
    background: rgba(251, 146, 60, 0.22);
    border-color: rgba(251, 146, 60, 0.7);
}

.tac-extreme-note-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.35rem 0 0;
    padding: 0.4rem 0.55rem;
    border-radius: 0;
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-top: none;
    color: #fed7aa;
    font-size: 0.62rem;
    line-height: 1.4;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.tac-extreme-note-banner span {
    flex: 1;
    min-width: 0;
}

.tac-extreme-note-banner iconify-icon {
    flex-shrink: 0;
    margin-top: 0.05rem;
    color: #fb923c;
    font-size: 0.72rem;
}

.tac-match-wrap--extreme .tac-match-card {
    border-color: rgba(251, 146, 60, 0.35);
    border-radius: var(--tac-card-radius, 12px) var(--tac-card-radius, 12px) 0 0;
}

.tac-match-wrap--extreme .tac-match-meta {
    border-color: rgba(251, 146, 60, 0.22);
}

.tac-dm-modal__panel--extreme {
    max-width: 520px;
}

.tac-extreme-intro {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(251, 146, 60, 0.08);
    border: 1px solid rgba(251, 146, 60, 0.22);
    color: rgba(254, 215, 170, 0.92);
    font-size: 0.78rem;
    line-height: 1.45;
}

.tac-extreme-note {
    min-height: 4.5rem;
    resize: vertical;
}

.tac-extreme-replace {
    margin-top: 1.1rem;
}

.tac-extreme-slot-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.tac-extreme-slot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--tac-border);
    border-radius: 10px;
    background: var(--tac-bg-card);
    color: #cbd5e1;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tac-extreme-slot:hover {
    border-color: rgba(251, 146, 60, 0.45);
}

.tac-extreme-slot--active {
    border-color: rgba(251, 146, 60, 0.75);
    background: rgba(251, 146, 60, 0.1);
}

.tac-extreme-slot__label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.tac-extreme-slot__team {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
}

.tac-extreme-team-grid {
    max-height: 220px;
    overflow-y: auto;
}

.tac-team-pick-item--selected {
    border-color: rgba(251, 146, 60, 0.75) !important;
    background: rgba(251, 146, 60, 0.12) !important;
}

.tac-team-pick-item--current {
    opacity: 0.75;
}

.tac-extreme-note-modal {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
    color: #fed7aa;
}

.tac-extreme-note-modal iconify-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: #fb923c;
    margin-top: 0.1rem;
}

.tac-extreme-note-modal strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fdba74;
}

.tac-extreme-note-modal p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #fde68a;
}
