/* ==========================================================================
   Tool 45: YouTube Shorts Safe Zone & UI Overlay Inspector
   Responsive, Luxury Glassmorphism Console Layout
   Strictly Adhering to GuinRank Design System & Zero-Scroll Trap Standards
   ========================================================================== */

#shorts-safe-zone-app,
.shorts-safe-zone-container {
    width: 100%;
    min-height: 100vh;
    padding: 24px 20px 80px;
    background: var(--bg-body, #0a0a0f);
    color: var(--text-main, #e2e8f0);
    position: relative;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-main-container {
    max-width: 1280px;
    margin: 0 auto;
    transition: max-width 0.3s ease;
}

#shorts-safe-zone-app.is-wide-mode .tool-main-container {
    max-width: 100% !important;
}

/* Floating Actions */
.fixed-floating-actions {
    position: fixed;
    top: 85px;
    right: 24px;
    z-index: 999;
}

html[dir="rtl"] .fixed-floating-actions {
    right: auto;
    left: 24px;
}

.floating-expand-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}

.floating-expand-btn:hover {
    color: var(--primary-color, #f97316);
    border-color: var(--primary-color, #f97316);
    transform: scale(1.05);
}

/* --- 1. Compliance Micro-Bar --- */
.compliance-micro-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.compliance-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compliance-pill:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.compliance-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.compliance-shield-icon {
    width: 14px;
    height: 14px;
    color: #10b981;
}

.compliance-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main, #e2e8f0);
    letter-spacing: 0.2px;
}

.compliance-info-icon {
    width: 13px;
    height: 13px;
    color: var(--text-muted, #94a3b8);
}

/* --- 2. Luxury Console Hero Header --- */
.console-hero-header {
    text-align: center;
    margin-bottom: 36px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light, rgba(249, 115, 22, 0.1));
    border: 1px solid var(--primary-color, #f97316);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary-color, #f97316);
    margin-bottom: 18px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color, #f97316);
}

.hero-badge-icon {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.25;
    margin: 0 0 16px;
    color: var(--text-main, #f8fafc);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color, #f97316) 0%, #ec4899 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
}

.hero-description {
    max-width: 820px;
    margin: 0 auto 24px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted, #94a3b8);
}

.hero-features-belt {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.belt-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main, #cbd5e1);
}

.belt-icon {
    width: 15px;
    height: 15px;
    color: var(--primary-color, #f97316);
}

/* Glass Panels */
.glass-panel {
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

/* --- 3. Unified Command Hub --- */
.unified-command-hub {
    position: relative;
    z-index: 100;
    margin-bottom: 36px;
}

.command-bar-wrapper {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.command-bar-wrapper.is-focused {
    border-color: var(--primary-color, #f97316);
    box-shadow: 0 0 0 3px var(--primary-light, rgba(249, 115, 22, 0.15));
}

.channel-switcher-wrapper {
    position: relative;
    z-index: 110;
    flex-shrink: 0;
}

.channel-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-main, #e2e8f0);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.channel-dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.channel-avatar-micro {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-trigger-name {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-chevron-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted, #94a3b8);
}

.channel-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    max-height: 280px;
    overflow-y: auto;
}

html[dir="rtl"] .channel-dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown-header-strip {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted, #94a3b8);
    padding: 6px 10px 4px;
}

.dropdown-empty-state {
    padding: 12px 10px;
    font-size: 12.5px;
    color: var(--text-muted, #94a3b8);
    text-align: center;
}

.dropdown-channel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-channel-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-channel-row.is-active {
    background: var(--primary-light, rgba(249, 115, 22, 0.12));
    border: 1px solid var(--primary-color, #f97316);
}

.menu-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.menu-ch-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.menu-ch-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main, #f8fafc);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-ch-handle {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
}

.active-check-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-color, #f97316);
}

.search-divider {
    width: 1px;
    height: 26px;
    background: var(--border-color, rgba(255, 255, 255, 0.08));
    margin: 0 10px;
    flex-shrink: 0;
}

.search-input-col {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.search-lead-icon {
    display: flex;
    align-items: center;
    color: var(--text-muted, #94a3b8);
    padding-left: 6px;
}

html[dir="rtl"] .search-lead-icon {
    padding-left: 0;
    padding-right: 6px;
}

.search-lead-icon i {
    width: 18px;
    height: 18px;
}

.unified-search-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main, #f8fafc);
    font-size: 14.5px;
    outline: none;
}

.unified-search-input::placeholder {
    color: var(--text-muted, #64748b);
}

.clear-input-btn {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.clear-input-btn:hover {
    color: var(--text-main, #ffffff);
}

.btn-search-action {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color, #f97316);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-search-action:hover:not(:disabled) {
    background: var(--primary-hover, #ea580c);
    transform: translateY(-1px);
}

.btn-search-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner-inline {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Quick Presets Strip */
.quick-presets-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding: 0 4px;
}

.qp-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
}

.qp-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-main, #cbd5e1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.qp-chip:hover {
    border-color: var(--primary-color, #f97316);
    color: var(--primary-color, #f97316);
    transform: translateY(-1px);
}

/* Action Toolbar (Loaded State) */
.cmo-action-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main, #cbd5e1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    border-color: var(--primary-color, #f97316);
    color: var(--primary-color, #f97316);
}

.btn-upload-label {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hidden-file-input {
    display: none;
}

/* --- 4. Loading Stage --- */
.title-loading-stage {
    padding: 60px 20px;
    text-align: center;
}

.loader-pulse-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light, rgba(249, 115, 22, 0.15));
    border: 2px solid var(--primary-color, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: ring-pulse 1.8s ease-in-out infinite;
}

@keyframes ring-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--primary-light, rgba(249, 115, 22, 0.4)); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(249, 115, 22, 0); }
}

.pulse-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color, #f97316);
}

.title-loading-stage h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-main, #f8fafc);
}

.title-loading-stage p {
    font-size: 13.5px;
    color: var(--text-muted, #94a3b8);
    max-width: 540px;
    margin: 0 auto;
}

/* --- 5. Bento Features Cluster --- */
.console-features {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.bento-features-cluster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.bc-wide-top { grid-column: span 2; }
.bc-tall { grid-row: span 2; }
.bc-wide-mid { grid-column: span 2; }

.bento-decor-icon {
    position: absolute;
    top: 14px;
    right: 18px;
    color: var(--primary-color, #f97316);
    opacity: 0.12;
}

html[dir="rtl"] .bento-decor-icon {
    right: auto;
    left: 18px;
}

.bento-decor-icon i {
    width: 48px;
    height: 48px;
}

.dashed-ring-wrapper {
    display: inline-block;
    padding: 4px;
    border: 1px dashed var(--primary-color, #f97316);
    border-radius: 14px;
    margin-bottom: 14px;
}

.bc-icon-wrapper {
    width: 36px;
    height: 36px;
    background: var(--primary-light, rgba(249, 115, 22, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #f97316);
}

.bc-icon-wrapper i {
    width: 18px;
    height: 18px;
}

.bc-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-main, #f8fafc);
}

.bc-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted, #94a3b8);
    margin: 0;
}

/* Animations */
.anim-pulse { animation: bentoPulse 3s ease-in-out infinite; }
.anim-bounce { animation: bentoBounce 2.5s ease-in-out infinite; }
.anim-glow { animation: bentoGlow 3s ease-in-out infinite; }
.anim-float { animation: bentoFloat 3s ease-in-out infinite; }
.anim-spin-slow { animation: bentoSpin 12s linear infinite; }

@keyframes bentoPulse {
    0%, 100% { transform: scale(1); opacity: 0.12; }
    50% { transform: scale(1.1); opacity: 0.22; }
}
@keyframes bentoBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes bentoGlow {
    0%, 100% { filter: drop-shadow(0 0 2px var(--primary-color, #f97316)); }
    50% { filter: drop-shadow(0 0 8px var(--primary-color, #f97316)); }
}
@keyframes bentoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes bentoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- 6. Results Workspace --- */
.shorts-workspace-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Short Meta Banner */
.short-meta-banner {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.smb-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.smb-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
}

.smb-meta {
    min-width: 0;
}

.smb-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.smb-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color, #f97316);
    background: var(--primary-light, rgba(249, 115, 22, 0.12));
    padding: 3px 8px;
    border-radius: 6px;
}

.smb-res-tag {
    font-size: 11.5px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
}

.smb-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--text-main, #f8fafc);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smb-channel-name {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
}

.btn-primary-action {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color, #f97316);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary-action:hover {
    background: var(--primary-hover, #ea580c);
    transform: translateY(-1px);
}

/* 2-Column Shorts Layout */
.shorts-studio-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: start;
}

/* Left: Smartphone Simulator Stage */
.simulator-stage-col {
    padding: 20px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stage-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding-bottom: 14px;
}

.sc-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sc-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted, #94a3b8);
}

.sc-toggles {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--text-main, #cbd5e1);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sc-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.sc-btn.is-active {
    background: var(--primary-light, rgba(249, 115, 22, 0.15));
    border-color: var(--primary-color, #f97316);
    color: var(--primary-color, #f97316);
}

.opacity-slider-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
}

.opacity-range {
    accent-color: var(--primary-color, #f97316);
    width: 90px;
    cursor: pointer;
}

/* The 3D Phone Mockup Chassis */
.phone-stage-wrapper {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.phone-bezel {
    width: 100%;
    max-width: 340px;
    background: #0f1117;
    border: 4px solid #232733;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.phone-notch {
    width: 110px;
    height: 18px;
    background: #000000;
    border-radius: 0 0 12px 12px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notch-speaker {
    width: 36px;
    height: 4px;
    background: #272727;
    border-radius: 2px;
}

.notch-lens {
    width: 6px;
    height: 6px;
    background: #111a2e;
    border: 1px solid #1e293b;
    border-radius: 50%;
}

.phone-screen-canvas {
    aspect-ratio: 9 / 16;
    width: 100%;
    background: #000000;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.shorts-underlay-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Square Crop Simulator Mode */
.square-crop-dimmer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    z-index: 10;
    pointer-events: none;
}

.crop-top-dim, .crop-bottom-dim {
    flex: 1;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
}

.crop-center-window {
    aspect-ratio: 1 / 1;
    width: 100%;
    border: 2px dashed #f97316;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}

.crop-watermark {
    font-size: 10px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.7);
    color: #f97316;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Safe Zone Technical Wireframe Overlay */
.safe-zone-wireframe-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 8;
    transition: opacity 0.2s ease;
}

.zone-strip {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zone-top-obstruction {
    top: 0;
    height: 15%;
    background: rgba(239, 68, 68, 0.25);
    border-bottom: 1px dashed #ef4444;
}

.zone-bottom-obstruction {
    bottom: 0;
    height: 20%;
    background: rgba(239, 68, 68, 0.28);
    border-top: 1px dashed #ef4444;
}

.zone-warning-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(239, 68, 68, 0.85);
    padding: 2px 6px;
    border-radius: 4px;
}

.zone-warning-badge i {
    width: 11px;
    height: 11px;
}

.zone-right-obstruction {
    position: absolute;
    right: 0;
    top: 42%;
    width: 13%;
    height: 38%;
    background: rgba(245, 158, 11, 0.25);
    border-left: 1px dashed #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-warning {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 9px;
    font-weight: 800;
    color: #f59e0b;
    letter-spacing: 1px;
}

.zone-golden-center {
    position: absolute;
    top: 15%;
    left: 4%;
    width: 83%;
    height: 65%;
    border: 2px solid #10b981;
    border-radius: 12px;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    background: rgba(16, 185, 129, 0.05);
}

.golden-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    background: #10b981;
    color: #042f1a;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.golden-tag i {
    width: 12px;
    height: 12px;
}

.golden-desc {
    font-size: 9px;
    line-height: 1.35;
    color: #d1fae5;
    max-width: 160px;
}

/* Official YouTube Player UI Overlay */
.youtube-player-ui-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 10px;
    z-index: 9;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Top Bar */
.yt-shorts-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sound-track-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 10px;
    color: #ffffff;
    max-width: 180px;
}

.sound-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-music-icon {
    width: 11px;
    height: 11px;
    color: #ffffff;
}

.top-bar-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ui-icon-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
}

.ui-icon-btn i {
    width: 14px;
    height: 14px;
}

/* Right-Hand Action Buttons */
.yt-shorts-right-actions {
    position: absolute;
    right: 8px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.action-btn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.action-icon-circle {
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.action-icon-circle i {
    width: 18px;
    height: 18px;
}

.action-count {
    font-size: 9.5px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.sound-disc-spinning {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #000000;
    border: 2px solid #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: discSpin 4s linear infinite;
    margin-top: 4px;
}

@keyframes discSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.disc-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

/* Bottom Metadata Bar */
.yt-shorts-bottom-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 78%;
}

.bottom-channel-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ch-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ch-handle {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-sub-pill {
    background: #ff0000;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
}

.bottom-title-caption {
    font-size: 11.5px;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bottom-sound-wave {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.audio-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right: Specifications & Checklist Column */
.specs-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.specs-card {
    padding: 22px;
    border-radius: 18px;
}

.sc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.sc-header h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--text-main, #f8fafc);
}

.checklist-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.check-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    border-radius: 12px;
    padding: 12px 14px;
}

.ci-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.ci-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
}

.ci-status-pass {
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
}

.ci-val {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary-color, #f97316);
    display: block;
    margin-bottom: 4px;
}

.ci-rec {
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--text-muted, #94a3b8);
    margin: 0;
}

/* Millimetric Coordinates Table */
.zones-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zone-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.06));
    border-radius: 10px;
    padding: 10px 12px;
}

.zone-row.is-safe {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.04);
}

.zr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.zr-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
}

.zr-tag {
    font-size: 11px;
    color: var(--text-muted, #94a3b8);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.zr-desc {
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-muted, #94a3b8);
    margin: 0;
}

/* --- 7. Zero-Scroll Trap Root-Level Modal --- */
html.modal-open, body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

.custom-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 20px !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.modal-card {
    background: var(--card-bg, #131722);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    flex-shrink: 0;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-main, #f8fafc);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: var(--text-main, #ffffff);
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto !important;
    max-height: calc(85vh - 135px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-edu-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--primary-light, rgba(249, 115, 22, 0.1));
    border: 1px solid var(--primary-color, #f97316);
    border-radius: 12px;
    padding: 14px;
    color: var(--primary-color, #f97316);
}

.modal-edu-banner p {
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-main, #e2e8f0);
}

.modal-legal-section h4 {
    font-size: 13.5px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--text-main, #f8fafc);
}

.modal-legal-section p {
    font-size: 12.5px;
    line-height: 1.55;
    margin: 0;
    color: var(--text-muted, #94a3b8);
}

.modal-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.btn-modal-close {
    padding: 9px 20px;
    background: var(--primary-color, #f97316);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-close:hover {
    background: var(--primary-hover, #ea580c);
}

/* Custom Scrollbar Utility */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(140, 140, 140, 0.25);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(140, 140, 140, 0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .shorts-studio-layout {
        grid-template-columns: 1fr;
    }
    .bento-features-cluster {
        grid-template-columns: 1fr;
    }
    .bc-wide-top, .bc-tall, .bc-wide-mid {
        grid-column: span 1;
        grid-row: span 1;
    }
    .unified-search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-divider {
        display: none;
    }
}

