:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #182033;
    --muted: #6b7280;
    --line: #e5e7eb;
    --primary: #176b4d;
    --primary-dark: #0f4c38;
    --accent: #f0b429;
    --danger: #b42318;
    --warning: #946200;
    --success: #087443;
    --shadow: 0 14px 35px rgba(15, 23, 42, .08);
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
}

.topbar {
    background: linear-gradient(135deg, #103f2d, #176b4d);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}
.brand {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .16);
    border-radius: 14px;
    font-size: 24px;
}
.brand strong { display: block; font-size: 18px; }
.brand small { display: block; opacity: .82; font-size: 12px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nav-links a {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}
.menu-button {
    display: none;
    border: 0;
    background: rgba(255,255,255,.12);
    color: #fff;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 20px;
}

.main { padding: 24px 0 40px; }
.footer {
    color: var(--muted);
    padding: 26px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    font-size: 14px;
}

.verse-card {
    background: #fff8e6;
    border: 1px solid #f7df9e;
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow: 0 10px 24px rgba(148, 98, 0, .06);
}
.verse-card p { margin: 4px 0 0; color: #513c06; }
.verse-card strong { color: #7a5300; }

.hero {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 22px;
    align-items: stretch;
}
.hero-content,
.card,
.hero-card,
.stat-card,
.team-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-content {
    padding: clamp(24px, 5vw, 54px);
    background: radial-gradient(circle at top right, rgba(240, 180, 41, .22), transparent 35%), #fff;
}
.hero h1 {
    margin: 12px 0;
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.05;
}
.hero p { color: var(--muted); font-size: 18px; max-width: 720px; }
.hero-card, .card { padding: 22px; }
.pill {
    display: inline-flex;
    background: #e8f5ef;
    color: var(--primary-dark);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.page-title h1 { margin: 0 0 4px; font-size: clamp(28px, 5vw, 42px); }
.page-title p { margin: 0; color: var(--muted); }

.card { margin-bottom: 20px; }
.card h1, .card h2 { margin-top: 0; }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.full { grid-column: 1 / -1; }
.text-right { text-align: right; }

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    min-height: 44px;
    font-size: 15px;
    background: #fff;
    color: var(--text);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: #cbd5e1; color: var(--primary-dark); }
.btn-danger { background: #fee4e2; color: var(--danger); border-color: #fecdca; }
.btn-small { padding: 8px 12px; min-height: 36px; font-size: 13px; border-radius: 10px; }

.form-grid {
    display: grid;
    gap: 14px;
}
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.compact { gap: 10px; }
.inline-form {
    display: grid;
    grid-template-columns: 1.4fr .8fr auto;
    gap: 12px;
    align-items: end;
}
label {
    display: grid;
    gap: 7px;
    font-weight: 800;
    color: #334155;
}
input, select, textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 12px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
textarea { resize: vertical; }
.checkbox-line {
    display: flex;
    align-items: center;
    gap: 9px;
    align-self: end;
}
.checkbox-line input { width: auto; }

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    font-weight: 700;
}
.alert-success { background: #ecfdf3; border-color: #abefc6; color: var(--success); }
.alert-danger { background: #fef3f2; border-color: #fecdca; color: var(--danger); }
.alert-warning { background: #fffaeb; border-color: #fedf89; color: var(--warning); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.stat-card { padding: 20px; }
.stat-card span { color: var(--muted); font-weight: 700; }
.stat-card strong { display: block; font-size: 42px; margin-top: 6px; }
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.check-list, .simple-list { padding-left: 20px; }
.check-list li { margin-bottom: 8px; }
.simple-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}
.simple-list li:last-child { border-bottom: 0; }
.simple-list span { color: var(--muted); font-size: 13px; }

.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 13px; text-align: left; }
.row-form {
    display: grid;
    grid-template-columns: 1fr 180px auto;
    gap: 10px;
    align-items: center;
}
.delete-form { display: inline-flex; margin-top: 8px; }
.inline-delete { display: inline-flex; margin-left: 8px; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; }
.players-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.player-check {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: #fafafa;
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
}
.player-check input { width: 20px; height: 20px; }
.player-check span span { display: block; margin-top: 2px; }
.stars { color: #d69400; white-space: nowrap; }
.hint-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 14px;
    margin: 16px 0;
}
.hint-box p { margin: 4px 0 0; color: var(--muted); }

.teams-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}
.team-card { padding: 0; overflow: hidden; }
.team-card header {
    background: linear-gradient(135deg, #176b4d, #1f7a5a);
    color: #fff;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.team-card h2 { margin: 0; }
.team-card header span { opacity: .9; font-size: 13px; }
.team-score {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}
.team-score strong { color: var(--text); }
.member-list { margin: 0; padding: 14px 18px 18px 38px; }
.member-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.member-list li:last-child { border-bottom: 0; }
.member-list li span:first-child { font-weight: 800; }

.sponsor-section h2 { margin-bottom: 14px; }
.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.sponsor-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}
.sponsor-card img {
    width: 100%;
    height: 86px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 10px;
}
.sponsor-card strong { display: block; }
.sponsor-card p { color: var(--muted); margin: 8px 0; }
.badge {
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff4cf;
    color: #7a5300;
    font-size: 12px;
    font-weight: 800;
}
.sponsor-admin-list { display: grid; gap: 14px; }
.sponsor-admin-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: #fafafa;
}
.delete-only { margin-top: 8px; }

.print-only { display: none; }
code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
}

@media (max-width: 840px) {
    .menu-button { display: inline-flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 14px;
        right: 14px;
        background: #103f2d;
        border-radius: 16px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow);
    }
    .menu-open .nav-links { display: flex; }
    .nav-links a { padding: 10px 12px; }
    .hero, .grid-2, .teams-grid, .form-grid.two { grid-template-columns: 1fr; }
    .players-grid, .sponsor-grid, .stats-grid { grid-template-columns: 1fr; }
    .inline-form, .row-form { grid-template-columns: 1fr; }
    .page-title { align-items: flex-start; flex-direction: column; }
    .stacked-mobile { flex-direction: column; align-items: stretch; }
    .stacked-mobile .btn { width: 100%; }
    .footer-inner { flex-direction: column; }
    .text-right { text-align: left; }
}

@media print {
    body { background: #fff; color: #000; }
    .topbar, .footer, .verse-card, .print-hide { display: none !important; }
    .container { width: 100%; }
    .main { padding: 0; }
    .print-only { display: block; }
    .teams-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .team-card, .card { box-shadow: none; border: 1px solid #999; }
    .team-card header { background: #eee; color: #000; }
    a { color: #000; }
}

/* Ajustes da versão 1.1.0 */
.brand-logo-wrap {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .92);
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 46px;
}
.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.field-help {
    color: var(--muted);
    font-weight: 500;
    font-size: 13px;
}
.logo-preview-box {
    display: grid;
    gap: 10px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 14px;
    padding: 14px;
}
.logo-preview-box > span {
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}
.logo-preview-box img {
    width: min(260px, 100%);
    height: 96px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
}
.star-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}
.star-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    padding: 2px;
    transition: transform .12s ease, color .12s ease;
}
.star-btn.active,
.star-btn:hover {
    color: #d69400;
}
.star-btn:hover {
    transform: scale(1.08);
}
.star-clear {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--muted);
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 800;
    font-size: 12px;
    margin-left: 5px;
}
.star-inline-form {
    grid-template-columns: 1.2fr 1fr auto;
}
.player-row-form {
    grid-template-columns: 1fr 240px auto;
}

@media (max-width: 840px) {
    .brand small { max-width: 210px; }
    .star-inline-form, .player-row-form { grid-template-columns: 1fr; }
    .star-btn { font-size: 34px; }
}
