.share-page {
    padding: 34px 0;
    background: #f8fafc;
}

.share-container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 28px;
}

.share-header {
    background: linear-gradient(135deg, #0a2472, #123aa8);
    color: #fff;
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 12px 28px rgba(10, 36, 114, .16);
}

.share-header h1 {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 7px;
    line-height: 1.25;
}

.share-header p {
    margin: 0;
    opacity: .92;
    font-size: 14px;
    line-height: 1.6;
}

.share-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.share-category-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #24324b;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
}

.share-category-item:hover,
.share-category-item.active {
    background: #0a2472;
    color: #fff;
    border-color: #0a2472;
    text-decoration: none;
    transform: translateY(-1px);
}

.share-sections {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.share-category-section {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
    overflow: hidden;
}

.share-category-section-head {
    padding: 16px 20px;
    background: linear-gradient(135deg, #ffffff, #f4f7ff);
    border-bottom: 1px solid #edf2f7;
}

.share-category-title {
    font-size: 23px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.share-category-description {
    color: #64748b;
    margin: 6px 0 0;
    line-height: 1.5;
    font-size: 13px;
}

.share-category-body {
    padding: 14px 16px 16px;
}

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

.share-material-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 5px 15px rgba(15, 23, 42, .035);
    overflow: visible;
    min-width: 0;
    transition: all .18s ease;
}

.share-material-card:hover {
    border-color: #d7e1ef;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .055);
}

.share-material-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.share-material-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-material-card h3 {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

.share-material-subtitle {
    color: #64748b;
    font-size: 13px;
    margin: 0;
    line-height: 1.45;
}

.share-text-box {
    color: #334155;
    line-height: 1.55;
    white-space: pre-line;
    max-height: 110px;
    overflow-y: auto;
    font-size: 14px;
    padding: 8px 0 8px 10px;
    border-left: 3px solid #dbeafe;
}

.share-audio-frame {
    width: 100%;
    max-width: 560px;
    min-width: 260px;
}

.share-audio-frame audio {
    width: 100%;
    display: block;
    height: 38px;
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 7px;
    min-width: 180px;
}

.share-action-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all .18s ease;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

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

.btn-copy-share {
    background: #e0f2fe;
    color: #075985;
}

.btn-native-share {
    background: #dcfce7;
    color: #166534;
}

.btn-download-share {
    background: #fff7ed;
    color: #9a3412;
}

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

.download-list {
    display: none;
    position: absolute;
    right: 0;
    bottom: 36px;
    min-width: 185px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
    padding: 7px;
    z-index: 50;
}

.download-menu.open .download-list {
    display: block;
}

.download-list a,
.download-list button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: #334155;
    padding: 8px 10px;
    text-align: left;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.download-list a:hover,
.download-list button:hover {
    background: #f1f5f9;
}

.share-video-card .share-material-main {
    display: block;
}

.share-video-card .share-actions {
    justify-content: flex-end;
    margin-top: 10px;
    min-width: 0;
}

.share-video-wrap {
    display: grid;
    grid-template-columns: minmax(260px, 520px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-top: 4px;
}

.share-video-frame {
    width: 100%;
    max-width: 520px;
    background: #020617;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
}

.share-video-frame video {
    width: 100%;
    max-height: 330px;
    display: block;
    object-fit: contain;
    background: #020617;
}

.share-video-info {
    min-width: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.share-video-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff1f2;
    color: #be123c;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.share-empty {
    background: #fff;
    border-radius: 18px;
    padding: 26px;
    text-align: center;
    color: #64748b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.df-share-card {
    text-align: left;
}

.df-share-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.df-share-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.df-share-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #0a2472;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.df-share-head-title {
    font-weight: 900;
    color: #0f172a;
    font-size: 18px;
}

.df-share-head-sub {
    color: #64748b;
    font-size: 13px;
}

.df-share-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 9px;
    margin-bottom: 14px;
}

.df-share-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    border-radius: 14px;
    height: 48px;
    cursor: pointer;
    transition: all .2s ease;
    font-size: 18px;
}

.df-share-btn:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.df-share-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.df-share-row textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    color: #334155;
    font-size: 13px;
    outline: none;
    line-height: 1.5;
}

.df-share-copy {
    min-width: 48px;
    border: none;
    background: #0a2472;
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
}

.df-share-status {
    min-height: 20px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #166534;
}

@media (max-width: 991px) {
    .share-container {
        padding: 0 18px;
    }

    .share-material-main {
        grid-template-columns: 1fr;
    }

    .share-actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .share-audio-frame {
        max-width: 100%;
    }

    .share-video-wrap {
        grid-template-columns: 1fr;
    }

    .share-video-frame {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .share-page {
        padding: 26px 0;
    }

    .share-container {
        padding: 0 12px;
    }

    .share-header {
        padding: 20px;
        border-radius: 18px;
    }

    .share-header h1 {
        font-size: 23px;
    }

    .share-category-list {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        margin-bottom: 14px;
    }

    .share-category-item {
        white-space: nowrap;
        padding: 8px 13px;
    }

    .share-category-section-head {
        padding: 14px 15px;
    }

    .share-category-title {
        font-size: 20px;
    }

    .share-category-body {
        padding: 10px;
    }

    .share-material-card {
        padding: 12px;
        border-radius: 14px;
    }

    .share-material-card h3 {
        font-size: 16px;
    }

    .share-audio-frame {
        min-width: 0;
    }

    .share-audio-frame audio {
        height: 38px;
    }

    .share-video-frame video {
        max-height: 280px;
    }
}

@media (max-width: 576px) {
    .df-share-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .share-video-frame video {
        max-height: 240px;
    }
}

.share-image-frame {
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    background: #f8fafc;
}

.share-image-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: #f8fafc;
}

.share-video-card .share-image-frame {
    max-width: 520px;
}

@media (max-width: 991px) {
    .share-image-frame {
        max-width: 100%;
    }
}


/*
 * Dropdown siyahılar uzun olanda itməsin deyə:
 * parent overflow açılır, siyahıya scroll verilir.
 */
.share-category-section,
.share-category-body,
.share-category-block-list,
.share-material-card,
.share-material-main,
.share-actions {
    overflow: visible !important;
}

.share-material-card {
    position: relative;
}

.download-menu {
    position: relative;
    z-index: 30;
}

.download-menu.open {
    z-index: 999;
}

.download-list {
    max-height: 280px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    z-index: 1000 !important;
}

.download-list::-webkit-scrollbar {
    width: 7px;
}

.download-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.download-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.download-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.share-menu .download-list,
.download-menu .download-list {
    right: 0;
    left: auto;
}

/*
 * Multi şəkil görünüşü
 */
.share-image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.share-image-item {
    width: 140px;
    max-width: 100%;
}

.share-image-label {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 5px;
}

.share-image-frame {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: all .2s ease;
}

.share-image-frame:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .12);
}

.share-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.share-image-zoom-icon {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.share-audio-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-audio-label,
.share-video-label {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 5px;
}

.share-video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/*
 * Gallery modal
 */
.df-gallery-open {
    overflow: hidden !important;
}

.df-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, .88);
    padding: 24px;
}

.df-gallery-modal.is-open {
    display: flex;
}

.df-gallery-dialog {
    position: relative;
    width: min(1100px, 100%);
    height: min(760px, 92vh);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.df-gallery-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
}

.df-gallery-title {
    min-width: 0;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.df-gallery-counter {
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 2px;
}

.df-gallery-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

.df-gallery-close:hover {
    background: rgba(255, 255, 255, .22);
}

.df-gallery-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 22px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.df-gallery-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
}

.df-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.df-gallery-nav:hover {
    background: rgba(255, 255, 255, .26);
}

.df-gallery-prev {
    left: 16px;
}

.df-gallery-next {
    right: 16px;
}

.df-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
}

.df-gallery-thumb {
    flex: 0 0 auto;
    width: 70px;
    height: 58px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #111827;
    cursor: pointer;
    opacity: .68;
    padding: 0;
}

.df-gallery-thumb.active {
    border-color: #fff;
    opacity: 1;
}

.df-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .download-list {
        max-height: 240px !important;
    }

    .share-image-item {
        width: calc(50% - 5px);
    }

    .share-image-frame {
        height: 135px;
    }

    .df-gallery-modal {
        padding: 12px;
    }

    .df-gallery-dialog {
        height: 90vh;
    }

    .df-gallery-nav {
        width: 42px;
        height: 42px;
    }

    .df-gallery-prev {
        left: 10px;
    }

    .df-gallery-next {
        right: 10px;
    }
}