/* Contest Feature Styles */

/* ========== Contests Page ========== */

.contests-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.contests-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.contests-title-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
}

.contests-subtitle {
    color: #888;
    margin: 0;
    font-size: 14px;
}

.contests-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contest-sort-select {
    padding: 10px 36px 10px 14px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.contest-sort-select:focus {
    outline: none;
    border-color: #4a9eff;
}

.contests-header .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #4a9eff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.contests-header .btn-primary:hover {
    background: #3a8eef;
}

.contests-header .btn-primary .material-icons-outlined {
    font-size: 18px;
}

/* Tabs */
.contests-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #222;
    padding-bottom: 12px;
}

.contest-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contest-tab:hover {
    color: #fff;
    background: #1a1a1a;
}

.contest-tab.active {
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
    border-color: #4a9eff;
}

.contest-tab i {
    font-size: 18px;
}

/* Filters */
.contests-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.contests-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.contests-search .material-icons-outlined {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
    pointer-events: none;
}

.contests-search input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.contests-search input:focus {
    outline: none;
    border-color: #4a9eff;
}

.contests-search input::placeholder {
    color: #666;
}

.contests-sort select {
    padding: 10px 32px 10px 14px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.contests-sort select:focus {
    outline: none;
    border-color: #4a9eff;
}

/* Create Button */
.create-contest-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #4a9eff;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.create-contest-btn:hover {
    background: #3a8eef;
}

/* ========== Contests Grid ========== */

.contests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* Contest Card */
.contest-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contest-card:hover {
    border-color: #4a9eff;
    background: #1f1f1f;
}

.contest-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contest-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.contest-description {
    font-size: 14px;
    color: #999;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.contest-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
}

.contest-host {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
}

.contest-host .material-icons-outlined {
    font-size: 16px;
    color: #666;
}

.contest-stats {
    display: flex;
    gap: 12px;
}

.contest-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #888;
}

.contest-stat .material-icons-outlined {
    font-size: 16px;
    color: #666;
}

.contest-deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    padding-top: 8px;
}

.contest-deadline .material-icons-outlined {
    font-size: 16px;
    color: #4a9eff;
}

/* Budget in Card Header */
.contest-budget {
    font-size: 20px;
    font-weight: 700;
    color: #22c55e;
}

/* Budget Tier Highlighting */
.contest-card.budget-high {
    border: 1px solid #4a9eff;
}

.contest-card.budget-high:hover {
    border-color: #6bb3ff;
    background: #1f1f1f;
}

.contest-budget.budget-high {
    color: #4a9eff;
}

.contest-card.budget-premium {
    border: 1px solid #f59e0b;
}

.contest-card.budget-premium:hover {
    border-color: #fbbf24;
    background: #1f1f1f;
}

.contest-budget.budget-premium {
    color: #f59e0b;
    font-size: 22px;
}

/* Status Badge */
.contest-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contest-status.status-open {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.contest-status.status-completed {
    background: rgba(74, 158, 255, 0.15);
    color: #4a9eff;
}

.contest-status.status-cancelled {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

.contest-status.status-closed {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.contest-status.status-judging {
    background: rgba(235, 137, 33, 0.15);
    color: #eb8921;
}

.closed-notice {
    color: #fbbf24;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 6px;
}

.contest-winner {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(250, 204, 21, 0.1);
    border-radius: 6px;
    color: #facc15;
    font-size: 13px;
    font-weight: 500;
}

.contest-winner .material-icons-outlined {
    font-size: 18px;
}

.contest-prize-won {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 6px;
    color: #22c55e;
    font-size: 13px;
    font-weight: 600;
}

.contest-prize-won .material-icons-outlined {
    font-size: 18px;
}

.contest-date {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

/* History Filter */
.history-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

.history-filter label {
    color: #888;
    font-size: 14px;
}

.history-filter select {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

.history-filter select:focus {
    outline: none;
    border-color: #4a9eff;
}

.contests-grid-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    grid-column: 1 / -1;
}

/* Outcome badges */
.contest-outcome {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contest-outcome.outcome-won {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.contest-outcome.outcome-lost {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.contest-outcome.outcome-completed {
    background: rgba(74, 158, 255, 0.15);
    color: #4a9eff;
}

.contest-outcome.outcome-cancelled {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

/* ========== Loading/Empty/Error States ========== */

.contests-grid .loading-spinner {
    grid-column: 1 / -1;
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 60px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.contests-grid .empty-state,
.contests-grid .error-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    text-align: center;
    background: transparent;
    border: none;
}

.contests-grid .empty-state .material-icons-outlined {
    font-size: 72px;
    color: #2a2a2a;
    margin-bottom: 24px;
}

.contests-grid .empty-state h3 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
}

.contests-grid .empty-state p {
    color: #666;
    margin: 0;
    font-size: 15px;
    max-width: 400px;
    line-height: 1.5;
}

.contests-grid .error-message {
    color: #ef4444;
    font-size: 14px;
    background: transparent;
    border: none;
}

/* ========== Contest Detail Page ========== */

.contest-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.contest-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 20px;
    cursor: pointer;
}

.contest-detail-back:hover {
    color: #fff;
}

/* Detail Header */
.contest-detail-header {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.contest-detail-info {
    flex: 1;
    min-width: 280px;
}

.contest-detail-info h1 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 12px 0 16px 0;
}

.contest-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contest-host-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 14px;
}

.contest-host-info .material-icons-outlined {
    font-size: 18px;
    color: #666;
}

.contest-host-info strong {
    color: #fff;
}

.contest-detail-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-box {
    background: #252525;
    border-radius: 10px;
    padding: 16px 20px;
    text-align: center;
    min-width: 100px;
}

.stat-box.budget-box {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.budget-box .stat-value {
    color: #22c55e;
    font-size: 22px;
}

.contest-detail-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
}

.contest-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
}

.contest-detail-host {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contest-detail-host-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contest-detail-host-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.contest-detail-host-avatar i {
    font-size: 18px;
    color: #666;
}

.contest-detail-host-info {
    display: flex;
    flex-direction: column;
}

.contest-detail-host-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.contest-detail-host-name {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.contest-detail-budget {
    text-align: center;
    padding: 0 20px;
    border-left: 1px solid #333;
}

.contest-detail-budget-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.contest-detail-budget-value {
    font-size: 24px;
    font-weight: 700;
    color: #22c55e;
}

.contest-detail-deadline {
    text-align: center;
    padding: 0 20px;
    border-left: 1px solid #333;
}

.contest-detail-deadline-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.contest-detail-deadline-value {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.contest-detail-deadline-value.urgent {
    color: #ef4444;
}

.contest-detail-description {
    font-size: 15px;
    color: #ccc;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Notes Section */
.contest-notes {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.contest-notes h4 {
    font-size: 14px;
    color: #888;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contest-note {
    background: #252525;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.contest-note-time {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
}

.contest-note-content {
    font-size: 14px;
    color: #ccc;
    white-space: pre-wrap;
}

/* Actions */
.contest-detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.contest-detail-actions > .btn-primary,
.contest-detail-actions > button {
    width: auto;
    flex-shrink: 0;
}

.host-actions,
.contest-detail-actions .participant-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    max-width: 100%;
    min-width: 0;
}

.host-actions .btn-primary,
.participant-actions .btn-primary {
    width: auto;
}

.contest-instructions-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.25);
    border-radius: 8px;
    margin-top: 12px;
    width: 100%;
    flex-basis: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.contest-instructions-notice .material-icons-outlined {
    font-size: 18px;
    color: #4a9eff;
    flex-shrink: 0;
    margin-top: 1px;
}

.contest-instructions-notice span:last-child {
    font-size: 13px;
    color: #b0b0b0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.contest-instructions-notice .notice-link {
    color: #4a9eff;
    text-decoration: none;
    word-break: break-word;
}

.contest-instructions-notice .notice-link:hover {
    color: #6bb3ff;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .contest-instructions-notice {
        padding: 10px 12px;
    }

    .contest-instructions-notice span:last-child {
        font-size: 12px;
    }
}

/* Add Reference Files Prompt Modal */
.add-reference-prompt-modal {
    max-width: 480px;
}

.add-reference-prompt-modal .modal-body {
    text-align: center;
    padding: 30px 24px;
}

.add-reference-prompt-modal .success-icon {
    margin-bottom: 16px;
}

.add-reference-prompt-modal .success-icon .material-icons-outlined {
    font-size: 56px;
    color: #22c55e;
}

.add-reference-prompt-modal .modal-body p {
    color: #ccc;
    font-size: 15px;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.add-reference-prompt-modal .prompt-question {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
}

.add-reference-prompt-modal .prompt-hint {
    color: #888;
    font-size: 13px;
}

.add-reference-prompt-modal .modal-footer {
    justify-content: center;
    gap: 16px;
}

.add-reference-prompt-modal .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.add-reference-prompt-modal .btn-primary .material-icons-outlined {
    font-size: 18px;
}

.contest-detail-actions .btn-primary,
.contest-detail-actions .btn-secondary,
.contest-detail-actions .btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.contest-detail-actions .btn-primary {
    background: #4a9eff;
    color: #fff;
}

.contest-detail-actions .btn-primary:hover {
    background: #3a8eef;
}

.contest-detail-actions .btn-secondary {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
}

.contest-detail-actions .btn-secondary:hover {
    background: #333;
}

.contest-detail-actions .btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.contest-detail-actions .btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.contest-detail-actions .btn-secondary .material-icons-outlined,
.contest-detail-actions .btn-danger .material-icons-outlined {
    font-size: 18px;
}

.participation-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #2a2a2a;
    border-radius: 6px;
    color: #888;
    font-size: 14px;
}

/* Body Layout - Two Columns */
.contest-detail-body {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

.contest-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contest-section {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
}

.contest-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
}

/* Full description on detail page - no truncation */
.contest-section .contest-description {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    white-space: pre-wrap;
}

.contest-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contest-sidebar .chat-section {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    padding: 10px 12px;
    background: #252525;
    border-radius: 8px;
}

.chat-message.own-message {
    background: rgba(74, 158, 255, 0.15);
}

.message-username {
    font-size: 13px;
    font-weight: 600;
    color: #4a9eff;
    display: block;
    margin-bottom: 4px;
}

.message-content {
    font-size: 14px;
    color: #ccc;
    margin: 0;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 6px;
}

.no-messages {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 40px 0;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #333;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.chat-input:focus {
    outline: none;
    border-color: #4a9eff;
}

.chat-input::placeholder {
    color: #666;
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    background: #4a9eff;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    background: #3a8eef;
}

.chat-send-btn .material-icons-outlined {
    font-size: 20px;
}

/* Entries Grid */
.entries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.no-entries {
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 40px 0;
}

/* Entry Card in Detail Page */
.entry-card {
    background: #252525;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.entry-card:hover {
    border-color: #4a9eff;
}

.entry-card.winner-entry {
    border-color: #22c55e;
}

.entry-thumbnail {
    width: 100%;
    height: 140px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-thumbnail .material-icons-outlined {
    font-size: 40px;
    color: #444;
}

.winner-ribbon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #22c55e;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.entry-info {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entry-artist {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.entry-date {
    font-size: 12px;
    color: #666;
}

.contest-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.contest-action-btn.primary {
    background: #4a9eff;
    color: #fff;
}

.contest-action-btn.primary:hover {
    background: #3a8eef;
}

.contest-action-btn.secondary {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
}

.contest-action-btn.secondary:hover {
    background: #333;
}

.contest-action-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.contest-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.contest-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== Detail Tabs ========== */

.contest-detail-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
}

.contest-detail-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contest-detail-tab:hover {
    color: #fff;
}

.contest-detail-tab.active {
    color: #4a9eff;
    border-bottom-color: #4a9eff;
}

.contest-detail-tab .tab-count {
    background: #333;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.contest-detail-tab.active .tab-count {
    background: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
}

/* ========== Entries Section ========== */

.contest-entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.contest-entry-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
}

.contest-entry-card:hover {
    border-color: #3a3a3a;
}

.contest-entry-card.winner {
    border-color: #22c55e;
}

.contest-entry-thumbnail {
    width: 100%;
    height: 180px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contest-entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contest-entry-thumbnail .no-image {
    color: #444;
    font-size: 48px;
}

.winner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #22c55e;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.contest-entry-info {
    padding: 12px;
}

.contest-entry-artist {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.contest-entry-artist-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contest-entry-artist-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.contest-entry-artist-avatar i {
    font-size: 14px;
    color: #666;
}

.contest-entry-artist-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.contest-entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contest-entry-files {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.contest-entry-time {
    font-size: 12px;
    color: #666;
}

.select-winner-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    border-radius: 6px;
    color: #22c55e;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.select-winner-btn:hover {
    background: rgba(34, 197, 94, 0.2);
}

/* ========== Chat Section ========== */

.contest-chat-container {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.contest-chat-header {
    padding: 16px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contest-chat-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contest-chat-header h3 i {
    color: #4a9eff;
}

.contest-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contest-chat-message {
    display: flex;
    gap: 10px;
}

.contest-chat-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contest-chat-message-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.contest-chat-message-avatar i {
    font-size: 14px;
    color: #666;
}

.contest-chat-message-content {
    flex: 1;
    min-width: 0;
}

.contest-chat-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.contest-chat-message-author {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.contest-chat-message-author.host {
    color: #4a9eff;
}

.contest-chat-message-time {
    font-size: 11px;
    color: #666;
}

.contest-chat-message-text {
    font-size: 14px;
    color: #ccc;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.contest-chat-input-container {
    display: flex;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid #333;
}

.contest-chat-input {
    flex: 1;
    padding: 10px 14px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    resize: none;
}

.contest-chat-input:focus {
    outline: none;
    border-color: #4a9eff;
}

.contest-chat-input::placeholder {
    color: #666;
}

.contest-chat-send {
    width: 40px;
    height: 40px;
    background: #4a9eff;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contest-chat-send:hover {
    background: #3a8eef;
}

.contest-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Chat Empty State */
.contest-chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
}

.contest-chat-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* Chat Load More Button */
.chat-load-more-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 6px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
}

.chat-load-more-btn:hover {
    background: #2a2a2a;
    color: #fff;
    border-color: #444;
}

/* ========== DM Section ========== */

.contest-dm-container {
    display: flex;
    height: 500px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
}

.contest-dm-threads {
    width: 280px;
    border-right: 1px solid #333;
    overflow-y: auto;
}

.contest-dm-threads-header {
    padding: 16px;
    border-bottom: 1px solid #333;
}

.contest-dm-threads-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.contest-dm-thread {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #252525;
}

.contest-dm-thread:hover {
    background: #252525;
}

.contest-dm-thread.active {
    background: #2a2a2a;
}

.contest-dm-thread-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contest-dm-thread-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.contest-dm-thread-avatar i {
    font-size: 16px;
    color: #666;
}

.contest-dm-thread-info {
    flex: 1;
    min-width: 0;
}

.contest-dm-thread-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contest-dm-thread-preview {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contest-dm-thread-unread {
    background: #4a9eff;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
}

.contest-dm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contest-dm-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
}

.contest-dm-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* ========== Participants Section ========== */

.contest-participants {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.contest-participant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
}

.contest-participant-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contest-participant-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.contest-participant-avatar i {
    font-size: 20px;
    color: #666;
}

.contest-participant-info {
    flex: 1;
}

.contest-participant-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.contest-participant-status {
    font-size: 12px;
    color: #888;
}

.contest-participant-status.winner {
    color: #22c55e;
}

.contest-participant-actions {
    display: flex;
    gap: 8px;
}

.dm-btn {
    width: 32px;
    height: 32px;
    background: #2a2a2a;
    border: none;
    border-radius: 6px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-btn:hover {
    background: #333;
    color: #fff;
}

/* ========== Create Contest Modal ========== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.create-contest-modal,
.modal.submit-entry-modal,
.modal.add-note-modal,
.modal.add-reference-prompt-modal {
    display: block !important;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.create-contest-modal .modal-header,
.submit-entry-modal .modal-header,
.add-note-modal .modal-header,
.add-reference-prompt-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #333;
}

.create-contest-modal .modal-header h2,
.submit-entry-modal .modal-header h2,
.add-note-modal .modal-header h2,
.add-reference-prompt-modal .modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.create-contest-modal .modal-close,
.submit-entry-modal .modal-close,
.add-note-modal .modal-close,
.add-reference-prompt-modal .modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}

.create-contest-modal .modal-close:hover,
.submit-entry-modal .modal-close:hover,
.add-note-modal .modal-close:hover,
.add-reference-prompt-modal .modal-close:hover {
    background: #333;
    color: #fff;
}

.create-contest-modal .modal-body,
.submit-entry-modal .modal-body,
.add-note-modal .modal-body {
    padding: 24px;
}

.submit-entry-modal .modal-body p,
.add-note-modal .modal-body p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.submit-entry-modal .folder-path {
    display: block;
    padding: 12px;
    background: #252525;
    border-radius: 6px;
    color: #4a9eff;
    font-size: 13px;
    margin-bottom: 16px;
    word-break: break-all;
}

.submit-entry-modal .modal-footer,
.add-note-modal .modal-footer,
.add-reference-prompt-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #333;
    background: #151515;
    border-radius: 0 0 12px 12px;
}

.submit-entry-modal .btn-secondary,
.submit-entry-modal .btn-primary,
.add-note-modal .btn-secondary,
.add-note-modal .btn-primary,
.add-reference-prompt-modal .btn-secondary,
.add-reference-prompt-modal .btn-primary {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

.submit-entry-modal .btn-secondary,
.add-note-modal .btn-secondary,
.add-reference-prompt-modal .btn-secondary {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
}

.submit-entry-modal .btn-secondary:hover,
.add-note-modal .btn-secondary:hover,
.add-reference-prompt-modal .btn-secondary:hover {
    background: #333;
}

.submit-entry-modal .btn-primary,
.add-note-modal .btn-primary,
.add-reference-prompt-modal .btn-primary {
    background: #4a9eff;
    color: #fff;
}

.submit-entry-modal .btn-primary:hover,
.add-note-modal .btn-primary:hover,
.add-reference-prompt-modal .btn-primary:hover {
    background: #3a8eef;
}

.submit-entry-modal .form-group,
.add-note-modal .form-group {
    margin-bottom: 16px;
}

.submit-entry-modal .form-group label,
.add-note-modal .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

.submit-entry-modal .form-input,
.add-note-modal .form-input,
.add-note-modal .form-textarea {
    width: 100%;
    padding: 12px 14px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.submit-entry-modal .form-input:focus,
.add-note-modal .form-input:focus,
.add-note-modal .form-textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

.submit-entry-modal .form-input::placeholder,
.add-note-modal .form-input::placeholder,
.add-note-modal .form-textarea::placeholder {
    color: #666;
}

.add-note-modal .form-textarea {
    min-height: 100px;
    resize: vertical;
}

.create-contest-modal .form-group {
    margin-bottom: 20px;
}

.create-contest-modal .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

.create-contest-modal .form-input,
.create-contest-modal .form-textarea {
    width: 100%;
    padding: 12px 14px;
    background: #252525 !important;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.create-contest-modal .form-input:focus,
.create-contest-modal .form-textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

.create-contest-modal .form-input::placeholder,
.create-contest-modal .form-textarea::placeholder {
    color: #666;
}

.create-contest-modal .form-input:-webkit-autofill,
.create-contest-modal .form-input:-webkit-autofill:hover,
.create-contest-modal .form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #252525 inset;
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
}

.create-contest-modal .form-textarea {
    min-height: 120px;
    resize: vertical;
}

.create-contest-modal .form-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}

.create-contest-modal .form-row {
    display: flex;
    gap: 16px;
}

.create-contest-modal .form-row .form-group {
    flex: 1;
}

.create-contest-modal .form-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    margin-top: 8px;
}

.create-contest-modal .form-warning .material-icons-outlined {
    color: #22c55e;
    font-size: 20px;
    flex-shrink: 0;
}

.create-contest-modal .form-warning p {
    color: #ccc;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.create-contest-modal .form-error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    border-radius: 8px;
    margin-top: 16px;
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
}

.create-contest-modal .modal-footer {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    padding: 16px 24px !important;
    border-top: 1px solid #333;
    background: #151515;
    border-radius: 0 0 12px 12px;
}

.create-contest-modal .modal-footer button {
    width: auto !important;
    flex: none !important;
}

.create-contest-modal .btn-secondary,
.create-contest-modal #cancelCreateBtn {
    padding: 10px 24px !important;
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    width: auto !important;
    flex: none !important;
}

.create-contest-modal .btn-secondary:hover,
.create-contest-modal #cancelCreateBtn:hover {
    background: #333 !important;
}

.create-contest-modal .btn-primary,
.create-contest-modal #submitCreateBtn {
    padding: 10px 24px !important;
    background: #4a9eff !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    width: auto !important;
    flex: none !important;
}

.create-contest-modal .btn-primary:hover,
.create-contest-modal #submitCreateBtn:hover {
    background: #3a8eef !important;
}

/* ========== Mobile Responsive ========== */

@media (max-width: 900px) {
    .contest-detail-body {
        grid-template-columns: 1fr;
    }

    .contest-sidebar .chat-section {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .contests-page,
    .contest-detail-page {
        padding: 16px;
    }

    .contests-header .header-content h1 {
        font-size: 20px;
    }

    .contest-detail-header {
        flex-direction: column;
        padding: 16px;
    }

    .contest-detail-stats {
        width: 100%;
        justify-content: flex-start;
    }

    .contest-detail-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .host-actions,
    .contest-detail-actions .participant-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .host-actions .btn-primary,
    .host-actions .btn-secondary,
    .contest-detail-actions .participant-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .contests-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .contests-tabs::-webkit-scrollbar {
        display: none;
    }

    .contest-tab {
        white-space: nowrap;
    }

    .contests-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .contests-search {
        max-width: none;
    }

    .contests-grid {
        grid-template-columns: 1fr;
    }

    .contest-detail-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .contest-detail-budget,
    .contest-detail-deadline {
        border-left: none;
        padding: 0;
        text-align: left;
    }

    .contest-detail-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .contest-entries {
        grid-template-columns: 1fr;
    }

    .contest-dm-container {
        flex-direction: column;
        height: auto;
    }

    .contest-dm-threads {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #333;
        max-height: 200px;
    }

    .contest-dm-main {
        min-height: 300px;
    }

    .contest-participants {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .create-contest-content {
        max-height: 100vh;
        border-radius: 0;
    }
}

/* ========== Scrollbar Styling ========== */

.contest-chat-messages::-webkit-scrollbar,
.contest-dm-threads::-webkit-scrollbar {
    width: 6px;
}

.contest-chat-messages::-webkit-scrollbar-track,
.contest-dm-threads::-webkit-scrollbar-track {
    background: transparent;
}

.contest-chat-messages::-webkit-scrollbar-thumb,
.contest-dm-threads::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.contest-chat-messages::-webkit-scrollbar-thumb:hover,
.contest-dm-threads::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* ========== More Menu ========== */

.more-menu-container {
    position: relative;
    display: inline-block;
}

.more-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 100;
    overflow: hidden;
}

@media (max-width: 768px) {
    .more-menu-container {
        width: 100%;
    }

    .more-menu {
        left: 0;
        right: 0;
        width: 100%;
    }
}

.more-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
}

.more-menu-item:hover {
    background: #252525;
}

.more-menu-item .material-icons-outlined {
    font-size: 18px;
}

.more-menu-item-danger {
    color: #ef4444;
}

.more-menu-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ========== DM Panel (Slide-out Overlay) ========== */

.dm-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: #1a1a1a;
    border-left: 1px solid #333;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.dm-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    background: #151515;
}

.dm-panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dm-panel-header h3 .material-icons-outlined {
    font-size: 20px;
    color: #4a9eff;
}

.dm-panel-close {
    width: 32px;
    height: 32px;
    background: #2a2a2a;
    border: none;
    border-radius: 6px;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-panel-close:hover {
    background: #333;
    color: #fff;
}

.dm-panel-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dm-panel-messages .loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #333;
    border-top-color: #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

.dm-panel-messages .no-messages {
    color: #666;
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
}

.dm-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    word-break: break-word;
}

.dm-message-mine {
    background: #4a9eff;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.dm-message-other {
    background: #2a2a2a;
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.dm-message-content {
    font-size: 14px;
    line-height: 1.4;
}

.dm-message-time {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.7;
}

.dm-message-mine .dm-message-time {
    text-align: right;
}

.dm-panel-input {
    display: flex;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid #333;
    background: #151515;
}

.dm-panel-input input {
    flex: 1;
    padding: 12px 14px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.dm-panel-input input:focus {
    outline: none;
    border-color: #4a9eff;
}

.dm-panel-input input::placeholder {
    color: #666;
}

.dm-panel-input input:disabled {
    opacity: 0.6;
}

.dm-panel-input button {
    width: 44px;
    height: 44px;
    background: #4a9eff;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dm-panel-input button:hover {
    background: #3a8eef;
}

.dm-panel-input button .material-icons-outlined {
    font-size: 20px;
}

/* DM Panel Scrollbar */
.dm-panel-messages::-webkit-scrollbar {
    width: 6px;
}

.dm-panel-messages::-webkit-scrollbar-track {
    background: transparent;
}

.dm-panel-messages::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.dm-panel-messages::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Mobile responsive for DM Panel */
@media (max-width: 500px) {
    .dm-panel {
        width: 100%;
    }
}

/* ========== New Contest Status States ========== */

/* Awaiting Admin Status */
.contest-status.status-awaiting_admin {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Escalated Notice in Detail Page */
.escalated-notice {
    color: #ef4444;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== Contest Results Page ========== */

.contest-results-page {
    width: 100%;
}

.results-header {
    text-align: center;
    margin-bottom: 12px;
}

.results-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 16px;
    color: #22c55e;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.results-badge .material-icons-outlined {
    font-size: 16px;
}

.results-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.results-host {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.results-host strong {
    color: #fff;
}

/* Winner Showcase */
.winner-showcase {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 32px;
}

.winner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.winner-header .material-icons-outlined {
    font-size: 28px;
    color: #facc15;
}

.winner-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #facc15;
    margin: 0;
}

.winner-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 24px;
}

.winner-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.winner-avatar {
    width: 64px;
    height: 64px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #facc15;
}

.winner-avatar .material-icons-outlined {
    font-size: 32px;
    color: #666;
}

.winner-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.winner-name {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.winner-prize {
    font-size: 18px;
    font-weight: 600;
    color: #22c55e;
}

/* Winner Submission Files */
.winner-files h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
}

.submission-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.submission-file {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}

.submission-file.image-file img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.submission-file.other-file {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.submission-file.other-file .material-icons-outlined {
    font-size: 40px;
    color: #4a9eff;
}

.submission-file.other-file .file-name {
    font-size: 13px;
    color: #888;
    word-break: break-all;
}

/* No Winner Notice */
.no-winner-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 12px;
    margin-bottom: 32px;
}

.no-winner-notice .material-icons-outlined {
    font-size: 24px;
    color: #9ca3af;
}

.no-winner-notice p {
    color: #9ca3af;
    margin: 0;
    font-size: 15px;
}

/* Participants Showcase */
.participants-showcase {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.participants-showcase h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px 0;
}

.participants-showcase .participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.participant-showcase-card {
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 14px;
}

.participant-showcase-card.winner {
    border-color: #facc15;
    background: rgba(250, 204, 21, 0.1);
}

.participant-showcase-card .participant-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.participant-showcase-card .participant-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.winner-badge-small {
    color: #facc15;
}

.winner-badge-small .material-icons-outlined {
    font-size: 18px;
}

.participant-showcase-card .participant-files {
    font-size: 12px;
    color: #888;
}

/* Contest Summary */
.contest-summary {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.contest-summary h2 {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.summary-item {
    background: #252525;
    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.summary-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

/* Results Description */
.results-description {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.results-description h2 {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

.results-description p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
}

/* Results Actions - minimal */
.results-actions {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.results-actions .btn-primary,
.results-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #333;
    background: transparent;
    color: #888;
}

.results-actions .btn-primary:hover,
.results-actions .btn-secondary:hover {
    background: #222;
    color: #fff;
    border-color: #444;
}

.results-actions .btn-secondary .material-icons-outlined,
.results-actions .btn-primary .material-icons-outlined {
    font-size: 14px;
}

/* Entry status indicators */
.entry-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.entry-status.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.entry-status.status-won {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
}

.entry-status.status-withdrawn {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

/* Entry Actions in Detail Page */
.entry-actions {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #333;
}

/* ========== Improved Participants View ========== */

.participants-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: #666;
    grid-column: 1 / -1;
}

.participants-empty .material-icons-outlined {
    font-size: 48px;
    color: #444;
    margin-bottom: 12px;
}

.participants-empty p {
    margin: 0;
    font-size: 16px;
    color: #888;
    font-weight: 500;
}

.participants-empty-sub {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Participant Card - List Style */
.entries-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.participant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
}

.participant-card:hover {
    border-color: #3a3a3a;
    background: #1e1e1e;
}

.participant-card.winner {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
}

.participant-card.withdrawn {
    opacity: 0.6;
}

.participant-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.participant-avatar .material-icons-outlined {
    font-size: 24px;
    color: #666;
}

.participant-avatar .winner-icon {
    color: #22c55e;
}

.participant-card.winner .participant-avatar {
    background: rgba(34, 197, 94, 0.15);
}

.participant-details {
    flex: 1;
    min-width: 0;
}

.participant-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.participant-name {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.participant-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.participant-status.active {
    background: rgba(74, 158, 255, 0.15);
    color: #4a9eff;
}

.participant-status.won {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.participant-status.withdrawn {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

.participant-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.participant-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.participant-date .material-icons-outlined {
    font-size: 14px;
}

.participant-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.participant-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 6px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
}

.participant-action-btn:hover {
    background: #252525;
    border-color: #444;
    color: #fff;
}

.participant-action-btn .material-icons-outlined {
    font-size: 18px;
}

.participant-action-btn.primary {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.participant-action-btn.primary:hover {
    background: #16a34a;
    border-color: #16a34a;
}

/* Mobile: Stack actions below details */
@media (max-width: 600px) {
    .participant-card {
        flex-wrap: wrap;
        padding: 12px;
    }

    .participant-avatar {
        width: 40px;
        height: 40px;
    }

    .participant-avatar .material-icons-outlined {
        font-size: 20px;
    }

    .participant-details {
        flex: 1;
        min-width: calc(100% - 60px);
    }

    .participant-name {
        font-size: 14px;
    }

    .participant-actions {
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #2a2a2a;
        justify-content: flex-end;
    }

    .participant-action-btn .btn-text {
        display: none;
    }

    .participant-action-btn {
        padding: 8px 10px;
    }
}

/* ========== Winners Podium (Completed Contests) ========== */
.winners-podium {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.podium-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.podium-header .material-icons-outlined {
    color: #ffd700;
    font-size: 20px;
}

.podium-slots {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.podium-slot {
    flex: 1;
    min-width: 100px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    border-top: 3px solid var(--medal-color, #ffd700);
}

.podium-medal {
    font-size: 32px;
    margin-bottom: 8px;
}

.podium-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-prize {
    font-size: 16px;
    font-weight: 600;
    color: #22c55e;
}

.other-participants-header {
    font-size: 13px;
    color: #666;
    padding: 8px 0;
    border-top: 1px solid #2a2a2a;
}

/* ========== Placed Participant Styles ========== */
.participant-card.placed {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.2);
}

.participant-avatar .placement-medal {
    font-size: 24px;
    line-height: 1;
}

.participant-status.placed {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

.participant-status.placed.place-1 {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

.participant-status.placed.place-2 {
    background: rgba(192, 192, 192, 0.15);
    color: #c0c0c0;
}

.participant-status.placed.place-3 {
    background: rgba(205, 127, 50, 0.15);
    color: #cd7f32;
}

/* Mobile podium */
@media (max-width: 600px) {
    .podium-slots {
        flex-direction: column;
    }

    .podium-slot {
        min-width: unset;
    }
}

/* Responsive for Results Page */
@media (max-width: 768px) {
    .results-header h1 {
        font-size: 24px;
    }

    .winner-info {
        flex-direction: column;
        text-align: center;
    }

    .winner-name {
        font-size: 20px;
    }

    .submission-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-actions {
        flex-direction: column;
    }

    .results-actions .btn-primary,
    .results-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ========== Gallery ========== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    grid-column: 1 / -1;
}

.gallery-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-card:hover {
    border-color: #4a9eff;
}

/* Carousel */
.gallery-card-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #111;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.carousel-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-placeholder {
    background: #222;
}

.carousel-placeholder .material-icons-outlined {
    font-size: 64px;
    color: #444;
}

.carousel-slide .video-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.carousel-slide .video-indicator .material-icons-outlined {
    font-size: 28px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 2;
}

.gallery-card:hover .carousel-prev,
.gallery-card:hover .carousel-next {
    opacity: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.carousel-dots .dot.active {
    background: #fff;
}

.carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Card Info */
.gallery-card-info {
    padding: 16px;
}

.gallery-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-card-winners {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.gallery-winner {
    font-size: 14px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
}

.gallery-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888;
    font-size: 13px;
}

.gallery-prize {
    color: #4a9eff;
    font-weight: 500;
}

/* Gallery responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }

    .carousel-prev,
    .carousel-next {
        opacity: 1;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Results Page Image Viewer
   ========================================== */

.results-image-viewer {
    position: relative;
    width: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.results-carousel-track {
    display: flex;
    will-change: transform;
}

.results-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Full-size image display without cropping */
.results-slide img,
.results-slide video {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* No media placeholder */
.results-no-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: #111;
    color: #666;
    gap: 16px;
}

.results-no-media .material-icons-outlined {
    font-size: 64px;
    color: #333;
}

/* Navigation arrows */
.results-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.results-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.results-prev {
    left: 16px;
}

.results-next {
    right: 16px;
}

/* Counter */
.results-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 14px;
    border-radius: 16px;
    color: #fff;
    font-size: 14px;
    z-index: 2;
}

/* Details section - ultra sleek retro-modern */
.results-details {
    padding: 16px 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Winner line */
.results-winner-line {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    font-size: 13px;
}

.results-winner-line .material-icons-outlined {
    font-size: 14px;
    color: #f1c40f;
}

.results-winner-line .winner-label {
    color: #888;
}

.results-winner-line .winner-name {
    font-size: 13px;
    font-weight: 400;
    color: #ccc;
}

/* Results Podium - Multiple Winners */
.results-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.podium-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.podium-medal {
    font-size: 24px;
    margin-bottom: 4px;
}

.podium-username {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2px;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-payout {
    font-size: 11px;
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 6px;
}

.podium-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    border-radius: 4px 4px 0 0;
}

.podium-1st .podium-block {
    background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%);
    height: 60px;
}

.podium-2nd .podium-block {
    background: linear-gradient(180deg, #c0c0c0 0%, #808080 100%);
    height: 45px;
}

.podium-3rd .podium-block {
    background: linear-gradient(180deg, #cd7f32 0%, #8b4513 100%);
    height: 30px;
}

/* Results Winner Pills - Compact selectable placement display */
.results-winner-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.winner-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
}

.winner-pill:hover {
    background: #333;
    border-color: #555;
}

.winner-pill.selected {
    background: #3a3a5a;
    border-color: #6366f1;
}

.pill-medal {
    font-size: 16px;
    line-height: 1;
}

.pill-name {
    color: #ddd;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.winner-pill.selected .pill-name {
    color: #fff;
}

/* Title */
.results-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

/* Meta line - inline stats */
.results-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}

.results-meta-line strong {
    color: #ccc;
}

.results-meta-line .meta-sep {
    color: #444;
}

.results-meta-line .meta-mono {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    color: #4a9eff;
    font-weight: 500;
}

/* Divider */
.results-divider {
    height: 1px;
    background: linear-gradient(90deg, #333 0%, #222 100%);
    margin-bottom: 12px;
}

/* Brief description */
.results-brief {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px 0;
    white-space: pre-wrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .results-slide img,
    .results-slide video {
        max-height: 60vh;
    }

    .results-nav {
        width: 40px;
        height: 40px;
    }

    .results-prev {
        left: 8px;
    }

    .results-next {
        right: 8px;
    }

    .results-details {
        padding: 12px 16px;
    }

    .results-title {
        font-size: 18px;
    }

    .results-meta-line {
        font-size: 12px;
    }
}

/* ========== Participant Selector Dropdown (in breadcrumb) ========== */

.participant-selector {
    position: relative;
}

.participant-selector-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
}

.participant-selector-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.participant-selector-btn .winner-icon {
    color: #f1c40f;
    font-size: 16px;
}

.participant-selector-btn .placement-medal {
    font-size: 16px;
    line-height: 1;
}

.participant-selector-btn .material-icons-outlined {
    font-size: 18px;
    color: #888;
}

.participant-selector-btn .selected-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-dropdown {
    position: fixed;
    min-width: 220px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    overflow: hidden;
}

.participant-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    color: #ccc;
}

.participant-option:hover {
    background: #252525;
}

.participant-option.selected {
    background: #333;
    color: #fff;
}

.participant-option .winner-icon {
    color: #f1c40f;
    font-size: 16px;
}

.participant-option .placement-medal {
    font-size: 16px;
    line-height: 1;
}

.participant-option .file-count {
    margin-left: auto;
    color: #666;
    font-size: 12px;
}

@media (max-width: 768px) {
    .participant-selector-btn {
        font-size: 13px;
        padding: 5px 8px;
    }

    .participant-selector-btn .selected-name {
        max-width: 100px;
    }

    .participant-dropdown {
        min-width: 180px;
        right: 0;
    }

    .participant-option {
        padding: 10px 14px;
    }
}

/* ========== Multiple Placements / Podium Styles ========== */

/* Placement badges */
.placement-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.placement-badge.placement-1 {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

.placement-badge.placement-2 {
    background: rgba(192, 192, 192, 0.15);
    color: #c0c0c0;
}

.placement-badge.placement-3 {
    background: rgba(205, 127, 50, 0.15);
    color: #cd7f32;
}

/* Winners list container */
.contest-winners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.contest-winner-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.contest-winner-item.placement-1 {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.contest-winner-item.placement-2 {
    background: rgba(192, 192, 192, 0.1);
    color: #c0c0c0;
}

.contest-winner-item.placement-3 {
    background: rgba(205, 127, 50, 0.1);
    color: #cd7f32;
}

.contest-winner-item .medal {
    font-size: 16px;
}

.contest-winner-item .winner-name {
    flex: 1;
    color: #fff;
}

.contest-winner-item .winner-prize {
    color: #22c55e;
    font-weight: 600;
}

/* Placement count badge in cards */
.placement-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 10px;
    font-size: 11px;
    color: #4a9eff;
}

/* Prize display with split info */
.prize-display {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.prize-display .prize-total {
    font-size: 20px;
    font-weight: 700;
    color: #22c55e;
}

.prize-display .prize-split {
    font-size: 11px;
    color: #888;
}

/* ========== Results Page Podium ========== */

.contest-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.podium-place .medal {
    font-size: 48px;
    margin-bottom: 12px;
}

.podium-place .winner-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.podium-place .prize-amount {
    font-size: 14px;
    font-weight: 600;
    color: #22c55e;
}

.podium-stand {
    width: 120px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin-top: 12px;
}

.podium-place.place-1 .podium-stand {
    height: 100px;
    background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%);
    color: #1a1a1a;
}

.podium-place.place-2 .podium-stand {
    height: 70px;
    background: linear-gradient(180deg, #c0c0c0 0%, #808080 100%);
    color: #1a1a1a;
}

.podium-place.place-3 .podium-stand {
    height: 50px;
    background: linear-gradient(180deg, #cd7f32 0%, #8b4513 100%);
    color: #1a1a1a;
}

/* Mobile podium layout */
@media (max-width: 600px) {
    .contest-podium {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .podium-place {
        width: 100%;
        max-width: 250px;
    }

    .podium-stand {
        width: 100%;
        height: auto !important;
        padding: 12px;
        border-radius: 8px;
    }
}

/* ========== Placement Progress Tracker ========== */

.placement-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 20px;
}

.placement-progress-label {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

.placement-slots {
    display: flex;
    gap: 10px;
}

.placement-slot {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    background: #252525;
    color: #666;
    border: 1px solid #333;
}

.placement-slot .medal {
    font-size: 16px;
}

.placement-slot.filled {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
}

.placement-slot.current {
    background: rgba(74, 158, 255, 0.1);
    border-color: #4a9eff;
    color: #4a9eff;
}

/* ========== Contest Creation Placement Selector ========== */

.placement-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.placement-options {
    display: flex;
    gap: 12px;
}

.placement-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}

.placement-option:hover {
    border-color: #555;
}

.placement-option.selected {
    border-color: #4a9eff;
    background: rgba(74, 158, 255, 0.05);
}

.placement-option .medals {
    font-size: 20px;
    letter-spacing: 2px;
}

.placement-option .label {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.placement-option .split-info {
    font-size: 11px;
    color: #888;
}

.placement-preview {
    padding: 12px;
    background: rgba(74, 158, 255, 0.05);
    border-radius: 8px;
    margin-top: 8px;
}

.placement-preview-title {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.placement-preview-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.placement-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.placement-preview-item .medal {
    font-size: 14px;
}

.placement-preview-item .place-label {
    color: #888;
    min-width: 70px;
}

.placement-preview-item .prize-amount {
    color: #22c55e;
    font-weight: 600;
}

/* ========== Judge Page Placement Styles ========== */

.judge-placement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 16px;
}

.judge-placement-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.judge-placement-info .selecting-label {
    font-size: 14px;
    color: #888;
}

.judge-placement-info .current-place {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.judge-placement-info .current-place .medal {
    font-size: 20px;
}

.select-place-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.select-place-btn .medal {
    font-size: 16px;
}

/* Already placed indicator on judge cards */
.judge-entry-placed {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
}

.judge-entry-placed.place-1 {
    color: #ffd700;
}

.judge-entry-placed.place-2 {
    color: #c0c0c0;
}

.judge-entry-placed.place-3 {
    color: #cd7f32;
}

/* ========== History Card Placement Badges ========== */

.history-placement-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.history-placement-badge.placement-1 {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

.history-placement-badge.placement-2 {
    background: rgba(192, 192, 192, 0.15);
    color: #c0c0c0;
}

.history-placement-badge.placement-3 {
    background: rgba(205, 127, 50, 0.15);
    color: #cd7f32;
}
