/* ==========================================================================
   DRIVEPHOTOS: GOOGLE PHOTOS WEB CLONE (DARK THEME - MATERIAL DESIGN 3)
   ========================================================================== */

:root {
  --md-bg: #131314;
  --md-surface: #1e1f20;
  --md-surface-container: #282a2c;
  --md-surface-variant: #333537;
  --md-primary: #a8c7fa;
  --md-primary-container: #004a77;
  --md-on-primary-container: #c2e7ff;
  --md-text-primary: #e3e3e3;
  --md-text-secondary: #c4c7c5;
  --md-text-muted: #8e918f;
  --md-outline: #444746;
  --md-outline-variant: #303134;
  --md-badge-pink: #f28b82;
  --md-active-nav: #004a77;
  --md-active-nav-text: #c2e7ff;
  --md-row-height: 220px;
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--md-bg);
  color: var(--md-text-primary);
  font-family: 'Plus Jakarta Sans', 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom Slim Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--md-outline);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5f6368;
}

/* Material Symbols Outlined Icon Tuning */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.material-symbols-outlined.fill-1 {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Top App Bar */
.gp-top-app-bar {
  height: 64px;
  background-color: var(--md-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gp-search-bar {
  background-color: var(--md-surface);
  border-radius: 32px;
  height: 48px;
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  margin: 0 16px;
}

.gp-search-bar:focus-within {
  background-color: var(--md-surface-container);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.gp-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--md-text-primary);
  font-size: 15px;
  width: 100%;
  margin-left: 12px;
}

.gp-search-input::placeholder {
  color: var(--md-text-secondary);
  font-size: 15px;
}

/* Sidebar Navigation (Google Photos Web Parity) */
.gp-sidebar {
  width: 256px;
  background-color: var(--md-bg);
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 8px 12px 24px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.25s cubic-bezier(0.2, 0, 0, 1), transform 0.25s cubic-bezier(0.2, 0, 0, 1);
}

/* Desktop Collapsed Sidebar (Mini-Rail) */
.gp-sidebar.collapsed {
  width: 72px;
  padding: 8px 6px;
}

.gp-sidebar.collapsed .gp-nav-item {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  padding: 0;
  justify-content: center;
  flex-direction: column;
  margin: 0 auto 6px;
}

.gp-sidebar.collapsed .gp-nav-item span:not(.material-symbols-outlined) {
  display: none;
}

.gp-sidebar.collapsed .gp-nav-item .material-symbols-outlined {
  margin-right: 0;
  font-size: 24px;
}

.gp-sidebar.collapsed .gp-nav-group-title {
  display: none;
}

.gp-sidebar.collapsed .gp-badge-dot {
  position: absolute;
  top: 10px;
  right: 14px;
}

.gp-sidebar.collapsed .gp-sidebar-footer {
  display: none;
}

.gp-nav-item {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  color: var(--md-text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  margin-bottom: 2px;
  position: relative;
}

.gp-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.gp-nav-item.active {
  background-color: var(--md-active-nav);
  color: var(--md-active-nav-text);
}

.gp-nav-item .material-symbols-outlined {
  margin-right: 16px;
  font-size: 20px;
}

.gp-nav-item.active .material-symbols-outlined {
  color: var(--md-active-nav-text);
}

.gp-nav-group-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--md-text-muted);
  padding: 16px 16px 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.gp-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--md-badge-pink);
  border-radius: 50%;
  margin-left: auto;
}

/* Memory Cards (Sorotan Kenangan Carousel) */
.gp-memories-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 24px;
  scrollbar-width: none;
}

.gp-memories-container::-webkit-scrollbar {
  display: none;
}

.gp-memory-card {
  position: relative;
  width: 220px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease;
  background-color: var(--md-surface);
}

.gp-memory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.gp-memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gp-memory-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 14px;
}

.gp-memory-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.gp-memory-subtitle {
  font-size: 11px;
  color: #d1d5db;
  margin-top: 4px;
}

/* Justified Masonry Grid Layout Engine */
.gp-date-group {
  margin-bottom: 28px;
}

.gp-date-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  user-select: none;
}

.gp-date-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--md-text-primary);
}

.gp-date-location {
  font-size: 13px;
  color: var(--md-text-secondary);
}

.gp-justified-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.gp-photo-item {
  position: relative;
  flex-grow: var(--grow, 1);
  flex-basis: var(--basis, 220px);
  height: var(--md-row-height);
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  background-color: var(--md-surface);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.gp-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1; /* Langsung tampil terang tanpa blank */
  transition: filter 0.2s ease, opacity 0.2s ease;
  background-color: #1e1f20;
}

.gp-photo-item:hover {
  filter: brightness(1.08);
}

/* Video Badge */
.gp-video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.gp-video-badge .material-symbols-outlined {
  font-size: 14px;
}

/* Selection Checkbox Overlay */
.gp-select-circle {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
  z-index: 10;
}

.gp-photo-item:hover .gp-select-circle,
.gp-photo-item.selected .gp-select-circle {
  display: flex;
}

.gp-photo-item.selected .gp-select-circle {
  background: var(--md-primary);
  border-color: var(--md-primary);
}

.gp-photo-item.selected .gp-select-circle::after {
  content: '✓';
  font-size: 14px;
  font-weight: bold;
  color: #003355;
}

/* ==========================================================================
   GOOGLE PHOTOS TIMELINE SCRUBBER (YEAR & MONTH ON RIGHT EDGE)
   ========================================================================== */
.gp-timeline-scrubber {
  position: fixed;
  right: 8px;
  top: 90px;
  bottom: 40px;
  width: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 35;
  user-select: none;
  pointer-events: auto;
  padding: 8px 0;
}

.gp-timeline-track {
  position: absolute;
  right: 14px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 1px;
}

.gp-timeline-year-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.gp-timeline-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--md-text-muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 10px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gp-timeline-label:hover,
.gp-timeline-label.active {
  color: #ffffff;
  background-color: var(--md-surface-variant);
  transform: scale(1.1);
}

.gp-timeline-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--md-text-muted);
  margin: 6px 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  position: relative;
  z-index: 2;
}

.gp-timeline-dot:hover {
  transform: scale(2.4);
  background: var(--md-primary);
}

.gp-timeline-bubble {
  position: absolute;
  right: 64px;
  background: var(--md-surface-container);
  border: 1px solid var(--md-primary);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, top 0.1s ease;
}

.gp-timeline-bubble.visible {
  opacity: 1;
}

/* Fullscreen Lightbox & Viewer */
.gp-lightbox {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 100;
  display: none;
  flex-direction: column;
}

.gp-lightbox.active {
  display: flex;
}

.gp-lightbox-top-bar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
}

.gp-lightbox-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.gp-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.08s ease-out;
  user-select: none;
  cursor: grab;
  transform-origin: center center;
}

.gp-lightbox-img.zoomed {
  cursor: grab;
}

.gp-lightbox-img.grabbing {
  cursor: grabbing;
}

/* Radar Minimap Overview saat Zoom (Google Photos Parity) */
.gp-zoom-radar {
  position: absolute;
  top: 72px;
  right: 20px;
  width: 130px;
  height: 90px;
  background: #1e1f20;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 115;
  pointer-events: none;
  display: none;
  animation: gpFadeIn 0.15s ease;
}

.gp-zoom-radar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.65;
}

.gp-radar-viewport {
  position: absolute;
  top: 0;
  left: 0;
  border: 1.5px solid #ffffff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  transition: all 0.05s linear;
}

.gp-lightbox-video {
  max-width: 90%;
  max-height: 85vh;
  outline: none;
  border-radius: 8px;
}

/* EXIF Drawer */
.gp-exif-drawer {
  width: 360px;
  background-color: var(--md-surface);
  border-left: 1px solid var(--md-surface-container);
  height: 100%;
  overflow-y: auto;
  position: absolute;
  top: 0;
  right: -360px;
  z-index: 120;
  transition: right 0.25s cubic-bezier(0.2, 0, 0, 1);
  padding: 24px;
}

.gp-exif-drawer.open {
  right: 0;
}

.gp-exif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--md-surface-container);
}

.gp-exif-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.gp-exif-item .material-symbols-outlined {
  color: var(--md-text-secondary);
  font-size: 22px;
  margin-top: 2px;
}

.gp-exif-info-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--md-text-primary);
}

.gp-exif-info-desc {
  font-size: 12px;
  color: var(--md-text-secondary);
  margin-top: 2px;
}

/* Map Widget in EXIF Drawer (Google Photos Parity) */
.gp-exif-map-container {
  width: 100%;
  margin-top: 6px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  position: relative;
  background: #131314;
}

#exif-map {
  width: 100%;
  height: 180px;
  background: #131314;
}

/* Custom Red Marker Pin Google Maps */
.gp-map-marker-pin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-map-marker-pin .material-symbols-outlined {
  color: #ea4335;
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

/* Leaflet dark theme styling */
.leaflet-container {
  background-color: #131314 !important;
  font-family: inherit !important;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5) !important;
}

.leaflet-control-zoom a {
  background-color: #1e1f20 !important;
  color: #e3e3e3 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

.leaflet-control-zoom a:hover {
  background-color: #2c2d30 !important;
}

.leaflet-control-attribution {
  background: rgba(19, 19, 20, 0.75) !important;
  color: #8e918f !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: #8ab4f8 !important;
}

/* Modals & Dialogs */
.gp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gp-modal-backdrop.active {
  display: flex;
}

.gp-modal-card {
  background-color: var(--md-surface);
  border-radius: 28px;
  max-width: 520px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--md-surface-container);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* Dropdown Popover (Apps Menu) */
.gp-popover {
  position: absolute;
  top: 60px;
  right: 16px;
  background-color: var(--md-surface);
  border: 1px solid var(--md-surface-container);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 80;
  display: none;
  width: 280px;
}

.gp-popover.active {
  display: block;
}

.gp-btn-primary {
  background-color: var(--md-primary);
  color: #003355;
  border: none;
  border-radius: 24px;
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.gp-btn-primary:hover {
  background-color: #bad3fb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.gp-btn-tonal {
  background-color: var(--md-surface-variant);
  color: var(--md-text-primary);
  border: none;
  border-radius: 24px;
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s ease;
}

.gp-btn-tonal:hover {
  background-color: #3e4143;
}

.gp-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--md-text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.gp-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Skeleton Loading Placeholder */
.gp-skeleton {
  background: linear-gradient(90deg, #1e1f20 25%, #282a2c 50%, #1e1f20 75%);
  background-size: 200% 100%;
  animation: gp-skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes gp-skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   MD3 MODAL DIALOGS & APPS POPOVER
   ========================================================================== */
.gp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: gpFadeIn 0.2s ease;
}

.gp-modal-backdrop.active {
  display: flex;
}

.gp-modal-card {
  background: var(--md-surface);
  border-radius: 28px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: gpScaleUp 0.2s cubic-bezier(0.2, 0, 0, 1);
}

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

@keyframes gpScaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Apps Dropdown Popover */
.gp-popover {
  position: absolute;
  top: 56px;
  right: 12px;
  width: 280px;
  background: var(--md-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  z-index: 120;
  display: none;
  animation: gpFadeIn 0.15s ease;
}

.gp-popover.active {
  display: block;
}

.gp-popover-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 12px;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.gp-popover-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & TOUCH ADAPTATION (MAX-WIDTH: 768px)
   ========================================================================== */
.gp-sidebar-backdrop {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --md-row-height: 130px;
  }

  .gp-top-app-bar {
    height: 56px;
    padding: 0 8px;
  }

  .gp-search-bar {
    height: 40px;
    margin: 0 8px;
    padding: 0 10px;
    max-width: none;
  }

  .gp-search-input {
    font-size: 13px;
    margin-left: 6px;
  }

  /* Off-Canvas Drawer Sidebar on Mobile */
  .gp-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    z-index: 150;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.7);
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
  }

  .gp-sidebar.open {
    transform: translateX(0);
  }

  .gp-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 140;
    display: none;
  }

  .gp-sidebar-backdrop.active {
    display: block;
  }

  .gp-justified-row {
    gap: 2px;
    margin-bottom: 2px;
  }

  .gp-photo-item {
    border-radius: 1px;
  }

  .gp-timeline-scrubber {
    display: none; /* Sembunyikan timeline di layar ponsel yang sempit */
  }

  .gp-memory-card {
    width: 170px;
    height: 125px;
  }

  .gp-exif-drawer {
    width: 100%;
    right: -100%;
  }

  .gp-popover {
    right: 8px;
    width: 260px;
  }
}

/* ==========================================================================
   GOOGLE PHOTOS ALBUM GRID & CARD STYLES
   ========================================================================== */
.gp-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px 24px;
}

.gp-album-card {
  background-color: var(--md-surface);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.gp-album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-color: rgba(168, 199, 250, 0.2);
}

.gp-album-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--md-surface-container);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.gp-album-card:hover .gp-album-cover img {
  transform: scale(1.05);
}

.gp-album-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--md-text-muted);
}

.gp-album-cover-placeholder .material-symbols-outlined {
  font-size: 48px;
  margin-bottom: 4px;
  color: var(--md-primary);
}

.gp-album-count-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(19, 19, 20, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.gp-album-info {
  padding: 12px 14px;
}

.gp-album-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--md-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gp-album-subtitle {
  font-size: 12px;
  color: var(--md-text-secondary);
  margin-top: 3px;
}

.gp-album-nav-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 4px;
}

.gp-btn-back-album {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--md-surface-container);
  color: var(--md-text-primary);
  border: 1px solid var(--md-outline-variant);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.gp-btn-back-album:hover {
  background: var(--md-surface-variant);
  border-color: var(--md-primary);
}

@media (max-width: 767px) {
  .gp-album-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px 16px;
  }
}
