.works-container {
    padding: 24px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #8db6ff;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.primary-btn {
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff8f5c, #ff5e7b);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(255, 94, 123, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
}

.works-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 24px;
}

.works-sidebar,
.works-hero,
.work-detail,
.upload-panel {
    border-radius: 24px;
    background: rgba(10, 16, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.works-sidebar {
    padding: 24px;
    position: sticky;
    top: 86px;
    height: fit-content;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h1,
.section-heading h2,
.section-heading h3 {
    margin: 0;
    color: #f5f8ff;
}

.section-heading-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 26px 0 14px;
}

.muted-text {
    color: rgba(231, 239, 255, 0.72);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-button {
    width: 100%;
    border: 1px solid rgba(141, 182, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #f3f7ff;
    text-align: left;
    padding: 14px 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-button:hover,
.category-button.active {
    transform: translateX(2px);
    border-color: rgba(255, 143, 92, 0.55);
    background: rgba(255, 143, 92, 0.14);
}

.category-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.category-count {
    display: block;
    margin-top: 6px;
    font-size: 0.88rem;
    color: rgba(231, 239, 255, 0.7);
}

.works-main {
    min-width: 0;
}

.works-hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 28px;
    color: #f5f8ff;
}

.hero-copy {
    max-width: 720px;
    line-height: 1.8;
    color: rgba(245, 248, 255, 0.82);
}

.hero-status {
    min-width: 180px;
    text-align: right;
    color: #9ff1b7;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.work-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 16, 24, 0.72);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-card:hover,
.work-card.active {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 143, 92, 0.45);
}

.work-card-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.06);
}

.work-card-body {
    padding: 16px;
    color: #f6f9ff;
}

.work-card-title {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.work-card-summary {
    margin: 0;
    line-height: 1.7;
    color: rgba(231, 239, 255, 0.74);
}

.work-detail {
    margin-top: 22px;
    padding: 28px;
    color: #f5f8ff;
}

.detail-empty {
    text-align: center;
    padding: 30px 0;
    color: rgba(231, 239, 255, 0.74);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
}

.detail-header h3 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.detail-meta {
    color: rgba(231, 239, 255, 0.74);
}

.detail-description {
    line-height: 1.9;
    color: rgba(245, 248, 255, 0.84);
    white-space: pre-wrap;
}

.detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 10px;
}

.detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 143, 92, 0.14);
    color: #ffd7bf;
    text-decoration: none;
}

.detail-invite {
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(141, 182, 255, 0.12);
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.media-item {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.media-item img,
.media-item video {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.media-caption {
    padding: 12px 14px;
    color: rgba(231, 239, 255, 0.74);
}

.attachments {
    margin-top: 24px;
}

.attachments ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.attachments a {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #d9e7ff;
    text-decoration: none;
}

.upload-panel {
    margin-top: 24px;
    padding: 28px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #e7efff;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(143, 185, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #f4f7ff;
    padding: 14px 16px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 143, 92, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 143, 92, 0.12);
}

.empty-block {
    border-radius: 18px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(231, 239, 255, 0.74);
}

.hidden {
    display: none !important;
}

@media (max-width: 1080px) {
    .works-layout {
        grid-template-columns: 1fr;
    }

    .works-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .works-container {
        padding: 18px;
    }

    .works-hero,
    .work-detail,
    .upload-panel,
    .works-sidebar {
        padding: 22px;
    }

    .works-hero,
    .detail-header,
    .section-heading-inline {
        flex-direction: column;
        align-items: start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
