    .album-item-page {
        padding: 30px 0;
    }
    .item-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
        flex-wrap: wrap;
        gap: 15px;
    }
    .btn-back {
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: color 0.2s;
    }
    .btn-back:hover {
        color: var(--color-primary-text);
    }
    .item-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    .item-actions .btn-small {
        padding: 8px 18px;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--bg-hover);
        color: var(--text-primary);
    }
    .item-actions .btn-small:hover {
        transform: translateY(-2px);
    }
    .item-actions .btn-danger {
        background: var(--toast-error);
        color: white;
    }
    .item-actions .btn-danger:hover {
        opacity: 0.9;
    }

    .item-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        background: var(--bg-card);
        border-radius: 20px;
        padding: 30px;
        box-shadow: var(--shadow-heavy);
    }
    .item-media {
        position: relative;
        min-height: 300px;
        background: #131416;
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: default;
    }
    .item-media--photo { min-height: 0; }
    .item-media img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: 70vh;
        cursor: crosshair;
    }
    .item-media video {
        width: 100%;
        max-height: 500px;
    }
    .click-hint {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0,0,0,0.7);
        color: white;
        padding: 6px 16px;
        border-radius: 30px;
        font-size: 13px;
        pointer-events: none;
        white-space: nowrap;
        opacity: 0.7;
    }
    .click-marker {
        position: absolute;
        color: #c2410c;
        font-size: 24px;
        font-weight: bold;
        pointer-events: none;
        text-shadow: 0 0 6px white;
        transform: translate(-50%, -50%);
        animation: pulse 0.5s ease-out;
    }
    @keyframes pulse {
        0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
        100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
    }

    .item-card-large {
        width: 100%;
        padding: 40px;
        text-align: center;
        color: white;
    }
    .item-card-large i {
        font-size: 64px;
        margin-bottom: 20px;
        display: block;
    }
    .item-card-large h3 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .item-card-large p {
        opacity: 0.9;
        line-height: 1.6;
    }
    .event-card-large {
        background: linear-gradient(135deg, #f59e0b, #c2410c);
    }
    .ticket-card-large {
        background: linear-gradient(135deg, #c2410c, #9a3412);
    }
    .user-card-large {
        background: linear-gradient(135deg, #22c55e, #14b8a6);
    }
    .custom-card-large {
        background: linear-gradient(135deg, #6b7280, #9ca3af);
    }

    .item-info {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .item-info h1 {
        font-size: 28px;
        color: var(--text-primary);
        margin: 0;
    }
    .item-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        font-size: 14px;
        color: var(--text-muted);
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border-light);
    }
    .item-meta i {
        margin-right: 4px;
        color: var(--color-primary-text);
    }
    .item-description {
        background: var(--bg-hover);
        padding: 16px;
        border-radius: 12px;
    }
    .item-description h3 {
        font-size: 16px;
        color: var(--text-primary);
        margin-bottom: 8px;
    }
    .item-description p {
        color: var(--text-secondary);
        line-height: 1.6;
        margin: 0;
    }

    /* Отметки - исправлено */
    .item-tags h3 {
        font-size: 16px;
        color: var(--text-primary);
        margin-bottom: 12px;
    }
    .tags-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .tag-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 12px;
        background: var(--bg-hover);
        border-radius: 8px;
        flex-wrap: wrap;
    }
    .tag-text {
        font-weight: 500;
        color: var(--text-primary);
    }
    .tag-text i {
        color: var(--color-primary-text);
        margin-right: 4px;
    }
    .tag-link {
        color: var(--color-primary-text);
        text-decoration: none;
        font-size: 13px;
    }
    .tag-link:hover {
        text-decoration: underline;
    }
    .tag-position {
        font-size: 12px;
        color: var(--text-muted);
    }
    .tag-date {
        font-size: 12px;
        color: var(--text-muted);
        margin-left: auto;
    }
    .item-extra {
        background: var(--bg-hover);
        padding: 16px;
        border-radius: 12px;
        overflow: auto;
    }
    .item-extra h3 {
        font-size: 16px;
        color: var(--text-primary);
        margin-bottom: 8px;
    }
    .item-extra pre {
        background: var(--code-bg);
        padding: 12px;
        border-radius: 8px;
        font-size: 13px;
        color: var(--text-secondary);
        overflow: auto;
        max-height: 300px;
        margin: 0;
        font-family: monospace;
    }

    .edit-form-container,
    .tag-form-container {
        margin-top: 30px;
        background: var(--bg-card);
        border-radius: 20px;
        padding: 30px;
        box-shadow: var(--shadow-heavy);
        animation: fadeIn 0.3s ease;
    }
    .edit-form h3,
    .tag-form h3 {
        font-size: 20px;
        color: var(--text-primary);
        margin-bottom: 20px;
    }
    .edit-form .form-group,
    .tag-form .form-group {
        margin-bottom: 16px;
    }
    .edit-form .form-group label,
    .tag-form .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 6px;
        color: var(--text-primary);
        font-size: 14px;
    }
    .edit-form .form-group input,
    .edit-form .form-group textarea,
    .tag-form .form-group input {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        font-size: 15px;
        background: var(--bg-input);
        color: var(--text-primary);
        transition: border-color 0.2s;
        font-family: inherit;
    }
    .edit-form .form-group input:focus,
    .edit-form .form-group textarea:focus,
    .tag-form .form-group input:focus {
        outline: none;
        border-color: var(--color-secondary);
        box-shadow: 0 0 0 3px rgba(194,65,12,0.15);
    }
    .edit-form .form-group textarea {
        resize: vertical;
        min-height: 80px;
    }
    .form-actions {
        display: flex;
        gap: 12px;
        margin-top: 10px;
        flex-wrap: wrap;
    }
    .form-actions .btn-primary {
        padding: 10px 24px;
        border: none;
        border-radius: 30px;
        background: var(--gradient-main);
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }
    .form-actions .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(234,88,12,0.3);
    }
    .form-actions .btn-secondary {
        padding: 10px 24px;
        border: 1px solid var(--border-color);
        border-radius: 30px;
        background: var(--bg-hover);
        color: var(--text-primary);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }
    .form-actions .btn-secondary:hover {
        background: var(--border-color);
        transform: translateY(-2px);
    }

    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        animation: fadeIn 0.3s ease;
    }
    .modal-content {
        background: var(--bg-card);
        padding: 40px;
        border-radius: 20px;
        max-width: 400px;
        width: 90%;
        box-shadow: var(--shadow-heavy);
        text-align: center;
    }
    .modal-content h3 {
        font-size: 22px;
        color: var(--text-primary);
        margin-bottom: 12px;
    }
    .modal-content p {
        color: var(--text-secondary);
        margin-bottom: 20px;
    }
    .modal-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .modal-actions .btn-danger {
        padding: 10px 24px;
        border: none;
        border-radius: 30px;
        background: var(--toast-error);
        color: white;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }
    .modal-actions .btn-danger:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }
    .modal-actions .btn-secondary {
        padding: 10px 24px;
        border: 1px solid var(--border-color);
        border-radius: 30px;
        background: var(--bg-hover);
        color: var(--text-primary);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }
    .modal-actions .btn-secondary:hover {
        background: var(--border-color);
        transform: translateY(-2px);
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 768px) {
        .item-content {
            grid-template-columns: 1fr;
            padding: 20px;
        }
        .item-media {
            min-height: 200px;
        }
        .item-info h1 {
            font-size: 24px;
        }
        .item-header {
            flex-direction: column;
            align-items: stretch;
        }
        .item-actions {
            justify-content: flex-start;
        }
        .tag-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
        }
        .tag-date {
            margin-left: 0;
        }
        .modal-content {
            padding: 30px 20px;
        }
        .edit-form-container,
        .tag-form-container {
            padding: 20px;
        }
        .click-hint {
            font-size: 11px;
            padding: 4px 12px;
            white-space: normal;
            width: 80%;
            text-align: center;
        }
    }
        /* ===== НОВЫЕ СТИЛИ ДЛЯ МЕТОК ===== */
    .image-wrapper {
        position: relative;
        display: inline-block;
        width: 100%;
    }
    .image-wrapper img {
        width: 100%;
        height: auto;
        display: block;
    }

    .tags-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
    .tag-marker {
        position: absolute;
        width: 20px;
        height: 20px;
        background: rgba(234, 88, 12, 0.8);
        border: 2px solid white;
        border-radius: 50%;
        cursor: pointer;
        pointer-events: auto;
        transform: translate(-50%, -50%);
        z-index: 5;
        box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
        transition: transform 0.2s, box-shadow 0.2s;
    }
    .tag-marker:hover {
        transform: translate(-50%, -50%) scale(1.3);
        box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.4);
        z-index: 6;
    }
    .tag-marker .tag-tooltip {
        display: none;
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: var(--bg-card);
        color: var(--text-primary);
        padding: 4px 10px;
        border-radius: 8px;
        font-size: 12px;
        white-space: nowrap;
        box-shadow: var(--shadow);
        border: 1px solid var(--border-color);
        pointer-events: auto;
        margin-bottom: 6px;
        z-index: 10;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .tag-marker:hover .tag-tooltip {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .tag-tooltip-link {
        color: var(--color-secondary-text);
        text-decoration: none;
        font-size: 14px;
    }

    .tag-mode-hint {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0,0,0,0.6);
        color: white;
        padding: 8px 20px;
        border-radius: 30px;
        font-size: 16px;
        backdrop-filter: blur(4px);
        pointer-events: none;
        z-index: 4;
        display: flex;
        align-items: center;
        gap: 10px;
        border: 2px dashed rgba(255,255,255,0.3);
    }
    .tag-mode-hint i {
        font-size: 20px;
    }

    .tag-mode-active .image-wrapper {
        outline: 3px solid var(--color-primary);
        outline-offset: -3px;
    }

    .item-actions .tag-toggle-btn.active {
        background: var(--color-primary);
        color: white;
        box-shadow: 0 0 0 3px rgba(234,88,12,0.3);
    }
    .tag-toggle-btn {
        background: var(--bg-hover) !important;
        border: 1px solid var(--border-color) !important;
    }
    .tag-toggle-btn:hover {
        background: var(--border-color) !important;
    }
    .tag-toggle-btn.active {
        background: var(--color-primary) !important;
        border-color: var(--color-primary) !important;
        color: white !important;
    }

    .delete-tag-btn {
        background: none;
        border: none;
        color: var(--toast-error);
        cursor: pointer;
        font-size: 14px;
        padding: 0 4px;
        margin-left: auto;
        opacity: 0.6;
        transition: opacity 0.2s;
    }
    .delete-tag-btn:hover {
        opacity: 1;
    }

    .no-tags {
        color: var(--text-muted);
        font-size: 14px;
        padding: 8px 0;
    }

    /* Модалка для метки */
    .modal-tag .modal-content {
        max-width: 450px;
    }
    .coord-display {
        display: flex;
        gap: 20px;
        background: var(--bg-hover);
        padding: 6px 12px;
        border-radius: 8px;
        font-weight: 500;
        margin-top: 4px;
    }
    .coord-display span {
        font-size: 14px;
    }
    .coord-display span:first-child {
        color: var(--text-muted);
    }

    /* Адаптация */
    @media (max-width: 768px) {
        .tag-mode-hint {
            font-size: 13px;
            padding: 6px 14px;
        }
        .modal-tag .modal-content {
            padding: 20px;
        }
    }
