body.ppsm-social-scope .ppsm-seasons-page #ppsm-content {
    max-width: 1120px !important;
    margin: 0 auto !important;
}

/* Nunca mostrar ligações para rankings nesta página (subnav só Temporadas | Campeonatos) */
#ppsm-container.ppsm-wrap.ppsm-seasons-page a[href*="rankings"] {
    display: none !important;
}

/* —— Intro —— */
body.ppsm-social-scope .ppsm-seasons-hero {
    margin: 0 0 1.5rem !important;
    padding: 1.25rem 1.35rem !important;
    border-radius: 16px !important;
    border: 1px solid var(--ppsm-uber-border, #e8e8e8) !important;
    background: var(--ppsm-uber-surface, #fff) !important;
    box-shadow: var(--ppsm-uber-shadow-1, 0 1px 3px rgba(0, 0, 0, 0.06)) !important;
}

body.ppsm-social-scope .ppsm-seasons-hero__title {
    margin: 0 0 0.35rem !important;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: var(--ppsm-uber-ink, #0a0a0a) !important;
}

body.ppsm-social-scope .ppsm-seasons-hero__lead {
    margin: 0 0 0.65rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: var(--ppsm-uber-muted, #5c5c5c) !important;
}

body.ppsm-social-scope .ppsm-seasons-hero__concept {
    margin: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
    color: var(--ppsm-uber-text-soft, #666) !important;
}

body.ppsm-social-scope .ppsm-seasons-hero__concept i {
    margin-top: 0.15rem !important;
    color: var(--ppsm-uber-ink, #333) !important;
}

/* —— CTA (Criar nova temporada | Duplicar) —— */
body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-seasons-cta-row,
body.ppsm-social-scope .ppsm-seasons-cta-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin: 0 0 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-seasons-cta-row .ppsm-seasons-cta-row__btn,
body.ppsm-social-scope .ppsm-seasons-cta-row .ppsm-seasons-cta-row__btn {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 3rem !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

@media (min-width: 720px) {
    body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-seasons-cta-row,
    body.ppsm-social-scope .ppsm-seasons-cta-row {
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }

    body.ppsm-social-scope .ppsm-seasons-cta-row .ppsm-seasons-cta-row__btn {
        flex: 1 1 0 !important;
        width: auto !important;
        min-height: 3rem !important;
    }
}

body.ppsm-social-scope .ppsm-seasons-cta-row .ppsm-btn--dup-open i {
    margin-right: 0.35rem !important;
}

/* Margem inferior no primário fora da linha CTA (evita desalinhamento dos dois botões) */
#ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-btn.ppsm-dash-btn-primary:not(.ppsm-seasons-cta-row__btn) {
    margin-bottom: 10px !important;
}

/* Toolbar + filtros: estilização em section_seasons.phtml */

/* —— GRID —— */
#ppsm-container.ppsm-seasons-page #ppsm-grid.ppsm-seasons-grid.ppsm-dash-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
    width: 100% !important;
    overflow: visible !important;
}

@media (min-width: 640px) {
    #ppsm-container.ppsm-seasons-page #ppsm-grid.ppsm-seasons-grid.ppsm-dash-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    }
}

/* —— CARD —— */
#ppsm-container.ppsm-seasons-page .ppsm-season-card {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
}

/* —— Ações do cartão: desktop = 2 botões em cima; Duplicar largura total em baixo —— */
#ppsm-container.ppsm-seasons-page .ppsm-season-card__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    align-content: flex-start !important;
    box-sizing: border-box !important;
}

#ppsm-container.ppsm-seasons-page .ppsm-season-card__actions > * {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 768px) {
    #ppsm-container.ppsm-seasons-page .ppsm-season-card__actions > a.ppsm-btn {
        flex: 1 1 calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
        width: auto !important;
    }

    #ppsm-container.ppsm-seasons-page .ppsm-season-card__actions > .ppsm-season-dup-form {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        display: block !important;
        margin: 0 !important;
    }

    #ppsm-container.ppsm-seasons-page .ppsm-season-card__actions .ppsm-season-dup-form button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* —— Modais Temporadas: criar do zero + duplicar (overlay + modal-content) —— */
body.modal-open {
    overflow: hidden;
}

body.ppsm-social-scope .ppsm-season-dup-modal-overlay.modal-overlay,
body.ppsm-social-scope .ppsm-season-create-modal-overlay.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

body.ppsm-social-scope .ppsm-season-dup-modal-overlay.modal-overlay[style*="flex"],
body.ppsm-social-scope .ppsm-season-create-modal-overlay.modal-overlay[style*="flex"] {
    display: flex !important;
}

body.ppsm-social-scope .ppsm-season-dup-modal-overlay .modal-content,
body.ppsm-social-scope .ppsm-season-create-modal-overlay .modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 520px;
    width: 100%;
    max-height: min(90vh, 640px);
    overflow-y: auto;
    box-sizing: border-box;
}

body.ppsm-social-scope .ppsm-season-dup-modal-overlay .modal-header,
body.ppsm-social-scope .ppsm-season-create-modal-overlay .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
}

body.ppsm-social-scope .ppsm-season-dup-modal-overlay .modal-header h3,
body.ppsm-social-scope .ppsm-season-create-modal-overlay .modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

body.ppsm-social-scope .ppsm-season-create-modal-overlay .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body.ppsm-social-scope .ppsm-season-dup-modal-overlay .modal-close,
body.ppsm-social-scope .ppsm-season-create-modal-overlay .modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #f4f4f5;
    border: none;
    border-radius: 10px;
    color: #374151;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
}

body.ppsm-social-scope .ppsm-season-dup-modal-overlay .modal-close:hover,
body.ppsm-social-scope .ppsm-season-create-modal-overlay .modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

body.ppsm-social-scope .ppsm-season-dup-modal-overlay .modal-body,
body.ppsm-social-scope .ppsm-season-create-modal-overlay .modal-body {
    padding: 22px;
    box-sizing: border-box;
}

body.ppsm-social-scope .ppsm-season-create-modal-overlay .ppsm-season-create-form__input {
    max-width: 100% !important;
    width: 100% !important;
}

body.ppsm-social-scope .ppsm-season-create-modal__form {
    width: 100%;
    box-sizing: border-box;
}

body.ppsm-social-scope .ppsm-season-create-modal__submit-wrap {
    margin-top: 1rem;
    padding-top: 0.25rem;
    width: 100%;
}

body.ppsm-social-scope .ppsm-season-create-modal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.6rem;
    font-weight: 600;
    border-radius: 8px;
    box-sizing: border-box;
}

body.ppsm-social-scope .ppsm-season-dup-modal__hint {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #52525b;
    line-height: 1.5;
}

body.ppsm-social-scope .ppsm-season-dup-modal__form {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
}

body.ppsm-social-scope .ppsm-season-dup-modal__label {
    display: block;
    margin: 0 0 0.5rem;
    padding-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
}

body.ppsm-social-scope .ppsm-season-dup-modal__select {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 1.25rem;
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #111827;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.ppsm-social-scope .ppsm-season-dup-modal__select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

body.ppsm-social-scope .ppsm-season-dup-modal__submit-wrap {
    margin-top: 1rem;
    padding-top: 0.25rem;
}

body.ppsm-social-scope .ppsm-season-dup-modal__submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.6rem;
    font-weight: 600;
    border-radius: 8px;
    box-sizing: border-box;
}

body.ppsm-social-scope .ppsm-season-dup-modal__empty {
    margin: 0;
    padding: 0.5rem 0;
    text-align: center;
    color: #71717a;
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Paginação (Magento_Theme pager) — listagem de temporadas */
body.ppsm-social-scope .ppsm-seasons-pager--bottom {
    margin: 1.5rem auto 0;
    max-width: 1120px;
}

body.ppsm-social-scope .ppsm-seasons-pager .pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body.ppsm-social-scope .ppsm-seasons-pager .pages .items {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ===== Duplicar (azul) · Adicionar campeonato (verde) — IDs em section_seasons.phtml ===== */
#ppsm-container.ppsm-seasons-page #ppsm-seasons-btn-dup-open,
#ppsm-container.ppsm-seasons-page #ppsm-seasons-btn-dup-modal-submit,
#ppsm-container.ppsm-seasons-page button[id^='ppsm-seasons-btn-dup-inline-'] {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
    background-color: #2563eb !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
    border-style: solid !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.35) !important;
}

#ppsm-container.ppsm-seasons-page #ppsm-seasons-btn-dup-open:hover:not(:disabled),
#ppsm-container.ppsm-seasons-page #ppsm-seasons-btn-dup-modal-submit:hover:not(:disabled),
#ppsm-container.ppsm-seasons-page button[id^='ppsm-seasons-btn-dup-inline-']:hover:not(:disabled) {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #1e3a8a !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

#ppsm-container.ppsm-seasons-page #ppsm-seasons-btn-dup-open:focus-visible,
#ppsm-container.ppsm-seasons-page #ppsm-seasons-btn-dup-modal-submit:focus-visible,
#ppsm-container.ppsm-seasons-page button[id^='ppsm-seasons-btn-dup-inline-']:focus-visible {
    outline: 2px solid #93c5fd !important;
    outline-offset: 2px !important;
}

#ppsm-container.ppsm-seasons-page a[id^='ppsm-seasons-btn-add-tournament-'] {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
    background-color: #059669 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #047857 !important;
    box-shadow: 0 1px 3px rgba(5, 150, 105, 0.35) !important;
}

#ppsm-container.ppsm-seasons-page a[id^='ppsm-seasons-btn-add-tournament-']:hover {
    background: linear-gradient(180deg, #059669 0%, #047857 100%) !important;
    background-color: #047857 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #065f46 !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4) !important;
}

#ppsm-container.ppsm-seasons-page a[id^='ppsm-seasons-btn-add-tournament-']:focus-visible {
    outline: 2px solid #6ee7b7 !important;
    outline-offset: 2px !important;
}

/*
 * Listagem de temporadas — especificidade máxima (ganha a uber-ui + dashboard com !important).
 * ID no link: section_seasons.phtml (#ppsm-seasons-btn-view-{seasonId}).
 */
html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-seasons-page a[id^='ppsm-seasons-btn-view-'].ppsm-btn--seasons-view,
html body #ppsm-container.ppsm-wrap.ppsm-seasons-page a[id^='ppsm-seasons-btn-view-'].ppsm-btn--seasons-view {
    background: #f4f4f5 !important;
    background-color: #f4f4f5 !important;
    background-image: none !important;
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    border: 1px solid #d4d4d8 !important;
    border-color: #d4d4d8 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
    transform: none !important;
}

html body #ppsm-container.ppsm-wrap.ppsm-seasons-page a[id^='ppsm-seasons-btn-view-'].ppsm-btn--seasons-view i {
    color: #2563eb !important;
}

html body.ppsm-social-scope #ppsm-container.ppsm-wrap.ppsm-seasons-page a[id^='ppsm-seasons-btn-view-'].ppsm-btn--seasons-view:hover,
html body #ppsm-container.ppsm-wrap.ppsm-seasons-page a[id^='ppsm-seasons-btn-view-'].ppsm-btn--seasons-view:hover {
    background: #e4e4e7 !important;
    background-color: #e4e4e7 !important;
    background-image: none !important;
    color: #1d4ed8 !important;
    -webkit-text-fill-color: #1d4ed8 !important;
    border-color: #93c5fd !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12) !important;
    transform: none !important;
}

html body #ppsm-container.ppsm-wrap.ppsm-seasons-page a[id^='ppsm-seasons-btn-view-'].ppsm-btn--seasons-view:hover i {
    color: #1d4ed8 !important;
}

html body #ppsm-container.ppsm-wrap.ppsm-seasons-page a[id^='ppsm-seasons-btn-view-'].ppsm-btn--seasons-view:focus-visible {
    outline: 2px solid #93c5fd !important;
    outline-offset: 2px !important;
}

/* Faixa lateral + borda esquerda (dashboard aplica border shorthand; border-left garante cor visível) */
html body #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-season-card.ppsm-dash-card {
    position: relative !important;
}

html body #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-season-card.ppsm-dash-card::before {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 4px !important;
    z-index: 2 !important;
    pointer-events: none !important;
    /* cor da faixa: border-left nos modificadores --active / --draft / --finished (evita duplicar com ::before) */
}

html body #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-season-card--active.ppsm-dash-card::before {
    /* background: #16a34a !important; */
}

html body #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-season-card--active.ppsm-dash-card {
    border-left-width: 4px !important;
    border-left-style: solid !important;
    border-left-color: #16a34a !important;
}

html body #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-season-card--draft.ppsm-dash-card::before {
    /* background: #ca8a04 !important; */
}

html body #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-season-card--draft.ppsm-dash-card {
    border-left-width: 4px !important;
    border-left-style: solid !important;
    border-left-color: #ca8a04 !important;
}

html body #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-season-card--finished.ppsm-dash-card::before {
    /* background: #71717a !important; */
}

html body #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-season-card--finished.ppsm-dash-card {
    border-left-width: 4px !important;
    border-left-style: solid !important;
    border-left-color: #71717a !important;
}

/* Badges de estado */
html body #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-badge.ppsm-badge--season-active {
    background: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #86efac !important;
}

html body #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-badge.ppsm-badge--season-draft {
    background: #fef9c3 !important;
    color: #a16207 !important;
    border: 1px solid #fde047 !important;
}

html body #ppsm-container.ppsm-wrap.ppsm-seasons-page .ppsm-badge.ppsm-badge--season-finished {
    background: #f4f4f5 !important;
    color: #52525b !important;
    border: 1px solid #d4d4d8 !important;
}