html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
	padding: 0;
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	/*color: #474747;*/
}

a{
	color: #1e90ff;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="select"]
{
	width: 250px;
}

select{
	width: 250px;
}

/*body{
	background: url("images/fondoQatar.jpg");
	background-size: 50%;
	background-repeat: repeat;
}*/
body{
	background: url("images/fondo.png");
	background-size: 55%;
	background-repeat: repeat;
}

.navbar-sectionheader {
	height: 150px;
	background-image: url("images/Banner2.png");
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: center top;
	-webkit-background-size: 100% 155px;

	-webkit-box-shadow: 0 12px 6px -6px #666;
	   -moz-box-shadow: 0 12px 6px -6px #666;
	        box-shadow: 0 12px 6px -6px #666;
}

/* Perfil hermano de #menu-wrap: a la derecha del bloque 1000px, fuera del menú (como en el mockup) */
.user-session-bar {
	white-space: nowrap;
}

.menu-user-session-slot {
	position: relative;
	white-space: nowrap;
}

.user-session-menu {
	position: relative;
	width: 100%;
	height: 100%;
}

.menu-user-session-slot .user-session-trigger {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	padding: 20px 14px;
	border: 1px solid white;
	border-radius: 0;
	background-image: url("images/boton.png");
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-color: transparent;
	box-shadow: none;
	cursor: pointer;
	font-family: Arial, sans-serif;
	font-size: 0.9em;
	font-weight: bold;
	color: #fff;
	box-sizing: border-box;
	white-space: nowrap;
}

.menu-user-session-slot .user-session-trigger:hover,
.menu-user-session-slot .user-session-trigger:focus,
.menu-user-session-slot .user-session-trigger[aria-expanded="true"] {
	color: #A4D2F2;
	outline: none;
}

.user-session-avatar-wrap {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
}

.user-session-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: linear-gradient(135deg, #1e90ff, #4aa3ff);
	color: #fff;
	font-weight: bold;
	font-size: 0.9em;
	flex-shrink: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.user-session-mention-badge {
	position: absolute;
	top: -5px;
	right: -7px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: #e74c3c;
	color: #fff;
	font-size: 0.65em;
	font-weight: bold;
	line-height: 18px;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
}

.user-session-name {
	font-weight: bold;
	font-size: 0.95em;
	line-height: 1.2;
	text-align: left;
	white-space: nowrap;
	flex-shrink: 0;
}

.user-session-chevron {
	font-size: 0.7em;
	color: inherit;
	opacity: 0.9;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.user-session-trigger[aria-expanded="true"] .user-session-chevron {
	transform: rotate(180deg);
}

.user-session-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	left: auto;
	min-width: 200px;
	z-index: 10051;
	background: #fff;
	border: 1px solid #d8e8f8;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
	padding: 6px 0;
	display: none;
}

.user-session-dropdown.is-open {
	display: block;
}

.user-session-dropdown--with-mentions {
	min-width: 280px;
	max-width: 340px;
}

.user-session-mentions-block {
	padding: 4px 0 2px;
}

.user-session-mentions-heading {
	padding: 6px 16px 8px;
	font-size: 0.78em;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #5a7a9a;
}

.user-session-mentions-count {
	font-weight: normal;
	text-transform: none;
	letter-spacing: normal;
}

.user-session-mention-item {
	display: flex;
	align-items: flex-start;
	gap: 2px;
	padding: 0;
	border-left: 3px solid transparent;
	box-sizing: border-box;
}

.user-session-mention-item:hover,
.user-session-mention-item:focus-within {
	background: #f0f8ff;
	border-left-color: #1e90ff;
}

.user-session-mention-link {
	flex: 1;
	display: block;
	min-width: 0;
	padding: 10px 4px 10px 16px;
	color: #1e3a5f;
	text-decoration: none;
	box-sizing: border-box;
}

.user-session-mention-link:hover,
.user-session-mention-link:focus {
	outline: none;
	color: #1e3a5f;
}

.user-session-mention-dismiss {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	margin: 6px 8px 0 0;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #94a3b8;
	font-size: 1.25em;
	line-height: 1;
	cursor: pointer;
}

.user-session-mention-dismiss:hover,
.user-session-mention-dismiss:focus {
	background: #fee2e2;
	color: #c0392b;
	outline: none;
}

.user-session-mention-author {
	display: block;
	font-weight: bold;
	font-size: 0.9em;
	color: #1e90ff;
}

.user-session-mention-match {
	display: block;
	margin-top: 2px;
	font-size: 0.78em;
	color: #6b8299;
}

.user-session-mention-snippet {
	display: block;
	margin-top: 4px;
	font-size: 0.82em;
	line-height: 1.35;
	color: #334155;
	word-break: break-word;
}

.user-session-dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 11px 16px;
	border: none;
	background: none;
	color: #1e3a5f;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	text-align: left;
	cursor: pointer;
	box-sizing: border-box;
}

.user-session-dropdown-item:hover,
.user-session-dropdown-item:focus {
	background: #f0f8ff;
	color: #1e90ff;
	outline: none;
}

.user-session-dropdown-item--logout {
	color: #c0392b;
}

.user-session-dropdown-item--logout:hover,
.user-session-dropdown-item--logout:focus {
	background: #fff5f5;
	color: #a93226;
}

.user-session-dropdown-divider {
	height: 1px;
	margin: 4px 0;
	background: #e8e8e8;
}

.user-session-logout-form {
	margin: 0;
}

.user-session-dropdown-icon {
	width: 1.2em;
	text-align: center;
	flex-shrink: 0;
	opacity: 0.85;
}

#menu-wrap{
	width: 1000px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* Escritorio: sesión a la derecha del bloque 1000px; altura/top los fija validation.js */
@media (min-width: 769px) {
	body:has(.user-session-bar) {
		position: relative;
	}

	body:has(.user-session-bar) #menu-wrap + .user-session-bar {
		position: absolute;
		left: calc(50% + 500px);
		z-index: 10050;
		width: auto;
		margin: 0;
		display: flex;
		align-items: stretch;
		box-sizing: border-box;
	}

	body:has(.user-session-bar) .menu-user-session-slot,
	body:has(.user-session-bar) .user-session-menu {
		display: flex;
		align-items: stretch;
		height: 100%;
	}

	body:has(.user-session-bar) .menu-user-session-slot .user-session-trigger {
		display: flex;
		align-items: center;
		height: 100%;
		min-height: 100%;
		padding: 0 14px;
		font-size: 1em;
		box-sizing: border-box;
	}

	body:has(.user-session-bar) .user-session-avatar {
		width: 26px;
		height: 26px;
		font-size: 0.8em;
	}
}

#menu { 
	
	border: 1px solid white;
	
    padding: 0;
    display: table;
    table-layout: fixed;
    width: 100%;
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
}

#menu li { 
     display: table-cell;
     border-left: 1px solid white;
}

#menu li a {
	padding-top: 20px;
	padding-bottom: 20px;
	vertical-align: middle;
	text-align: center;
	width: 100%;
	font-family: Arial;
	font-size: 1em;
	font-weight: bold;
	text-decoration: none;
	float:left;
	
	background-image: url("images/boton.png");
	background-size: 100% 100%;

   background-repeat: no-repeat;
/* 	background-color: #9acd32; */
	color: #fff;
}

#menu li a:hover { 
/* 	color: #1e90ff; */
	color: #A4D2F2;
}

#menu li a.selected {
/* 	color: #1e90ff; */
	color: #A4D2F2;
}

#content{

	padding-left: 30px;
	padding-right: 30px;

	margin: 0 auto;
	width: 940px;
	background-color: white;
	
	box-shadow: 5px 5px 5px #666, 
        			-5px 5px 5px #666, 
        				5px 5px 5px #666;

}

#footer{
	background-image: url("images/logo.png"); /*background-image: url("images/footer.jpg");*/
	height: 255px;
	
	background-color: #fff;
	background-repeat: no-repeat;
	background-position: center top;
	-webkit-background-size: 180px 250px;
}

#classification{
	padding-top: 20px;
	width: 100%;
}

#matches{
	padding-top: 20px;
	width: 100%;
}

#prediction{
	padding-top: 20px;
	width: 100%;
	text-align: center;
}

.matchLine{
	line-height: 45px;
	border-bottom: 1px solid black;
}

.formError{
	display: block;
	min-height: 18px;
	padding-top: 4px;
	line-height: 1.2;
}

.formError:empty {
	min-height: 0;
}

.formError, #error {
	color: #ff0000;
	font-weight: bold;
}

#playerInfo{
	border: thin solid gray;
	margin-top: 20px;
	width: 100%;
}

input.prediction{
	width: 40px;
}

.go-top {
    position: fixed;
    bottom: 0px;
    right: 0px;
    text-decoration: none;
    color: #2ba6cb;
    background-color: rgba(235, 235, 235, 0.80);
    padding: 1em;
    display: none;
}

.account-save-bar {
    display: block !important;
    text-align: center;
    margin: 16px 0 24px;
    padding: 14px 16px;
    clear: both;
    background-color: #f0f8ff;
    border: 2px solid #1e90ff;
    border-radius: 6px;
}

.account-save-bar--top {
    position: sticky;
    top: 0;
    z-index: 1001;
    margin-top: 8px;
}

.account-save-bar--top .saveButton {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.account-save-bar--bottom {
    margin-bottom: 40px;
}

#predictionActions {
    text-align: center;
}

button.saveButton,
button.save-follow,
input.saveButton,
input.save-follow {
    display: inline-block !important;
    visibility: visible !important;
    font-size: 1em;
    font-weight: bold;
    color: #fff !important;
    background-color: #1e90ff !important;
    border: 1px solid #1873cc;
    border-radius: 4px;
    padding: 0.75em 1.5em;
    cursor: pointer;
    min-width: 180px;
    min-height: 44px;
}

button.saveButton:hover,
button.save-follow:hover,
input.saveButton:hover,
input.save-follow:hover {
    background-color: #1873cc !important;
}

button.save-follow,
input.save-follow {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.go-top:hover {    
    background-color: rgba(135, 135, 135, 0.50);
}

.closeSession{
	margin-top: 20px;
	float: right;
}

.closeSession-link{
	background: none;
	border: none;
	padding: 0;
	color: #00e;
	cursor: pointer;
	font: inherit;
	text-decoration: underline;
}

ul.deathline{
	margin-left: 40px;
}

th.header { 
    background-image: url(../images/bg.gif); 
    cursor: pointer; 
    background-repeat: no-repeat; 
    background-position: center left; 
    padding-left: 20px; 
    border-right: 1px solid #dad9c7; 
    margin-left: -1px; 
}

th.headerSortUp { 
    background-image: url(../images/asc.gif); 
    background-color: #3399FF; 
} 

th.headerSortDown { 
    background-image: url(../images/desc.gif); 
    background-color: #3399FF; 
} 

/* /Cuenta — empate no permitido en eliminatoria */
#prediction-cards .matchLine.score-tie-error {
    border: 2px solid #c00;
    border-radius: 10px;
}

#prediction input.prediction.score-input-error,
#prediction-cards input.prediction.score-input-error,
#prediction input.teamAScore.score-input-error,
#prediction-cards input.teamAScore.score-input-error,
#prediction input.teamBScore.score-input-error,
#prediction-cards input.teamBScore.score-input-error {
    border: 2px solid #c00 !important;
    background-color: #fff0f0 !important;
    outline: 2px solid #e88 !important;
    box-shadow: 0 0 6px rgba(200, 0, 0, 0.35) !important;
}
#prediction tr.matchLine.score-tie-error,
#prediction-cards .matchLine.score-tie-error {
    background-color: #fff8f8;
}

#prediction-cards input.prediction {
    vertical-align: middle;
    box-sizing: border-box;
}

.match-result-summary {
    display: block;
    font-size: 0.92em;
    line-height: 1.45;
    color: #444;
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
}

.match-result-summary__head {
    margin-bottom: 4px;
}

.match-result-summary__teams {
    color: #92400e;
    font-weight: 600;
}

.match-result-summary__score {
    font-weight: 700;
    color: #111;
}

.match-result-summary__lineup {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 6px auto 8px;
    padding: 6px 10px;
    font-size: 0.72em;
    line-height: 1.25;
    color: #44403c;
    background: rgba(255, 199, 0, 0.07);
    border-radius: 8px;
    border: 1px solid rgba(255, 199, 0, 0.22);
    max-width: 520px;
}

.match-result-summary__lineup-side {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.match-result-summary__lineup-side--away {
    flex-direction: row;
}

.match-result-summary__lineup-side--qualified {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 240, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.4);
}

.match-result-summary__lineup-side--qualified .match-result-summary__lineup-name {
    color: #1e293b;
    font-weight: 800;
}

.match-result-summary__lineup-side--qualified .match-result-summary__lineup-flag {
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.55);
}

.match-result-summary__lineup-score {
    color: #111;
    font-weight: 800;
    font-size: 1.05em;
    min-width: 1ch;
}

.match-result-summary__lineup-flag {
    width: 28px;
    height: 17px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    flex-shrink: 0;
}

.match-result-summary__lineup-name {
    font-weight: 600;
    font-size: 0.95em;
    max-width: 9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-result-summary__lineup-vs {
    font-size: 0.85em;
    font-weight: 600;
    color: #9ca3af;
    padding: 0 2px;
}

.match-result-summary__points-row {
    margin-top: 4px;
}

.match-result-summary__sep {
    color: #999;
    padding: 0 4px;
}

.match-result-summary__points {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92em;
    line-height: 1.3;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.match-result-summary__points--zero {
    color: #6b7280;
    background: #e5e7eb;
    font-weight: 600;
}

/* 2 pts — Bronce energético */
.match-result-summary__points--winner {
    color: #7c2d12;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.22), rgba(255, 122, 0, 0.08));
    box-shadow: inset 0 0 0 1px rgba(255, 122, 0, 0.45);
}

/* 3 pts — Plata cromada */
.match-result-summary__points--goal-diff {
    color: #334155;
    background: linear-gradient(135deg, #f8fafc, #E2E8F0);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.55);
}

/* 4 pts — Oro solar */
.match-result-summary__points--perfect {
    color: #78350f;
    background: linear-gradient(135deg, #FFC700, #ffe566);
    box-shadow: inset 0 0 0 1px rgba(255, 160, 0, 0.65);
}

/* Solo bono equipo (eliminatoria) */
.match-result-summary__points--diamond:not(.match-result-summary__points--winner):not(.match-result-summary__points--goal-diff):not(.match-result-summary__points--perfect) {
    color: #0e7490;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(0, 240, 255, 0.06));
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.55);
}

/* Bono diamante sobre marcador acertado */
.match-result-summary__points--diamond.match-result-summary__points--winner,
.match-result-summary__points--diamond.match-result-summary__points--goal-diff,
.match-result-summary__points--diamond.match-result-summary__points--perfect {
    box-shadow: inset 0 0 0 2px #00F0FF, 0 0 10px rgba(0, 240, 255, 0.35);
}

.match-result-summary__points--fire {
    animation: match-points-fire-pulse 1.4s ease-in-out infinite;
}

.match-result-summary__points--diamond-pulse {
    animation: match-points-diamond-pulse 1.4s ease-in-out infinite;
}

.match-result-summary__points--fire.match-result-summary__points--perfect {
    box-shadow: inset 0 0 0 1px rgba(255, 160, 0, 0.65), 0 0 14px rgba(255, 199, 0, 0.55);
}

.match-result-summary__points--fire.match-result-summary__points--diamond.match-result-summary__points--perfect {
    box-shadow: inset 0 0 0 2px #00F0FF, 0 0 16px rgba(255, 199, 0, 0.65), 0 0 8px rgba(0, 240, 255, 0.45);
}

.match-result-summary__fire {
    font-size: 1.05em;
    line-height: 1;
}

@keyframes match-points-fire-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Tarjeta de posición en /Cuenta (paleta metales eléctricos) */
.account-rank-wrap {
    display: flex;
    justify-content: center;
    margin: 22px auto 26px;
}

.account-rank-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 32px 12px;
    min-width: 120px;
    background: #f0f8ff;
    border: 2px solid #1e90ff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.account-rank-card__label {
    font-size: 0.92rem;
    font-weight: bold;
    color: #1e3a5f;
    letter-spacing: 0.01em;
    margin-bottom: 4px;
}

.account-rank-card__value {
    font-size: 2.15rem;
    font-weight: 800;
    color: #1e90ff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.match-result-row__cell {
    text-align: center;
    padding: 4px 8px 14px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    background: #f8fbf8;
}

#prediction tr.match-result-row td,
#matches tr.match-result-row td {
    vertical-align: middle;
}

.match-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 10px 8px 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 251, 235, 0.65);
    border-radius: 0 0 8px 8px;
    margin-left: -2px;
    margin-right: -2px;
    margin-bottom: -2px;
}

/* Tarjetas de pronósticos — móvil y escritorio */
.prediction-cards,
.matches-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    max-width: 1120px;
    margin: 16px auto 0;
    padding: 0 4px;
    text-align: left;
    box-sizing: border-box;
}

.prediction-cards .match-section-header,
.matches-cards .match-section-header {
    grid-column: 1 / -1;
    margin: 8px 0 4px;
}

.prediction-cards .match-section-header h3,
.matches-cards .match-section-header h3 {
    color: #1e90ff;
    font-size: 1.1em;
    margin: 0;
}

.prediction-cards .match-section-header--date h3,
.matches-cards .match-section-header--date h3,
.match-date-toggle h3 {
    color: #333;
    font-size: 1em;
    margin: 0;
    display: inline;
}

.match-date-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.match-date-toggle td {
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-date-chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(30, 144, 255, 0.35);
    border-radius: 6px;
    background: #f0f8ff;
    cursor: pointer;
    position: relative;
}

.match-date-chevron::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    margin: -3px 0 0 -5px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #1e90ff;
    transition: transform 0.2s ease;
}

.match-date-toggle.is-expanded .match-date-chevron::before {
    transform: rotate(90deg);
    margin: -5px 0 0 -6px;
}

.match-date-group-item.is-date-collapsed {
    display: none !important;
}

.prediction-cards .match-card > input[type="hidden"],
.matches-cards .match-card > input[type="hidden"] {
    display: none;
}

.match-card {
    background: #fafafa;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.match-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}

.match-card-number {
    color: #1e90ff;
    font-weight: bold;
}

.match-card-group {
    font-weight: bold;
    color: #1e90ff;
}

.match-card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 2px;
}

.match-card-row--home {
    justify-content: flex-start;
}

.match-card-row--away {
    justify-content: flex-end;
}

.match-card-team-name {
    flex: 1;
    font-weight: bold;
    min-width: 0;
    word-break: break-word;
    line-height: 1.3;
}

.match-card-row--home .match-card-team-name {
    text-align: left;
}

.match-card-row--away .match-card-team-name {
    text-align: right;
}

.match-card-score {
    font-size: 1.15em;
    min-width: 1.6em;
    text-align: center;
    flex-shrink: 0;
}

.match-card-vs {
    text-align: center;
    font-weight: bold;
    color: #666;
    font-size: 0.95em;
    padding: 2px 0 4px;
}

.match-card-row input.prediction {
    width: 52px;
    max-width: 52px;
    flex-shrink: 0;
    text-align: center;
    font-weight: bold;
}

/* Aviso flotante (centro de pantalla; solo clase is-visible) */
.quiniela-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    width: min(92vw, 480px);
    max-width: 480px;
    padding: 22px 48px 22px 24px;
    color: #8b0000;
    background: #fff0f0;
    border: 2px solid #c00;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1.45;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.quiniela-toast.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.quiniela-toast--success {
    color: #2d6a1f;
    background: #f0fff0;
    border-color: #6b9e32;
}
.quiniela-toast--success .quiniela-toast-close {
    color: #2d6a1f;
}
.quiniela-toast-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: #8b0000;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}

/* Carga de /Partidos — balón girando */
@keyframes quiniela-ball-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.matches-loading-overlay {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.82);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.matches-loading-overlay.is-visible {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.matches-loading-overlay__panel {
	min-width: min(90vw, 320px);
	padding: 28px 32px 24px;
	text-align: center;
	color: #1e3a5f;
	background: #f0f8ff;
	border: 2px solid #1e90ff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.matches-loading-ball {
	display: inline-block;
	width: 80px;
	height: 80px;
	margin-bottom: 14px;
	animation: quiniela-ball-spin 1.1s linear infinite;
	transform-origin: 50% 50%;
}

.matches-loading-ball__img,
.matches-loading-ball__svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.matches-loading-overlay__text {
	margin: 0;
	font-weight: bold;
	font-size: 1.1em;
	color: #1e90ff;
}

.matches-content.is-loading {
	visibility: hidden;
}

/* Bloqueo de pantalla al guardar pronósticos en /Cuenta */
.quiniela-saving-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.quiniela-saving-overlay.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.quiniela-saving-overlay__box {
    min-width: min(90vw, 360px);
    padding: 28px 32px 24px;
    text-align: center;
    color: #1e3a5f;
    background: #f0f8ff;
    border: 2px solid #1e90ff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    font-weight: bold;
    font-size: 1.15em;
}

.quiniela-saving-overlay__box .matches-loading-ball {
    margin-bottom: 14px;
}

.quiniela-saving-overlay__text {
    margin: 0;
    color: #1e90ff;
    font-size: 1.1em;
}

/* Formularios de autenticacion (login, registro, recuperacion) */
.responsive-form-table {
    text-align: left;
    margin: 20px auto;
    padding: 20px 0;
    max-width: 520px;
}

.home-landing {
    padding: 12px 16px 24px;
    box-sizing: border-box;
}

.rules-bonus-table {
    text-align: center;
    width: 40%;
    border: 1px solid #000;
    margin: 20px auto;
}

.rules-bonus-table td {
    text-align: center;
}

/* ===== Admin ===== */
#content h2 {
    color: #1e90ff;
    margin-top: 0;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.admin-toolbar label {
    font-weight: bold;
}

.admin-toolbar .admin-toolbar-field {
    flex: 1 1 200px;
    min-width: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.admin-table th,
.admin-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #f0f8ff;
    color: #1e90ff;
    font-weight: bold;
}

.admin-table tbody tr:hover {
    background: #fafafa;
}

.admin-row-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}

.admin-row-actions form {
    margin: 0;
    display: inline-flex;
}

.admin-form-table {
    width: 100%;
    max-width: 720px;
    border-collapse: collapse;
}

.admin-form-table td {
    padding: 8px 6px;
    vertical-align: top;
}

.admin-form-table td:first-child {
    width: 38%;
    font-weight: bold;
    color: #333;
}

.admin-field-hint {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

.admin-field-stack label {
    display: block;
    font-weight: bold;
    margin-top: 8px;
}

.admin-field-stack label:first-child {
    margin-top: 0;
}

.admin-field-stack select {
    display: block;
    width: 100%;
    margin-top: 4px;
}

.admin-settings-form {
    max-width: 720px;
}

.admin-settings-form p {
    margin-bottom: 20px;
}

.admin-settings-form input[type="datetime-local"] {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    box-sizing: border-box;
}

.admin-card {
    background: #fafafa;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    text-align: left;
}

.admin-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 8px;
}

.admin-card-title {
    font-weight: bold;
    color: #1e90ff;
}

.admin-card-stage {
    font-size: 0.85em;
    color: #666;
}

.admin-card-meta {
    margin: 0 0 8px;
    font-size: 0.9em;
    color: #555;
}

.admin-card-teams {
    margin: 0 0 6px;
    font-weight: bold;
    line-height: 1.4;
    word-break: break-word;
}

.admin-card-score {
    margin: 0 0 10px;
    color: #333;
}

.admin-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #e8e8e8;
}

.admin-card-actions a {
    color: #1e90ff;
    font-weight: bold;
}

.admin-card-delete {
    color: #c00 !important;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
    text-decoration: underline;
}

.admin-empty {
    text-align: center;
    color: #666;
    padding: 16px;
}

.admin-home-list {
    line-height: 2;
    padding-left: 1.2em;
}

.admin-home-list a {
    color: #1e90ff;
    font-weight: bold;
}

.admin-form-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Visibilidad desktop / movil */
.mobile-only {
    display: none;
}

.desktop-only {
    display: table;
}

/* ===== Fase 1 responsive (movil) ===== */
/* Portrait <=768px, o telefono en landscape (ancho alto pero altura ~390px) */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    body:has(.user-session-bar) {
        position: static;
    }

    .navbar-sectionheader {
        height: auto;
        min-height: 72px;
        aspect-ratio: 1000 / 150;
        background-size: 100% auto;
        background-position: center center;
        -webkit-background-size: 100% auto;
    }

    #menu-wrap {
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
    }

    #menu {
        display: block;
        border: none;
        width: 100%;
    }

    body:has(.user-session-bar) #menu {
        border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    }

    body:has(.user-session-bar) #menu-wrap + .user-session-bar {
        position: static !important;
        top: auto !important;
        left: auto !important;
        height: auto !important;
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
        display: block;
    }

    .user-session-bar {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .menu-user-session-slot {
        width: 100%;
        white-space: normal;
    }

    .menu-user-session-slot .user-session-trigger {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.35);
        gap: 10px;
        padding: 14px 12px;
        font-size: 0.95em;
        white-space: normal;
    }

    .menu-user-session-slot .user-session-name {
        flex: 1;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .menu-user-session-slot .user-session-dropdown {
        left: 8px;
        right: 8px;
    }

    #menu li {
        display: block;
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    }

    #menu li a {
        float: none;
        display: block;
        padding: 14px 12px;
        font-size: 0.95em;
    }

    #content {
        width: 100%;
        max-width: 100%;
        padding: 16px 12px 24px;
        box-sizing: border-box;
        box-shadow: none;
    }

    #footer {
        height: 140px;
        -webkit-background-size: 120px 130px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .responsive-form-table {
        width: 100%;
        max-width: 100%;
        padding: 12px 4px;
    }

    .responsive-form-table tr {
        display: table-row;
    }

    .responsive-form-table td {
        display: table-cell;
        width: auto;
        vertical-align: middle;
        padding: 6px 4px;
        box-sizing: border-box;
    }

    .responsive-form-table td:first-child {
        width: 38%;
        padding-right: 8px;
        white-space: nowrap;
    }

    .responsive-form-table td:last-child {
        width: 62%;
    }

    .responsive-form-table td[colspan="2"] {
        display: table-cell;
        width: 100%;
        text-align: center;
        padding-top: 16px;
    }

    .rules-bonus-table {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .closeSession {
        float: none;
        text-align: right;
        margin: 8px 0 0;
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none !important;
    }

    .prediction-cards,
    .matches-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }

    /* ===== Fase 2: tarjetas y listas ===== */

    .matches-mobile {
        text-align: left;
        margin-top: 16px;
    }

    .match-section-header {
        margin: 20px 0 8px;
    }

    .match-section-header h3 {
        color: #1e90ff;
        font-size: 1.1em;
        margin: 0;
    }

    .match-section-header--date h3 {
        color: #333;
        font-size: 1em;
    }

    .match-card {
        background: #fafafa;
        border: 1px solid #d0d0d0;
        border-radius: 10px;
        padding: 12px 14px;
        margin-bottom: 12px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    }

    .match-card-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 12px;
        align-items: center;
        margin-bottom: 10px;
        font-size: 0.9em;
        color: #555;
    }

    .match-card-number {
        color: #1e90ff;
        font-weight: bold;
    }

    .match-card-group {
        font-weight: bold;
        color: #1e90ff;
    }

    .match-card-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 2px;
    }

    .match-card-row--home {
        justify-content: flex-start;
    }

    .match-card-row--away {
        justify-content: flex-end;
    }

    .match-card-team-name {
        flex: 1;
        font-weight: bold;
        min-width: 0;
        word-break: break-word;
        line-height: 1.3;
    }

    .match-card-row--home .match-card-team-name {
        text-align: left;
    }

    .match-card-row--away .match-card-team-name {
        text-align: right;
    }

    .match-card-score {
        font-size: 1.15em;
        min-width: 1.6em;
        text-align: center;
        flex-shrink: 0;
    }

    .match-card-vs {
        text-align: center;
        font-weight: bold;
        color: #666;
        font-size: 0.95em;
        padding: 2px 0 4px;
    }

    .match-card-row input.prediction {
        width: 52px;
        max-width: 52px;
        flex-shrink: 0;
        text-align: center;
        font-weight: bold;
    }

    .prediction-mobile {
        text-align: left;
        margin-top: 8px;
    }

    .prediction-mobile .match-card > input[type="hidden"] {
        display: none;
    }

    .classification-mobile {
        list-style: none;
        margin: 16px 0 0;
        padding: 0;
        text-align: left;
    }

    .classification-card {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        margin-bottom: 10px;
        background: #fafafa;
        border: 1px solid #d0d0d0;
        border-radius: 10px;
    }

    .classification-rank {
        flex-shrink: 0;
        width: 2em;
        height: 2em;
        line-height: 2em;
        text-align: center;
        background: #1e90ff;
        color: #fff;
        border-radius: 50%;
        font-weight: bold;
        font-size: 0.9em;
    }

    .classification-info {
        flex: 1;
        min-width: 0;
    }

    .classification-name {
        display: block;
        font-weight: bold;
        text-transform: uppercase;
        text-decoration: none;
        color: #1e90ff;
        word-break: break-word;
    }

    .classification-dept {
        display: block;
        font-size: 0.85em;
        color: #666;
        margin-top: 2px;
    }

    .classification-points {
        flex-shrink: 0;
        font-weight: bold;
        color: #1e90ff;
        font-size: 0.95em;
    }

    /* Mi Cuenta: datos del jugador apilados */
    table.player-info-table {
        width: 100%;
        font-size: 0.95em;
        border-collapse: collapse;
    }

    table.player-info-table tr:first-child {
        display: none;
    }

    table.player-info-table tr {
        display: block;
    }

    table.player-info-table td {
        display: block;
        text-align: left;
        padding: 8px 12px;
        border-bottom: 1px solid #e8e8e8;
    }

    table.player-info-table td:before {
        display: block;
        font-weight: bold;
        color: #1e90ff;
        font-size: 0.85em;
        margin-bottom: 4px;
    }

    table.player-info-table td:nth-child(1):before { content: "Nombre y Apellido"; }
    table.player-info-table td:nth-child(2):before { content: "Correo electrónico"; }
    table.player-info-table td:nth-child(3):before { content: "Gerencia"; }
    table.player-info-table td:nth-child(4):before { content: "Puntos acumulados"; }


    /* FAB centrado abajo: visible solo al hacer scroll (misma lógica que .go-top) */
    .account-save-bar.account-save-bar--top {
        position: fixed;
        bottom: 14px;
        left: 50%;
        right: auto;
        top: auto;
        transform: translateX(-50%);
        z-index: 10000;
        margin: 0;
        padding: 0;
        background: transparent;
        border: none;
        clear: none;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.7s ease, visibility 0.7s ease;
    }

    .account-save-bar.account-save-bar--top.fab-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .account-save-bar--top .saveButton {
        min-width: auto;
        padding: 10px 14px;
        font-size: 0.9em;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    }

    .account-save-bar--bottom {
        display: none !important;
    }

    button.save-follow,
    input.save-follow {
        bottom: 12px;
        right: 12px;
        min-width: 140px;
    }

    .home-landing {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 24px 16px;
    }

    .home-landing > a:first-child {
        width: 100%;
        max-width: 520px;
    }

    .home-landing img[width="100%"] {
        width: 100%;
        max-width: 520px;
        height: auto;
    }

    .home-landing img[width="15%"] {
        width: 36% !important;
        max-width: 140px;
        height: auto;
        margin: 0 6px;
    }

    /* ===== Fase 3: admin responsive ===== */
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-toolbar .admin-toolbar-field,
    .admin-toolbar select,
    .admin-toolbar input[type="text"],
    .admin-toolbar button,
    .admin-toolbar a {
        width: 100%;
        box-sizing: border-box;
    }

    .admin-form-table,
    .admin-form-table tbody,
    .admin-form-table tr,
    .admin-form-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .admin-form-table tr {
        margin-bottom: 14px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

    .admin-form-table td:first-child {
        width: 100%;
        padding-bottom: 4px;
    }

    .admin-form-table input[type="number"],
    .admin-form-table input[type="text"] {
        max-width: 100%;
    }

    .admin-form-table input[type="number"][style*="width"] {
        width: 72px !important;
        max-width: 28%;
        display: inline-block;
        margin-right: 6px;
    }

    .admin-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-form-actions button,
    .admin-form-actions a {
        text-align: center;
    }

    .admin-mobile {
        margin-top: 12px;
    }
}

@media (max-width: 480px), (orientation: landscape) and (max-height: 500px) {
    .navbar-sectionheader {
        min-height: 56px;
    }

    #menu li a {
        padding: 12px 10px;
        font-size: 0.9em;
    }

    h1 {
        font-size: 1.35em;
    }

    h3 {
        font-size: 1.1em;
    }
}

/* ===== Comentarios por partido ===== */
.matches-comment-cell {
    width: 9%;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.matches-comment-link {
    color: #1e90ff;
    font-weight: bold;
    font-size: 0.78em;
    line-height: 1.2;
    white-space: nowrap;
    display: inline-block;
}

.match-card-comments-link {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

.match-card-comments-link a {
    color: #1e90ff;
    font-weight: bold;
    font-size: 0.95em;
}

.match-comments-wrap {
    padding-top: 20px;
    text-align: left;
    max-width: 820px;
    margin: 0 auto;
}

/* Card del partido (mismo aspecto que tarjetas móvil en /Partidos) */
.match-comments-wrap .match-comments-match-card {
    background: #fafafa;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 16px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.match-comments-wrap .match-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}

.match-comments-wrap .match-card-number,
.match-comments-wrap .match-card-group,
.match-comments-wrap .match-card-stage {
    color: #1e90ff;
    font-weight: bold;
}

.match-comments-wrap .match-card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 2px;
}

.match-comments-wrap .match-card-row--home {
    justify-content: flex-start;
}

.match-comments-wrap .match-card-row--away {
    justify-content: flex-end;
}

.match-comments-wrap .match-card-team-name {
    flex: 1;
    font-weight: bold;
    min-width: 0;
    word-break: break-word;
    line-height: 1.3;
}

.match-comments-wrap .match-card-row--home .match-card-team-name {
    text-align: left;
}

.match-comments-wrap .match-card-row--away .match-card-team-name {
    text-align: right;
}

.match-comments-wrap .match-card-score {
    font-size: 1.15em;
    min-width: 1.6em;
    text-align: center;
    flex-shrink: 0;
}

.match-comments-wrap .match-card-vs {
    text-align: center;
    font-weight: bold;
    color: #666;
    font-size: 0.95em;
    padding: 2px 0 4px;
}

.match-comments-total {
    color: #555;
    margin: 12px 0;
}

.match-comments-page-hint {
    font-size: 0.9em;
    color: #888;
}

.match-comment-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.match-comment-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: #1e90ff;
}

.match-comment-card-header span {
    color: #666;
    font-size: 0.9em;
}

.match-comment-body {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.45;
}

.match-comments-empty,
.match-comments-login-hint {
    color: #666;
    margin: 16px 0;
}

.match-comments-form-wrap {
    margin: 20px 0 16px;
    padding: 16px;
    background: #f8fbff;
    border: 1px solid #d8e8f8;
    border-radius: 10px;
}

.match-comments-list-title {
    margin: 20px 0 8px;
    color: #1e90ff;
    font-size: 1.1em;
}

.match-comments-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.match-comments-mention-hint {
	margin: 0 0 10px;
	font-size: 0.9em;
	color: #555;
}

.comment-mention-field {
	position: relative;
	margin-bottom: 10px;
}

.match-comments-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-bottom: 0;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-family: inherit;
	resize: vertical;
}

.comment-mention-dropdown {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 50;
	margin: 4px 0 0;
	padding: 4px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #d8e8f8;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	max-height: 220px;
	overflow-y: auto;
}

.comment-mention-dropdown li {
	padding: 10px 14px;
	cursor: pointer;
	font-weight: 600;
	color: #1e3a5f;
}

.comment-mention-dropdown li:hover,
.comment-mention-dropdown li.is-active {
	background: #f0f8ff;
	color: #1e90ff;
}

.comment-mention-dropdown li.is-empty {
	cursor: default;
	font-weight: normal;
	color: #888;
}

.comment-mention {
	color: #1e90ff;
	font-weight: bold;
}

.comment-reply-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
	padding: 10px 12px;
	background: #eef6ff;
	border: 1px solid #b8d9f8;
	border-radius: 8px;
	font-size: 0.95em;
}

.comment-reply-banner[hidden] {
	display: none !important;
}

.comment-reply-cancel {
	border: none;
	background: none;
	color: #c0392b;
	font-weight: bold;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}

.match-comment-reply-to {
	margin: 0 0 8px;
	padding: 8px 10px;
	background: #f5f9ff;
	border-left: 3px solid #1e90ff;
	font-size: 0.9em;
	color: #555;
}

.match-comment-reply-to em {
	font-style: normal;
	color: #333;
}

.comment-reactions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
}

.comment-reaction-static,
.comment-reaction-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.95em;
	line-height: 1;
}

.comment-reaction-static {
	color: #1e3a5f;
	background: #fff;
	border: 1px solid #b8cfe6;
	border-radius: 999px;
	padding: 5px 11px;
	box-shadow: 0 1px 3px rgba(30, 58, 95, 0.08);
}

.comment-reaction-static .comment-reaction-icon {
	opacity: 1;
	filter: none;
}

.comment-reaction-static--like .comment-reaction-icon {
	text-shadow: 0 0 0 #1e90ff;
}

.comment-reaction-static--dislike .comment-reaction-icon {
	text-shadow: 0 0 0 #c0392b;
}

.comment-reaction-static .comment-reaction-count {
	color: #1e3a5f;
}

.comment-reaction-btn {
	border: 1px solid #d0dbe8;
	border-radius: 999px;
	background: #fff;
	color: #6b7c8f;
	padding: 5px 10px;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.comment-reaction-btn:hover:not(:disabled),
.comment-reaction-btn:focus:not(:disabled) {
	background: #f0f8ff;
	border-color: #9ec5eb;
	outline: none;
}

.comment-reaction-btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.comment-reaction-icon {
	font-size: 1.1em;
	opacity: 0.35;
	filter: grayscale(1);
	transition: opacity 0.15s ease, filter 0.15s ease;
}

.comment-reaction-count {
	font-weight: bold;
	min-width: 1ch;
}

.comment-reaction-btn--like.is-active {
	border-color: #1e90ff;
	background: #eef6ff;
	color: #1e90ff;
}

.comment-reaction-btn--like.is-active .comment-reaction-icon {
	opacity: 1;
	filter: none;
}

.comment-reaction-btn--dislike.is-active {
	border-color: #c0392b;
	background: #fff5f5;
	color: #c0392b;
}

.comment-reaction-btn--dislike.is-active .comment-reaction-icon {
	opacity: 1;
	filter: none;
}

.comment-reply-btn {
	margin-top: 8px;
	border: none;
	background: none;
	color: #1e90ff;
	font-weight: bold;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
	font-size: 0.9em;
}

.admin-comment-reply-tag {
	display: block;
	font-size: 0.85em;
	color: #1e90ff;
	font-weight: bold;
	margin-bottom: 4px;
}

.admin-comments-sort-hint {
	font-size: 0.92em;
	color: #5a6a7a;
	margin: 8px 0 12px;
}

.admin-comment-reactions-summary {
	display: flex;
	gap: 10px;
	margin: 8px 0 4px;
}

.admin-comment-reaction-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 999px;
	font-weight: bold;
	font-size: 0.9em;
	border: 1px solid #c5d6e8;
	background: #fff;
}

.admin-comment-reaction-pill--like {
	color: #1e90ff;
	border-color: #9ec5eb;
}

.admin-comment-reaction-pill--dislike {
	color: #c0392b;
	border-color: #e8b4b4;
}

.admin-comment-reaction-cell {
	font-weight: bold;
	text-align: center;
	white-space: nowrap;
}

.admin-comment-reaction-cell--like {
	color: #1e90ff;
}

.admin-comment-reaction-cell--dislike {
	color: #c0392b;
}

.match-comments-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.match-comments-pagination a {
    color: #1e90ff;
    font-weight: bold;
}

.admin-comment-body-cell {
    max-width: 360px;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
    .match-comments-wrap {
        padding-left: 8px;
        padding-right: 8px;
    }

    .match-comments-form button {
        width: 100%;
    }
}


