/* ===== In-Page View Panel Inspect Analytics Styles ===== */

.inspect-view-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px 40px;
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 640px) {
    .inspect-view-container {
        padding: 12px 12px 32px;
        gap: 12px;
    }
}

/* ===== Compact Navigation Bar ===== */
.inspect-nav-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inspect-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #16181d;
    border: 1px solid #282c37;
    color: #d1d5db;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.inspect-back-btn:hover {
    background: #20242e;
    border-color: #3f4454;
    color: #ffffff;
    transform: translateX(-2px);
}

.inspect-nav-label {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.inspect-nav-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    color: #6b7280;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.inspect-nav-close-btn:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #ef4444;
}

/* ===== Two-Column Desktop Layout ===== */
.inspect-two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 960px) {
    .inspect-two-col-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .inspect-col-right {
        padding-top: 0 !important;
    }
}

.inspect-col-left {
    min-width: 0;
}

.inspect-col-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding-top: 20px; /* Align right column contents (metrics) with left column card contents (thumbnail) */
}

/* Main Hero Card */
.inspect-hero-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #08090b;
    border: none;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 960px) {
    .inspect-hero-card {
        padding: 16px;
        gap: 16px;
    }
}

/* Top Column: Player & Media — smaller for two-col layout */
.inspect-media-column {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.inspect-player-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000000;
    border: 1px solid #222530;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.inspect-player-content {
    width: 100%;
    height: 100%;
    display: flex;
}

.inspect-player-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.inspect-player-content a:hover img {
    transform: none;
}



/* Info Column stacked under player */
.inspect-info-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inspect-title-group {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.inspect-copy-title-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 15px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.inspect-copy-title-btn:hover {
    background: #20232a;
    color: #ffffff;
}

.inspect-video-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    color: #ffffff;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 960px) {
    .inspect-video-title {
        font-size: 20px;
    }
}

.inspect-video-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.15s ease;
}

.inspect-video-title a:hover {
    color: #f87171;
    text-decoration: underline;
}

/* Channel Row - Clean, Uncarded Inline Layout */
.inspect-channel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 0;
    background: transparent;
}

.inspect-channel-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.inspect-avatar-link {
    display: inline-block;
    text-decoration: none;
}

.inspect-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #222530;
    border: 1px solid #333746;
}

.inspect-channel-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inspect-channel-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 750;
    text-decoration: none;
    line-height: 1.2;
}

.inspect-channel-name:hover {
    color: #f87171;
    text-decoration: underline;
}

.inspect-sub-count {
    font-size: 12.5px;
    color: #9ca3af;
    line-height: 1.2;
}

.inspect-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inspect-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1d26;
    border: 1px solid #282c3a;
    color: #d1d5db;
    font-size: 13.5px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.inspect-action-btn:hover {
    background: #232834;
    border-color: #383e50;
    color: #ffffff;
    transform: translateY(-1px);
}



.inspect-action-btn.saved {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
}

/* THE 3 REQUIRED METRICS: Total Views (Left), Publish Date (Middle), VPH (Right) */
.inspect-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .inspect-metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.inspect-metric-card {
    background: #16181d;
    border: 1px solid #232632;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspect-metric-card:hover {
    border-color: #383c4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.metric-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-title {
    font-size: 11px;
    font-weight: 750;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value-text {
    font-size: 18px;
    font-weight: 855;
    line-height: 1.2;
}

/* Stat Themes */
.inspect-metric-card.vph-theme .metric-icon {
    color: #22c55e;
}

.inspect-metric-card.vph-theme .metric-value-text {
    color: #22c55e;
}

.inspect-metric-card.daily-theme .metric-icon {
    color: #38bdf8;
}

.inspect-metric-card.daily-theme .metric-value-text {
    color: #38bdf8;
}

.inspect-metric-card.total-theme .metric-icon {
    color: #a855f7;
}

.inspect-metric-card.total-theme .metric-value-text {
    color: #ffffff;
}

/* Collapsible Sections (Description & Tags) */
.inspect-card-box {
    background: #111215;
    border: 1px solid #1c1e24;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspect-card-box:hover {
    background: #15171d;
    border-color: #2b303d;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.inspect-card-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.inspect-box-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inspect-header-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inspect-inline-btn {
    background: #16181d;
    border: 1px solid #262932;
    color: #9ca3af;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: all 0.15s ease;
}

.inspect-inline-btn:hover {
    background: #20232a;
    color: #ffffff;
    border-color: #383c48;
}

.inspect-inline-btn.copied {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: #22c55e !important;
    color: #22c55e !important;
}

/* Collapsible Description Wrapper */
.inspect-collapsible-body {
    position: relative;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.inspect-collapsible-body.collapsed {
    max-height: 0;
    overflow: hidden;
    display: none !important;
}

.inspect-collapsible-body.expanded {
    max-height: 800px;
    overflow-y: auto;
}

.inspect-fade-overlay {
    display: none;
}

.inspect-collapsible-body.collapsed .inspect-fade-overlay {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(to bottom, transparent, #111215);
    pointer-events: none;
}

.inspect-desc-content {
    font-size: 13.5px;
    line-height: 1.6;
    color: #d1d5db;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Collapsible Tags Wrapper */
.inspect-tags-content.collapsed {
    display: none !important;
}

.inspect-tags-content.expanded {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #1c1e24;
}

/* Toggle Trigger Buttons */
.inspect-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #16181d;
    border: 1px solid #262932;
    color: #9ca3af;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    align-self: flex-start;
}

.inspect-toggle-btn:hover {
    background: #20232a;
    color: #ffffff;
    border-color: #383c48;
}

.inspect-toggle-btn i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.inspect-toggle-btn.expanded i {
    transform: rotate(180deg);
}

@media (max-width: 600px) {
    .inspect-header-right-actions {
        gap: 4px !important;
    }
    
    .inspect-inline-btn span,
    .inspect-toggle-btn span,
    .inspect-action-btn span {
        display: none !important;
    }
    
    .inspect-inline-btn,
    .inspect-toggle-btn,
    .inspect-action-btn {
        padding: 5px 8px !important;
        gap: 0 !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        min-width: 28px !important;
        height: 28px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ==========================================================================
   Paywall Upgrade Modal Styles
   ========================================================================== */

/* ===== Flat Upgrade Paywall Modal Styles ===== */
.upgrade-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    box-sizing: border-box;
    animation: upgradeFadeIn 0.15s ease-out;
}

@keyframes upgradeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.upgrade-modal-dialog {
    background: #11141a;
    border: 1px solid #252a36;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border-radius: 14px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 24px 22px 20px;
    box-sizing: border-box;
    animation: upgradePopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes upgradePopIn {
    from { transform: scale(0.96) translateY(6px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.upgrade-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #181b23;
    border: 1px solid #282d3b;
    color: #9ca3af;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}

.upgrade-modal-close-btn:hover {
    background: #242937;
    color: #ffffff;
    border-color: #3f4659;
}

.upgrade-modal-header {
    text-align: center;
    margin-bottom: 16px;
}

.upgrade-modal-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #181b24;
    border: 1px solid #2b3141;
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 12px;
}

.upgrade-modal-title {
    font-size: 19px;
    font-weight: 700;
    color: #f9fafb;
    letter-spacing: -0.3px;
    margin: 0 0 6px;
    line-height: 1.25;
}

.upgrade-modal-subtitle {
    font-size: 13px;
    line-height: 1.45;
    color: #9ca3af;
    margin: 0;
    padding: 0 4px;
}

.upgrade-pricing-card {
    background: #161922;
    border: 1px solid #262b37;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 14px 0 16px;
}

.upgrade-pricing-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pricing-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8b92a1;
}

.pricing-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.pricing-currency {
    font-size: 16px;
    font-weight: 700;
    color: #d1d5db;
}

.pricing-value {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.pricing-period {
    font-size: 11.5px;
    color: #6b7280;
    margin-left: 4px;
}

.upgrade-pricing-badge {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

.upgrade-perks-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
}

.upgrade-perk-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #d1d5db;
}

.perk-icon-wrap {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.upgrade-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upgrade-primary-btn {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2563eb;
    border: 1px solid #3b82f6;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
}

.upgrade-primary-btn:hover {
    background: #1d4ed8;
    border-color: #2563eb;
    color: #ffffff;
}

.upgrade-cancel-btn {
    width: 100%;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s ease;
}

.upgrade-cancel-btn:hover {
    color: #9ca3af;
}

@media (max-width: 480px) {
    .upgrade-modal-dialog {
        padding: 20px 16px 16px;
    }
    .upgrade-modal-title {
        font-size: 18px;
    }
    .pricing-value {
        font-size: 24px;
    }
}

