:root{--gap:1rem;--bg:#111;--fg:#f5f5f5;--card:#1b1b1b;--accent:#ffc107;--accent-hover:#e0a800;--policy-title-size:1.1rem;--policy-padding:2rem;--policy-spacing:1.5rem;--policy-collapsed-spacing:0.5rem;--policy-collapsed-height:180px}
*{box-sizing:border-box}
body{margin:0;background:black;color:var(--fg);font-family:'Futura LT BT','Futura','Trebuchet MS',system-ui,sans-serif}
header{max-width:none;width:100%;margin:0;padding:1rem 6rem 1rem 2rem;box-sizing:border-box}
main,footer{max-width:1200px;margin:auto}
nav a{color:#9ad;margin-right:.5rem;text-decoration:none}
nav a:hover{color:#bce}
form.search{margin:.5rem 0;display:flex;gap:.5rem}
.grid{display:grid;grid-template-columns:1fr;gap:var(--gap)}
@media(min-width:640px){.grid{grid-template-columns:repeat(3,1fr)}}
.card{background:var(--card);padding:.75rem;border-radius:.5rem;display:flex;flex-direction:column}
.card .img-wrap{width:100%;aspect-ratio:2/3;background:#111;border-radius:.25rem;display:flex;align-items:center;justify-content:center;overflow:hidden}
.card img{width:100%;height:auto;max-height:320px;object-fit:contain;border-radius:.25rem;background:#111;padding:.25rem}
.card h3{margin:.5rem 0 .25rem;font-size:1.05rem;line-height:1.2}
label{display:block;margin:.5rem 0}
input,button,select{font:inherit;padding:.5rem;border-radius:.25rem;border:1px solid #333;background:#1d1d1d;color:var(--fg)}
select:focus,input:focus{outline:2px solid #444}
button{cursor:pointer;background:var(--accent);color:#111;border:0;font-weight:600}
button:hover{background:var(--accent-hover)}
.error{background:#612;color:#fee;padding:.5rem;border-radius:.25rem}
.table{/* unified definitions moved below */}
.nav-buttons{margin:1rem 0}
.btn{display:inline-block;padding:.5rem 1rem;background:var(--accent);color:#111;text-decoration:none;border-radius:.25rem;margin-right:.5rem;font-weight:600}
.btn:hover{background:var(--accent-hover)}
.btn-small{padding:.25rem .5rem;font-size:.85em}
.centered-container{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem}
/* Shared auth layout keeps login/register forms generous and centered */
.auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:radial-gradient(circle at top,#0a0a0a,#000)}
.auth-card,.login-box,.register-box{background:linear-gradient(145deg,#1a1a1a,#0d0d0d);border:1px solid rgba(246,201,14,.15);border-radius:1.5rem;padding:3rem 3.5rem;width:min(100%,480px);margin:0 auto;box-shadow:0 24px 60px rgba(0,0,0,.7),0 0 80px rgba(246,201,14,.08);position:relative;overflow:hidden}
.auth-card::before,.login-box::before,.register-box::before{content:'';position:absolute;top:-50%;right:-50%;width:200%;height:200%;background:radial-gradient(circle,rgba(246,201,14,.06) 0%,transparent 70%);pointer-events:none}
.auth-card form,.login-box form,.register-box form{display:flex;flex-direction:column;gap:1.5rem}
.auth-card label,.login-box label,.register-box label{display:flex;flex-direction:column;gap:.5rem;color:#ddd;font-weight:600;font-size:.95rem}
.auth-card input,.login-box input,.register-box input{background:#0a0a0a;border:2px solid #222;border-radius:.75rem;padding:1rem 1.25rem;color:#fff;font-size:1rem;transition:all .3s ease}
.auth-card input:focus,.login-box input:focus,.register-box input:focus{outline:none;border-color:#f6c90e;box-shadow:0 0 0 3px rgba(246,201,14,.1)}
.auth-card button[type="submit"],.login-box button[type="submit"],.register-box button[type="submit"]{background:linear-gradient(135deg,#f6c90e,#ffde50);color:#000;border:none;border-radius:.75rem;padding:1rem 2rem;font-size:1.1rem;font-weight:700;cursor:pointer;transition:all .3s ease;margin-top:.5rem;text-transform:uppercase;letter-spacing:.05em;box-shadow:0 8px 24px rgba(246,201,14,.3)}
.auth-card button[type="submit"]:hover,.login-box button[type="submit"]:hover,.register-box button[type="submit"]:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(246,201,14,.4)}
.auth-card .btn.secondary,.login-box .btn.secondary,.register-box .btn.secondary{background:transparent;border:2px solid #333;color:#fff;text-align:center;padding:.9rem 2rem;border-radius:.75rem;text-decoration:none;font-weight:600;transition:all .3s ease;display:block}
.auth-card .btn.secondary:hover,.login-box .btn.secondary:hover,.register-box .btn.secondary:hover{border-color:#f6c90e;color:#f6c90e;background:rgba(246,201,14,.05)}
.auth-card .error,.login-box .error,.register-box .error{background:rgba(220,53,69,.15);border:1px solid rgba(220,53,69,.4);color:#ff6b7a;padding:1rem;border-radius:.75rem;font-weight:600;text-align:center;margin-bottom:1rem}
.vote-form{max-width:520px;margin:2rem auto}
.form-group{margin-bottom:1rem;display:flex;align-items:center;justify-content:space-between}
.form-group label{display:inline-block;width:210px;margin-right:1rem;font-size:.9rem;color:#ccc}
.form-group input{width:80px}
.logo img{height:62px;width:auto;display:block}
.lang-switcher button{background:#222;color:#ddd;border:1px solid #333;padding:.35rem .6rem}
.lang-switcher button.active{background:var(--accent);color:#111;border-color:var(--accent)}
.header-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.header-left{display:flex;align-items:center;gap:1rem}
.header-right{display:flex;align-items:center;gap:1rem}
.search-results{margin-top:1rem}
.placeholder-poster{background:repeating-linear-gradient(45deg,#333,#333 10px,#2a2a2a 10px,#2a2a2a 20px);display:flex;align-items:center;justify-content:center;color:#888;font-size:.9rem;border-radius:.25rem}
.season-episode-fields{display:flex;gap:.5rem;margin:.5rem 0}
.season-episode-fields input{flex:1;min-width:0}
.footer{margin-top:3rem;padding:2rem 1rem;font-size:.8rem;color:#777;text-align:center}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* Shared container and card to match profile sizing */
.container-800{flex:1;max-width:800px;margin:0 auto;padding:2rem;width:100%}
.card-box{background:#111;border-radius:.75rem;padding:2rem;box-shadow:0 4px 20px rgba(0,0,0,.5)}

/* === Moved from header.php inline styles (2025-11-16) === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
	height: 100%;
	width: 100%;
}
body {
	font-family: 'Futura LT BT','Futura','Trebuchet MS',system-ui,sans-serif;
	background: black;
	color: #eee;
	min-height: 100vh;
	position: relative;
	z-index: 1;
}

/* Starfield background */
.starfield {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;
	pointer-events: none;
	background: #000;
}
.starfield-origin {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

header {
	background: rgba(0,0,0,0.8);
	backdrop-filter: blur(8px); 
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 1000;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	padding: .75rem 2.2rem .75rem 2rem;
	border-bottom: 1px solid #222;
	width: 100%;
	box-sizing: border-box;
	column-gap: 1.5rem;
}
.header-logo { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.header-logo img { height: 50px; width: auto; display: block; }
.logo-text { color: #d4a017; font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; text-shadow: 0 2px 8px rgba(212,160,23,.5); margin-top: .15rem; }
.logo-text-mobile { display: none; }
.mobile-lang-section, .mobile-lang-item { display: none; }
.active-lang { background: rgba(246,201,14,.1); color: #f6c90e !important; font-weight: 600; }
header h1 { font-size: 1.6rem; letter-spacing: 1px; font-weight: 600; color: #f6c90e; }
nav { display: flex; align-items: center; gap: 0.75rem; justify-content: flex-end; justify-self: end; }
.header-logo { justify-self: start; }
.header-logo img { height: 58px; width: auto; }
.header-center { display: flex; justify-content: center; align-items: center; }
.global-search { display:flex; align-items:center; gap:.5rem; width:100%; max-width:520px; }
.global-search input[type=text]{flex:1;min-width:0;width:100%;padding:.55rem .75rem;border:1px solid #333;border-radius:.4rem;background:#181818;color:#eee;font-size:.9rem;}
.global-search button{background:#f6c90e;color:#000;border:none;padding:.55rem .9rem;border-radius:.4rem;font-weight:600;cursor:pointer;font-size:.85rem;display:flex;align-items:center;justify-content:center;height:100%;}
.global-search button:hover{background:#ffde50;}
nav a { color: #fff; text-decoration: none; transition: color .2s; font-weight: 500; }
nav a:hover { color: #f6c90e; }

.crown-icon { width: 18px; height: 18px; margin-right: .25rem; vertical-align: middle; }
.nav-primary { display:flex; align-items:center; gap:.5rem; }
@media (max-width: 1024px){
	.nav-primary { display:none; }
	.user-menu { display:none !important; }
	.nav-sep { display:none !important; }
	.hello-only { display:none !important; }
	nav { justify-content:flex-end; gap:.45rem; }
	.lang-switcher { display:none !important; }
	.mobile-lang-section { display:block !important; }
	.mobile-lang-item { display:flex !important; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; }
}

@media (max-width: 820px){
	header { grid-template-columns: auto 1fr auto; padding: .7rem 1.4rem .7rem 1.1rem; column-gap: .8rem; }
	.header-logo { justify-self: start; }
	.header-logo img { height: 54px; }
	.logo-text { font-size: .7rem; }
	.header-center { justify-content:flex-start; width:100%; }
	.global-search { max-width:340px; }
	.global-search input[type=text]{ width:100%; }
	.global-search button{ font-size:.88rem; padding:.55rem .8rem; }
	.lang-switcher { margin-left:.4rem; margin-right:.3rem; }
	nav { justify-content:flex-end; gap:.5rem; }
}

	@media (max-width: 860px){
		.header-center { display:none; }
		.header-logo { flex-direction: row; align-items: center; width: 100%; }
		.header-logo img { height: 48px; }
		.logo-text-desktop { display: none; }
		.logo-text-mobile { display: block; font-size: 1.55rem; letter-spacing: .12em; line-height: 1; color: #d4a017; font-weight: 800; text-transform: uppercase; text-shadow: 0 2px 8px rgba(212,160,23,.5); justify-self: end; margin-left: auto; margin-right: .1rem; white-space: nowrap; text-align: right; }
	}

@media (max-width: 640px){
	header { padding: .65rem 1.2rem .65rem .8rem; column-gap: .5rem; }
	.header-logo { flex-direction: row; }
	.header-logo img { height: 46px; }
	.logo-text-mobile { font-size: 1.45rem; letter-spacing: .11em; }
	.global-search { gap:.4rem; max-width:260px; }
	.global-search button{ padding:.5rem .75rem; font-size:.85rem; }
	nav { justify-content:flex-end; gap:.45rem; }
}

/* === USER DROPDOWN MENU === */
.user-menu { position: relative; display: inline-block; }
.user-button { background: transparent; border: none; color: #fff; font-weight: 500; cursor: pointer; padding: .5rem 1rem; border-radius: .3rem; transition: all .2s; font-family: inherit; font-size: inherit; display: flex; align-items: center; gap: 0.5rem; }
.badge-admin { background: #f6c90e; color: #000; font-size: .75rem; padding: .1rem .4rem; border-radius: .25rem; font-weight: 700; }
.user-button:hover { background: rgba(246,201,14,.1); color: #f6c90e; }
.dropdown-arrow { font-size: 0.7rem; transition: transform 0.2s; }
.user-button:hover .dropdown-arrow { transform: translateY(2px); }
.dropdown-menu { display: none; position: absolute; top: 100%; right: 0; background: #1a1a1a; border: 1px solid #333; border-radius: .5rem; min-width: 250px; box-shadow: 0 8px 25px rgba(0,0,0,.6); margin-top: .5rem; z-index: 1000; overflow: hidden; }
.dropdown-menu.show { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-item { display: block; padding: .8rem 1.2rem; color: #ccc; text-decoration: none; transition: all .2s; border-bottom: 1px solid #282828; font-size: .95rem; }
.dropdown-item:hover { background: rgba(246,201,14,.1); color: #f6c90e; padding-left: 1.5rem; }
.dropdown-divider { height: 2px; background: #333; margin: .3rem 0; }

/* === LANGUAGE DROPDOWN === */
.lang-switcher { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-left: .6rem; margin-right: .32rem; order: 9; }
.lang-button { background: transparent; border: none; color: #fff; font-weight: 500; cursor: pointer; padding: .5rem 1rem; border-radius: .3rem; transition: all .2s; font-family: inherit; font-size: inherit; display: flex; align-items: center; gap: 0.5rem; }
.lang-button:hover { background: rgba(246,201,14,.1); color: #f6c90e; }
.lang-dropdown { display: none; position: absolute; top: 100%; right: 0; background: #1a1a1a; border: 1px solid #333; border-radius: .5rem; min-width: 150px; box-shadow: 0 8px 25px rgba(0,0,0,.6); margin-top: .5rem; z-index: 1000; overflow: hidden; }
.lang-dropdown.show { display: block; animation: fadeIn .2s ease; }
.lang-option { display: block; padding: .8rem 1.2rem; color: #ccc; text-decoration: none; transition: all .2s; font-size: .95rem; }
.lang-option:hover { background: rgba(246,201,14,.1); color: #f6c90e; padding-left: 1.5rem; }
.lang-option.active { background: rgba(246,201,14,.2); color: #f6c90e; font-weight: 600; }
.hello-only { display: none; }
.badge-admin { display: none; }
main { 
	width: 100%;
	padding-top: 110px;   
	position: absolute;
	top: 0;
	left: 50%;
	transform: translate(-50%);
}

/* Increase padding on mobile to account for browser chrome */
@media (max-width: 640px) {
	main { padding-top: 90px; }
}

/* Hide header's global search when a dedicated search screen is active (large screens only) */
	.rating-input input[type=number]{min-width:96px;font-size:15px}
	.rating-input{gap:0.6rem}
	.form-box .form-group select{font-size:15px;padding:0.95rem 1.1rem;white-space:normal;line-height:1.35}
@media (min-width: 900px){
	body.has-search header .global-search { display: none; }
}

@media (max-width: 840px){
	.auth-shell{padding:1.5rem;}
	.auth-card,.login-box,.register-box{width:100%;padding:2rem 1.5rem;box-shadow:0 10px 32px rgba(0,0,0,.45);}
	.auth-card button[type="submit"],.login-box button[type="submit"],.register-box button[type="submit"]{font-size:1rem;padding:.9rem 1.5rem;}
}


@media (max-width: 600px) {
	main { padding-top: 80px; padding-left: .75rem; padding-right: .75rem; }
}



/* === Global tables (moved from inline styles) === */
.table-container{max-width:100%;width:100%;margin:0;padding:0 0.5rem 5rem 0.5rem;overflow-x:auto}
.table{border-collapse:separate;border-spacing:0;width:auto;min-width:100%;margin:2rem 0;font-size:.95rem;box-shadow:0 4px 12px rgba(0,0,0,.3);border-radius:.5rem;overflow:hidden;background:#111}
.table th,.table td{padding:.9rem 1rem;text-align:center;vertical-align:middle;border-bottom:1px solid #2a2a2a;white-space:nowrap}
.table th{background:linear-gradient(135deg,#f6c90e,#e6b800);color:#000;font-weight:700;text-transform:uppercase;letter-spacing:.5px;font-size:.85rem;position:sticky;top:0;z-index:10;border-bottom:2px solid #d4a800}
.table th:first-child{border-top-left-radius:.5rem}
.table th:last-child{border-top-right-radius:.5rem}
.table td{background:#1a1a1a;color:#e0e0e0}
.table tbody tr{transition:background-color .2s ease}
.table tbody tr:hover td{background:#252525}
.table tbody tr:last-child td{border-bottom:none}
.table tbody tr:last-child td:first-child{border-bottom-left-radius:.5rem}
.table tbody tr:last-child td:last-child{border-bottom-right-radius:.5rem}
.table td.text-left{text-align:left}
.highlight,.table-header-gold{background:#f6c90e!important;color:#000!important;font-weight:700}

/* Responsive tables for small screens */
@media (max-width:1100px){
  .table-container{padding:0 .5rem 5rem}
  .table{font-size:.85rem;margin:1rem 0;display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:.4rem}
  .table th,.table td{padding:.7rem .6rem}
  .table th{font-size:.8rem}
}
@media (max-width:640px){
  .table-container{padding:0 .3rem 5rem}
  .table{font-size:.75rem;margin:.8rem auto}
  .table th,.table td{padding:.5rem .4rem;font-size:.75rem}
  .table th{letter-spacing:0;font-size:.7rem}
}

/* Raw table */
.raw-wrapper{max-width:100%;width:100%;margin:0;padding:0 0.5rem 5rem 0.5rem;overflow-x:auto}
.raw-table{border-collapse:separate;border-spacing:0;width:auto;min-width:100%;margin:1rem 0;font-size:.95rem;box-shadow:0 4px 12px rgba(0,0,0,.3);border-radius:.5rem;overflow:hidden;background:#111}
.raw-table th,.raw-table td{padding:.9rem 1rem;border-bottom:1px solid #2a2a2a;text-align:center;vertical-align:middle;white-space:nowrap}
.raw-table th{background:linear-gradient(135deg,#f6c90e,#e6b800);color:#000;font-weight:700;text-transform:uppercase;letter-spacing:.5px;font-size:.85rem;position:sticky;top:0;z-index:10;border-bottom:2px solid #d4a800}
.raw-table th:first-child{border-top-left-radius:.5rem}
.raw-table th:last-child{border-top-right-radius:.5rem}
.raw-table td{background:#1a1a1a;color:#e0e0e0}
.raw-table tbody tr{transition:background-color .2s ease}
.raw-table tbody tr:hover td{background:#252525}
.raw-table tbody tr:last-child td{border-bottom:none}
.raw-table tbody tr:last-child td:first-child{border-bottom-left-radius:.5rem}
.raw-table tbody tr:last-child td:last-child{border-bottom-right-radius:.5rem}
.raw-highlight{background:#f6c90e!important;color:#000!important;font-weight:700}

@media (max-width:1100px){
  .raw-wrapper{padding:0 .5rem}
  .raw-table{font-size:.85rem;display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .raw-table th,.raw-table td{padding:.7rem .6rem;white-space:nowrap}
}
@media (max-width:640px){
  .raw-table{font-size:.75rem}
  .raw-table th,.raw-table td{padding:.5rem .4rem}
}

/* Bottom sheet tabs used in stats pages */
.sheet-tabs{position:fixed;left:0;right:0;bottom:0;z-index:1400;background:rgba(8,8,8,0.95);padding:.35rem .5rem;display:flex;gap:.4rem;align-items:stretch;justify-content:flex-start;border-top:1px solid rgba(255,255,255,0.03);box-shadow:0 -6px 18px rgba(0,0,0,0.35);width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.sheet-tabs .sheet-tab{flex:0 0 auto;display:flex;align-items:center}
main{padding-bottom:140px}
.sheet-tab{background:#1a1a1a;color:#ccc;border:1px solid #333;border-bottom:none;border-radius:.5rem .5rem 0 0;padding:.5rem 1rem;text-decoration:none;height:100%;display:flex;align-items:center;justify-content:center}
.sheet-tab.active{background:#f6c90e;color:#000;font-weight:700}

/* === Stats: small-screen responsiveness === */
@media (max-width: 720px){
	/* Compress tables for readability and fit */
	.table, .raw-table{ font-size: .82rem; display:block; overflow-x:auto; white-space:nowrap; }
	.table th, .table td, .raw-table th, .raw-table td{ padding: .35rem .45rem; }
	.table th, .raw-table th{ font-size: .86rem; }
	/* Compact year selector */
	.year-selector-wrap{ margin:.6rem 0; }
	.year-selector-select{ padding:.4rem .55rem; font-size:.9rem; }
	/* Smaller bottom tabs */
	.sheet-tab{ padding:.4rem .6rem; font-size:.9rem; }
}
@media (max-width: 480px){
	.table, .raw-table{ font-size: .78rem; }
	.table th, .table td, .raw-table th, .raw-table td{ padding: .3rem .35rem; }
	.sheet-tab{ padding:.35rem .5rem; font-size:.84rem; }
}

/* Views summary panels */
.summary{max-width:1400px;margin:1rem auto;background:#111;border:1px solid #333;border-radius:.5rem;padding:1rem}
.summary h3{margin:0 0 .5rem 0}
.summary-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:.5rem}
.summary-item{background:#1a1a1a;border:1px solid #333;border-radius:.3rem;padding:.5rem}
.summary-item strong{display:block;color:#f6c90e;margin-bottom:.25rem}
@media (max-width: 960px){ .summary-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px){ .summary-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 420px){ .summary-grid{ grid-template-columns: 1fr; } }

/* Compact stats view (dropdown lists) */
.stats-dashboard{max-width:900px;margin:0 auto;padding:0 .5rem 5rem}
.stats-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.stats-title{margin:0;font-size:1.4rem;color:#f6c90e}
.stats-sub{margin:.1rem 0 0;color:#aaa;font-size:.95rem}
.stats-accordion{display:flex;flex-direction:column;gap:.75rem}
.stat-card{background:#111;border:1px solid #2a2a2a;border-radius:.75rem;overflow:hidden;box-shadow:0 12px 24px rgba(0,0,0,.35)}
.stat-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.9rem 1rem;background:#181818;color:#f6c90e;border:none;font-weight:700;text-align:left;cursor:pointer;transition:background .15s ease,color .15s ease}
.stat-toggle .chevron{transition:transform .2s ease}
.stat-toggle[aria-expanded="true"]{background:#f6c90e;color:#000}
.stat-toggle[aria-expanded="true"] .chevron{transform:rotate(180deg)}
.stat-toggle[aria-expanded="false"]{background:#181818;color:#f6c90e}
.stat-content{display:none;padding:.25rem 1rem 1rem;background:#0f0f0f;border-top:1px solid #242424}
.stat-content.open{display:block}
.ranked-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.45rem}
.stat-line{display:flex;align-items:flex-start;gap:.65rem}
.stat-line-with-poster{align-items:center}
.stat-poster{width:60px;height:90px;object-fit:cover;border-radius:.4rem;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.5)}
.stat-poster-empty{width:60px;height:90px;display:flex;align-items:center;justify-content:center;background:#222;border-radius:.4rem;font-size:1.8rem;flex-shrink:0}
.rank{background:#f6c90e;color:#000;font-weight:800;min-width:34px;text-align:center;border-radius:.45rem;padding:.3rem .45rem;font-size:.9rem}
.stat-main{flex:1;min-width:0}
.stat-title{font-weight:700;margin-bottom:.2rem}
.stat-title .muted{color:#888;font-weight:400}
.stat-meta{color:#bdbdbd;font-size:.9rem}
.stat-empty{margin:.6rem 0;color:#888}
.stat-nested-card{border-top:1px solid #1a1a1a;margin-top:.5rem}
.stat-nested-card:first-child{border-top:none;margin-top:0}
.stat-nested-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.7rem .8rem;background:#141414;color:#d4af37;border:none;font-weight:600;text-align:left;cursor:pointer;transition:background .2s}
.stat-nested-toggle:hover{background:#1a1a1a}
.stat-nested-toggle .chevron{transition:transform .2s ease;font-size:.85rem}
.stat-nested-toggle[aria-expanded="true"] .chevron{transform:rotate(180deg)}
.stat-nested-content{display:none;padding:.5rem .8rem .8rem;background:#0a0a0a}
.stat-nested-content.open{display:block}
.juror-header{display:flex;align-items:center;gap:.5rem}
.juror-rank{background:#d4af37;color:#000;font-weight:800;min-width:28px;text-align:center;border-radius:.3rem;padding:.2rem .35rem;font-size:.85rem}
.juror-name{font-weight:700}
.juror-stats-inline{color:#999;font-size:.85rem;font-weight:400}
.juror-details{padding:.5rem 0}
.juror-stats{display:flex;gap:1.5rem;margin-bottom:1rem;padding:.7rem;background:#111;border-radius:.4rem}
.juror-stat-item{display:flex;flex-direction:column;gap:.2rem}
.juror-stat-item .stat-label{color:#888;font-size:.85rem}
.juror-stat-item .stat-value{color:#d4af37;font-weight:700;font-size:1.1rem}
.juror-titles h4{color:#d4af37;margin:1rem 0 .5rem;font-size:1rem}
.titles-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}
.titles-list li{display:flex;flex-direction:column;gap:.4rem;padding:.5rem .6rem;background:#111;border-radius:.3rem}
.title-header{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.title-name{flex:1;min-width:0;color:#fff}
.title-name .muted{color:#888;font-size:.9rem}
.title-rating{color:#f6c90e;font-weight:600;font-size:.9rem;white-space:nowrap}
.title-details{display:flex;flex-wrap:wrap;gap:.4rem}
.detail-badge{background:#222;color:#d4af37;padding:.25rem .5rem;border-radius:.25rem;font-size:.8rem;font-weight:500}
/* Movie Modal */
.movie-modal{display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000}
.movie-modal.open{display:flex}
.movie-modal-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.7);backdrop-filter:blur(4px)}
.movie-modal-content{position:relative;background:#111;border:1px solid #2a2a2a;border-radius:.75rem;max-height:90vh;width:90%;max-width:900px;margin:auto;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.8)}
.movie-modal-close{position:absolute;top:1rem;right:1rem;background:none;border:none;color:#888;font-size:1.8rem;cursor:pointer;z-index:10;transition:color .2s}
.movie-modal-close:hover{color:#fff}
.modal-header{display:flex;gap:2rem;padding:2rem;border-bottom:1px solid #242424;align-items:flex-start}
.modal-poster{width:200px;height:300px;object-fit:cover;border-radius:.5rem;flex-shrink:0;box-shadow:0 4px 12px rgba(0,0,0,.5)}
.modal-poster-empty{width:200px;height:300px;display:flex;align-items:center;justify-content:center;background:#222;border-radius:.5rem;font-size:3rem;flex-shrink:0}
.modal-info{flex:1}
.modal-info h2{color:#d4af37;margin:0 0 .5rem;font-size:1.8rem}
.modal-year{color:#888;margin:0 0 1.5rem;font-size:1.1rem}
.modal-stats{display:flex;gap:2rem;margin-top:1rem}
.modal-stat{display:flex;flex-direction:column;gap:.3rem}
.modal-stat .label{color:#888;font-size:.9rem}
.modal-stat .value{color:#d4af37;font-weight:700;font-size:1.3rem}
.modal-votes{padding:2rem}
.modal-votes h3{color:#d4af37;margin:0 0 1.5rem;font-size:1.3rem}
.votes-detail-table{width:100%;border-collapse:collapse;background:#0f0f0f;font-size:.9rem}
.votes-detail-table th{background:#181818;color:#d4af37;padding:.8rem;text-align:left;font-weight:600;border-bottom:1px solid #2a2a2a}
.votes-detail-table td{padding:.7rem .8rem;border-bottom:1px solid #1a1a1a;color:#bdbdbd}
.votes-detail-table tbody tr:hover{background:#1a1a1a}
.votes-detail-table .juror-name{color:#fff;font-weight:600}
.votes-detail-table .overall-rating{color:#d4af37;font-weight:700}
.movie-link{cursor:pointer;transition:all .2s;text-decoration:none;color:inherit}
.movie-link:hover{opacity:.8}
@media (max-width: 768px){
	.modal-header{flex-direction:column;gap:1rem}
	.modal-poster{width:150px;height:225px}
	.modal-poster-empty{width:150px;height:225px;font-size:2rem}
	.modal-stats{flex-direction:column;gap:1rem}
	.votes-detail-table{font-size:.75rem}
	.votes-detail-table th,.votes-detail-table td{padding:.4rem .5rem}
}
@media (max-width: 640px){
	.stats-dashboard{padding:0 .25rem 4rem}
	.stat-toggle{padding:.8rem .85rem;font-size:1rem}
	.rank{min-width:30px}
	.stat-nested-toggle{padding:.65rem .7rem;font-size:.95rem}
	.juror-stats{flex-direction:column;gap:.8rem}
	.titles-list li{flex-direction:column;align-items:flex-start;gap:.3rem}
	.stat-poster{width:50px;height:75px}
	.stat-poster-empty{width:50px;height:75px;font-size:1.5rem}
	.title-header{flex-direction:column;align-items:flex-start}
	.title-details{gap:.3rem}
	.detail-badge{font-size:.75rem;padding:.2rem .4rem}
}

/* Home page carousels (moved from index.php) */
.home-section{max-width:1200px;margin:1rem auto 2rem;padding:0 1rem}
.home-section h2{color:#f6c90e;margin:.5rem 0 1rem;font-size:1.3rem}
.movie-row-wrap{position:relative;margin-bottom:1.5rem;max-width:100%;overflow:hidden}
.movie-row{display:flex;gap:.9rem;overflow-x:auto;padding:1.5rem 0.5rem 1rem .5rem;scroll-snap-type:x mandatory;scroll-behavior:smooth;width:100%;}
.movie-row .movie-card{flex:0 0 200px;scroll-snap-align:start}
.movie-row img{height:260px}
.movie-row::-webkit-scrollbar{height:8px;background:rgba(0,0,0,.3)}
.movie-row::-webkit-scrollbar-track{background:#0a0a0a;border-radius:4px;margin:0 .5rem}
.movie-row::-webkit-scrollbar-thumb{background:linear-gradient(135deg,#f6c90e,#ffde50);border-radius:4px;border:1px solid rgba(0,0,0,.3)}
.movie-row::-webkit-scrollbar-thumb:hover{background:linear-gradient(135deg,#ffde50,#f6c90e);box-shadow:0 0 8px rgba(246,201,14,.4)}
.row-nav{position:absolute;top:35%;transform:translateY(-50%);background:rgba(0,0,0,.55);border:1px solid #333;color:#fff;width:36px;height:64px;border-radius:.4rem;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2}
.row-nav:hover{background:rgba(0,0,0,.75)}
.row-nav[disabled]{opacity:.35;cursor:default}
.row-nav.prev{left:-6px}
.row-nav.next{right:-6px}
.row-fade{position:absolute;top:0;bottom:8px;width:50px;pointer-events:none;z-index:1}
.row-fade.left{left:0;background:linear-gradient(90deg,rgba(17,17,17,1) 0%,rgba(17,17,17,0) 100%)}
.row-fade.right{right:0;background:linear-gradient(270deg,rgba(17,17,17,1) 0%,rgba(17,17,17,0) 100%)}

/* Small screens: edge-to-edge carousels + no arrows */
@media (max-width: 720px){
	/* Remove side padding to eliminate black edges */
	.home-section{ padding: 0; }
	.movie-row{ padding: 0 .05rem .55rem; gap: .55rem; }
	/* Smaller cards to fit more items */
	.movie-row .movie-card{ flex: 0 0 150px; }
	.movie-row .movie-card img{ height: 200px; }
	.movie-row .movie-info{ padding: .55rem; }
	.movie-row .movie-title{ 
		font-size: .95rem; 
	}
	.movie-row .movie-year{ font-size: .75rem; }
	.movie-row .vote-btn{ font-size: .8rem; padding: .25rem .55rem; }
	/* Hide gradient fades and nav arrows on mobile */
	.row-fade{ display: none !important; }
	.row-nav{ display: none !important; }
}
@media (max-width: 480px){
	.movie-row{ padding: 0 .02rem .5rem; gap: .35rem; }
	/* Even more compact on very small screens */
	.movie-row .movie-card{ flex: 0 0 120px; }
	.movie-row .movie-card img{ height: 170px; }
	.movie-row .movie-info{ padding: .45rem; }
	.movie-row .movie-title{ font-size: .84rem; }
	.movie-row .movie-year{ font-size: .68rem; }
	.movie-row .vote-btn{ font-size: .72rem; padding: .2rem .48rem; }
}

/* Search screen (moved from index.php) */
.search-screen{max-width:640px;margin:2.6rem auto 1.8rem;padding:1.9rem 1.7rem 2.2rem;background:rgba(12,12,12,0.88);border-radius:1.6rem;box-shadow:0 18px 42px rgba(0,0,0,.48);backdrop-filter:blur(10px);text-align:center}
.search-screen__form{display:flex;align-items:center;gap:.75rem}
.search-screen__form input{flex:2;padding:.75rem 1.25rem;border-radius:.6rem;border:1px solid #2d2d2d;background:rgba(20,20,20,0.95);color:#fff;font-size:1rem;box-shadow:inset 0 0 0 1px rgba(255,255,255,0.03)}
.search-screen__form input:focus{outline:2px solid rgba(246,201,14,0.55);border-color:rgba(246,201,14,0.55)}
.search-screen__form button{flex:1;background:linear-gradient(135deg,#f8523b,#f6c90e);color:#000;border:none;padding:.75rem 1.4rem;border-radius:.6rem;cursor:pointer;font-weight:700;text-transform:uppercase;letter-spacing:.04em;transition:transform .2s ease, box-shadow .2s ease;white-space:nowrap}
.search-screen__form button:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(248,82,59,0.35)}
.search-screen__hint{margin-top:1.2rem;color:#a7a7a7;font-size:.95rem}
.search-screen__meta{margin-top:1.2rem;color:#f6c90e;font-size:.95rem;font-weight:600;letter-spacing:.03em}
.search-screen__meta span{display:inline-block;margin-left:.35rem;color:#fff}
.search-empty{text-align:center;color:#b3b3b3;margin:0 auto 3rem;max-width:520px;font-size:.95rem}

/* Tighten layout on narrow screens so the search bar and button stack cleanly */
@media (max-width: 540px){
	.search-screen{margin:1.2rem .7rem 1rem;padding:1.25rem 1.05rem 1.5rem;border-radius:1.1rem}
	.search-screen__form{flex-direction:column;align-items:stretch;gap:.6rem}
	.search-screen__form input,
	.search-screen__form button{width:100%;font-size:.98rem}
	.search-screen__form button{padding:.72rem 1rem}
	.search-screen__hint{font-size:.9rem}
}

/* Search loading indicator */
.search-loading{margin-top:2rem;text-align:center;color:#f6c90e}
.search-loading p{margin-top:1rem;font-size:1rem;font-weight:600}
.spinner{border:4px solid rgba(246,201,14,.2);border-top:4px solid #f6c90e;border-radius:50%;width:50px;height:50px;animation:spin 1s linear infinite;margin:0 auto}
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}

/* Movies grid/cards (from index.php) */
.movies-container{display:grid;grid-template-columns:repeat(auto-fill,240px);justify-content:center;gap:1.5rem;padding:2rem;max-width:1200px;margin:auto}
@media (max-width:1100px){
  .movies-container{grid-template-columns:repeat(4,1fr);gap:1rem;padding:1rem}
}
@media (max-width:640px){
  .movies-container{grid-template-columns:repeat(4,1fr);gap:.6rem;padding:.6rem}
}
.movie-card{background:#111;border-radius:.75rem;overflow:hidden;box-shadow:0 4px 15px rgba(0,0,0,.4);transition:transform .3s ease, box-shadow .3s ease;position:relative;display:flex;flex-direction:column;height:100%}
.movie-card:hover{transform:translateY(-6px);box-shadow:0 6px 25px rgba(246,201,14,.4)}
.movie-card .movie-link{position:relative;display:flex;flex-direction:column;flex:1;cursor:pointer}
.movie-card img{width:100%;height:240px;object-fit:cover;display:block;flex-shrink:0;background:linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%)}
.movie-card img[src*="no-poster"],.movie-card img[src*="svg"]{background:linear-gradient(135deg, #f6c90e 0%, #ffa500 50%, #ff6b6b 100%);display:flex;align-items:center;justify-content:center;font-size:3rem;color:rgba(0,0,0,.1);content:"📽️"}
@media (max-width:1100px){
  .movie-card img{height:200px}
  .movie-info{padding:.5rem}
  .movie-title{font-size:.9rem}
  .movie-year{font-size:.75rem}
  .vote-btn{font-size:.8rem;padding:.25rem .5rem}
}
@media (max-width:640px){
  .movie-card{border-radius:.5rem}
  .movie-card img{height:160px}
  .movie-info{padding:.4rem}
  .movie-title{font-size:.8rem;line-height:1.1}
  .movie-year{font-size:.7rem}
  .vote-btn{font-size:.72rem;padding:.2rem .4rem}
}
.comp-badge{position:absolute;top:8px;left:8px;padding:.2rem .45rem;border-radius:.35rem;font-size:.68rem;font-weight:700;letter-spacing:.02em;z-index:2;user-select:none;pointer-events:none}
.comp-badge.in{background:rgba(40,167,69,.9);color:#fff;border:1px solid rgba(255,255,255,.15)}
.comp-badge.out{background:rgba(108,117,125,.85);color:#fff;border:1px solid rgba(255,255,255,.12)}
.movie-card .movie-link img{position:relative;z-index:1}
.season-badge{position:absolute;top:232px;left:8px;padding:.3rem .5rem;border-radius:.35rem;font-size:.75rem;font-weight:700;background:rgba(246,201,14,.95);color:#000;z-index:3;user-select:none;box-shadow:0 2px 8px rgba(0,0,0,.4);pointer-events:none}
@media (max-width:1100px){
  .season-badge{top:192px;font-size:.7rem;padding:.25rem .45rem}
}
@media (max-width:640px){
  .season-badge{top:152px;font-size:.65rem;padding:.2rem .4rem}
}
.movie-info{padding:.7rem;display:flex;flex-direction:column;gap:.3rem;flex:1;background:linear-gradient(180deg, rgba(17,17,17,.7) 0%, #111 50%, #0a0a0a 100%)}
.movie-title{
	font-size:1rem;font-weight:600;margin-bottom:.15rem;color:#fff;line-height:1.2;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;  
	overflow: hidden;
	min-height:2.4em;
}
.movie-year{color:#f6c90e;font-size:.8rem;margin-bottom:.3rem;font-weight:500}
.vote-btn{display:inline-block;padding:.3rem .7rem;background:#f6c90e;color:#000;border-radius:.3rem;font-weight:600;text-decoration:none;transition:background .2s;margin:0.5rem;font-size:.85rem;align-self:center;box-shadow:0 4px 12px rgba(246,201,14,.25)}
.vote-btn:hover{background:#ffde50;box-shadow:0 6px 18px rgba(246,201,14,.35)}

/* Vote page (moved from vote.php) */
.vote-container{max-width:1100px;margin:1.25rem auto;padding:0 0.75rem;width:100%}
.movie-header{background:#111;border-radius:.75rem;padding:2rem;margin-bottom:2rem;box-shadow:0 4px 20px rgba(0,0,0,.5);display:flex;gap:2rem;align-items:flex-start}
.movie-header img{width:150px;height:220px;object-fit:cover;border-radius:.5rem}
.movie-info h2{color:#f6c90e;font-size:2rem;margin-bottom:.5rem}
.movie-info .year{color:#999;font-size:1.2rem}
.form-box{background:#111;border-radius:.75rem;padding:1.5rem;box-shadow:0 4px 20px rgba(0,0,0,.5)}
.form-box h3{color:#f6c90e;margin-bottom:1.5rem;font-size:1.5rem;border-bottom:2px solid #f6c90e;padding-bottom:.5rem}
.form-box .form-group{margin-bottom:2rem}
.form-box .form-group label{display:block;color:#f6c90e;font-weight:600;margin-bottom:.7rem;font-size:1.05rem}
.form-box .form-group label .required{color:#ff4444}
.form-box .form-group select,.form-box .form-group input[type=text],.form-box .form-group input[type=number]{width:100%;padding:.85rem 1rem;border:1px solid #333;border-radius:.3rem;background:#1a1a1a;color:#fff;font-size:1rem;line-height:normal;font-family:inherit;min-height:48px;text-shadow:none;vertical-align:middle}
.form-box .form-group select{appearance:auto;-webkit-appearance:menulist;-moz-appearance:menulist}
.form-box .form-group select option{color:#000;background:#fff}
.form-box .form-group select:focus,.form-box .form-group input:focus{outline:none;border-color:#f6c90e;box-shadow:0 0 0 2px rgba(246,201,14,.2)}
.radio-group{display:flex;flex-direction:column;gap:.7rem}
.radio-option{display:flex;align-items:center;padding:.7rem;background:#1a1a1a;border-radius:.3rem;cursor:pointer;transition:all .2s}
.radio-option:hover{background:#222;border-left:3px solid #f6c90e;padding-left:calc(.7rem + 3px)}
.radio-option input[type=radio]{margin-right:.7rem;width:18px;height:18px;cursor:pointer}
.comp-status-display{width:100%;padding:1rem;border:1px solid #333;border-radius:.5rem;background:#1a1a1a;color:#fff;font-size:1rem;font-family:inherit;display:flex;align-items:flex-start;line-height:1.3;min-height:60px}
.rating-input{display:flex;align-items:center;gap:1rem}
.rating-input input[type=number]{width:100%;text-align:center;font-size:1rem;padding:.8rem;border:1px solid #333;border-radius:.3rem;background:#1a1a1a;color:#fff;font-family:inherit;height:48px;min-width:90px}
.rating-hint{color:#888;font-size:.9rem;font-style:italic}
.submit-section{margin-top:2.5rem;display:flex;gap:1rem}
.submit-section button,.submit-section .btn{text-align:center;flex:1}
.btn.secondary{background:#444;color:#fff}
.btn.secondary:hover{background:#555}
.helper-text{color:#888;font-size:.85rem;margin-top:.3rem}

@media (max-width: 768px){
	.movie-header{flex-direction:column;align-items:center;text-align:center}
	.vote-container{padding:0 0.5rem}
	.form-box{padding:1.25rem}
	.submit-section{flex-direction:column}
	button,.btn{width:100%}
	.rating-input input[type=number]{min-width:96px;font-size:15px}
	.rating-input{gap:0.6rem}
	.form-box .form-group select{font-size:15px;padding:.85rem 1rem;min-height:46px}
}

/* Auth pages (login/register) headings */
.login-box h2,.register-box h2{color:#f6c90e;margin:0 0 2rem 0;font-size:2.5rem;text-align:center;font-weight:800;letter-spacing:-.02em;text-shadow:0 4px 16px rgba(246,201,14,.3)}
@media (max-width:840px){.login-box h2,.register-box h2{font-size:2rem;margin-bottom:1.5rem}}

/* Settings page */
.settings-box{max-width:720px;margin:2rem auto;background:#111;padding:1.5rem;border-radius:.5rem}
.settings-box label{display:block;color:#f6c90e;margin-bottom:.5rem}
.settings-box input{width:100%;padding:.6rem;border-radius:.3rem;border:1px solid #333;background:#1a1a1a;color:#fff}
.settings-box button{margin-top:1rem;padding:.6rem 1.2rem;background:#f6c90e;border:none;border-radius:.3rem}

/* Profile page */
.profile-container{flex:1;padding:2rem;max-width:800px;margin:auto;width:100%}
.profile-box{background:#111;border-radius:.75rem;padding:2rem;box-shadow:0 4px 20px rgba(0,0,0,.5);margin-bottom:2rem}
.profile-box h2{color:#f6c90e;margin-bottom:1.5rem;font-size:1.8rem}
.profile-info{display:grid;gap:1.5rem}
.info-card{background:#1a1a1a;padding:1.5rem;border-radius:.5rem;border-left:4px solid #f6c90e}
.info-card h3{color:#f6c90e;font-size:1rem;margin-bottom:.5rem;text-transform:uppercase;letter-spacing:1px}
.info-card p{color:#ccc;font-size:1.1rem}
.success{background:#1a5;color:#efe;padding:.8rem;border-radius:.3rem;margin-bottom:1rem}
.grid-2{display:grid;grid-template-columns:1fr;gap:1rem}
@media(min-width:720px){.grid-2{grid-template-columns:1fr 1fr}}
.profile-box form{display:flex;flex-direction:column;gap:1.2rem}
.profile-box form label{display:flex;flex-direction:column;gap:.5rem;color:#ddd;font-weight:600;font-size:.95rem}
.profile-box form input{background:#0a0a0a;border:2px solid #222;border-radius:.5rem;padding:.85rem 1rem;color:#fff;font-size:1rem;transition:all .3s ease}
.profile-box form input:focus{outline:none;border-color:#f6c90e;box-shadow:0 0 0 3px rgba(246,201,14,.1)}
.profile-box form button[type="submit"]{background:linear-gradient(135deg,#f6c90e,#ffde50);color:#000;border:none;border-radius:.5rem;padding:.85rem 2rem;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease;text-transform:uppercase;letter-spacing:.05em;box-shadow:0 4px 16px rgba(246,201,14,.3);text-align:center}
.profile-box form button[type="submit"]:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(246,201,14,.4)}
.profile-box form .btn.secondary{background:transparent;border:2px solid #333;color:#fff;text-align:center;padding:.75rem 2rem;border-radius:.5rem;text-decoration:none;font-weight:600;transition:all .3s ease;display:inline-block;cursor:pointer}
.profile-box form .btn.secondary:hover{border-color:#f6c90e;color:#f6c90e;background:rgba(246,201,14,.05)}
.profile-box .form-actions{display:flex;gap:1rem;margin-top:.5rem}
.profile-box .form-actions button,.profile-box .form-actions .btn{flex:1;margin:0}
.profile-spacing{display:flex;gap:.6rem;align-items:center;justify-content:center;flex-wrap:nowrap;margin:1.2rem 0 0}
.profile-spacing .btn{flex:0 1 170px;max-width:170px;text-align:center;display:flex;align-items:center;justify-content:center;min-height:36px;padding:.45rem .75rem;margin-right:0;line-height:1.15;border-radius:.45rem;font-size:.86rem;font-weight:700}
.profile-spacing .btn.btn-logout{background:#dc3545;color:#fff}
.profile-spacing .btn.btn-logout:hover{background:#c82333}

/* Profile page: tighter mobile layout & full-width buttons/cards */
@media (max-width: 640px){
	.profile-container{padding:1.1rem .85rem;max-width:520px}
	.profile-box{padding:1.3rem 1.1rem;border-radius:.65rem}
	.profile-box h2{font-size:1.4rem;margin-bottom:1rem}
	.profile-info{gap:1rem}
	.info-card{padding:1.05rem;border-radius:.45rem}
	.profile-spacing{flex-direction:row;align-items:center;justify-content:center;gap:.45rem;flex-wrap:nowrap}
	.profile-spacing .btn{flex:1 1 calc(50% - .225rem);max-width:148px;width:auto;text-align:center;margin-right:0;min-height:34px;padding:.42rem .65rem;font-size:.8rem}
	.lang-buttons{flex-direction:column}
	.lang-btn{width:100%}
	.profile-box .form-actions{flex-direction:column}
	.profile-box .form-actions button,.profile-box .form-actions .btn{width:100%}
}

/* Watchlist */
.watchlist-container{max-width:1400px;margin:2rem auto;padding:0 2rem}
.watchlist-header{margin-bottom:2rem}
.watchlist-header h1{color:#f6c90e;font-size:2.5rem;margin-bottom:.5rem}
.watchlist-header p{color:#999;font-size:1.1rem}
.watchlist-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:2rem;margin-top:2rem}
.watchlist-card{background:#111;border-radius:.75rem;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,0.4);transition:transform .3s ease, box-shadow .3s ease;position:relative}
.watchlist-card:hover{transform:translateY(-6px);box-shadow:0 6px 25px rgba(246,201,14,0.4)}
.watchlist-card img{width:100%;height:300px;object-fit:cover;display:block}
.watchlist-card-content{padding:1rem}
.watchlist-card-content h3{font-size:1rem;color:#fff;margin-bottom:.3rem}
.watchlist-card-content p{margin:.2rem 0;color:#aaa;font-size:.85rem}
.watchlist-actions{display:flex;gap:.5rem;margin-top:1rem}
.btn-secondary{background:#333;color:#fff}
.btn-secondary:hover{background:#444}
.empty-state{text-align:center;padding:4rem 2rem;color:#666}
.empty-state h2{color:#999;font-size:1.8rem;margin-bottom:1rem}
.empty-state p{font-size:1.1rem;margin-bottom:2rem}
.flash{background:#f6c90e;color:#000;padding:1rem;border-radius:.5rem;margin-bottom:1rem;font-weight:600}
.remove-btn{background:#dc3545;color:#fff}
.remove-btn:hover{background:#c82333}

/* === Inline Styles Migration === */
/* Year selector (stats.php) */
.year-selector-wrap { text-align: center; margin: 1rem 0; }
.year-selector-form { display: inline-block; }
.year-selector-label { color: #ddd; margin-right: .5rem; font-weight: 600; }
.year-selector-select { padding: .5rem .6rem; border-radius: .35rem; background: #1a1a1a; color: #fff; border: 1px solid #333; font-weight: 600; cursor: pointer; }
.status-detail-text { 
	margin-top: .8rem; 
	padding: .6rem 1rem; 
	background: #1a1a1a; 
	border: 1px solid #444; 
	border-radius: .35rem; 
	color: #f6c90e; 
	font-weight: 600; 
	font-size: .95rem;
	display: inline-block;
}

@media (max-width: 768px) {
	.year-selector-form { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
	.year-selector-label { display: block; margin: 0; font-size: .9rem; }
	.year-selector-select { margin: 0; width: 100%; max-width: 280px; }
	.status-detail-text { font-size: .88rem; padding: .5rem .8rem; }
}

/* Stats page table headers */
.table-header-gold { background: #ffd700 !important; }

/* Stats page text styles */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-muted { color: #888; }

/* Competitions dropdown (header.php) */
.competitions-dropdown-wrap { position: relative; display: inline-block; }
.competitions-btn { background: transparent; border: none; padding: .5rem 1rem; cursor: pointer; }
.competitions-menu { right: auto; left: 0; min-width: 280px; max-height: 280px; overflow-y: auto; }
.competition-year-row { display: flex; gap: .5rem; align-items: center; padding: .35rem .6rem; }
.competition-year-row.is-active { background: rgba(246,201,14,.08); }
.competition-meta { display: flex; flex-direction: column; gap: .15rem; }
.competition-year-link { flex: 1; text-decoration: none; color: #ddd; }
.competition-dates { color: #888; font-size: .8rem; }
.active-badge { background: #f6c90e; color: #000; font-size: .7rem; padding: .1rem .35rem; border-radius: .3rem; margin-left: .4rem; font-weight: 700; }
.competitions-menu .dropdown-item { padding: .6rem .9rem; font-size: .9rem; }
.admin-form-inline { margin: 0; }
.admin-form-inline.inline-block { display: inline-block; }
.admin-form-flex { margin: 0; padding: .25rem 0.6rem; display: flex; gap: .5rem; align-items: center; }
.admin-btn { background: none; border: none; margin-left: .25rem; }
.admin-btn-star { color: #ffd700; }
.admin-btn-edit { color: #9fd3ff; }
.admin-btn-delete { color: #ffb4b4; }
.admin-btn-create { background: none; border: none; color: inherit; text-align: left; width: 100%; }

/* Vote page season/episode group */
.season-episode-group-hidden { display: none; }

/* Watchlist styles */
.watchlist-date { color: #666; font-size: 0.75rem; }
.watchlist-form-inline { display: inline; }

/* Profile page spacing */
.profile-spacing { margin-top: 1.5rem; display: flex; gap: .6rem; flex-wrap: nowrap; justify-content: center; }
.admin-card { border-left: 4px solid #ffd700 !important; }
.btn-logout { background: #dc3545; }
.btn-logout:hover { background: #c82333; }

/* Profile language section */
.profile-lang-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #333; }
.profile-lang-section h3 { color: #f6c90e; font-size: 1rem; margin-bottom: 1rem; }

/* Language toggle switch */
.lang-switch-container { display: flex; justify-content: flex-start; }
.lang-switch { position: relative; display: inline-flex; background: #1a1a1a; border: 1px solid #333; border-radius: 2rem; padding: 0.25rem; width: 140px; height: 44px; }
.lang-option { flex: 1; display: flex; align-items: center; justify-content: center; text-decoration: none; color: #aaa; font-weight: 600; font-size: 0.9rem; z-index: 2; transition: color 0.3s; position: relative; }
.lang-option.active { color: #000; }
.lang-slider { position: absolute; top: 0.25rem; left: 0.25rem; width: calc(50% - 0.25rem); height: calc(100% - 0.5rem); background: #f6c90e; border-radius: 1.5rem; transition: transform 0.3s ease; z-index: 1; }
.lang-slider.right { transform: translateX(100%); }

/* Fallback for old lang-buttons (backward compatibility) */
.lang-buttons { display: flex; gap: 0.5rem; }
.lang-btn { flex: 1; max-width: 120px; padding: 0.6rem 0.8rem; background: #1a1a1a; border: 1px solid #333; border-radius: 0.5rem; text-align: center; text-decoration: none; color: #aaa; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; }
.lang-btn:hover { background: #222; color: #fff; border-color: #555; }
.lang-btn.active { background: rgba(246,201,14,0.1); color: #f6c90e; border-color: #f6c90e; }

/* Stats raw votes section */
.raw-votes-heading { text-align: center; }

/* Stats adjective message */
.adjective-message { padding: 1rem; background: #111; border: 1px solid #333; border-radius: .5rem; max-width: 1200px; margin: 1rem auto; }

/* Mobile Tabbar and footer adjustments (from footer.php) */
.mobile-tabbar{display:none}
.mobile-tabbar a{text-decoration:none}
@media (max-width:1100px){
	.sheet-tabs{position:fixed;bottom:68px;left:0;right:0;z-index:1499;}
	footer{max-width:none;margin:0;padding:0;background:transparent;border:0}
	main{padding-bottom:150px}
	/* Show toolbar only on small screens */
	.mobile-tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;width:100%;margin:0;justify-content:space-evenly;align-items:center;padding:.55rem 1.1rem .65rem;background:rgba(5,5,5,0.98);border-top:1px solid rgba(255,255,255,0.06);box-shadow:0 -12px 32px rgba(0,0,0,0.6);border-radius:1.35rem 1.35rem 0 0;overflow:hidden;z-index:1500;height:68px;}
	.mobile-tabbar .tab-link{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.35rem 0;gap:.3rem;color:#aaa;font-weight:600;font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;transition:all .3s ease}
	.mobile-tabbar .tab-link .icon{width:2.35rem;height:2.35rem;display:flex;align-items:center;justify-content:center}
	.mobile-tabbar .tab-link .icon svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none;transition:all .3s ease}
	.mobile-tabbar .tab-link .label{font-size:.68rem}
	.mobile-tabbar .tab-link.active{color:#f6c90e}
	.mobile-tabbar .tab-link.active .icon svg{stroke:#f6c90e;filter:drop-shadow(0 2px 8px rgba(246,201,14,.4))}
	.mobile-tabbar .tab-link:focus-visible{outline:2px solid #f6c90e;outline-offset:6px;border-radius:1rem}
}

/* Policy Box Styles */
.policy-box {
	max-width: 800px;
	margin: 2rem auto 2rem;
	background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
	border: 2px solid rgba(246, 201, 14, 0.2);
	border-radius: 1rem;
	padding: var(--policy-padding);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 
	            0 0 60px rgba(246, 201, 14, 0.08);
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

/* Collapsed state - shorter box */
/* Collapsed state - shorter box with content preview */
.policy-box.collapsed {
	max-height: var(--policy-collapsed-height);
	overflow: hidden;
}

.policy-box.collapsed .policy-box-header {
	margin-bottom: var(--policy-collapsed-spacing);
	padding-bottom: var(--policy-collapsed-spacing);
}

.policy-box.collapsed .policy-box-title {
	margin-bottom: var(--policy-collapsed-spacing);
}

.policy-box.collapsed .policy-box-content {
	opacity: 0.8;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

.policy-box.collapsed .policy-box-actions {
	display: none;
}

/* Expanded state - full height */
.policy-box.expanded {
	max-height: none;
}

.policy-box.expanded .policy-box-content {
	opacity: 1;
	display: block;
	-webkit-line-clamp: unset;
}

.policy-box.expanded .policy-box-actions {
	display: flex;
}

.policy-box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, 
		transparent, 
		rgba(246, 201, 14, 0.5), 
		transparent);
}

.policy-box-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--policy-spacing);
	margin-bottom: var(--policy-spacing);
	padding-bottom: calc(var(--policy-spacing) / 1.5);
	border-bottom: 1px solid rgba(246, 201, 14, 0.15);
	user-select: none;
}

.policy-box.collapsed .policy-box-header {
	margin-bottom: 0;
	border-bottom: none;
}



.policy-box.expanded .policy-box-toggle-icon {
	transform: rotate(180deg);
}

.policy-box-logo {
	width: 60px;
	height: 60px;
	object-fit: contain;
	filter: drop-shadow(0 4px 12px rgba(246, 201, 14, 0.3));
}

.policy-box-title {
	font-size: var(--policy-title-size);
	font-weight: 700;
	color: #f6c90e;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0;
	text-shadow: 0 2px 8px rgba(246, 201, 14, 0.3);
}

.policy-box-content {
	color: #ddd;
	font-size: 1rem;
	line-height: 1.6;
	margin: var(--policy-spacing) 0;
	flex-grow: 1;
}

.policy-box-content p {
	margin: 0.75rem 0;
}

.policy-box-actions {
	display: flex;
	justify-content: flex-end;
	padding-top: var(--policy-spacing);
	margin-top: var(--policy-spacing);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.policy-edit-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(246, 201, 14, 0.1);
	border: 1px solid rgba(246, 201, 14, 0.3);
	color: #f6c90e;
	padding: 0.6rem 1.2rem;
	border-radius: 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.policy-edit-btn:hover {
	background: rgba(246, 201, 14, 0.2);
	border-color: #f6c90e;
	box-shadow: 0 4px 12px rgba(246, 201, 14, 0.2);
	transform: translateY(-2px);
}

.policy-edit-btn svg {
	width: 16px;
	height: 16px;
}

/* Edit modal styles */
.policy-edit-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: 2000;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
}

.policy-edit-modal.active {
	display: flex;
}

.policy-edit-modal-content {
	background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
	border: 2px solid rgba(246, 201, 14, 0.3);
	border-radius: 1rem;
	padding: 2rem;
	max-width: 600px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.policy-edit-modal h3 {
	color: #f6c90e;
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
}

.policy-edit-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.policy-edit-form label {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	color: #ddd;
	font-weight: 600;
}

.policy-edit-form input,
.policy-edit-form textarea {
	background: #0a0a0a;
	border: 2px solid #222;
	border-radius: 0.5rem;
	padding: 0.75rem;
	color: #fff;
	font-size: 1rem;
	font-family: inherit;
	transition: all 0.3s ease;
}

.policy-edit-form textarea {
	min-height: 200px;
	resize: vertical;
}

.policy-edit-form input:focus,
.policy-edit-form textarea:focus {
	outline: none;
	border-color: #f6c90e;
	box-shadow: 0 0 0 3px rgba(246, 201, 14, 0.1);
}

.policy-edit-form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
}

.policy-edit-form-actions button {
	flex: 1;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 0.5rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.policy-save-btn {
	background: linear-gradient(135deg, #f6c90e, #ffde50);
	color: #000;
}

.policy-save-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(246, 201, 14, 0.4);
}

.policy-cancel-btn {
	background: transparent;
	border: 2px solid #333 !important;
	color: #fff;
}

.policy-cancel-btn:hover {
	border-color: #f6c90e !important;
	color: #f6c90e;
	background: rgba(246, 201, 14, 0.05);
}

/* Responsive styles */
@media (max-width: 768px) {
	.policy-box {
		margin: 1rem;
		padding: 1.5rem;
	}
	
	.policy-box-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
	
	.policy-box-logo {
		width: 50px;
		height: 50px;
	}
	
	:root {
		--policy-title-size: 1rem;
	}
	
	.policy-edit-modal-content {
		width: 95%;
		padding: 1.5rem;
	}
}
/* === Stats Page: New Competition Modal === */
.btn-competition {
	background: linear-gradient(135deg, #f6c90e, #ffde50);
	color: #000;
	border: none;
	font-weight: 700;
	padding: 0.6rem 1.2rem;
	border-radius: 0.4rem;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
}

.btn-competition:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(246, 201, 14, 0.3);
	background: linear-gradient(135deg, #ffde50, #f6c90e);
}

.btn-competition:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Competition button for stats page */
.competition-button-row {
	margin-bottom: 1.5rem;
	display: flex;
	gap: 0.5rem;
}

.btn-add-competition {
	background: rgba(255, 255, 255, 0.1);
	color: #ddd;
	border: 2px solid rgba(255, 255, 255, 0.2);
	padding: 0.7rem 1.3rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.btn-add-competition:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
	box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-add-competition:active {
	transform: translateY(1px);
}

/* Tab link add button for mobile tabbar */
.tab-link-add {
	color: #f6c90e !important;
	background: none !important;
	border: none !important;
	position: relative;
	font-weight: 700;
}

.tab-link-add:hover {
	color: #ffde50 !important;
}

.tab-link-add .icon svg {
	stroke-width: 2.2;
	stroke: currentColor;
	fill: none;
	width: 24px;
	height: 24px;
	filter: drop-shadow(0 2px 6px rgba(246, 201, 14, 0.3));
}

.tab-link-add:hover .icon svg {
	filter: drop-shadow(0 3px 8px rgba(246, 201, 14, 0.5));
}

/* Competition Modal - Mobile Optimized */
.competition-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2000;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	padding: 1rem;
	animation: fadeIn 0.3s ease;
}

.competition-modal.open {
	display: flex;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(100vh);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.competition-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: transparent;
	cursor: pointer;
}

.competition-modal-content {
	position: relative;
	background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
	border: 2px solid rgba(246, 201, 14, 0.2);
	border-radius: 1rem;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
	            0 0 80px rgba(246, 201, 14, 0.08);
	z-index: 2001;
	animation: slideUp 0.3s ease;
}

.competition-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem;
	border-bottom: 2px solid rgba(246, 201, 14, 0.1);
	background: rgba(0, 0, 0, 0.4);
}

.competition-modal-header h2 {
	color: #f6c90e;
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.competition-modal-close {
	background: none;
	border: none;
	color: #888;
	font-size: 1.8rem;
	cursor: pointer;
	transition: color 0.2s ease;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.competition-modal-close:hover {
	color: #f6c90e;
}

.competition-modal-form {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.competition-form-group {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.competition-form-label {
	color: #f6c90e;
	font-weight: 600;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: block;
}

.competition-modal-form input[type="text"],
.competition-modal-form input[type="date"] {
	background: rgba(10, 10, 10, 0.8);
	border: 2px solid rgba(246, 201, 14, 0.2);
	border-radius: 0.5rem;
	padding: 0.85rem 1rem;
	color: #fff;
	font-size: 1rem;
	font-family: inherit;
	transition: all 0.3s ease;
}

.competition-modal-form input[type="text"]:focus,
.competition-modal-form input[type="date"]:focus {
	outline: none;
	border-color: #f6c90e;
	box-shadow: 0 0 0 3px rgba(246, 201, 14, 0.1);
	background: rgba(10, 10, 10, 0.95);
}

.competition-form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(246, 201, 14, 0.1);
}

.competition-form-actions button {
	flex: 1;
	padding: 0.85rem 1.2rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 0.95rem;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.competition-form-actions .btn-secondary {
	background: #222;
	color: #ddd;
	border: 1px solid #333;
}

.competition-form-actions .btn-secondary:hover {
	background: #333;
	color: #fff;
	border-color: #555;
}

.competition-form-actions .btn {
	background: linear-gradient(135deg, #f6c90e, #ffde50);
	color: #000;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	box-shadow: 0 4px 12px rgba(246, 201, 14, 0.25);
}

.competition-form-actions .btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(246, 201, 14, 0.35);
	background: linear-gradient(135deg, #ffde50, #f6c90e);
}

.competition-form-actions .btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Mobile responsiveness for competition modal */
@media (max-width: 640px) {
	.competition-button-row {
		margin-bottom: 1.2rem;
	}

	.btn-add-competition {
		width: 100%;
		padding: 0.65rem 1rem;
		font-size: 0.9rem;
	}

	.competition-modal-content {
		border-radius: 1.5rem 1.5rem 0 0;
		max-width: 100%;
		width: 100%;
		max-height: calc(100vh - 120px);
		animation: slideUpMobile 0.3s ease;
	}

	@keyframes slideUpMobile {
		from {
			transform: translateY(100vh);
		}
		to {
			transform: translateY(0);
		}
	}

	.competition-modal-header {
		padding: 1.2rem;
	}

	.competition-modal-header h2 {
		font-size: 1.3rem;
	}

	.competition-modal-form {
		padding: 1.2rem;
		gap: 1.2rem;
	}

	.competition-form-label {
		font-size: 0.9rem;
	}

	.competition-modal-form input[type="text"],
	.competition-modal-form input[type="date"] {
		padding: 0.75rem 0.9rem;
		font-size: 16px; /* Prevents zoom on iOS */
	}

	.competition-form-actions {
		flex-direction: column;
		gap: 0.8rem;
		margin-top: 0.8rem;
		padding-top: 0.8rem;
	}

	.competition-form-actions button {
		width: 100%;
	}

	.nav-buttons {
		display: flex;
		flex-wrap: wrap;
		gap: 0.6rem;
	}

	.nav-buttons .btn {
		flex: 1;
		min-width: 140px;
		font-size: 0.85rem;
		padding: 0.5rem 0.8rem;
	}

	.btn-competition {
		padding: 0.5rem 0.8rem;
		font-size: 0.85rem;
	}
}

@media (max-width: 480px) {
	.competition-modal-header h2 {
		font-size: 1.15rem;
	}

	.competition-modal-form {
		padding: 1rem;
		gap: 1rem;
	}

	.competition-form-label {
		font-size: 0.85rem;
	}

	.competition-modal-form input[type="text"],
	.competition-modal-form input[type="date"] {
		padding: 0.7rem 0.8rem;
		font-size: 16px;
	}

	.competition-form-actions button {
		padding: 0.75rem 1rem;
		font-size: 0.9rem;
	}

	.nav-buttons .btn {
		min-width: 120px;
		font-size: 0.8rem;
		padding: 0.45rem 0.7rem;
	}

	.btn-competition {
		padding: 0.45rem 0.7rem;
		font-size: 0.8rem;
	}
}