/* ========================================
   Manus Works Collection - LP Styles
   White & Black Minimal Design
   ======================================== */

:root {
  --color-black: #0a0a0a;
  --color-white: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e5e5;
  --color-gray-300: #d4d4d4;
  --color-gray-400: #a3a3a3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;

  --font-sans: 'IBM Plex Sans JP', sans-serif;
  --font-display: 'IBM Plex Sans JP', sans-serif;
  --font-mincho: 'Shippori Mincho', serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-gray-200);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-cta {
  background: var(--color-black);
  color: var(--color-white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  opacity: 1 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-gray-300);
}

.btn-secondary:hover {
  opacity: 1;
  border-color: var(--color-black);
}

.btn-large {
  font-size: 16px;
  padding: 18px 48px;
}

.btn-small {
  font-size: 14px;
  padding: 10px 24px;
  margin-top: 16px;
  display: inline-block;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--color-gray-500);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-mincho);
  font-size: clamp(48px, 12vw, 120px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-gray-600);
  max-width: 400px;
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Background Video */
.hero-video-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Mobile: Prioritize vertical video coverage */
@media (max-width: 768px) {
  .hero-video {
    width: auto;
    height: 100%;
    min-width: 100%;
  }
}

/* Desktop: Prioritize horizontal video coverage */
@media (min-width: 769px) {
  .hero-video {
    width: 100%;
    height: auto;
    min-height: 100%;
  }
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  /* オーバーレイの濃さ: 0(透明) ~ 1(白) */
  --overlay-opacity: 0.6;
  background: rgba(250, 250, 250, var(--overlay-opacity));
  z-index: 1;
}

/* Section Common Styles */
section {
  padding: 120px 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 64px;
}

.section-number {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-400);
  letter-spacing: 0.1em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* About Section */
.about {
  background: var(--color-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.about-text p {
  color: var(--color-gray-600);
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 20px;
}

.stat {
  text-align: center;
  padding: 40px 20px;
  border: 1px solid var(--color-gray-200);
  transition: border-color var(--transition-normal);
}

.stat:hover {
  border-color: var(--color-black);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-gray-500);
  text-transform: uppercase;
}

/* How to Join Section */
.how-to-join {
  background: var(--color-gray-100);
}

.how-to-content {
  max-width: 900px;
  margin: 0 auto;
}

.how-to-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.how-to-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-normal);
}

.how-to-step:hover {
  border-color: var(--color-black);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.how-to-step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
}

.how-to-step-content {
  flex: 1;
}

.how-to-step-content h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.how-to-step-content p {
  color: var(--color-gray-600);
  line-height: 1.7;
}

.how-to-step-content small {
  color: var(--color-gray-500);
  font-size: 14px;
}

.how-to-step-content strong {
  color: var(--color-black);
  font-weight: 600;
}

/* Works Section */
.works {
  background: var(--color-gray-100);
}

.works-intro {
  font-size: 18px;
  color: var(--color-gray-600);
  margin-bottom: 48px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.work-card {
  background: var(--color-white);
  padding: 40px;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
}

.work-card:hover {
  border-color: var(--color-black);
  transform: translateY(-4px);
}

.work-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.work-icon svg {
  width: 100%;
  height: 100%;
}

.work-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.work-card p {
  font-size: 14px;
  color: var(--color-gray-500);
}

/* Schedule Section */
.schedule {
  background: var(--color-black);
  color: var(--color-white);
}

.schedule .section-number {
  color: var(--color-gray-500);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-gray-700);
}

.timeline-item {
  padding-top: 48px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--color-white);
  border-radius: 50%;
}

.timeline-date {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-gray-400);
  margin-bottom: 16px;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--color-gray-400);
}

/* Timeline with 2 items */
.timeline-two {
  grid-template-columns: repeat(2, 1fr);
}

/* Join Section */
.join {
  background: var(--color-white);
  text-align: center;
}

.join-content {
  max-width: 600px;
  margin: 0 auto;
}

.join h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.join>p {
  color: var(--color-gray-600);
  margin-bottom: 48px;
}

.join-steps {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
}

.join-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.step-text {
  font-size: 14px;
  color: var(--color-gray-600);
}

.join-hashtag {
  margin-bottom: 32px;
}

.join-hashtag span {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Footer */
.footer {
  background: var(--color-gray-100);
  padding: 48px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-gray-500);
}

.footer-copy {
  font-size: 12px;
  color: var(--color-gray-400);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-stats {
    max-width: 400px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  section {
    padding: 80px 0;
  }

  .section-header {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 48px;
  }

  .hero {
    padding: 120px 24px 60px;
  }

  .how-to-step {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }

  .how-to-step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .how-to-step-content h4 {
    font-size: 18px;
  }

  .hero-subtitle br {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 4px;
    width: 1px;
    height: auto;
  }

  .timeline-item {
    padding-top: 0;
    padding-left: 32px;
  }

  .timeline-item::before {
    top: 4px;
    left: 0;
  }

  .join-steps {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 24px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    padding: 32px 24px;
  }
}

/* ========================================
   Gallery Section Styles
   ======================================== */

/* Gallery Base */
.gallery {
  background: var(--color-white);
}

.gallery-intro {
  font-size: 18px;
  color: var(--color-gray-600);
  margin-bottom: 32px;
}

/* Category Filters */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--color-gray-300);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-black);
}

.filter-btn.active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

/* Gallery Card */
.gallery-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.gallery-card:hover {
  border-color: var(--color-black);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.gallery-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-gray-100);
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-card:hover .gallery-card-image img {
  transform: scale(1.05);
}

.gallery-card-image.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
}

.gallery-card-image.no-image svg {
  width: 48px;
  height: 48px;
  color: var(--color-gray-400);
}

.gallery-card-content {
  padding: 24px;
}

.gallery-card-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin-bottom: 8px;
}

.gallery-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.gallery-card-author {
  font-size: 14px;
  color: var(--color-gray-500);
}

/* Loading State */
.gallery-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 24px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-gray-200);
  border-top-color: var(--color-black);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.gallery-loading p {
  font-size: 14px;
  color: var(--color-gray-500);
}

/* Error State */
.gallery-error {
  text-align: center;
  padding: 80px 20px;
}

.gallery-error p {
  color: var(--color-gray-600);
  margin-bottom: 24px;
}

/* Empty State */
.gallery-empty {
  text-align: center;
  padding: 80px 20px;
}

.gallery-empty p {
  color: var(--color-gray-600);
  margin-bottom: 24px;
}

/* Gallery CTA */
.gallery-cta {
  text-align: center;
  padding-top: 48px;
  border-top: 1px solid var(--color-gray-200);
}

.gallery-cta p {
  color: var(--color-gray-600);
  margin-bottom: 24px;
}

/* ========================================
   Modal Styles
   ======================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--color-white);
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal.open .modal-content {
  transform: translateY(0);
}

/* Expanded modal state - no longer used but kept for compatibility */
.modal-content.modal-expanded {
  max-width: 95vw;
  max-height: 95vh;
  width: 1000px;
  transition: all 0.3s ease;
}

.modal-image-expanded {
  aspect-ratio: auto !important;
  height: 400px;
  max-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-100);
  overflow: hidden;
}

.modal-image-expanded img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  border-color: var(--color-black);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  display: flex;
  flex-direction: column;
}

/* Instagram-style Modal Layout */
.modal-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-gray-100);
}

.modal-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.modal-header-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-black);
}

.modal-image {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 70vh;
  /* 画面からはみ出しすぎないように */
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.modal-image img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  /* アスペクト比維持 */
  display: block;
}

.modal-info {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}



.modal-category {
  color: var(--color-gray-500);
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.modal-author {
  font-size: 14px;
  color: var(--color-gray-600);
  margin-bottom: 24px;
}

.modal-description {
  font-size: 15px;
  color: var(--color-gray-600);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 16px;
}

.modal-detail {
  margin-bottom: 24px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-twitter {
  font-size: 14px;
  margin-bottom: 16px;
}

.modal-twitter a {
  color: var(--color-black);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-twitter a:hover {
  opacity: 0.7;
}

.modal-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Modal Work Link Button - Large & Animated */
.modal-links .btn-primary {
  font-size: 18px;
  padding: 20px 48px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: btnPulse 2s ease-in-out infinite;
}

.modal-links .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.modal-links .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.modal-links .btn-primary:hover::before {
  left: 100%;
}

@keyframes btnPulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image {
    aspect-ratio: auto;
    max-height: 50vh;
    background: #000;
    /* 背景を黒にして映像っぽく */
  }

  .modal-image img {
    max-height: 50vh;
    object-fit: contain;
  }

  .modal-info {
    padding: 32px 24px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-links {
    flex-direction: column;
  }
}

/* Gallery Responsive */
@media (max-width: 768px) {
  .gallery-filters {
    gap: 8px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 8px 16px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallery-card-content {
    padding: 20px;
  }

  .gallery-card-title {
    font-size: 16px;
  }
}

/* ========================================
   Music Control Button
   ======================================== */

.music-control {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-black);
  border: 2px solid var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.music-control:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.music-control:active {
  transform: scale(0.95);
}

.music-icon {
  width: 24px;
  height: 24px;
  color: var(--color-white);
  transition: opacity var(--transition-fast);
}

.music-control.playing .music-play {
  display: none;
}

.music-control.playing .music-pause {
  display: block;
}

.music-control:not(.playing) .music-play {
  display: block;
}

.music-control:not(.playing) .music-pause {
  display: none;
}

@media (max-width: 768px) {
  .music-control {
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
  }

  .music-icon {
    width: 20px;
    height: 20px;
  }
}