/* MediaCore v1.0.0 — central media foundation */
.mediacore-page{width:100%;}
.mediacore-shell{display:flex;flex-direction:column;gap:16px;padding:18px;border:1px solid rgba(255,153,0,.18);border-radius:22px;background:linear-gradient(145deg,rgba(29,21,13,.76),rgba(8,8,8,.94));box-shadow:0 24px 70px rgba(0,0,0,.36);}
.mediacore-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:20px;border:1px solid rgba(255,153,0,.18);border-radius:18px;background:linear-gradient(145deg,rgba(67,42,18,.35),rgba(7,7,7,.92));}
.mediacore-kicker{display:inline-flex;align-items:center;gap:6px;margin-bottom:12px;border:1px solid rgba(255,177,74,.22);background:rgba(255,153,0,.07);color:#ffc36a;border-radius:999px;padding:5px 11px;font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;}
.mediacore-hero h2{margin:0 0 10px;color:#ffb347;font-size:30px;letter-spacing:.02em;}
.mediacore-hero p{margin:0 0 8px;color:#e0d6ca;font-size:15px;line-height:1.55;}
.mediacore-hero small{color:#a99b89;line-height:1.5;}
.mediacore-hero-actions{display:flex;gap:8px;flex-wrap:wrap;}
.mediacore-alert{border-radius:14px;padding:10px 12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);}
.mediacore-alert.is-ok{border-color:rgba(74,212,105,.35);background:rgba(44,120,58,.18);color:#c9f5cf;}
.mediacore-alert.is-error{border-color:rgba(255,96,96,.35);background:rgba(130,35,35,.18);color:#ffc3bd;}
.mediacore-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;}
.mediacore-stats>div{border:1px solid rgba(255,153,0,.17);border-radius:16px;padding:13px 14px;background:linear-gradient(145deg,rgba(255,153,0,.07),rgba(14,13,12,.88));box-shadow:inset 0 1px 0 rgba(255,255,255,.035);}
.mediacore-stats strong{display:block;color:#ffb347;font-size:25px;line-height:1;margin-bottom:6px;}
.mediacore-stats span{color:#bdb4aa;font-size:12px;letter-spacing:.03em;}
.mediacore-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,330px);gap:16px;align-items:start;}
.mediacore-main,.mediacore-side,.mediacore-upload-form,.mediacore-check{border-radius:18px;background:linear-gradient(145deg,rgba(16,14,12,.95),rgba(8,8,8,.96));border-color:rgba(255,153,0,.16);}
.mediacore-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid rgba(255,153,0,.12);}
.mediacore-section-head h3,.mediacore-side h3{margin:0;color:#ffb347;font-size:20px;}
.mediacore-section-head p{margin:5px 0 0;color:#a99b89;line-height:1.45;}
.mediacore-section-head code,.mediacore-form-hint code{color:#ffcf8c;background:rgba(0,0,0,.26);border:1px solid rgba(255,153,0,.15);border-radius:7px;padding:2px 5px;}
.mediacore-section-head>span{white-space:nowrap;border:1px solid rgba(255,153,0,.2);background:rgba(255,153,0,.07);color:#ffcc8a;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700;}
.mediacore-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;}
.mediacore-card{overflow:hidden;border:1px solid rgba(255,153,0,.13);border-radius:17px;background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,153,0,.035));box-shadow:0 10px 24px rgba(0,0,0,.16);transition:border-color .16s ease,transform .16s ease;}
.mediacore-card:hover{border-color:rgba(255,177,74,.30);transform:translateY(-1px);}
.mediacore-preview{height:142px;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 30% 20%,rgba(255,153,0,.12),transparent 30%),rgba(0,0,0,.30);border-bottom:1px solid rgba(255,153,0,.11);}
.mediacore-preview img{width:100%;height:100%;object-fit:cover;display:block;}
.mediacore-preview span{font-size:34px;width:64px;height:64px;display:flex;align-items:center;justify-content:center;border-radius:18px;background:rgba(255,153,0,.09);border:1px solid rgba(255,153,0,.20);}
.mediacore-card-body{padding:12px;display:flex;flex-direction:column;gap:8px;}
.mediacore-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;}
.mediacore-badge{display:inline-flex;border:1px solid rgba(255,153,0,.24);background:rgba(255,153,0,.075);color:#ffcc8a;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;line-height:1.1;text-transform:uppercase;}
.mediacore-card small{color:#948a80;font-size:12px;}
.mediacore-card h3{margin:0;color:#f3eee7;font-size:16px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mediacore-card p{margin:0;color:#bfb7ad;font-size:13px;line-height:1.35;}
.mediacore-url{width:100%;box-sizing:border-box;border:1px solid rgba(255,153,0,.12);border-radius:10px;background:rgba(0,0,0,.26);color:#cfc3b6;padding:8px;font-size:12px;}
.mediacore-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center;}
.mediacore-actions form{margin:0;}
.mediacore-side{display:flex;flex-direction:column;gap:12px;}
.mediacore-side-block{border:1px solid rgba(255,153,0,.12);border-radius:16px;padding:14px;background:rgba(255,255,255,.025);}
.mediacore-side h3{margin-bottom:8px;}
.mediacore-side h4{margin:0 0 10px;color:#ffb347;}
.mediacore-side p,.mediacore-side li{color:#bfb7ad;line-height:1.55;}
.mediacore-side ul{margin:0;padding-left:18px;}
.mediacore-empty{border:1px solid rgba(255,153,0,.14);border-radius:16px;padding:18px;background:rgba(0,0,0,.18);}
.mediacore-empty h3{margin:0 0 8px;color:#ffb347;}
.mediacore-empty p{color:#bfb7ad;}
.mediacore-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;}
.mediacore-upload-form label{display:flex;flex-direction:column;gap:7px;color:#ffcc8a;font-weight:800;}
.mediacore-upload-form input,.mediacore-upload-form select{border:1px solid rgba(255,153,0,.18);border-radius:12px;background:rgba(0,0,0,.28);color:#f3eee7;padding:10px;}
.mediacore-form-hint{color:#a99b89;line-height:1.45;}
.mediacore-form-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
.mediacore-check p{margin:9px 0;color:#d7cec4;}
.mediacore-widget{display:flex;flex-direction:column;gap:10px;}
.mediacore-widget-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.mediacore-widget-item{height:58px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,153,0,.13);border-radius:13px;background:rgba(255,255,255,.035);overflow:hidden;text-decoration:none;}
.mediacore-widget-item img{width:100%;height:100%;object-fit:cover;}
.mediacore-widget-item span{font-size:22px;}
.mediacore-more{display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,153,0,.18);border-radius:12px;padding:9px;color:#ffcc8a;text-decoration:none;background:rgba(255,153,0,.06);}
.mediacore-more:hover{border-color:rgba(255,177,74,.35);background:rgba(255,153,0,.09);}
.mediacore-empty-small{color:#aaa;margin:0;}
@media(max-width:900px){.mediacore-layout{grid-template-columns:1fr}.mediacore-shell{padding:12px}.mediacore-hero-actions{width:100%;}.mediacore-hero-actions .dsc-btn{flex:1;justify-content:center}.mediacore-section-head{flex-direction:column}.mediacore-section-head>span{white-space:normal}.mediacore-widget-grid{grid-template-columns:repeat(2,1fr)}}

/* MediaCore v1.0.1 — Upload Listing & Check Runtime */
.mediacore-check-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin:18px 0;
}
.mediacore-check-card{
    border:1px solid rgba(255,180,80,.22);
    border-radius:16px;
    padding:14px 16px;
    background:linear-gradient(135deg,rgba(30,24,16,.88),rgba(8,8,7,.92));
    box-shadow:0 12px 30px rgba(0,0,0,.22);
}
.mediacore-check-card strong{
    display:block;
    color:#ffc06a;
    margin-bottom:5px;
    letter-spacing:.02em;
}
.mediacore-check-card span{
    color:rgba(245,230,205,.76);
    font-size:.95rem;
}
.mediacore-check-card.is-ok{border-color:rgba(88,210,130,.30);}
.mediacore-check-card.is-warning{border-color:rgba(255,190,80,.38);}
.mediacore-check-card.is-error{border-color:rgba(255,90,90,.42);}
.mediacore-check-card.is-info{border-color:rgba(255,180,80,.24);}
.mediacore-card-source-filesystem .mediacore-badge::after{
    content:' · Ordner';
    opacity:.75;
}
@media(max-width:900px){
    .mediacore-check-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:560px){
    .mediacore-check-grid{grid-template-columns:1fr;}
}

/* MediaCore v1.1.0 — Detail & File Management */
.mediacore-detail-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(280px,390px);
    gap:16px;
    align-items:start;
}
.mediacore-detail-main,
.mediacore-detail-side{
    border-radius:18px;
    border:1px solid rgba(255,153,0,.16);
    background:linear-gradient(145deg,rgba(16,14,12,.95),rgba(8,8,8,.96));
}
.mediacore-detail-preview{
    min-height:360px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(255,153,0,.13);
    border-radius:18px;
    overflow:hidden;
    background:radial-gradient(circle at 20% 10%,rgba(255,153,0,.10),transparent 35%),rgba(0,0,0,.28);
}
.mediacore-detail-preview img{
    display:block;
    width:100%;
    max-height:620px;
    object-fit:contain;
}
.mediacore-file-icon{
    width:110px;
    height:110px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:26px;
    border:1px solid rgba(255,153,0,.22);
    background:rgba(255,153,0,.08);
    font-size:52px;
}
.mediacore-detail-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:flex-end;
    margin-top:14px;
}
.mediacore-copyline{
    flex:1 1 360px;
    display:flex;
    flex-direction:column;
    gap:7px;
    color:#ffcc8a;
    font-weight:800;
}
.mediacore-copyline input{
    width:100%;
    box-sizing:border-box;
    border:1px solid rgba(255,153,0,.15);
    border-radius:12px;
    background:rgba(0,0,0,.30);
    color:#f3eee7;
    padding:10px 12px;
}
.mediacore-detail-side{
    display:flex;
    flex-direction:column;
    gap:14px;
}
.mediacore-detail-block{
    border:1px solid rgba(255,153,0,.13);
    border-radius:16px;
    padding:15px;
    background:rgba(255,255,255,.025);
}
.mediacore-detail-block h3{
    margin:0 0 12px;
    color:#ffb347;
}
.mediacore-detail-block p{
    margin:0 0 12px;
    color:#bfb7ad;
    line-height:1.55;
}
.mediacore-meta-list{
    margin:0;
    display:flex;
    flex-direction:column;
    gap:8px;
}
.mediacore-meta-list div{
    display:grid;
    grid-template-columns:112px minmax(0,1fr);
    gap:10px;
    align-items:start;
    border-bottom:1px solid rgba(255,153,0,.08);
    padding-bottom:8px;
}
.mediacore-meta-list div:last-child{border-bottom:0;padding-bottom:0;}
.mediacore-meta-list dt{
    color:#a99b89;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.mediacore-meta-list dd{
    margin:0;
    color:#f3eee7;
    word-break:break-word;
}
.mediacore-detail-block.is-danger{
    border-color:rgba(255,110,90,.22);
    background:linear-gradient(145deg,rgba(80,24,18,.12),rgba(8,8,8,.92));
}
.mediacore-delete-option{
    display:flex;
    align-items:center;
    gap:9px;
    margin:0 0 12px;
    color:#e0d6ca;
}
.mediacore-delete-option input{accent-color:#ff9a3d;}
@media(max-width:980px){
    .mediacore-detail-layout{grid-template-columns:1fr;}
    .mediacore-detail-preview{min-height:260px;}
}


/* MediaCore v1.1.1 — Detail Runtime Fix */
.mediacore-actions .dsc-btn,
.mediacore-actions .btn{
    min-width:unset;
    white-space:nowrap;
}
.mediacore-detail-block.is-note{
    border-color:rgba(255,190,90,.18);
    background:linear-gradient(145deg,rgba(255,153,0,.055),rgba(8,8,8,.74));
}


/* MediaCore v1.1.2 — Detail UI Polish */
.mediacore-hero > div:first-child{
    min-width:0;
    max-width:100%;
}
.mediacore-detail-title{
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
    hyphens:auto;
    line-height:1.12;
}
.mediacore-detail-filename-full{
    max-width:100%;
    margin-top:8px;
    padding:8px 10px;
    border:1px solid rgba(255,153,0,.14);
    border-radius:12px;
    background:rgba(0,0,0,.24);
    color:#bfb7ad;
    font-size:12px;
    line-height:1.35;
    overflow-wrap:anywhere;
    word-break:break-word;
}
.mediacore-detail-preview{
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 14px 38px rgba(0,0,0,.18);
}
.mediacore-copyline{
    min-width:0;
}
.mediacore-copy-row{
    display:flex;
    gap:8px;
    align-items:center;
    min-width:0;
}
.mediacore-copy-row input{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
}
.mediacore-meta-list dd{
    overflow-wrap:anywhere;
    word-break:break-word;
}
.mediacore-detail-block.is-note .dsc-btn,
.mediacore-detail-block.is-note .btn{
    margin-top:4px;
}
@media(max-width:720px){
    .mediacore-detail-title{font-size:24px;}
    .mediacore-detail-filename-full{font-size:11px;}
}


/* MediaCore v1.1.3 — Detail Title Compact Fix */
.mediacore-detail-title{
    font-size:30px;
    line-height:1.08;
    max-width:100%;
    margin-bottom:10px;
}
.mediacore-detail-filebox{
    display:grid;
    grid-template-columns:92px minmax(0,1fr);
    align-items:start;
    gap:10px;
    max-width:880px;
    margin-top:10px;
    padding:10px 12px;
    border:1px solid rgba(255,153,0,.14);
    border-radius:13px;
    background:linear-gradient(145deg,rgba(0,0,0,.28),rgba(255,153,0,.035));
}
.mediacore-detail-filebox span{
    color:#a99b89;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.06em;
    padding-top:2px;
}
.mediacore-detail-filebox strong{
    min-width:0;
    color:#f3eee7;
    font-size:14px;
    line-height:1.35;
    font-weight:800;
    overflow-wrap:anywhere;
    word-break:break-word;
}
.mediacore-copyline{
    flex:1 1 100%;
    width:100%;
}
.mediacore-copy-row{
    width:100%;
}
.mediacore-copy-row .mediacore-public-url,
.mediacore-copy-row input{
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
    font-size:12px;
    line-height:1.35;
    min-height:42px;
}
.mediacore-detail-actions > .dsc-btn,
.mediacore-detail-actions > .btn{
    flex:0 0 auto;
}
.mediacore-meta-list dd{
    font-size:14px;
    line-height:1.35;
}
@media(max-width:720px){
    .mediacore-detail-title{font-size:24px;}
    .mediacore-detail-filebox{grid-template-columns:1fr;gap:4px;}
}


/* MediaCore v1.2.0 — Fallback Registration */
.mediacore-register-form{
    margin-top:12px;
}
.mediacore-register-form .dsc-btn,
.mediacore-register-form .btn{
    width:100%;
    justify-content:center;
}
.mediacore-copy-hint{
    display:block;
    margin-top:4px;
    color:#a99b89;
    font-size:11px;
    line-height:1.35;
}
.mediacore-copy-row .mediacore-public-url{
    text-overflow:clip;
}


/* MediaCore v1.3.0 — Filter & Overview */
.mediacore-filter-panel{
    border-radius:18px;
    border:1px solid rgba(255,153,0,.16);
    background:linear-gradient(145deg,rgba(19,16,13,.92),rgba(8,8,8,.94));
    padding:14px;
}
.mediacore-filters{
    display:grid;
    grid-template-columns:minmax(220px,1.4fr) minmax(170px,.8fr) minmax(170px,.8fr) auto;
    gap:12px;
    align-items:end;
}
.mediacore-filters label{
    display:flex;
    flex-direction:column;
    gap:7px;
    min-width:0;
}
.mediacore-filters label span{
    color:#ffcc8a;
    font-size:12px;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.mediacore-filters input,
.mediacore-filters select{
    width:100%;
    box-sizing:border-box;
    border:1px solid rgba(255,153,0,.18);
    border-radius:12px;
    background:rgba(0,0,0,.30);
    color:#f3eee7;
    padding:10px 12px;
    min-height:42px;
}
.mediacore-filters input:focus,
.mediacore-filters select:focus{
    outline:none;
    border-color:rgba(255,190,92,.45);
    box-shadow:0 0 0 3px rgba(255,153,0,.08);
}
.mediacore-filter-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.mediacore-filter-chips{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid rgba(255,153,0,.10);
}
.mediacore-filter-chips span{
    display:inline-flex;
    align-items:center;
    border:1px solid rgba(255,153,0,.16);
    border-radius:999px;
    background:rgba(255,153,0,.055);
    color:#cfc3b6;
    padding:5px 10px;
    font-size:12px;
    font-weight:700;
}
.mediacore-filter-chips span.is-active{
    color:#ffcc8a;
    border-color:rgba(255,190,90,.25);
    background:rgba(255,153,0,.085);
}
.mediacore-card-meta{
    display:flex;
    gap:7px;
    flex-wrap:wrap;
}
.mediacore-card-meta span{
    border:1px solid rgba(255,153,0,.13);
    border-radius:999px;
    background:rgba(0,0,0,.20);
    color:#d9cfc4;
    padding:4px 8px;
    font-size:12px;
    line-height:1.1;
}
.mediacore-source-line{
    min-height:18px;
    color:#a99b89;
    font-size:12px;
    line-height:1.35;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.mediacore-side-counts{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
}
.mediacore-side-counts div{
    border:1px solid rgba(255,153,0,.12);
    border-radius:13px;
    padding:10px;
    background:rgba(0,0,0,.20);
}
.mediacore-side-counts span{
    display:block;
    color:#a99b89;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.05em;
    margin-bottom:4px;
}
.mediacore-side-counts strong{
    color:#ffb347;
    font-size:20px;
    line-height:1;
}
@media(max-width:1050px){
    .mediacore-filters{
        grid-template-columns:1fr 1fr;
    }
    .mediacore-filter-actions{
        grid-column:1 / -1;
    }
}
@media(max-width:650px){
    .mediacore-filters{
        grid-template-columns:1fr;
    }
    .mediacore-filter-actions .dsc-btn,
    .mediacore-filter-actions .btn{
        flex:1 1 auto;
        justify-content:center;
    }
    .mediacore-source-line{
        white-space:normal;
    }
}
