.comp-detail-wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    display: grid;
    gap: 20px;
}

.comp-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
    align-items: start;
}

.comp-detail-header h1 {
    margin: 8px 0 10px;
    font-size: 30px;
}

.comp-detail-description {
    color: #555;
    line-height: 1.5;
    white-space: pre-line;
}

.comp-host-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    text-decoration: none;
    color: inherit;
}

.comp-host-link small {
    display: block;
    color: #777;
}

.comp-detail-stats {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line, #e6e6e6);
    border-radius: 14px;
    background: var(--soft, #f6f6f6);
}

.comp-detail-stats div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.comp-detail-stats strong {
    font-size: 15px;
}

.comp-detail-stats small {
    color: #777;
    font-size: 12px;
}

.comp-detail-card {
    padding: 20px;
    border: 1px solid var(--line, #e6e6e6);
    border-radius: 16px;
    background: #fff;
}

.comp-detail-card h2 {
    margin: 0 0 14px;
    font-size: 19px;
}

.comp-muted {
    color: #777;
    font-size: 13px;
}

.comp-prize-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.comp-prize-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--soft, #f6f6f6);
}

.comp-prize-title {
    font-weight: 700;
    flex: 1;
}

.comp-prize-amount {
    font-weight: 800;
    color: var(--purple, #7358ff);
}

.comp-prize-winner-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e7f8ec;
    color: #1a7a3a;
}

.comp-guarantee-note {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line, #e6e6e6);
}

.comp-entry-form {
    display: grid;
    gap: 14px;
    max-width: 560px;
}

.comp-entry-form label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.comp-entry-form input[type="text"],
.comp-entry-form textarea,
.comp-entry-form input[type="file"] {
    padding: 10px 12px;
    border: 1px solid var(--line, #e6e6e6);
    border-radius: 10px;
    font: inherit;
}

.comp-checkbox-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    font-weight: 500 !important;
}

.comp-checkbox-row input {
    width: auto;
}

.comp-error {
    color: #b00020;
    font-size: 13px;
    margin: 0;
    min-height: 16px;
}

.comp-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.comp-entry-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line, #e6e6e6);
    border-radius: 14px;
}

.comp-entry-card h3 {
    margin: 0;
    font-size: 15px;
}

.comp-entry-card video,
.comp-entry-card audio {
    width: 100%;
    border-radius: 8px;
}

.comp-entry-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.comp-entry-author small {
    display: block;
    color: #777;
    font-size: 11px;
}

.comp-visibility-tag {
    align-self: start;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--soft, #f0f0f0);
    color: #555;
    width: fit-content;
}

@media (max-width: 720px) {
    .comp-detail-header {
        grid-template-columns: 1fr;
    }
}

/* ---------- dark mode ---------- */
.theme-dark .comp-detail-description {
    color: #a7a7a7;
}

.theme-dark .comp-host-link small,
.theme-dark .comp-detail-stats small,
.theme-dark .comp-muted,
.theme-dark .comp-entry-author small {
    color: #a7a7a7;
}

.theme-dark .comp-detail-card {
    background: #191919;
    color: #f7f7f7;
}

.theme-dark .comp-prize-winner-badge {
    background: #173a24;
    color: #7be3a0;
}

.theme-dark .comp-entry-form input[type="text"],
.theme-dark .comp-entry-form textarea,
.theme-dark .comp-entry-form input[type="file"] {
    background: #242424;
    color: #f7f7f7;
}

.theme-dark .comp-error {
    color: #ff6b7a;
}

.theme-dark .comp-visibility-tag {
    color: #e2e2e2;
}
