/* ===== DUO OR DODGE ===== */

@keyframes dodSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dodSpin {
    to { transform: rotate(360deg); }
}

.dod-page {
    min-height: 80vh;
    padding: 60px 20px 80px;
}

.dod-container {
    max-width: 820px;
    margin: 0 auto;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Hero */
.dod-hero {
    text-align: center;
    margin-bottom: 36px;
}

.dod-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(168, 85, 247, 0.08)) !important;
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    margin-bottom: 16px;
}

.dod-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary, #fff) !important;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.dod-title-accent {
    background: linear-gradient(135deg, #ff4444, #ff8c32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dod-subtitle {
    font-size: 13px;
    color: var(--text-muted, #94a3b8) !important;
    margin: 0;
    font-weight: 500;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Input Card */
.dod-input-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 24px !important;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.dod-input-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), rgba(168, 85, 247, 0.4), transparent);
}

.dod-input-row {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}

.dod-input-group {
    flex: 1;
    min-width: 180px;
}

.dod-input-group--region {
    flex: 0 0 110px;
    min-width: 110px;
}

.dod-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8) !important;
    margin-bottom: 6px;
}

.dod-input,
.dod-select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    color: var(--text-primary, #fff) !important;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.25s;
    -webkit-appearance: none;
}

.dod-input:hover,
.dod-select:hover {
    border-color: rgba(0, 212, 255, 0.25) !important;
}

.dod-input:focus,
.dod-select:focus {
    border-color: rgba(0, 212, 255, 0.5) !important;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.08);
}

.dod-input::placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
    font-weight: 500;
}

.dod-select option {
    background: var(--bg-secondary, #1a1d24) !important;
    color: var(--text-primary, #fff) !important;
}

.dod-vs {
    flex: 0 0 auto;
    padding-bottom: 8px;
    color: rgba(255, 255, 255, 0.15);
}

/* Compare Button */
.dod-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dod-compare-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff !important;
    background: linear-gradient(135deg, #00d4ff, #a855f7) !important;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
    transition: all 0.25s;
}

.dod-compare-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.3);
}

.dod-compare-btn--loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.dod-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dodSpin 0.6s linear infinite;
}

/* Error */
.dod-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(239, 68, 68, 0.06) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    border-radius: 10px;
    color: #ff6b6b !important;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Verdict */
.dod-verdict {
    text-align: center;
    padding: 32px 28px;
    background: var(--verdict-bg) !important;
    border: 1px solid var(--verdict-border) !important;
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.dod-verdict::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--verdict-color);
    opacity: 0.6;
}

.dod-verdict-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.3) !important;
    margin-bottom: 8px;
}

.dod-verdict-text {
    font-size: 36px;
    font-weight: 900;
    color: var(--verdict-color) !important;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.dod-verdict-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55) !important;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.dod-verdict-tip {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--verdict-color) !important;
    opacity: 0.7;
}

/* Player Cards */
.dod-players {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 20px;
}

.dod-player-card {
    flex: 1;
    text-align: center;
    padding: 24px 16px 20px;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.dod-player-card:hover {
    border-color: var(--card-accent, rgba(255,255,255,0.12)) !important;
}

.dod-player-card-glow {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
    pointer-events: none;
    opacity: 0.8;
}

.dod-player-rank-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
    border: 1px solid;
    margin-bottom: 12px;
    position: relative;
}

.dod-player-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary, #fff) !important;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.dod-player-rank {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    position: relative;
}

.dod-player-mmr {
    font-size: 11px;
    color: var(--text-muted, #94a3b8) !important;
    font-weight: 600;
    position: relative;
}

.dod-vs-badge {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 50%;
    margin: 0 -10px;
    z-index: 2;
    align-self: center;
    position: relative;
}

.dod-vs-badge span {
    position: relative;
    z-index: 1;
}

.dod-vs-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(255, 68, 68, 0.2);
    animation: dodVsPulse 2s ease-in-out infinite;
}

@keyframes dodVsPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.15); }
}

/* Comparison Grid */
.dod-grid {
    background: rgba(255, 255, 255, 0.015) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    overflow: hidden;
    margin-bottom: 16px;
}

.dod-grid-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: background 0.2s;
}

.dod-grid-row:hover {
    background: rgba(255, 255, 255, 0.015) !important;
}

.dod-grid-row:last-child {
    border-bottom: none !important;
}

.dod-grid-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45) !important;
    transition: color 0.2s;
}

.dod-grid-cell--left {
    justify-content: center;
}

.dod-grid-cell--right {
    justify-content: center;
}

.dod-grid-cell--winner {
    color: #00ff7f !important;
    position: relative;
}

.dod-grid-cell--winner::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #00ff7f;
    opacity: 0.3;
    border-radius: 2px;
}

.dod-grid-cell--left.dod-grid-cell--winner::after {
    left: 0;
}

.dod-grid-cell--right.dod-grid-cell--winner::after {
    right: 0;
}

.dod-grid-cell--loser {
    color: rgba(255, 107, 107, 0.5) !important;
}

.dod-win-arrow {
    flex-shrink: 0;
    opacity: 0.9;
}

.dod-grid-label {
    padding: 14px 16px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.2) !important;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
    min-width: 90px;
}

/* Role Note */
.dod-role-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(0, 212, 255, 0.04) !important;
    border: 1px solid rgba(0, 212, 255, 0.1) !important;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 16px;
}

.dod-role-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #00d4ff;
}

.dod-role-note--warning {
    background: rgba(255, 215, 0, 0.04) !important;
    border-color: rgba(255, 215, 0, 0.12) !important;
}

.dod-role-note--warning svg {
    color: #ffd700;
}

/* MMR Gap Bar */
.dod-mmr-gap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px;
    margin-bottom: 20px;
}

.dod-mmr-gap-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-muted, #94a3b8) !important;
    white-space: nowrap;
}

.dod-mmr-gap-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 3px;
    overflow: hidden;
}

.dod-mmr-gap-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dod-mmr-gap-value {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* CTA Links */
.dod-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dod-cta {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    text-decoration: none;
    transition: all 0.25s;
}

.dod-cta:hover {
    border-color: rgba(0, 212, 255, 0.15) !important;
    background: rgba(0, 212, 255, 0.03) !important;
}

.dod-cta-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(0, 212, 255, 0.08) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dod-cta-text {
    flex: 1;
    min-width: 0;
}

.dod-cta-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00d4ff !important;
}

.dod-cta-desc {
    font-size: 11px;
    color: var(--text-muted, #94a3b8) !important;
    margin-top: 2px;
}

.dod-cta-arrow {
    padding: 7px 14px;
    background: rgba(0, 212, 255, 0.08) !important;
    color: #00d4ff !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* SEO Content */
.dod-seo {
    max-width: 820px;
    margin: 40px auto 0;
    padding: 0 20px 60px;
    font-family: 'Inter', system-ui, sans-serif;
}

.dod-seo-inner {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    padding: 28px !important;
}

.dod-seo-h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary, #fff) !important;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
}

.dod-seo-h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #fff) !important;
    margin: 0 0 10px;
}

.dod-seo-p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-muted, #94a3b8) !important;
    margin: 0 0 14px;
}

.dod-seo-p:last-child {
    margin-bottom: 0;
}

.dod-seo-link {
    color: #00d4ff !important;
    text-decoration: none;
}

.dod-seo-link:hover {
    text-decoration: underline;
}

/* ===== MOBILE ===== */
@media (max-width: 700px) {
    .dod-input-row {
        flex-direction: column;
        gap: 12px;
    }

    .dod-input-group,
    .dod-input-group--region {
        flex: 1 1 100%;
        min-width: 0;
    }

    .dod-vs {
        display: none;
    }

    .dod-verdict-text {
        font-size: 28px;
    }

    .dod-players {
        flex-direction: column;
        gap: 8px;
    }

    .dod-vs-badge {
        margin: -4px 0;
    }

    .dod-player-card {
        width: 100%;
    }

    .dod-grid-cell {
        font-size: 13px;
        padding: 11px 12px;
    }

    .dod-grid-label {
        min-width: 70px;
        font-size: 9px;
    }

    .dod-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .dod-page {
        padding: 40px 12px 60px;
    }

    .dod-compare-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== LIGHT MODE ===== */
html[data-theme="light"] .dod-input-card,
html[data-theme="light"] .dod-grid,
html[data-theme="light"] .dod-player-card,
html[data-theme="light"] .dod-mmr-gap,
html[data-theme="light"] .dod-cta,
html[data-theme="light"] .dod-seo-inner {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .dod-input-card::before {
    background: linear-gradient(90deg, transparent, rgba(10, 126, 164, 0.3), rgba(124, 58, 237, 0.3), transparent);
}

html[data-theme="light"] .dod-player-card:hover {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="light"] .dod-player-rank-badge {
    background: rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .dod-input,
html[data-theme="light"] .dod-select {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1f2937 !important;
}

html[data-theme="light"] .dod-input:hover,
html[data-theme="light"] .dod-select:hover {
    border-color: rgba(10, 126, 164, 0.3) !important;
}

html[data-theme="light"] .dod-input:focus,
html[data-theme="light"] .dod-select:focus {
    border-color: rgba(10, 126, 164, 0.5) !important;
    box-shadow: 0 0 12px rgba(10, 126, 164, 0.08);
}

html[data-theme="light"] .dod-input::placeholder {
    color: rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="light"] .dod-select option {
    background: #fff !important;
    color: #1f2937 !important;
}

html[data-theme="light"] .dod-title {
    color: #1a1a2e !important;
}

html[data-theme="light"] .dod-title-accent {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="light"] .dod-subtitle,
html[data-theme="light"] .dod-label {
    color: #64748b !important;
}

html[data-theme="light"] .dod-hero-icon {
    background: linear-gradient(135deg, rgba(10, 126, 164, 0.1), rgba(124, 58, 237, 0.06)) !important;
    border-color: rgba(10, 126, 164, 0.2);
    color: #0a7ea4;
}

html[data-theme="light"] .dod-compare-btn {
    background: linear-gradient(135deg, #0a7ea4, #7c3aed) !important;
    box-shadow: 0 8px 25px rgba(10, 126, 164, 0.2);
}

html[data-theme="light"] .dod-vs {
    color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .dod-verdict-label {
    color: rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="light"] .dod-verdict-desc {
    color: rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="light"] .dod-player-name {
    color: #1a1a2e !important;
}

html[data-theme="light"] .dod-player-mmr {
    color: #64748b !important;
}

html[data-theme="light"] .dod-vs-badge {
    color: rgba(0, 0, 0, 0.2) !important;
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .dod-vs-pulse {
    border-color: rgba(220, 38, 38, 0.15);
}

html[data-theme="light"] .dod-grid-row {
    border-bottom-color: rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .dod-grid-row:hover {
    background: rgba(0, 0, 0, 0.015) !important;
}

html[data-theme="light"] .dod-grid-cell {
    color: rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="light"] .dod-grid-cell--winner {
    color: #16a34a !important;
}

html[data-theme="light"] .dod-grid-cell--winner::after {
    background: #16a34a;
}

html[data-theme="light"] .dod-grid-cell--winner .dod-win-arrow path {
    stroke: #16a34a;
}

html[data-theme="light"] .dod-grid-cell--loser {
    color: rgba(220, 38, 38, 0.5) !important;
}

html[data-theme="light"] .dod-grid-label {
    color: rgba(0, 0, 0, 0.3) !important;
    border-left-color: rgba(0, 0, 0, 0.04) !important;
    border-right-color: rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .dod-role-note {
    background: rgba(10, 126, 164, 0.04) !important;
    border-color: rgba(10, 126, 164, 0.1) !important;
    color: rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="light"] .dod-role-note svg {
    color: #0a7ea4;
}

html[data-theme="light"] .dod-role-note--warning {
    background: rgba(202, 138, 4, 0.04) !important;
    border-color: rgba(202, 138, 4, 0.12) !important;
}

html[data-theme="light"] .dod-role-note--warning svg {
    color: #ca8a04;
}

html[data-theme="light"] .dod-mmr-gap-bar {
    background: rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .dod-mmr-gap-label {
    color: #64748b !important;
}

html[data-theme="light"] .dod-cta:hover {
    border-color: rgba(10, 126, 164, 0.15) !important;
    background: rgba(10, 126, 164, 0.03) !important;
}

html[data-theme="light"] .dod-cta-icon {
    background: rgba(10, 126, 164, 0.08) !important;
}

html[data-theme="light"] .dod-cta-title {
    color: #0a7ea4 !important;
}

html[data-theme="light"] .dod-cta-desc {
    color: #64748b !important;
}

html[data-theme="light"] .dod-cta-arrow {
    background: rgba(10, 126, 164, 0.08) !important;
    color: #0a7ea4 !important;
}

html[data-theme="light"] .dod-seo-h2,
html[data-theme="light"] .dod-seo-h3 {
    color: #1a1a2e !important;
}

html[data-theme="light"] .dod-seo-p {
    color: #64748b !important;
}

html[data-theme="light"] .dod-seo-link {
    color: #0a7ea4 !important;
}

html[data-theme="light"] .dod-error {
    background: rgba(239, 68, 68, 0.04) !important;
    border-color: rgba(239, 68, 68, 0.12) !important;
    color: #dc2626 !important;
}
