/**
 * Ahmed Saad AI - Google Drive Video Portfolio Styles
 * Perfectly crafted for ahmedsaadai.com branding
 */

:root {
    --as-primary: #00F0FF;
    --as-secondary: #C03DFF;
    --as-accent: #3A7BFF;
    --as-glow: #A8F3FF;
    --as-dark-bg: #050913;
    --as-card-bg: rgba(8, 14, 28, 0.82);
    --as-border-color: rgba(0, 240, 255, 0.16);
    --as-border-hover: rgba(0, 240, 255, 0.45);
    --as-text-main: #FFFFFF;
    --as-text-muted: #9EABBE;
    --as-font: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --as-radius-lg: 20px;
    --as-radius-md: 14px;
    --as-radius-sm: 8px;
    --as-transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-drive-portfolio-wrapper {
    font-family: var(--as-font);
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    position: relative;
    width: 100%;
    margin: 0 auto;
    color: var(--as-text-main);
}

.as-drive-portfolio-wrapper * {
    box-sizing: border-box;
    font-family: inherit;
}

/* Override theme default button styles (e.g., Hello Elementor #c36) */
.as-drive-portfolio-wrapper button,
.as-drive-portfolio-wrapper [type="button"] {
    border-color: rgba(0, 240, 255, 0.35);
    color: var(--as-text-main);
    background-color: transparent;
    line-height: 1.4;
    height: auto;
    box-shadow: none;
}

.as-drive-portfolio-wrapper button:hover,
.as-drive-portfolio-wrapper button:focus,
.as-drive-portfolio-wrapper [type="button"]:hover,
.as-drive-portfolio-wrapper [type="button"]:focus {
    border-color: #C03DFF !important;
    color: #FFFFFF !important;
    background: linear-gradient(135deg, rgba(192, 61, 255, 0.35), rgba(0, 240, 255, 0.15)) !important;
    background-color: rgba(192, 61, 255, 0.32) !important;
    outline: none !important;
    box-shadow: 0 0 18px rgba(192, 61, 255, 0.28) !important;
}

/* ===================================================
   DESKTOP GRID & VERTICAL SIDEBAR
   =================================================== */

.as-portfolio-inner-grid {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    width: 100%;
}

.as-sidebar-start .as-portfolio-inner-grid {
    flex-direction: row;
}

.as-sidebar-end .as-portfolio-inner-grid {
    flex-direction: row-reverse;
}

/* Vertical Sidebar */
.as-vertical-sidebar {
    width: 320px;
    flex-shrink: 0;
    background: var(--as-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--as-border-color);
    border-radius: var(--as-radius-lg);
    padding: 22px 16px;
    position: sticky;
    top: 90px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-height: none;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.as-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.as-sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--as-text-main);
    letter-spacing: -0.2px;
}

.as-sidebar-title i {
    color: var(--as-primary);
    font-size: 18px;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
}

.as-sidebar-total {
    background: rgba(0, 240, 255, 0.1);
    color: var(--as-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.25);
}

/* Vertical Tabs List */
.as-vertical-tabs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    padding-left: 4px;
    padding-right: 4px;
    margin: 0 -4px;
}

.as-drive-portfolio-wrapper button.as-tab-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: auto !important;
    min-height: 54px !important;
    flex-shrink: 0 !important;
    padding: 12px 14px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
    border-radius: var(--as-radius-md);
    color: var(--as-text-main) !important;
    font-size: inherit;
    line-height: 1.4 !important;
    cursor: pointer;
    text-align: right;
    position: relative;
    overflow: visible !important;
    white-space: normal !important;
    transition: var(--as-transition);
}

.as-drive-portfolio-wrapper button.as-tab-button:hover,
.as-drive-portfolio-wrapper button.as-tab-button:focus {
    background: linear-gradient(135deg, rgba(192, 61, 255, 0.35) 0%, rgba(58, 123, 255, 0.22) 100%) !important;
    background-color: rgba(192, 61, 255, 0.32) !important;
    border-color: #C03DFF !important;
    color: #FFFFFF !important;
    transform: translateX(-3px);
    outline: none !important;
    box-shadow: 0 4px 20px rgba(192, 61, 255, 0.28) !important;
}

.as-drive-portfolio-wrapper button.as-tab-button.as-active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.16) 0%, rgba(192, 61, 255, 0.16) 100%) !important;
    border-color: #00F0FF !important;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.18), inset 0 0 12px rgba(0, 240, 255, 0.08) !important;
}

.as-active-glow-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 4px;
    border-radius: 0 var(--as-radius-md) var(--as-radius-md) 0;
    background: linear-gradient(180deg, var(--as-primary), var(--as-secondary));
    box-shadow: 0 0 10px var(--as-primary);
    opacity: 0;
    transition: var(--as-transition);
}

.as-tab-button.as-active .as-active-glow-bar {
    opacity: 1;
}

.as-tab-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.as-tab-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--as-text-muted);
    font-size: 15px;
    transition: var(--as-transition);
    flex-shrink: 0;
}

.as-tab-button:hover .as-tab-icon-box {
    color: var(--as-primary);
    border-color: rgba(0, 240, 255, 0.3);
}

.as-tab-button.as-active .as-tab-icon-box {
    background: linear-gradient(135deg, var(--as-primary), var(--as-secondary));
    color: #050913;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
    border: none;
}

.as-tab-labels {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.as-tab-main-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--as-text-main);
    letter-spacing: -0.1px;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
}

.as-tab-sub-title {
    display: block;
    font-size: 11px;
    color: var(--as-text-muted);
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
}

.as-tab-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--as-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--as-transition);
}

.as-tab-button.as-active .as-tab-badge {
    background: rgba(0, 240, 255, 0.15);
    color: var(--as-primary);
    border-color: rgba(0, 240, 255, 0.35);
}

/* ===================================================
   MAIN VIDEOS PANEL
   =================================================== */

.as-videos-main-panel {
    flex: 1;
    min-width: 0;
}

.as-folder-view-pane {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.as-folder-view-pane.as-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.as-pane-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.as-pane-heading {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 4px 0;
    background: linear-gradient(90deg, #FFFFFF, var(--as-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.as-pane-subheading {
    margin: 0;
    font-size: 13px;
    color: var(--as-text-muted);
}

.as-pane-counter {
    background: rgba(192, 61, 255, 0.12);
    border: 1px solid rgba(192, 61, 255, 0.28);
    color: var(--as-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ===================================================
   VIDEOS GRID & CARDS
   =================================================== */

.as-videos-grid {
    display: grid;
    gap: 22px;
}

.as-grid-cols-1 {
    grid-template-columns: 1fr;
}

.as-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.as-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.as-video-card {
    background: var(--as-card-bg);
    border: 1px solid var(--as-border-color);
    border-radius: var(--as-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--as-transition);
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.as-video-card:hover {
    border-color: var(--as-primary);
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0, 240, 255, 0.18), 0 0 15px rgba(0, 240, 255, 0.12);
}

.as-card-media-box {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
}

.as-ratio-16-9 .as-card-media-box {
    aspect-ratio: 16 / 9;
}

.as-ratio-9-16 .as-card-media-box {
    aspect-ratio: 9 / 16;
    max-height: 480px;
}

.as-card-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.as-video-card:hover .as-card-poster {
    transform: scale(1.06);
}

.as-card-poster-placeholder {
    width: 100%;
    height: 100%;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #0e1a38 0%, #03060d 100%);
}

.as-poster-cyber-mesh {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.6;
}

.as-card-poster-placeholder i {
    font-size: 38px;
    color: var(--as-primary);
    filter: drop-shadow(0 0 12px var(--as-primary));
    position: relative;
    z-index: 1;
}

.as-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: var(--as-transition);
}

.as-video-card:hover .as-card-overlay {
    opacity: 1;
    background: rgba(3, 7, 18, 0.3);
}

.as-play-trigger-btn {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00F0FF;
    box-shadow: none !important;
    transition: var(--as-transition);
}

.as-play-trigger-btn svg {
    width: 48px;
    height: 48px;
    margin-right: 0;
    fill: #00F0FF;
    filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.75));
    transition: var(--as-transition);
}

.as-video-card:hover .as-play-trigger-btn {
    transform: scale(1.18);
    background: transparent !important;
    box-shadow: none !important;
}

.as-video-card:hover .as-play-trigger-btn svg {
    fill: #C03DFF;
    filter: drop-shadow(0 0 18px rgba(192, 61, 255, 0.9));
}

.as-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(5, 9, 19, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--as-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    z-index: 2;
}

.as-card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--as-card-bg);
}

.as-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--as-text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.as-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--as-text-muted);
}

.as-meta-tag {
    display: flex;
    align-items: center;
    gap: 5px;
}

.as-meta-tag i {
    color: var(--as-primary);
}

.as-meta-btn {
    color: var(--as-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--as-transition);
}

.as-video-card:hover .as-meta-btn {
    color: var(--as-secondary);
    transform: translateX(-4px);
}

/* Empty State */
.as-empty-folder-box {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(0, 240, 255, 0.2);
    border-radius: var(--as-radius-lg);
}

.as-empty-icon {
    font-size: 48px;
    color: rgba(0, 240, 255, 0.4);
    margin-bottom: 12px;
}

.as-empty-folder-box h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--as-text-main);
    margin: 0 0 6px 0;
}

.as-empty-folder-box p {
    font-size: 13px;
    color: var(--as-text-muted);
    margin: 0;
}

/* ===================================================
   MOBILE CREATIVE NAVIGATION (Chips + Bottom Sheet)
   =================================================== */

.as-mobile-nav-container {
    display: none;
    margin-bottom: 20px;
}

.as-mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--as-card-bg);
    border: 1px solid var(--as-border-color);
    border-radius: var(--as-radius-md);
    padding: 10px 14px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.as-mobile-active-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.as-mobile-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--as-primary);
    box-shadow: 0 0 10px var(--as-primary);
    animation: as-pulse 2s infinite;
}

@keyframes as-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.as-mobile-current-folder-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--as-text-main);
}

.as-mobile-current-badge {
    font-size: 11px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--as-primary);
    padding: 2px 7px;
    border-radius: 10px;
    border: 1px solid rgba(0, 240, 255, 0.25);
}

.as-drive-portfolio-wrapper button.as-mobile-drawer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(192, 61, 255, 0.15)) !important;
    border: 1px solid #00F0FF !important;
    color: var(--as-primary) !important;
    padding: 7px 12px !important;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--as-transition);
}

.as-mobile-drawer-btn:active {
    transform: scale(0.96);
    background: var(--as-primary);
    color: #050913;
}

/* Horizontal swipeable chips */
.as-mobile-chips-wrapper {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.as-mobile-chips-wrapper::-webkit-scrollbar {
    display: none;
}

.as-mobile-chips-track {
    display: flex;
    gap: 8px;
    width: max-content;
}

.as-drive-portfolio-wrapper button.as-chip-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px !important;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    color: var(--as-text-muted) !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--as-transition);
}

.as-drive-portfolio-wrapper button.as-chip-btn.as-active {
    background: linear-gradient(135deg, var(--as-primary), var(--as-secondary)) !important;
    color: #050913 !important;
    border-color: #00F0FF !important;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.35);
    font-weight: 700;
}

.as-chip-btn.as-active .as-chip-icon i,
.as-chip-btn.as-active .as-chip-count {
    color: #050913;
}

.as-chip-count {
    font-size: 10px;
    opacity: 0.8;
}

/* ===================================================
   MOBILE BOTTOM SHEET CATEGORY DRAWER
   =================================================== */

.as-category-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.as-category-drawer-backdrop.as-open {
    opacity: 1;
    pointer-events: auto;
}

.as-category-drawer {
    width: 100%;
    max-height: 82vh;
    background: #090e1d;
    border-top: 1px solid var(--as-primary);
    border-radius: 24px 24px 0 0;
    padding: 20px 18px 30px 18px;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 240, 255, 0.2);
}

.as-category-drawer-backdrop.as-open .as-category-drawer {
    transform: translateY(0);
}

.as-drawer-drag-pill {
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto 16px auto;
}

.as-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.as-drawer-titles h3 {
    margin: 0 0 2px 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--as-text-main);
}

.as-drawer-titles span {
    font-size: 12px;
    color: var(--as-text-muted);
}

.as-drawer-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.as-drawer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow-y: auto;
    padding-bottom: 10px;
}

.as-drive-portfolio-wrapper button.as-drawer-item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px !important;
    border-radius: var(--as-radius-md);
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    color: var(--as-text-main) !important;
    cursor: pointer;
    text-align: right;
    transition: var(--as-transition);
}

.as-drive-portfolio-wrapper button.as-drawer-item-btn.as-active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(192, 61, 255, 0.15)) !important;
    border-color: #00F0FF !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.as-drawer-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--as-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-left: 8px;
    flex-shrink: 0;
}

.as-drawer-item-btn.as-active .as-drawer-item-icon {
    background: var(--as-primary);
    color: #050913;
}

.as-drawer-item-names {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.as-drawer-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.as-drawer-subtitle {
    font-size: 10px;
    color: var(--as-text-muted);
}

.as-drawer-count {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--as-text-muted);
    margin-right: 4px;
}

/* ===================================================
   CINEMATIC LIGHTBOX MODAL
   =================================================== */

.as-video-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 16, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.as-video-modal-backdrop.as-open {
    opacity: 1;
    pointer-events: auto;
}

.as-video-modal-container {
    width: 100%;
    max-width: 960px;
    background: #070c18;
    border: 1px solid var(--as-primary);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.25), 0 25px 60px rgba(0, 0, 0, 0.8);
    border-radius: var(--as-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-video-modal-backdrop.as-open .as-video-modal-container {
    transform: scale(1);
}

.as-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.as-modal-badge {
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--as-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
}

.as-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
}

.as-modal-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--as-transition);
}

.as-modal-close-btn:hover {
    background: var(--as-primary);
    color: #050913;
}

.as-modal-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.as-modal-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 2;
}

.as-modal-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #03060c;
    color: var(--as-primary);
    font-size: 13px;
    z-index: 1;
}

.as-cyber-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(0, 240, 255, 0.15);
    border-top-color: var(--as-primary);
    border-radius: 50%;
    animation: as-spin 0.9s linear infinite;
}

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

/* ===================================================
   RESPONSIVE BREAKPOINTS (Laptop, Tablet, Mobile)
   =================================================== */

/* Laptop / Medium Screens (<= 1024px) */
@media (max-width: 1024px) {
    .as-vertical-sidebar {
        width: 270px;
    }
    .as-grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet & Mobile (<= 860px) */
@media (max-width: 860px) {
    .as-vertical-sidebar {
        display: none; /* Hide vertical desktop sidebar */
    }

    .as-mobile-nav-container {
        display: block; /* Show creative mobile nav */
    }

    .as-portfolio-inner-grid {
        flex-direction: column !important;
        gap: 0;
    }

    .as-pane-heading {
        font-size: 20px;
    }

    .as-grid-cols-2,
    .as-grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
    .as-drawer-grid {
        grid-template-columns: 1fr;
    }
    .as-card-title {
        font-size: 14px;
    }
    .as-modal-player-wrap {
        aspect-ratio: 16 / 9;
    }
}


/* ===================================================
   GOOGLE DRIVE FOLDER EMBED DYNAMIC SYNC
   =================================================== */

.as-folder-drive-embed-wrap {
    width: 100%;
    min-height: 600px;
    height: 680px;
    border-radius: var(--as-radius-md);
    overflow: hidden;
    border: 1px solid var(--as-border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45), 0 0 15px rgba(0, 240, 255, 0.1);
    background: #030712;
    margin-bottom: 24px;
    position: relative;
}

.as-drive-folder-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: transparent;
}
