:root {
    --bg-body: #050505;
    --bg-card: #121212;
    --bg-modal: #181818;
    --primary: #e50914; 
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #202020;
    --red: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
    overscroll-behavior-y: none; /* Prevents pull-to-refresh interference */
}

#app-container {
    display: none; /* Oculto até autenticar */
}

/* ─── Navbar ─── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 4%;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 1000;
    transition: background 0.3s;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    margin-right: 2.5rem;
    letter-spacing: -1px;
}

.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 500; 
    transition: color 0.15s; 
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }

/* ─── Global Scroll Behavior ─── */
::-webkit-scrollbar { width: 8px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
 
/* ─── Search Bar ─── */
.search-container {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.4);
    border: 1px solid transparent;
    padding: 5px 10px;
    transition: all 0.3s;
    border-radius: 4px;
}
.search-container.active {
    border-color: white;
    background: rgba(0,0,0,0.8);
}
#search-input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 0;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.search-container.active #search-input {
    width: 200px;
    margin-left: 10px;
}
@media (max-width: 768px) {
    .search-container.active #search-input { width: 120px; }
}

/* ─── Layout & Banner ─── */
main { min-height: 100vh; padding-bottom: 5rem; background: var(--bg-body); }

.hero { position: relative; height: 85vh; display: flex; align-items: center; padding: 0 4%; overflow: hidden; margin-bottom: 2rem; }
@media (max-width: 768px) {
    .hero { height: 60vh; padding-top: 100px; }
    .hero-title { font-size: 2.2rem; }
    .hero-plot { font-size: 0.95rem; -webkit-line-clamp: 2; line-clamp: 2; }
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center top; z-index: -1; display: flex; align-items: center; justify-content: center; }
.hero-bg.no-cover { background: #111; }
.hero-bg.no-cover::after { content: 'SEM CAPA'; font-size: 5rem; font-weight: 900; color: rgba(255,255,255,0.05); letter-spacing: 15px; }
.hero-mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 25% 50%, rgba(5,5,5,0.7) 0%, rgba(5,5,5,1) 90%), linear-gradient(0deg, rgba(5,5,5,1) 0%, rgba(5,5,5,0.1) 60%); z-index: 0; }
.hero-content { max-width: 650px; z-index: 10; opacity: 0; transform: translateY(20px); transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1); }
.hero-content.visible { opacity: 1; transform: translateY(0); }
.hero-title { font-size: 3.8rem; font-weight: 800; margin-bottom: 1.2rem; line-height: 1.1; color: #fff; }
.hero-plot { font-size: 1.15rem; color: #d0d0d0; margin-bottom: 2.5rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 300; }

/* ─── Botões Custom ─── */
.btn { padding: 0.9rem 2.2rem; border-radius: 4px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 0.8rem; transition: all 0.2s; border: none; font-size: 1.1rem; }
.btn-primary { background: white; color: black; }
.btn-primary:hover { background: rgba(255,255,255,0.85); transform: scale(1.05); }
.btn-secondary { background: rgba(109, 109, 110, 0.7); color: white; backdrop-filter: blur(8px); }
.btn-secondary:hover { background: rgba(109, 109, 110, 0.9); }
.btn-circle { width: 40px; height: 40px; border-radius: 50%; padding: 0; border: 1px solid rgba(255,255,255,0.5); justify-content: center; }

/* ─── Rows & Grid ─── */
.row { margin-bottom: 4rem; padding: 0 4%; }
.row-title { font-size: 1.35rem; margin-bottom: 1.4rem; font-weight: 650; color: #e5e5e5; }

.grid { 
    display: flex !important; 
    flex-direction: row !important; 
    flex-wrap: nowrap !important;
    gap: 1.2rem; 
    overflow-x: auto; 
    scroll-behavior: smooth; 
    padding: 1.5rem 0; 
    width: 100%; 
    position: relative; 
    overscroll-behavior-x: contain;
}
.grid::-webkit-scrollbar { height: 0; } /* Esconde barra para um visual limpo */
.grid::-webkit-scrollbar-thumb { background: transparent; }
.grid:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); }

/* Fade indicator for horizontal scroll */
.row-container { position: relative; }
.row-container::after {
    content: ''; position: absolute; top:0; right:0; bottom:0;
    width: 50px; background: linear-gradient(90deg, rgba(5,5,5,0) 0%, rgba(5,5,5,0.8) 100%);
    pointer-events: none; z-index: 2;
}
@media (max-width: 768px) {
    .row-container::after { width: 30px; }
}

/* ─── Navegação do Carrossel ─── */
.row-container { position: relative; display: flex; align-items: center; margin: 0 -4%; padding: 0 4%; overflow: visible; }

.nav-arrow {
    position: absolute; top: 1.5rem; bottom: 1.5rem; width: 4%;
    background: rgba(0,0,0,0.5); border: none; color: white;
    cursor: pointer; z-index: 50; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s, background 0.2s;
}
.row-container:hover .nav-arrow { opacity: 1; }
.nav-arrow:hover { background: rgba(0,0,0,0.9); }
.nav-arrow.left { left: 0; border-radius: 0 4px 4px 0; }
.nav-arrow.right { right: 0; border-radius: 4px 0 0 4px; }
.nav-arrow i { width: 30px; height: 30px; transition: transform 0.2s; }
.nav-arrow:active i { transform: scale(0.8); }

/* ─── Grade Vertical (Categorias) ─── */
.vertical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}
.vertical-grid .card { flex: none; width: 100%; aspect-ratio: 16/9; }

.card { flex: 0 0 220px; aspect-ratio: 16/9; background: var(--bg-card); border-radius: 4px; overflow: hidden; cursor: pointer; transition: all 0.35s ease; position: relative; }
.card:hover { transform: scale(1.2); z-index: 100; box-shadow: 0 15px 50px rgba(0,0,0,0.8); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, transparent 100%); opacity: 0; transition: opacity 0.3s; }
.card:hover .card-info { opacity: 1; }
.card-title { font-size: 0.85rem; font-weight: 600; color: #fff; }

/* Estilo para filmes sem capa */
.card.no-cover {
    background: linear-gradient(135deg, #1c1c1c 0%, #111 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #222;
}

.no-cover-text {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

/* ─── Modal de Preview ─── */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); display: flex; align-items: flex-start; justify-content: center; z-index: 2000; overflow-y: auto; padding: 3rem 1rem; backdrop-filter: blur(8px); }
.modal-content { background: var(--bg-modal); width: 100%; max-width: 900px; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 0 100px rgba(0,0,0,0.8); min-height: 80vh; }
.close-btn { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: #181818; border: none; color: white; cursor: pointer; z-index: 100; display: flex; align-items: center; justify-content: center; }

.preview-hero { height: 480px; background-size: cover; background-position: center top; position: relative; display: flex; align-items: flex-end; padding: 3rem; }
.preview-hero-mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(0deg, var(--bg-modal) 0%, transparent 50%), linear-gradient(90deg, var(--bg-modal) 0%, transparent 60%); }
.preview-hero-content { position: relative; z-index: 10; max-width: 550px; }
.preview-hero-content h1 { font-size: 2.8rem; margin-bottom: 1rem; font-weight: 800; line-height: 1; }
.meta { margin-bottom: 1.5rem; display: flex; gap: 1rem; align-items: center; font-size: 0.9rem; color: #46d369; font-weight: 700; }
.meta .type { border: 1px solid rgba(255,255,255,0.4); padding: 0.1rem 0.5rem; color: #fff; font-size: 0.75rem; border-radius: 2px; }
.meta .year { font-weight: 600; color: #fff; }

.plot { color: #d2d2d2; line-height: 1.6; margin-bottom: 2rem; font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.actions { display: flex; gap: 1rem; align-items: center; }

/* ─── Episódios ─── */
.episodes-section { padding: 3rem; }
.episodes-section h3 { font-size: 1.4rem; margin-bottom: 2rem; }
.episode-item { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem; border-bottom: 1px solid #333; cursor: pointer; transition: background 0.2s; border-radius: 4px; }
.episode-item:hover { background: #333; }
.ep-num { font-size: 1.4rem; color: var(--text-muted); font-weight: 600; min-width: 30px; }
.ep-info .ep-title { font-weight: 700; margin-bottom: 0.4rem; }
.ep-info .ep-plot { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

/* ─── Login Screen ─── */
.login-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('/static2/assets/login-bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.login-card {
    position: relative;
    background: rgba(0, 0, 0, 0.75);
    padding: 60px 68px 40px;
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    z-index: 10;
}

.login-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: #333;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: background 0.2s;
}

.form-group input:focus {
    background: #454545;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.login-btn:hover { background: #f40612; }

/* ─── Premium Form States & Loaders ─── */
.btn-loading {
    position: relative; color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 20px; height: 20px; margin: -10px;
    border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.8s linear infinite;
}

.form-group label {
    display: block; font-size: 0.8rem; color: var(--text-muted); padding-left: 5px; margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

.form-group input {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary) !important;
    background: rgba(255,255,255,0.1) !important;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.2);
}

.success-msg { color: #46d369; font-size: 0.9rem; margin-top: 10px; display: none; }

/* ─── Continue Watching (Progress Bar) ─── */
.progress-container {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 4px; background: rgba(255,255,255,0.2);
    border-radius: 0 0 4px 4px; overflow: hidden;
}

.progress-bar {
    height: 100%; background: var(--primary);
    transition: width 0.3s ease;
}

.card:hover .progress-container { height: 6px; }

/* Utility */
#loader { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #000; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.spinner { width: 50px; height: 50px; border: 3px solid rgba(229, 9, 20, 0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-in { animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Profile Container & Dropdown ─── */
.profile-container { position: relative; display: flex; align-items: center; }

.user-avatar { 
    width: 32px; height: 32px; background: #e50914; 
    border-radius: 4px; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; 
    font-weight: bold; overflow: hidden; position: relative; 
    transition: transform 0.2s;
}

.profile-container:hover .user-avatar { transform: scale(1.05); }

.profile-dropdown {
    position: absolute; top: 100%; right: 0; 
    width: 180px; background: rgba(0,0,0,0.9); 
    border: 1px solid rgba(255,255,255,0.15); 
    border-radius: 4px; margin-top: 15px;
    opacity: 0; visibility: hidden; 
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.profile-container:hover .profile-dropdown {
    opacity: 1; visibility: visible; 
    transform: translateY(0);
}

/* Triângulo indicador */
.profile-dropdown::before {
    content: ''; position: absolute; top: -10px; right: 10px;
    border-left: 10px solid transparent; border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(255,255,255,0.15);
}

.dropdown-header { 
    padding: 12px 15px; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    font-size: 0.8rem; font-weight: 500; 
    color: #fff;
}

.dropdown-menu { list-style: none; padding: 5px 0; }
.dropdown-menu li a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 15px; color: #b3b3b3; 
    text-decoration: none; font-size: 0.8rem;
    transition: background 0.15s, color 0.15s;
}

.dropdown-menu li a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: underline;
}

.dropdown-menu i { width: 16px; height: 16px; }

/* ─── Settings Page ─── */
.settings-container {
    max-width: 800px; margin: 100px auto; padding: 2rem;
    animation: fadeIn 0.6s ease;
}

.settings-header { margin-bottom: 3rem; }
.settings-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.settings-header p { color: var(--text-muted); }

.settings-group {
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px; padding: 2rem; margin-bottom: 2rem;
}

.settings-group h2 { 
    font-size: 1.2rem; margin-bottom: 1.5rem; 
    display: flex; align-items: center; gap: 10px; color: #fff;
}

.settings-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}

.settings-item:last-child { border-bottom: none; }

.item-info label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.item-info span { font-weight: 500; font-size: 1rem; }

/* Planos / Badges integrados */
.plan-badge {
    background: var(--primary); color: #fff;
    padding: 4px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 800;
}

.plan-expires { color: #46d369; font-weight: 600; font-size: 0.85rem; }

.settings-form input {
    width: 100%; border: 1px solid #333; background: #222;
    padding: 10px 15px; border-radius: 4px; color: #fff; margin-bottom: 1rem;
}

/* ─── Plans Page ─── */
.plans-container {
    max-width: 1100px; margin: 100px auto; padding: 2rem;
    text-align: center; animation: fadeIn 0.8s ease;
}

.plans-header h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; }
.plans-header p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 4rem; }

.plans-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem; justify-content: center;
}

.plan-card {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 3rem 2rem; transition: all 0.3s;
    display: flex; flex-direction: column; align-items: center;
}

.plan-card:hover { 
    transform: translateY(-10px); background: rgba(255,255,255,0.08); 
    border-color: var(--primary);
}

.plan-card.active { border: 2px solid var(--primary); transform: scale(1.05); }

.plan-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 2px; }
.plan-price { font-size: 2.5rem; font-weight: 800; margin-bottom: 2rem; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

.plan-features { list-style: none; padding: 0; margin-bottom: 3rem; width: 100%; text-align: left; }
.plan-features li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.plan-features li i { color: #46d369; }

/* ─── Checkout Overlay (Safe Redirect) ─── */
.checkout-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95); z-index: 10000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    backdrop-filter: blur(10px); animation: fadeIn 0.4s ease;
}

.checkout-icon {
    width: 100px; height: 100px; border-radius: 50%;
    background: rgba(70, 211, 105, 0.1); display: flex;
    align-items: center; justify-content: center; margin-bottom: 2rem;
    color: #46d369; border: 2px solid rgba(70, 211, 105, 0.2);
}

.checkout-text p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* ─── Profile Management (Edit Mode) ─── */
.profile-manage-btn {
    background: transparent; border: 1px solid grey; color: grey;
    padding: 0.5rem 1.5rem; margin-top: 5rem; cursor: pointer;
    font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px;
    transition: all 0.3s;
}

.profile-manage-btn:hover { border-color: white; color: white; }

.profile.edit-mode .avatar { position: relative; cursor: pointer; }
.profile.edit-mode .avatar::after {
    content: '\270E'; /* Pencil Unicode */
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: white; border-radius: 4px;
}

.add-profile-btn {
    width: 151px; height: 151px; background: rgba(255,255,255,0.05);
    border-radius: 4px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; border: 1px dashed rgba(255,255,255,0.2);
}

.add-profile-btn:hover { background: rgba(255,255,255,0.1); border-color: white; }
.add-profile-btn i { font-size: 3rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .row { padding: 0 4%; margin-bottom: 2.5rem; }
    .row-title { font-size: 1.15rem; margin-bottom: 0.8rem; }
    .preview-hero { height: 350px; padding: 1.5rem; }
    .preview-hero-content h1 { font-size: 2rem; }
    .modal-overlay { padding: 0; }
    .modal-content { border-radius: 0; min-height: 100vh; }
    .login-card { padding: 40px 20px; background: black; }
    
    /* Grid & Cards Responsive */
    .grid { display: flex !important; gap: 0.8rem; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 10px 0; }
    .card { width: 130px; height: 180px; flex-shrink: 0; }
    .card:hover { transform: none; }
    
    .nav-links { display: none; } /* Esconde links no menu mobile */
    nav { background: rgba(0,0,0,0.95); height: 60px; }
    .logo { font-size: 1.5rem; margin-right: 1.5rem; }
    
    /* Melhorias Touches & Notch */
    .nav-actions { gap: 1rem; }
    #close-player-btn { top: env(safe-area-inset-top, 10px) !important; left: env(safe-area-inset-left, 10px) !important; width: 50px; height: 50px; }
    
    .hero-content { padding-bottom: 2rem; }
    .btn { min-height: 48px; } /* Altura mínima recomendada para botões touch */
    
    .search-container.active #search-input { width: 140px; }
    .plans-grid { grid-template-columns: 1fr; gap: 1rem; }
    .login-card { width: 92%; max-width: 400px; padding: 40px 25px; }
}

/* ─── Badges & Premium UI ─── */
.role-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    margin-right: -5px;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ─── Profile Selector (Who's Watching) ─── */
.profile-selector-screen {
    position: fixed; top:0; left:0; right:0; bottom:0;
    background: var(--bg-body);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 6000;
    animation: fadeIn 0.8s ease;
}

.profile-selector-title { font-size: 2.5rem; color: #fff; margin-bottom: 2rem; font-weight: 600; text-align: center; }
.profile-grid { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.profile-item { display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: transform 0.2s; }
.profile-item:hover { transform: scale(1.1); }
.profile-avatar { width: 150px; height: 150px; border-radius: 4px; background: #333; margin-bottom: 1rem; border: 3px solid transparent; transition: border-color 0.2s; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 800; color: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.profile-item:hover .profile-avatar { border-color: #fff; }
.profile-name { font-size: 1.2rem; color: var(--text-muted); }
.profile-item:hover .profile-name { color: #fff; }
