.detail-main .content-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

#main-content-column-1 {
    border-radius: 10px;
    margin: 10px;
    margin-right: 25px;
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;

    position: relative;
    border-radius: 32px;
    background: linear-gradient(135deg, #ffffff 50%, #9dcdff 100%);
    border: 6px solid #00c8ff;
    box-shadow: 0 24px 60px rgb(155 203 225 / 60%);
    padding: 20px 35px;
    margin-top: 20px;
    margin-bottom: 20px;
}

h1 {
    font-size: 18px;
    margin: 0;
}

h2 {
    font-size: 0.68rem;
    margin: 0;
}

.detail-header-bar {
    margin-bottom: 20px;
}

.detail-back-link {
    color: #4d77ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.detail-back-link:hover { color: #00c8ff; }

.detail-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.detail-canvas-col {
    flex: 1 1 auto;
    min-width: 0;
}

.detail-replay-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #4d77ff;
    font-weight: 600;
}

.detail-canvas-wrap {
    position: relative;
    border: 2px solid rgba(124,58,237,0.33);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(167,139,250,0.2), 0 8px 32px rgba(0,0,0,0.12);
}

.detail-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.detail-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
    border: 2px solid rgba(124,58,237,0.33);
    border-top: 1px solid rgba(124,58,237,0.25);
    position: relative;
    overflow: hidden;
    border-bottom: none;
}

.ctrl-track-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0px 5px 0px;
}

.ctrl-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(124,58,237,0.2);
    border-radius: 99px;
    position: relative;
    cursor: pointer;
    overflow: visible;
}

.ctrl-progress-glow {
    position: absolute;
    inset: -2px;
    border-radius: 99px;
    background: rgba(124,58,237,0.12);
    filter: blur(4px);
    pointer-events: none;
}

.ctrl-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 99px;
    position: relative;
    transition: width 0.08s linear;
    box-shadow: 0 0 5px rgba(167,139,250,0.8), 0 0 20px rgba(124,58,237,0.4);
}

.ctrl-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c4b5fd;
    border: 2px solid #7c3aed;
    box-shadow: 0 0 8px rgba(167,139,250,0.9);
    transition: left 0.08s linear, transform 0.15s;
    pointer-events: none;
}

.ctrl-progress-bar:hover .ctrl-progress-thumb {
    transform: translate(-50%, -50%) scale(1);
}

.ctrl-progress-bar:focus {
    outline: none;
}

.ctrl-progress-bar:focus .art-ctrl-progress-thumb,
.ctrl-progress-bar--dragging .art-ctrl-progress-thumb,
.ctrl-progress-bar--selected .art-ctrl-progress-thumb {
    transform: translate(-50%, -50%) scale(1) !important;
}

ctrl-progress-bar--selected .art-ctrl-progress-thumb {
    background: #a78bfa;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.35), 0 0 12px rgba(167,139,250,0.9);
}

.ctrl-progress-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #464646;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
    margin-left: 5px;
}

.ctrl-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ctrl-playback-btns {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ctrl-btn {
    width: 34px;
    height: 34px;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    border: 1px solid rgba(124,58,237,0.5);
    background: rgba(124,58,237,0.12);
    color: #464646;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    position: relative;
}

.ctrl-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(167,139,250,0);
    transition: background 0.15s;
    clip-path: inherit;
}

.ctrl-btn:hover:not(:disabled) {
    background: rgba(124,58,237,0.35);
    color: #464646;
    box-shadow: 0 0 12px rgba(167,139,250,0.5), inset 0 0 8px rgba(124,58,237,0.2);
    border-color: rgba(167,139,250,0.7);
}

.ctrl-btn--play:not(:disabled) {
    background: rgba(124,58,237,0.3);
    border-color: rgba(167,139,250,0.7);
    color: #464646;
    box-shadow: 0 0 10px rgba(124,58,237,0.35);
}

.ctrl-btn--play:not(:disabled):hover {
    background: rgba(124,58,237,0.55);
    box-shadow: 0 0 18px rgba(167,139,250,0.65);
}

.ctrl-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.ctrl-speed-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ctrl-speed-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #464646;
    text-transform: uppercase;
}

.ctrl-speed-select {
    padding: 4px 8px;
    border: 1px solid rgba(124,58,237,0.5);
    background: rgba(124,58,237,0.12);
    color: #464646;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%237c3aed%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 7px top 50%;
    background-size: 6px auto;
    padding-right: 20px;
}
.ctrl-speed-select:focus {
    border-color: rgba(167,139,250,0.7);
    box-shadow: 0 0 10px rgba(167,139,250,0.4);
}

.drawing-like-btn {
    margin-left: 10px;
    margin-right: auto;
    padding: 4px 18px !important;
    font-size: 0.82rem !important;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)) !important;
}

.drawing-like-btn:hover::before {
    width: 6px !important;
    right: 4% !important;
    bottom: 2px !important;
    transform: rotate(31deg) !important;
}

.drawing-like-btn:hover::after {
    bottom: 1px !important;
}

.drawing-like-btn:hover:not(:disabled) {
    background: rgba(124, 58, 237, 0.15);
    border-color: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(72, 201, 236, 0.25);
}

.drawing-like-btn--liked {
    background: rgba(124, 58, 237, 0.45) !important;
    color: #101069 !important;
    box-shadow: 0 0 6px rgba(124, 58, 237, 0.4);
}

.drawing-like-btn--liked .like-btn-icon {
    fill: #48c9ec;
    stroke: #484aec;
    animation: like-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drawing-like-btn--owner {
    opacity: 1;
    cursor: not-allowed;
    pointer-events: none;

    background: rgba(16, 16, 105, 0.3);
    border: 1px dashed rgba(72, 201, 236, 0.4);
    color: rgba(72, 201, 236, 0.5);
    
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(72, 201, 236, 0.03) 2px,
        rgba(72, 201, 236, 0.03) 4px
    );
}

.drawing-like-btn--owner .like-btn-icon {
    fill: rgba(72, 201, 236, 0.3);
    stroke: rgba(72, 74, 236, 0.4);
}

.drawing-like-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

.like-btn-icon {
    transition: fill 0.2s, stroke 0.2s;
    flex-shrink: 0;
}

.like-btn-count {
    font-variant-numeric: tabular-nums;
    text-align: left;
}

@keyframes like-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.drawing-report-btn {
    padding: 4px 18px !important;
    font-size: 0.82rem !important;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)) !important;
}

.drawing-report-btn:hover:not(:disabled) {
    background: rgba(229, 62, 62, 0.14);
    border-color: #fc8181;
    transform: translateY(-1px);
}

.drawing-report-btn:disabled,
.drawing-report-btn--reported {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.drawing-report-btn:hover::after {
    bottom: 1px !important;
}


.cyber-btn--danger {
    background: rgba(229, 62, 62, 0.08);
    background: rgb(236 94 94 / 91%);
}

.cyber-btn--danger:hover,
.cyber-btn--danger:focus {
    animation: glitch-btn-red 0.22s forwards;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(252,129,129,0.55), 0 0 40px rgba(252,129,129,0.2);
    background: rgb(255 18 18 / 74%);
    border-color: rgb(255 35 35 / 87%);
    transform: translateY(-3px);
}

.cyber-btn--danger:hover svg,
.cyber-btn--danger:focus svg {
    animation: none !important;
}

.cyber-btn--danger:hover::before {
    content: " ";
    width: 12px;
    border: 1px solid #7013ef;
    position: absolute;
    right: 10%;
    bottom: 1px;
    transform: rotate(35deg);
}

.cyber-btn--danger:hover::after {
    animation: shrink-line 0.5s forwards;
    content: " ";
    width: 70%;
    border: 1px solid #7013ef;
    position: absolute;
    left: 0;
    bottom: 4px;
}

.cyber-btn--danger:active {
    background: none;
    color: #fc8181;
    box-shadow: none;
}
.cyber-btn--danger:active::before,
.cyber-btn--danger:active::after { display: none; }
.cyber-btn--danger:active svg { animation: none; }

.cyber-btn-wrap {
    position: relative;
    display: inline-flex;
}

.lobby-detail-info-block {
    background: linear-gradient(135deg, #ffffff 60%, #ede9ff 100%);
    border: 2px solid rgba(124, 58, 237, 0.33);
    border-radius: 0 0 14px 14px;
    border-top: none;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.info-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,0.2), transparent);
}

.info-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #464646;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.info-row1-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.popular-inline {
    margin: 0;
    padding: 3px 10px;
    font-size: 0.72rem;
    white-space: nowrap;
}

.info-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #7c3aed;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.info-views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #4a5568;
}

.info-row2-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.info-homepage {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #7c3aed;
    font-weight: 600;
}

.detail-stats-popular {
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 60, 60, 0.2));
    border: 1px solid rgba(255, 140, 0, 0.35);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffaa44;
    text-align: center;
}

.detail-info-sala{
    font-size: 0.86rem;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    background: rgb(68 203 204 / 23%);
    color: #38679a;
    border: 1.5px solid rgb(80 188 230 / 49%);
}

.info-author {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}

.info-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 30%;
    object-fit: cover;
    border: 2px solid rgba(124,58,237,0.4);
    box-shadow: 0 0 8px rgba(124,58,237,0.2);
    transition: box-shadow 0.2s;
}
.info-author:hover .info-author-avatar {
    box-shadow: 0 0 14px rgba(124,58,237,0.5);
}

.info-author-nick {
    font-size: 0.88rem;
    font-weight: 800;
    color: #464646;
    transition: color 0.2s;
}
.info-author:hover .info-author-nick {
    color: #7c3aed;
    text-decoration: underline;
}

.owner-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.owner-btn {
    min-width: unset !important;
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
}

.detail-info-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.detail-info-row--future a {
    font-size: 0.82rem;
    color: #a0aec0 !important;
    text-decoration: none;
    cursor: default;
}

.desc-block {
    margin-top: 10px;
    background: linear-gradient(135deg, #ffffff 60%, #ede9ff 100%);
    border: 2px solid rgba(124,58,237,0.25);
    border-radius: 14px;
    padding: 16px 20px;
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-desc-input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid rgba(124,58,237,0.2);
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: inherit;
    color: #2d3748;
    background: rgba(245,240,255,0.5);
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.detail-desc-input:focus { 
    outline: none; 
    border-color: #7c3aed; 
    background: #fff; 
}

.detail-desc-readonly {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;

    height: 67.2px;
    align-content: center;

    padding-left: 4px;
    background: rgba(124, 58, 237, 0.04);
    border-left: 3px solid rgba(124, 58, 237, 0.4);
    padding: 5px 5px;
    border-radius: 0 6px 6px 0;
}

#detail-desc-text {
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
    overflow-y: auto;
}

.edit-desc-button {
    width: 30%;
}

.desc-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(124,58,237,0.6);
    margin-bottom: 10px;
}

.detail-desc-save-btn {
    width: 20%;
    align-self: flex-end;
    margin: 5px;
}

.detail-feedback {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-top: 8px;
}

.detail-feedback--success { background: #c6f6d5; color: #276749; }
.detail-feedback--error   { background: #fed7d7; color: #9b2c2c; }

.delete-drawing-overlay {
   position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 20, 40, 0.55);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayIn 0.2s ease;
}

.delete-drawing-modal {
    background: linear-gradient(160deg, #dbeeff 0%, #eef6ff 60%, #d8f0ff 100%);
    border: 2px solid #00c8ff;
    border-radius: 0;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.3), 0 0 40px rgba(0, 200, 255, 0.15), 0 24px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    position: relative;
}

.delete-drawing-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00c8ff, #8100ff, #00c8ff, transparent);
    animation: modal-scanline 3s linear infinite;
    z-index: 1;
}

.delete-drawing-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(0, 200, 255, 0.25);
    position: relative;

    font-size: 0.88rem;
    font-weight: 800;
    color: #0a2540;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-drawing-desc {
    padding: 22px 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;

    color: #4a5568;
    text-align: center;
}

.delete-drawing-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 22px 18px;
    border-top: 1px solid rgba(0, 200, 255, 0.2);
}

.delete-drawing-cancel {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(0, 200, 255, 0.3);
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    text-decoration: none;
    text-align: center;
}

.delete-drawing-cancel:hover {
    background: rgba(0, 200, 255, 0.08);
    border-color: #00c8ff;
    color: #2b6cb0;
}

.delete-drawing-confirm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    background: rgba(0, 200, 255, 0.12);
    border: 1.5px solid #00c8ff;
    color: #0a2540 !important;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    text-decoration: none;
    text-align: center;
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.2);
}

.delete-drawing-confirm:hover {
    background: #00c8ff;
    color: #0a0e1a;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.45);
    transform: translateY(-1px);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 20, 40, 0.55);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayIn 0.2s ease;
}
@keyframes overlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.picture-modal {
    background: linear-gradient(160deg, #dbeeff 0%, #eef6ff 60%, #d8f0ff 100%);
    border: 2px solid #00c8ff;
    border-radius: 0;
    width: 100%;
    max-width: 420px;
    box-shadow:
        0 0 0 1px rgba(0,200,255,0.3),
        0 0 40px rgba(0,200,255,0.15),
        0 24px 60px rgba(0,0,0,0.4);
    animation: modalSlideIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
    overflow: visible;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    position: relative;
}

.picture-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00c8ff, #8100ff, #00c8ff, transparent);
    animation: modal-scanline 3s linear infinite;
    z-index: 1;
}

.picture-modal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,200,255,0.5), transparent);
    z-index: 1;
}

@keyframes modal-scanline {
    0%   { background-position: -200% center; opacity: 0.6; }
    50%  { opacity: 1; }
    100% { background-position: 200% center; opacity: 0.6; }
}

@keyframes modalSlideIn {
    from { opacity:0; transform: scale(0.9) translateY(20px); }
    to   { opacity:1; transform: scale(1)   translateY(0); }
}


.picture-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(0,200,255,0.25);
    position: relative;
}

.picture-modal-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0a2540;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.picture-modal-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    background: linear-gradient(to bottom, #00c8ff, #8100ff);
    border-radius: 2px;
    flex-shrink: 0;
}

.picture-modal-close {
    background: rgba(0,200,255,0.08);
    border: 1.5px solid rgba(0,200,255,0.35);
    color: #2b6cb0;
    cursor: pointer;
    padding: 5px;
    border-radius: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    display: flex;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}
.picture-modal-close svg { width: 14px; height: 14px; }
.picture-modal-close:hover {
    background: rgba(229,62,62,0.12);
    border-color: #fc8181;
    color: #c53030;
}


.picture-modal-body {
    padding: 22px 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.picture-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 22px 18px;
    border-top: 1px solid rgba(0,200,255,0.2);
}

.modal-cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    background: rgba(0,0,0,0.04);
    border: 1.5px solid rgba(0,200,255,0.3);
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    text-decoration: none;
    text-align: center;
}
.modal-cancel-btn:hover {
    background: rgba(0,200,255,0.08);
    border-color: #00c8ff;
    color: #2b6cb0;
}

.modal-confirm-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    background: rgba(0,200,255,0.12);
    border: 1.5px solid #00c8ff;
    color: #0a2540 !important;
    font-size: 0.8rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.2s;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    text-decoration: none;
    text-align: center;
    box-shadow: 0 0 12px rgba(0,200,255,0.2);
}
.modal-confirm-btn:hover {
    background: #00c8ff;
    color: #0a0e1a;
    box-shadow: 0 0 20px rgba(0,200,255,0.45);
    transform: translateY(-1px);
}
.modal-confirm-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.edit-profile-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-reason {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4299e1;
    margin: 0;
}

.edit-profile-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1.5px solid rgba(0, 200, 255, 0.4);
    background: rgba(255, 255, 255, 0.6);
    color: #1a365d;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.edit-profile-hint {
    font-size: 0.72rem;
    color: #4a5568;
    text-align: right;
}

@media only screen and (orientation: portrait), (max-aspect-ratio: 4/3) {
    * {
        box-sizing: border-box !important;
    }
    .container, .detail-main {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    .detail-main .content-container {
        flex-direction: column !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #main-content-column-1 {
        width: auto !important; 
        max-width: 100% !important;
        box-sizing: border-box !important;
        align-self: stretch !important;
        margin: 10px 8px !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        padding: 20px 14px !important;
        border-radius: 24px !important;
        border-width: 4px !important;
        box-shadow: 0 16px 40px rgb(155 203 225 / 50%) !important;
    }

    .cyber-btn--action:hover, .cyber-btn--action:focus, .cyber-btn--danger:hover, .cyber-btn--danger:focus {
        animation: none !important;
        background: #00c8ff !important;
        color: #ffffff !important;
        border-color: rgba(0, 160, 210, 0.85) !important;
        box-shadow: none !important;
        transform: none !important;
        letter-spacing: normal !important;
        filter: none !important;
        opacity: 1 !important;
    }
    .cyber-btn--danger:hover, .cyber-btn--danger:focus {
        background: rgb(236 94 94 / 91%) !important;
    }
    .cyber-btn--action:hover::before, .cyber-btn--action:hover::after, .cyber-btn--action:focus::before, .cyber-btn--action:focus::after, .cyber-btn--danger:hover::before, .cyber-btn--danger:hover::after, .cyber-btn--danger:focus::before, .cyber-btn--danger:focus::after {
        content: none !important;
        animation: none !important;
    }
    .cyber-btn--action:hover svg, .cyber-btn--action:focus svg, .cyber-btn--danger:hover svg, .cyber-btn--danger:focus svg {
        animation: none !important;
    }

    .drawing-like-btn--liked, .drawing-like-btn--liked:hover, .drawing-like-btn--liked:focus, .drawing-like-btn--liked:active {
        background: rgba(124, 58, 237, 0.45) !important;
        color: #101069 !important;
        border-color: rgba(167,139,250,0.7) !important;
        box-shadow: 0 0 6px rgba(124, 58, 237, 0.4) !important;
    }
    .drawing-like-btn--liked .like-btn-icon, .drawing-like-btn--liked:hover .like-btn-icon, .drawing-like-btn--liked:focus .like-btn-icon, .drawing-like-btn--liked:active .like-btn-icon {
        animation: like-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        fill: #48c9ec !important;
        stroke: #484aec !important;
    }

    .detail-canvas-wrap, .detail-controls, .lobby-detail-info-block {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .detail-canvas-wrap {
        border-radius: 12px 12px 0 0 !important;
        border-left: 2px solid rgba(124, 58, 237, 0.33) !important;
        border-right: 2px solid rgba(124, 58, 237, 0.33) !important;
    }
    .detail-controls {
        border-radius: 0 !important;
        border-left: 2px solid rgba(124, 58, 237, 0.33) !important;
        border-right: 2px solid rgba(124, 58, 237, 0.33) !important;
    }
    .lobby-detail-info-block {
        border-radius: 0 0 12px 12px !important;
        border-left: 2px solid rgba(124, 58, 237, 0.33) !important;
        border-right: 2px solid rgba(124, 58, 237, 0.33) !important;
    }

    .ctrl-bottom-row {
        display: grid !important;
        grid-template-areas: "play speed" "like report";
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px;
        padding: 0 5px;
    }
    .ctrl-playback-btns {
        grid-area: play;
        justify-self: start;
        gap: 4px;
    }
    .ctrl-btn {
        width: 30px;
        height: 30px;
    }
    .ctrl-speed-wrap {
        grid-area: speed;
        justify-self: end;
        height: 30px;
        display: flex;
        align-items: center;
    }
    .ctrl-speed-select {
        height: 30px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
    }
    .ctrl-speed-label {
        display: none;
    }
    .drawing-like-btn {
        grid-area: like;
        justify-self: stretch;
        margin-left: 0 !important;
        justify-content: center;
        padding: 10px 14px !important;
    }
    .drawing-report-btn {
        grid-area: report;
        justify-self: end;
        font-size: 0 !important;
        padding: 11px 14px !important;
        justify-content: center !important;
        gap: 0 !important;
        min-width: 40px;
    }

    .lobby-detail-info-block {
        padding: 10px 12px;
    }
    .info-row {
        justify-content: flex-start;
        gap: 8px;
        padding: 10px 0;
    }
    .info-row--1, .info-row--3 {
        flex-direction: column;
        align-items: flex-start;
    }
    .info-title {
        text-align: left;
        width: 100%;
    }
    .info-row1-right, .info-row2-right {
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
    }
    .info-author {
        width: 100%;
        justify-content: flex-start;
    }
    .owner-btns {
        width: 100%;
        justify-content: flex-start;
        margin-top: 12px;
    }
    .owner-btn {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .desc-block {
        padding: 12px 14px;
    }

    .picture-modal {
        max-width: 95% !important;
        width: 100% !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        margin: 0 auto;
    }
    .picture-modal-footer {
        flex-wrap: wrap;
        justify-content: stretch;
        gap: 10px;
        padding: 14px 16px;
    }
    .modal-cancel-btn, .modal-confirm-btn {
        flex: 1 1 45%;
        min-width: 0;
        padding: 10px 8px;
        font-size: 0.8rem;
        justify-content: center;
        text-align: center;
    }
}

@media only screen and (max-width: 1024px) and (orientation: landscape) {
    * {
        box-sizing: border-box !important;
    }
    .container, .detail-main {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    .detail-main .content-container {
        flex-direction: column !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #main-content-column-1 {
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        align-self: stretch !important;
        margin: 10px 12px !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        padding: 20px 24px !important;
        border-radius: 28px !important;
        border-width: 5px !important;
    }

    .ctrl-bottom-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        grid-template-areas: initial !important;
        grid-template-columns: initial !important;
        gap: 12px;
        padding: 0;
    }
    .ctrl-playback-btns { justify-self: initial; }
    .ctrl-btn {
        width: 30px;
        height: 30px;
    }
    .ctrl-speed-wrap { 
        justify-self: initial;
        height: 34px;
    }
    .ctrl-speed-select {
        height: 30px;
    }
    .ctrl-speed-label {
        display: none;
    }
    .drawing-like-btn {
        justify-self: initial;
        margin-left: 10px !important;
        justify-content: initial;
        padding: 7px 18px !important;
    }
    .drawing-report-btn {
        justify-self: initial;
        font-size: 0.82rem !important;
        padding: 7px 18px !important;
        gap: 7px !important;
        min-width: initial;
    }

    .picture-modal {
        max-width: 95% !important;
        width: 100% !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        margin: 0 auto;
    }

    .info-views {
        font-size: 1rem !important;
    }

    .info-homepage {
        font-size: 0.78rem !important;
    }
}