.tab-page-match {
    padding: 0;
}

.match-detail {
    padding: 16px 12px calc(24px + var(--safe-bottom));
}

.match-detail-loading,
.match-detail-empty,
.match-detail-error {
    padding: 40px 16px;
    text-align: center;
    font-size: 17px;
    color: var(--color-text-muted);
}

.match-detail-head {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.match-detail-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.match-detail-meta {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.match-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.match-info-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px;
}

.match-info-label {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.match-info-value {
    font-size: 19px;
    font-weight: 600;
    color: var(--color-primary);
}

.match-info-value-text {
    color: var(--color-text);
}

.match-register-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: var(--color-primary);
    color: #1a1a20;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 18px;
}

.match-register-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.match-withdraw-btn {
    margin-top: 10px;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.match-rebuy-block-tip {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    color: #ec7063;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.35);
    text-align: center;
}

.match-register-tip {
    font-size: 15px;
    color: var(--color-text-muted);
    text-align: center;
    margin: -10px 0 16px;
}

.match-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.match-section-sub {
    font-size: 16px;
    color: var(--color-text-muted);
    font-weight: 400;
}

.match-participant-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-participant-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px;
}

.match-participant-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2418, #1a1a20);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    overflow: hidden;
}

.match-participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-participant-name {
    font-size: 17px;
    font-weight: 500;
}

.match-participant-body {
    flex: 1;
    min-width: 0;
}

.match-participant-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.match-participant-eliminated {
    opacity: 0.72;
}

.match-participant-eliminated .match-participant-avatar {
    filter: grayscale(0.85);
}

.match-alive-badge {
    flex-shrink: 0;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.5;
}

.match-alive-badge-on {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.match-alive-badge-off {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.25);
}

.match-alive-badge-winner {
    color: var(--color-primary);
    background: rgba(201, 162, 39, 0.18);
    border: 1px solid rgba(201, 162, 39, 0.35);
}

.match-participant-winner {
    border-color: rgba(201, 162, 39, 0.35);
    background: rgba(201, 162, 39, 0.06);
}

.match-final-survivors {
    margin-bottom: 16px;
    padding: 14px 12px;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    background: rgba(201, 162, 39, 0.08);
}

.match-final-survivors-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.match-final-survivors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-final-survivor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.match-final-survivor-item .match-participant-name {
    flex: 1;
    min-width: 0;
}

.match-participant-time {
    font-size: 15px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.home-card-link {
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}

.home-card-link:active {
    transform: scale(0.99);
    border-color: rgba(201, 162, 39, 0.45);
}

.home-badge-register {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.match-tournament-rules {
    margin-bottom: 16px;
}

.match-rules-list {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.match-rules-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--color-border);
}

.match-rules-item:last-child {
    border-bottom: none;
}

.match-rules-label {
    flex-shrink: 0;
    font-size: 17px;
    color: var(--color-text-muted);
}

.match-rules-value {
    text-align: right;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
}

.match-blind-banner {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 39, 0.35);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.16), rgba(26, 26, 32, 0.95));
}

.match-blind-banner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.match-blind-banner-title {
    font-size: 18px;
    color: var(--color-text-muted);
}

.match-blind-level {
    font-size: 17px;
    color: var(--color-primary);
    font-weight: 600;
}

.match-blind-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}

.match-blind-next,
.match-blind-countdown {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.match-blind-countdown {
    color: #4ade80;
    margin-top: 2px;
}

.match-blind-structure {
    margin-bottom: 16px;
}

.match-blind-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
}

.match-blind-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.match-blind-table th,
.match-blind-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.match-blind-table th {
    color: var(--color-text-muted);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
}

.match-blind-table tr:last-child td {
    border-bottom: none;
}

.match-blind-table tr.is-current td {
    color: var(--color-primary);
    font-weight: 700;
    background: rgba(201, 162, 39, 0.08);
}

.match-live-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.match-action-btn {
    flex: 1;
    min-width: 120px;
    min-height: 52px;
    padding: 14px 14px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

.match-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.match-action-btn-primary {
    background: linear-gradient(135deg, #4f8cff, #3b6fd8);
}

.match-action-btn-warning {
    background: linear-gradient(135deg, #f5a623, #e08b12);
}

.match-action-btn-info {
    background: linear-gradient(135deg, #17a2b8, #128293);
}

.match-payout-preview {
    margin-bottom: 16px;
}

.match-payout-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
}

.match-payout-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.match-payout-table th,
.match-payout-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.match-payout-table th {
    color: var(--color-text-muted);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
}

.match-live-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.match-live-stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
}

.match-live-stat-val {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: var(--color-primary);
}

.match-live-stat-lbl {
    display: block;
    font-size: 16px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.match-bubble-alert {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.match-bubble-itm {
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.35);
    color: #58d68d;
}

.match-bubble-bubble {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #ec7063;
}

.match-bubble-near {
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--color-primary);
}

.match-flag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.match-flag-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.match-flag-closed {
    border-color: rgba(231, 76, 60, 0.45);
    color: #ec7063;
}

.match-flag-open {
    border-color: rgba(39, 174, 96, 0.4);
    color: #58d68d;
}

.match-flag-double {
    border-color: rgba(201, 162, 39, 0.45);
    color: var(--color-primary);
}

.match-payout-preview {
    margin: 8px 0 16px;
}

.match-blind-banner.is-break {
    border-color: rgba(52, 152, 219, 0.4);
}

.match-blind-banner.is-paused {
    border-color: rgba(231, 76, 60, 0.4);
    opacity: 0.85;
}

.match-clock-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 15px;
    color: var(--color-primary);
    text-decoration: none;
}

.match-blind-break-tag {
    display: inline-block;
    font-size: 14px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(52, 152, 219, 0.15);
    color: #5dade2;
    vertical-align: middle;
}
