/* Class Votes */
.class-votes-page { max-width: 960px; margin: 0 auto; }
.class-votes-page--narrow { max-width: 560px; }

.class-votes-header {
    display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.class-votes-header-icon { font-size: 40px; line-height: 1; }
.class-votes-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.class-votes-header p { color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.class-votes-header .btn-primary { margin-left: auto; align-self: center; }
.page-back { display: inline-block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; }

.class-votes-featured {
    padding: 20px 22px; margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12), rgba(123, 47, 247, 0.1));
    border: 1px solid rgba(255, 193, 7, 0.25);
}
.class-votes-featured-tag {
    display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.05em; padding: 4px 8px; border-radius: 999px;
    background: rgba(255, 193, 7, 0.2); color: #B45309; margin-bottom: 10px;
}
.class-votes-featured h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.class-votes-featured p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.45; }

.class-votes-section h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.class-votes-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.class-vote-card {
    display: block; padding: 18px; transition: transform 0.15s, box-shadow 0.15s;
}
.class-vote-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.class-vote-card-top { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.class-vote-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; line-height: 1.35; }
.class-vote-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.class-vote-tracks { display: flex; gap: 8px; }
.class-vote-tracks span {
    font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
    background: var(--background); color: var(--text-muted);
}

.class-vote-badge {
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
    padding: 4px 8px; border-radius: 999px;
    background: rgba(16, 185, 129, 0.15); color: #047857;
}
.class-vote-badge--closed { background: rgba(100,116,139,0.15); color: var(--text-muted); }
.class-vote-class {
    font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px;
    background: rgba(123, 47, 247, 0.12); color: var(--primary);
}

.class-votes-empty { text-align: center; color: var(--text-muted); padding: 40px 16px; }
.class-votes-empty .btn-primary { margin-top: 12px; display: inline-block; }

.class-vote-form label { display: block; margin-bottom: 16px; }
.class-vote-form label span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.class-vote-form label small { font-weight: 500; color: var(--text-muted); }
.class-vote-form input, .class-vote-form textarea, .class-vote-form select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; background: var(--input-bg);
}
.class-vote-form textarea { resize: vertical; min-height: 80px; }
.class-vote-form-note {
    background: var(--background); border-radius: var(--radius-sm);
    padding: 14px; margin-bottom: 16px; font-size: 13px; line-height: 1.5;
}
.class-vote-form-note ul { margin: 8px 0 0 18px; color: var(--text-muted); }
.btn-block { width: 100%; padding: 14px; }

.class-vote-hero { margin-bottom: 20px; }
.class-vote-hero-top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.class-vote-hero h1 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.class-vote-desc { font-size: 14px; line-height: 1.55; margin-bottom: 10px; }
.class-vote-meta { font-size: 13px; color: var(--text-muted); }
.class-vote-meta a { font-weight: 700; }

.class-vote-winners { margin-bottom: 20px; padding: 20px; }
.class-vote-winners h2 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.class-vote-winners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.class-vote-winner-label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.class-vote-winner-user {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border-radius: var(--radius-sm); background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.25);
}
.class-vote-winner-user strong { display: block; font-size: 15px; }
.class-vote-winner-user span { font-size: 12px; color: var(--text-muted); }
.class-vote-winner-empty { font-size: 13px; color: var(--text-muted); }

.class-vote-tracks-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px;
}
.class-vote-track { padding: 18px; }
.class-vote-track-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
    margin-bottom: 14px; flex-wrap: wrap;
}
.class-vote-track-head h2 { font-size: 17px; font-weight: 800; }
.class-vote-track-head span { font-size: 12px; color: var(--text-muted); }

.class-vote-nominate {
    display: flex; gap: 8px; margin-bottom: 16px; align-items: flex-start;
}
.class-vote-nominate .username-autocomplete-wrap { flex: 1; }
.class-vote-nominate input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: inherit; background: var(--input-bg);
}
.class-vote-login-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.class-vote-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 20px 8px; }

.class-vote-nominee-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.class-vote-nominee {
    display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center;
    padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--background);
}
.class-vote-nominee--voted { border-color: rgba(123, 47, 247, 0.35); background: rgba(123, 47, 247, 0.06); }
.class-vote-nominee--winner { border-color: rgba(255, 193, 7, 0.45); background: rgba(255, 193, 7, 0.08); }
.class-vote-rank { font-size: 14px; font-weight: 800; text-align: center; color: var(--text-muted); }
.class-vote-nominee-user {
    display: flex; align-items: center; gap: 10px; min-width: 0;
}
.class-vote-nominee-user strong { display: inline; font-size: 14px; }
.class-vote-nominee-user span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.class-vote-bar {
    grid-column: 2 / 3; height: 4px; background: var(--border); border-radius: 999px; overflow: hidden;
}
.class-vote-bar span {
    display: block; height: 100%; background: var(--gradient-primary); border-radius: 999px;
}
.class-vote-nominee form { grid-column: 3 / 4; grid-row: 1 / 3; align-self: center; }
.class-vote-nominee .class-vote-bar { grid-row: 2; }
.btn-voted { background: rgba(16, 185, 129, 0.15); color: #047857; border: 1px solid rgba(16, 185, 129, 0.3); }

@media (max-width: 640px) {
    .class-vote-nominee {
        grid-template-columns: 28px 1fr;
    }
    .class-vote-nominee form { grid-column: 2 / 3; grid-row: auto; }
    .class-vote-nominee .class-vote-bar { grid-column: 1 / -1; }
}
