.trophy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.trophy-header .section-title {
    margin-bottom: 0;
}

.trophy-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.trophy-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: #d0d0d0;
    margin: 15px 0 25px;
}

.trophy-button,
.trophy-button-secondary {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.trophy-button {
    border: none;
    background: linear-gradient(90deg, #c41e3a, #d4a017);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.trophy-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.trophy-button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e0d6c8;
}

.reorder-toolbar[hidden] {
    display: none;
}

.reorder-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid rgba(212, 160, 23, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

.reorder-hint {
    font-size: 0.9rem;
    color: #e0d6c8;
}

.reorder-toolbar-actions {
    display: flex;
    gap: 10px;
}

.trophy-item.reorder-active {
    border-color: rgba(212, 160, 23, 0.4);
}

.trophy-reorder-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trophy-move-button {
    flex: 1;
    max-width: 90px;
    padding: 6px 0;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e0d6c8;
    font-size: 0.9rem;
    cursor: pointer;
}

.trophy-move-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.trophy-wizard {
    margin-bottom: 25px;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid rgba(212, 160, 23, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

.wizard-step-title {
    font-size: 1rem;
    color: #d4a017;
    margin-bottom: 12px;
}

.wizard-step label {
    display: block;
    font-size: 0.85rem;
    color: #e0d6c8;
    margin-bottom: 6px;
}

.trophy-textarea,
.trophy-input {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.trophy-textarea:focus,
.trophy-input:focus {
    outline: none;
    border-color: #c41e3a;
}

.trophy-filename-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trophy-filename-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.trophy-filename-row .trophy-input {
    flex: 1;
}

.trophy-filename-remove {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e0d6c8;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.trophy-add-filename-button {
    margin-top: 10px;
}

.wizard-hint {
    font-size: 0.8rem;
    color: #a0a0a0;
    margin: 10px 0 0;
}

.wizard-hint code {
    color: #d4a017;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.trophy-message {
    margin: 0 0 16px 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.trophy-message-error {
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.5);
    color: #ffb3c0;
}

.trophy-message-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #b5e8bd;
}

.trophy-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #a0a0a0;
    font-style: italic;
    padding: 40px 0;
}

.trophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.trophy-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.trophy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.2);
    border-color: rgba(196, 30, 58, 0.4);
}

.trophy-photo-wrap {
    position: relative;
}

.trophy-photo {
    aspect-ratio: 4/3;
    width: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.trophy-item.reorder-active .trophy-photo {
    cursor: default;
}

.trophy-photo-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    pointer-events: none;
}

.trophy-photo-count-icon {
    display: block;
    font-size: 0.85rem;
    line-height: 1;
}

.trophy-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 16px;
    color: #d0d0d0;
    flex: 1;
}

.trophy-body-text {
    flex: 1;
}

.trophy-name {
    color: #ffffff;
    font-size: 1rem;
    margin: 0 0 6px;
}

.trophy-description-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d0d0d0;
}

.trophy-edit-button {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e0d6c8;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.trophy-edit-form {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.trophy-edit-form label {
    font-size: 0.8rem;
    color: #e0d6c8;
}

.trophy-edit-form .trophy-add-filename-button {
    align-self: flex-start;
}

.trophy-edit-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.trophy-button-danger {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.5);
    color: #ff8a8a;
    margin-left: auto;
}

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

.trophy-lightbox[hidden] {
    display: none;
}

.trophy-lightbox {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 30px;
    box-sizing: border-box;
}

.trophy-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.92);
}

.trophy-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(900px, 100%);
    max-height: 100%;
}

.trophy-lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: block;
}

.trophy-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.trophy-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.trophy-lightbox-prev {
    left: -20px;
}

.trophy-lightbox-next {
    right: -20px;
}

.trophy-lightbox-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    color: #e0d6c8;
    font-size: 0.95rem;
    text-align: center;
}

.trophy-lightbox-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.05rem;
}

.trophy-lightbox-counter {
    flex-shrink: 0;
    color: #a0a0a0;
    font-size: 0.85rem;
}

@media (max-width: 700px) {
    .trophy-lightbox {
        padding: 20px;
    }

    .trophy-lightbox-nav {
        width: 38px;
        height: 38px;
    }

    .trophy-lightbox-prev {
        left: -8px;
    }

    .trophy-lightbox-next {
        right: -8px;
    }
}
