@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
	--base-color: #0a1a30;
	--glass-bg: rgba(15, 35, 70, 0.8);
	--glass-highlight: rgba(100, 180, 255, 0.15);
	--glass-border: rgba(80, 160, 240, 0.5);
	--primary-text: #e0f0ff;
	--secondary-text: #a0c0e8;
	--highlight-blue: #4a9cff;
	--highlight-blue-glow: rgba(74, 156, 255, 0.7);
	--highlight-gold: #ffdd57;
	--highlight-gold-glow: rgba(255, 221, 87, 0.5);
	--accent-orange: #ff9933;
	--button-text: #ffffff;
	--glass-shadow: 0 6px 25px rgba(0, 100, 200, 0.3);
	--skill-value-text: #c8d8e8;
	--modal-bg: rgba(10, 26, 48, 0.97);
	--modal-overlay: rgba(0, 0, 0, 0.75);
	--filter-bg: rgba(25, 50, 90, 0.9);
	--filter-border: rgba(120, 200, 255, 0.6);
	--filter-text: #e0f0ff;
	--filter-hover-bg: rgba(40, 70, 120, 1);
	--filter-focus-glow: 0 0 10px var(--highlight-blue-glow);
	--neon-glow-soft: 0 0 8px var(--highlight-blue-glow);
	--neon-glow-medium: 0 0 12px var(--highlight-blue-glow);
	--team-card-bg: linear-gradient(140deg, rgba(10, 10, 15, 0.9) 0%, rgba(30, 20, 40, 0.85) 60%, rgba(180, 180, 190, 0.8) 100%);
	--team-card-border: rgba(100, 110, 130, 0.4);
	--team-card-hover-border: rgba(120, 180, 255, 0.7);
	--team-card-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
	--team-card-hover-shadow: 0 6px 25px rgba(0, 80, 160, 0.4);
	--radius-large: 15px;
	--radius-medium: 10px;
	--radius-small: 6px;
	--share-icon-color: var(--secondary-text);
	--share-icon-hover-color: var(--highlight-blue);
	--toggle-btn-gold-bg: linear-gradient(135deg, #ffd700 0%, #ffec8b 100%);
	--toggle-btn-gold-hover-bg: linear-gradient(135deg, #ffec8b 0%, #fffacd 100%);
	--toggle-btn-gold-active-bg: linear-gradient(135deg, #e6c300 0%, #f0d96d 100%);
	--toggle-btn-gold-border: rgba(255, 223, 87, 0.7);
	--toggle-btn-gold-text: #1a2a44;
	--toggle-btn-gold-hover-text: #0a1a30;
	--toggle-btn-gold-shadow: 0 2px 5px rgba(100, 80, 0, 0.4);
	--toggle-btn-gold-hover-shadow: 0 4px 10px rgba(150, 120, 0, 0.5), 0 0 8px var(--highlight-gold-glow);
}

body {
	background: linear-gradient(145deg, #060f1c 0%, #0a2040 100%);
	color: var(--primary-text);
	font-family: 'Inter', sans-serif;
	margin: 0;
	padding: 40px 20px;
	line-height: 1.65;
	background-attachment: fixed;
	font-weight: 400;
}

h1, h2, h3, h4 {
	color: var(--highlight-gold);
	margin-top: 1.3em;
	margin-bottom: 0.7em;
	font-weight: 600;
	text-shadow: 0 0 10px var(--highlight-gold-glow);
}

h1 {
	text-align: center;
	margin-bottom: 0.5em;
	font-size: 2.5em;
	font-weight: 700;
	letter-spacing: 1px;
}

.season-end-note {
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.9em;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 2.5em auto;
}

h3 {
	font-weight: 600;
	font-size: 1.2em;
}

a {
	color: var(--highlight-blue);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
}

a:hover {
	color: var(--accent-orange);
	text-shadow: 0 0 5px rgba(255, 153, 51, 0.5);
	text-decoration: none;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    padding: 8px;
    background-color: rgba(10, 26, 48, 0.6);
    border-radius: var(--radius-medium);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: var(--radius-small);
    border: 1px solid transparent;
    background-color: transparent;
    color: var(--secondary-text);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    color: var(--primary-text);
    background-color: var(--glass-highlight);
}

.tab-button.active {
    color: var(--highlight-gold);
    background-color: rgba(255, 221, 87, 0.1);
    border-color: var(--highlight-gold);
    box-shadow: 0 0 15px var(--highlight-gold-glow);
    text-shadow: 0 0 8px var(--highlight-gold-glow);
}

#tab-content-area {
    width: 100%;
}

.season-container {
	background: var(--glass-bg);
	backdrop-filter: blur(8px);
	border-radius: var(--radius-large);
	padding: 30px;
	margin-bottom: 35px;
	box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	border: 1px solid var(--glass-border);
	position: relative;
	overflow: hidden;
	opacity: 0;
	transform: translateY(-20px);
	animation: fadeInSlideDown 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.season-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient(to bottom, var(--glass-highlight), transparent);
	border-radius: var(--radius-large) var(--radius-large) 0 0;
	pointer-events: none;
	opacity: 0.7;
}

 .season-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--glass-border);
	position: relative;
	z-index: 1;
}

.season-title {
	color: var(--primary-text);
	margin: 0;
	font-weight: 600;
	font-size: 1.8em;
	text-shadow: none;
	text-align: left;
}

.season-header-meta {
	font-size: 0.9em;
	color: var(--secondary-text);
	text-align: left;
	margin: 0;
	font-weight: 300;
	opacity: 0.9;
}

.toggle-season-btn {
	font-family: 'Inter', sans-serif;
	font-size: 1.1em;
	padding: 8px 20px;
	color: var(--button-text);
	background: linear-gradient(to bottom, rgba(138, 43, 226, 0.8), rgba(75, 0, 130, 0.9));
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-small);
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	text-align: center;
	font-weight: 500;
	background-color: #000;
	margin-left: auto;
	flex-shrink: 0;
}

.toggle-season-btn:hover {
	background: linear-gradient(to bottom, rgba(186, 85, 211, 0.9), rgba(148, 0, 211, 1));
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
	transform: translateY(-2px);
	color: var(--button-text);
	text-shadow: none;
	border-color: var(--glass-border);
}

.toggle-season-btn:active {
	transform: translateY(0px);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.1);
	background: linear-gradient(to bottom, rgba(75, 0, 130, 0.9), rgba(148, 0, 211, 1));
}

.scan-content-wrapper {
	margin-top: 10px;
	padding-top: 10px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
	align-content: start;
}

.toggle-btn {
	 font-family: 'Inter', sans-serif;
	 font-size: 0.85em;
	 font-weight: 700;
	 padding: 7px 15px;
	 color: var(--toggle-btn-gold-text);
	 background-image: var(--toggle-btn-gold-bg);
	 border: 1px solid var(--toggle-btn-gold-border);
	 border-radius: var(--radius-medium);
	 cursor: pointer;
	 transition: all 0.3s ease;
	 box-shadow: var(--toggle-btn-gold-shadow), inset 0 1px 1px rgba(255, 255, 200, 0.3);
	 text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
	 position: relative;
	 overflow: hidden;
	 white-space: nowrap;
	 display: inline-flex;
	 align-items: center;
	 justify-content: center;
	 gap: 5px;
	 flex-shrink: 0;
}

 .toggle-btn:before {
	content: '';
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
	transform: skewX(-25deg);
	transition: left 0.4s ease;
	opacity: 0.6;
	pointer-events: none;
 }

.toggle-btn:hover {
	color: var(--toggle-btn-gold-hover-text);
	border-color: var(--highlight-gold);
	background-image: var(--toggle-btn-gold-hover-bg);
	box-shadow: var(--toggle-btn-gold-hover-shadow), inset 0 1px 1px rgba(255, 255, 220, 0.4);
	transform: translateY(-2px);
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

 .toggle-btn:hover:before {
	left: 125%;
 }

.toggle-btn:active {
	transform: translateY(0px);
	box-shadow: 0 1px 3px rgba(80, 60, 0, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.1);
	background-image: var(--toggle-btn-gold-active-bg);
}

.loading {
	text-align: center;
	padding: 50px;
	font-style: italic;
	color: var(--secondary-text);
	font-size: 1.2em;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-weight: 300;
	opacity: 0.8;
}

.error {
	text-align: center;
	padding: 40px;
	font-style: italic;
	color: var(--accent-orange);
	font-size: 1.1em;
	background-color: rgba(255, 153, 51, 0.15);
	border: 1px dashed var(--accent-orange);
	border-radius: var(--radius-medium);
}

.mz-team {
	background: var(--team-card-bg);
	backdrop-filter: blur(6px);
	padding: 15px;
	border-radius: var(--radius-medium);
	border: 1px solid var(--team-card-border);
	box-shadow: var(--team-card-shadow);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 105px;
	opacity: 1;
	transform: scale(1);
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
	will-change: transform, box-shadow, border-color, opacity;
}

.mz-team:hover {
	box-shadow: var(--team-card-hover-shadow);
	transform: translateY(-2px) scale(1.01);
	border-color: var(--team-card-hover-border);
}

.mz-team h3 {
	margin: 0 0 10px 0;
	padding: 0 0 8px 0;
	border-bottom: 1px solid var(--team-card-border);
	text-align: left;
	color: var(--highlight-gold);
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.1em;
	position: relative;
}

.mz-team h3 a {
	 color: var(--highlight-gold);
	 font-weight: 600;
	 flex-grow: 1;
	 line-height: 1.3;
	 overflow: hidden;
	 text-overflow: ellipsis;
	 white-space: nowrap;
	 padding-right: 25px;
}
 .mz-team h3 a:hover {
	color: var(--accent-orange);
 }

.team-badge {
	 width: 25px;
	 height: 25px;
	 flex-shrink: 0;
	 object-fit: contain;
	 background-color: rgba(255, 255, 255, 0.1);
	 border-radius: 3px;
}

.team-info {
	margin-bottom: 0;
	text-align: left;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.team-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
}

.team-actions-meta {
	font-size: 0.8em;
	color: var(--secondary-text);
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 100%;
	min-width: 0;
	line-height: 1.3;
}

.team-actions-meta span {
	 white-space: nowrap;
	 overflow: hidden;
	 text-overflow: ellipsis;
	 width: 100%;
}

.team-actions-meta strong {
	color: var(--primary-text);
	font-weight: 500;
}

.mz-team .toggle-team-btn {
	 margin: 0;
	 background: var(--base-color);
	 color: var(--highlight-gold);
	 border: 1px solid var(--highlight-gold);
	 text-shadow: none;
	 background-image: none;
	 width: 100%;
}

.mz-team .toggle-team-btn::before {
	display: none;
}

.mz-team .toggle-team-btn:hover {
	background: var(--highlight-gold);
	color: var(--base-color);
	border-color: var(--highlight-gold);
	box-shadow: 0 2px 8px var(--highlight-gold-glow);
	transform: translateY(-1px);
	text-shadow: none;
	background-image: none;
}
.mz-team .toggle-team-btn:active {
	background: var(--highlight-gold);
	color: var(--base-color);
	transform: translateY(0px);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
	background-image: none;
}

.mz-player-list-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
	gap: 25px;
	margin-top: 25px;
	width: 100%;
}

.mz-player {
	background: rgba(10, 30, 60, 0.85);
	padding: 18px;
	border-radius: var(--radius-small);
	border: 1px solid rgba(80, 160, 240, 0.5);
	box-shadow: 0 3px 10px rgba(0, 60, 120, 0.35);
	transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, background-color 0.25s ease-in-out, border-color 0.25s ease-in-out;
	position: relative;
	overflow: hidden;
	animation: fadeInSlideUp 0.5s ease-out forwards;
	opacity: 0;
	animation-delay: calc(0.06s * var(--player-index, 0));
}

.mz-player::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 20px;
	background: linear-gradient(to bottom, rgba(100, 180, 255, 0.15), transparent);
	border-radius: var(--radius-small) var(--radius-small) 0 0;
	pointer-events: none;
}

.mz-player:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 6px 18px rgba(0, 100, 180, 0.45);
	background-color: rgba(20, 50, 90, 0.9);
	border-color: var(--highlight-blue);
}

.mz-player-header {
	font-weight: 600;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border: none;
	color: var(--primary-text);
	font-size: 1.1em;
	text-align: center;
	border-bottom: 1px solid rgba(100, 180, 255, 0.3);
}

.mz-player-header a {
	color: var(--highlight-gold);
	text-decoration: none;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.mz-player-header a:hover {
	color: var(--accent-orange);
	text-shadow: 0 0 5px rgba(255, 153, 51, 0.5);
	text-decoration: none;
}

.mz-player-id {
	display: inline;
	font-size: 0.85em;
	color: var(--secondary-text);
	margin-left: 0;
	font-weight: 300;
	opacity: 0.9;
}

.mz-player-id strong {
	color: var(--highlight-gold);
	font-weight: 600;
}

.mz-skills {
	display: block;
	margin-top: 15px;
}

.mz-skill-item {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	font-size: 0.9em;
	padding: 4px 0;
	border-bottom: 1px dotted rgba(100, 180, 255, 0.25);
	min-height: 22px;
}

.mz-skill-item:last-child {
	border-bottom: none;
}

.mz-skill-item span:first-child {
	flex-shrink: 0;
	margin-right: 8px;
	color: var(--secondary-text);
	min-width: 120px;
	display: inline-block;
	font-weight: 500;
	text-align: left;
}

.skill-balls {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.mz-skill-item img {
	height: 10px;
	vertical-align: middle;
	margin-right: 1.5px;
	flex-shrink: 0;
}

.mz-skill-level-value {
	margin-left: auto;
	padding-left: 10px;
	font-size: 0.95em;
	min-width: 28px;
	text-align: right;
	display: inline-block;
	color: var(--skill-value-text);
	font-weight: 400;
}

#info-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--secondary-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.25s ease;
    padding: 0;
}

#info-button:hover {
    color: var(--highlight-gold);
    border-color: var(--highlight-gold);
    background-color: var(--base-color);
    box-shadow: 0 0 10px var(--highlight-gold-glow);
    transform: scale(1.1);
}

#info-button svg {
    width: 22px;
    height: 22px;
}

#info-modal-content p {
    margin: 0;
    line-height: 1.7;
    color: var(--secondary-text);
    font-size: 1.05em;
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--modal-overlay);
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
	backdrop-filter: blur(5px);
}

.modal-overlay.visible {
	opacity: 1;
	visibility: visible;
}

.modal-container {
	background: var(--modal-bg);
	border-radius: var(--radius-large);
	border: 1px solid var(--glass-border);
	box-shadow: 0 15px 50px rgba(0, 30, 60, 0.6);
	width: 90%;
	max-width: 1300px;
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	transform: scale(0.9) translateY(20px);
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

#info-modal .modal-container {
    max-width: 550px;
}

.modal-overlay.visible .modal-container {
	transform: scale(1) translateY(0);
	opacity: 1;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 30px;
	border-bottom: 1px solid var(--glass-border);
	flex-shrink: 0;
	position: relative;
}

.modal-title {
	margin: 0;
	font-size: 1.6em;
	color: var(--highlight-gold);
	text-shadow: 0 0 12px var(--highlight-gold-glow);
	padding-right: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-close-btn {
	background: none;
	border: none;
	color: var(--secondary-text);
	font-size: 1.8em;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.3s ease;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	line-height: 1;
}

.modal-close-btn:hover {
	color: var(--highlight-gold);
	transform: rotate(180deg) scale(1.1);
	background-color: rgba(255, 255, 255, 0.05);
}

.modal-body {
	overflow-y: auto;
	flex-grow: 1;
	padding: 25px 30px;
}

.modal-body::-webkit-scrollbar {
	width: 10px;
}

.modal-body::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
	background-color: var(--glass-border);
	border-radius: 10px;
	border: 2px solid transparent;
	background-clip: content-box;
}
 .modal-body::-webkit-scrollbar-thumb:hover {
	 background-color: var(--highlight-blue);
 }

 .share-icon {
	 position: absolute;
	 right: 10px;
	 top: 50%;
	 transform: translateY(-50%);
	 cursor: pointer;
	 color: var(--share-icon-color);
	 transition: color 0.2s ease, transform 0.2s ease;
	 padding: 5px;
	 display: flex;
	 align-items: center;
	 justify-content: center;
 }

 .share-icon svg {
	 width: 16px;
	 height: 16px;
 }

 .share-icon:hover {
	 color: var(--share-icon-hover-color);
	 transform: translateY(-50%) scale(1.1);
 }

 .modal-share-icon {
	 position: absolute;
	 right: 55px;
	 top: 50%;
	 transform: translateY(-50%);
	 cursor: pointer;
	 color: var(--share-icon-color);
	 transition: color 0.2s ease, transform 0.2s ease;
	 padding: 5px;
 }
 .modal-share-icon svg {
	width: 20px;
	height: 20px;
 }
 .modal-share-icon:hover {
	 color: var(--share-icon-hover-color);
	 transform: translateY(-50%) scale(1.1);
 }

.tooltip {
	position: fixed;
	background-color: rgba(0,0,0,0.8);
	color: #fff;
	padding: 5px 10px;
	border-radius: 4px;
	font-size: 0.8em;
	white-space: nowrap;
	z-index: 10000;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s;
	transform: translate(-50%, -120%);
}
.tooltip.visible {
	opacity: 1;
}

footer {
    text-align: right;
    padding: 40px 20px 20px 20px;
}

.mcre {
    font-family: 'VT323', monospace;
    font-size: 1.1em;
    color: var(--secondary-text);
    text-shadow: none;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.mcre:hover {
    color: var(--highlight-gold);
    text-shadow: 0 0 5px var(--highlight-gold-glow);
}

@media (max-width: 1200px) {
	.scan-content-wrapper {
		grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
	}
}

@media (max-width: 768px) {
	body { padding: 30px 15px; }
	h1 { font-size: 2em; }
    .tab-navigation {
        gap: 5px;
        padding: 5px;
        margin-bottom: 30px;
    }
    .tab-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
	 .season-header {
		 gap: 10px;
		 padding-bottom: 15px;
		 margin-bottom: 20px;
	 }
	 .season-title {
		 font-size: 1.6em;
	 }
	 .season-header-meta {
		 font-size: 0.85em;
	 }
	 .toggle-season-btn {
		 font-size: 1em;
		 padding: 7px 18px;
	 }
	.scan-content-wrapper {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: 15px;
	}
	 .mz-team {
		padding: 15px;
		 min-height: unset;
	}
	 .mz-team h3 { font-size: 1.1em; gap: 8px; }
	 .team-badge { width: 22px; height: 22px; }
	 .team-actions { gap: 6px; }
	 .team-actions-meta { font-size: 0.8em; gap: 2px; }
	 .toggle-btn { padding: 7px 14px; font-size: 0.8em;}
	 .mz-team .toggle-team-btn { font-size: 0.9em; padding: 8px 14px; }
	.mz-player-list-container {
		grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
		gap: 15px;
	}
	.modal-container {
		width: 95%;
		padding: 0;
	}
	 .modal-header { padding: 15px 20px; }
	 .modal-body { padding: 20px; }
	 .modal-title { font-size: 1.4em; }
	 .modal-close-btn { font-size: 1.6em; width: 35px; height: 35px; }
	 .modal-share-icon { right: 50px; }
	 .modal-share-icon svg { width: 18px; height: 18px; }
    #info-button { right: 15px; top: 15px; width: 32px; height: 32px; }
    #info-button svg { width: 20px; height: 20px; }
}

@media (max-width: 480px) {
	body { padding: 20px 10px; }
	h1 { font-size: 1.7em; }
    .tab-navigation {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .tab-button {
        font-size: 0.9em;
    }
	 .season-container { padding: 20px; }
	 .season-header {
		 flex-direction: column;
		 align-items: flex-start;
		 gap: 8px;
		 padding-bottom: 12px;
		 margin-bottom: 15px;
	 }
	 .season-title {
		 font-size: 1.5em;
	 }
	 .season-header-meta {
		 font-size: 0.8em;
		 width: 100%;
	 }
	 .toggle-season-btn {
		 margin-left: 0;
		 align-self: flex-start;
	 }
	.scan-content-wrapper {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	.mz-team { padding: 12px; }
	 .mz-team h3 { font-size: 1em; padding-bottom: 6px; margin-bottom: 8px; gap: 6px; }
	 .mz-team h3 a { padding-right: 22px; }
	 .share-icon { right: 5px; }
	 .share-icon svg { width: 14px; height: 14px; }
	 .team-badge { width: 20px; height: 20px; }
	 .team-actions { padding-top: 8px; gap: 5px; }
	 .team-actions-meta { font-size: 0.75em; gap: 1px; }
	 .toggle-btn { max-width: none; width: 100%; font-size: 0.8em; padding: 8px 10px; }
	 .mz-team .toggle-team-btn { font-size: 0.85em; padding: 9px 10px; }
	.mz-skill-item span:first-child {
		min-width: 95px;
		font-size: 0.8em;
	}
	 .mz-skill-item { font-size: 0.85em; }
	 .mz-skill-level-value { font-size: 0.9em; }
	.mz-player {
		padding: 15px 12px;
	}
	.mz-player-list-container {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	 .modal-header { padding: 12px 15px; }
	 .modal-body { padding: 15px; }
	 .modal-title { font-size: 1.2em; }
	 .modal-close-btn { font-size: 1.4em; width: 30px; height: 30px; }
	 .modal-share-icon { right: 45px; }
	 .modal-share-icon svg { width: 16px; height: 16px; }
    #info-modal .modal-container { max-width: 95%; }
    #info-modal-content p { font-size: 0.95em; }
}

.loading-spinner {
	display: block;
	width: 45px;
	height: 45px;
	margin: 0 auto 20px auto;
	animation: spin 1.8s linear infinite;
}

.loading-spinner svg {
	width: 100%;
	height: 100%;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes fadeInSlideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInSlideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}