/* ==========================================================================
   COMMUNITY-MEDIA.CSS — Responsive Rules extracted from css/community.css
   ========================================================================== */

/* Grid columns — responsive masonry */
@media (max-width: 1280px) { .ccg-grid { column-count: 4; } .ccg-skeleton-grid { column-count: 4; } }
@media (max-width: 1024px) { .ccg-grid { column-count: 3; column-gap: 10px; } .ccg-skeleton-grid { column-count: 3; column-gap: 10px; } }
@media (max-width: 820px)  { .ccg-grid { column-count: 3; column-gap: 8px; } .ccg-skeleton-grid { column-count: 3; column-gap: 8px; } }
@media (max-width: 768px)  { .ccg-grid { column-count: 2; column-gap: 8px; } .ccg-skeleton-grid { column-count: 2; column-gap: 8px; } }
@media (max-width: 480px)  { .ccg-grid { column-count: 2; column-gap: 6px; } .ccg-skeleton-grid { column-count: 2; column-gap: 6px; } }
@media (max-width: 1280px) {
  .ccg-featured__card {
    width: clamp(260px, 28vw, 340px);
  }
}
@media (max-width: 1024px) {
  :root {
    --ccg-pad: clamp(16px, 4vw, 32px);
  }

  .community-expanded-view {
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* Hero */
  .community-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: clamp(340px, 45vh, 460px);
    padding-top: 48px;
  }
  .community-hero-floaters { display: none; }
  .community-hero-text {
    padding: clamp(32px, 5vh, 56px) var(--ccg-pad);
  }
  .community-watermark {
    font-size: clamp(60px, 10vw, 120px);
  }

  /* Toolbar — stack vertically */
  .ccg-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .ccg-search { max-width: 100%; min-width: 0; }
  .ccg-sort__select { width: 100%; }
  .ccg-filter-bar {
    order: -1;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .ccg-filter-bar::-webkit-scrollbar { display: none; }
  .ccg-filter-tab { flex-shrink: 0; }

  /* Featured */
  .ccg-featured {
    padding: clamp(24px, 3vh, 40px) var(--ccg-pad);
  }
  .ccg-featured__card {
    width: clamp(240px, 32vw, 320px);
  }

  /* Spotlight */
  .ccg-spotlight {
    padding-left: var(--ccg-pad);
    padding-right: var(--ccg-pad);
  }

  /* Content grids */
  .community-vision-grid,
  .community-involve-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  /* Detail view — vertical stack on tablets */
  .ccg-detail { padding: 16px; }
  .ccg-detail__panel {
    flex-direction: column !important;
    max-width: 560px;
    max-height: 88vh;
    border-radius: 14px;
  }
  .ccg-detail__media {
    flex: none !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    padding: 10px !important;
  }
  .ccg-detail__media-shell {
    height: 100%;
    border-radius: 10px;
  }
  .ccg-detail__media::after { display: none; }
  .ccg-detail__info {
    border-left: none !important;
    border-top: 1px solid var(--ccg-border);
    overflow-y: auto;
    padding: 12px 14px;
    gap: 8px;
  }
}
@media (max-width: 820px) {
  :root {
    --ccg-pad: clamp(14px, 3.5vw, 28px);
  }

  /* Hero */
  .community-hero {
    min-height: clamp(280px, 42vh, 400px);
  }
  .community-hero h1,
  .community-title {
    font-size: clamp(26px, 8vw, 40px);
  }
  .community-hero-sub {
    font-size: 13px;
  }
  .community-watermark {
    font-size: clamp(50px, 10vw, 100px);
  }

  /* Featured */
  .ccg-featured__card {
    width: clamp(220px, 30vw, 300px);
  }

  /* Spotlight */
  .ccg-spotlight__card--sm .ccg-spotlight__avatar { width: 27px; height: 27px; font-size: 10px; }
  .ccg-spotlight__card--md .ccg-spotlight__avatar { width: 32px; height: 32px; font-size: 11px; }
  .ccg-spotlight__card--lg .ccg-spotlight__avatar { width: 36px; height: 36px; font-size: 12px; }

  /* Cards */
  .ccg-card { margin-bottom: 9px; border-radius: 11px; }
  .ccg-card__footer { padding: 9px 9px; gap: 5px; }
  .ccg-card__avatar { width: 22px; height: 22px; font-size: 8px; }
  .ccg-card__name { font-size: 10px; }
  .ccg-card__tip-btn { width: 22px; height: 22px; }

  /* Toolbar */
  .ccg-search__input { padding: 8px 12px 8px 34px; font-size: 12px; }
  .ccg-sort__select { padding: 8px 30px 8px 11px; font-size: 11px; }
  .ccg-filter-tab { padding: 6px 13px; font-size: 10px; }

  /* Detail view — force vertical on all tablets */
  .ccg-detail { padding: 10px; }
  .ccg-detail__panel {
    flex-direction: column !important;
    border-radius: 12px;
    max-width: 480px;
    max-height: 88vh;
  }
  .ccg-detail__media {
    flex: none !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    padding: 8px !important;
  }
  .ccg-detail__media-shell { height: 100%; border-radius: 8px; }
  .ccg-detail__media::after { display: none; }
  .ccg-detail__info {
    border-left: none !important;
    border-top: 1px solid var(--ccg-border);
    overflow-y: auto;
    padding: 10px 12px;
    gap: 6px;
  }
  .ccg-detail__avatar { width: 26px; height: 26px; font-size: 9px; }
  .ccg-detail__action-btn { padding: 8px 15px; font-size: 10px; }

  /* Sections */
  .community-section h2 { font-size: clamp(18px, 5vw, 22px); }
  .community-card { padding: 18px; }
  .community-card__title { font-size: 13px; }
  .community-card__body { font-size: 11px; }

  /* FAB */
  .ccg-fab { width: 44px; height: 44px; border-radius: 13px; font-size: 17px; }
}
@media (max-width: 768px) {
  /* Hero */
  .community-hero {
    min-height: clamp(300px, 40vh, 400px);
    padding-top: 44px;
  }
  .community-hero h1,
  .community-title {
    font-size: clamp(28px, 8.5vw, 44px);
    line-height: 0.95;
  }
  .community-hero-sub {
    font-size: 14px;
    max-width: 100%;
  }
  .community-hero-text {
    gap: 12px;
    padding: clamp(28px, 4vh, 44px) var(--ccg-pad);
  }
  .community-hero-stats {
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .community-hero-stats::-webkit-scrollbar { display: none; }
  .community-hero-stats li {
    flex-shrink: 0;
    padding: 10px 16px;
    min-width: 80px;
  }
  .community-watermark {
    font-size: clamp(48px, 14vw, 80px);
    right: -3%;
  }
  .community-pill-live { margin-left: 8px; }
  .community-hero-grid-overlay { display: none; }

  /* Exit button */
  .community-exit-btn {
    top: 12px;
    right: 12px;
    padding: 7px 14px;
    font-size: 11px;
    gap: 6px;
  }

  /* Ticker — smaller text */
  .ccg-ticker { padding: 10px 0; }
  .ccg-ticker__item { font-size: 11px; }

  /* Featured */
  .ccg-featured {
    padding: clamp(20px, 3vh, 32px) var(--ccg-pad);
  }
  .ccg-featured__header {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  .ccg-featured__title { font-size: 18px; }
  .ccg-featured__sub { font-size: 12px; }
  .ccg-featured__nav { display: none; }
  .ccg-featured__card {
    width: clamp(200px, 55vw, 280px);
    border-radius: 12px;
  }
  .ccg-featured__track {
    gap: 10px;
    padding: 0 var(--ccg-pad);
    scroll-padding-left: var(--ccg-pad);
  }
  .ccg-featured__card-overlay { padding: 16px; }
  .ccg-featured__card-title { font-size: 13px; }
  .ccg-featured__card-author { font-size: 11px; }
  .ccg-featured__card-badge { font-size: 9px; padding: 3px 8px; }

  /* Spotlight */
  .ccg-spotlight { padding: clamp(20px, 3vh, 32px) var(--ccg-pad); }
  .ccg-spotlight__track { min-height: 88px; }
  .ccg-spotlight__belt { gap: 8px; }
  .ccg-spotlight__card--sm { padding: 6px 12px 6px 6px; }
  .ccg-spotlight__card--sm .ccg-spotlight__avatar { width: 28px; height: 28px; font-size: 10px; }
  .ccg-spotlight__card--md { padding: 8px 14px 8px 8px; }
  .ccg-spotlight__card--md .ccg-spotlight__avatar { width: 34px; height: 34px; font-size: 12px; }
  .ccg-spotlight__card--lg { padding: 10px 18px 10px 10px; }
  .ccg-spotlight__card--lg .ccg-spotlight__avatar { width: 38px; height: 38px; font-size: 13px; }
  .ccg-spotlight__title { font-size: 14px; }
  .ccg-spotlight__badge { font-size: 8px; padding: 2px 8px; }

  /* Toolbar */
  .ccg-toolbar { gap: 8px; padding-bottom: 20px; }
  .ccg-search__input { padding: 9px 12px 9px 36px; font-size: 13px; }
  .ccg-sort__select { padding: 9px 32px 9px 12px; font-size: 12px; min-width: 0; }
  .ccg-filter-tab { padding: 6px 14px; font-size: 11px; }

  /* Gallery grid */
  .ccg-grid { column-gap: 10px; }
  .ccg-card { margin-bottom: 10px; border-radius: 12px; }
  .ccg-card__footer { padding: 10px 10px; gap: 6px; }
  .ccg-card__author-row { gap: 6px; }
  .ccg-card__avatar { width: 24px; height: 24px; font-size: 9px; }
  .ccg-card__name { font-size: 11px; }
  .ccg-card__time { font-size: 9px; }
  .ccg-card__tip-btn { width: 24px; height: 24px; font-size: 11px; }
  .ccg-card__reactions { gap: 3px; }
  .ccg-reaction { padding: 3px 5px; font-size: 10px; border-radius: 5px; }
  .ccg-reaction__count { font-size: 8px; }
  .ccg-card__type-badge { font-size: 8px; padding: 3px 7px; top: 8px; left: 8px; border-radius: 6px; }
  .ccg-card__bookmark { width: 24px; height: 24px; top: 8px; left: 8px; border-radius: 6px; }
  .ccg-card__overlay { padding: 10px; }
  .ccg-card__prompt { font-size: 10px; -webkit-line-clamp: 2; }

  /* Section content */
  .community-section {
    padding: clamp(24px, 4vh, 40px) var(--ccg-pad);
  }
  .community-section h2 { font-size: clamp(20px, 5vw, 24px); }
  .community-section-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
  }
  .community-section-content { text-align: left; }
  .community-section-content > p { font-size: 13px; }
  .community-highlight { margin-top: 4px; }

  .community-vision-grid,
  .community-involve-grid,
  .community-updates-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .community-card { padding: 20px; border-radius: 12px; }
  .community-card__title { font-size: 14px; }
  .community-card__body { font-size: 12px; }
  .community-involve-icon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 12px; }
  .community-updates-list li { padding: 12px 14px 12px 16px; font-size: 12px; }

  /* CTA */
  .community-cta {
    padding: clamp(32px, 5vh, 56px) clamp(20px, 4vw, 40px);
    border-radius: 14px;
    margin-top: 24px;
  }
  .community-cta h2 { font-size: clamp(20px, 5vw, 26px); }
  .community-cta p { font-size: 13px; margin-bottom: 20px; }

  /* Detail view — compact bottom sheet for phones */
  .ccg-detail { padding: 0; align-items: flex-end; }
  .ccg-detail__panel {
    flex-direction: column !important;
    max-height: 88vh;
    border-radius: 12px 12px 0 0;
    max-width: 100%;
  }
  .ccg-detail__media {
    flex: none !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    padding: 6px !important;
  }
  .ccg-detail__media-shell { height: 100%; border-radius: 8px; }
  .ccg-detail__media::after { display: none; }
  .ccg-detail__info {
    padding: 8px 10px;
    border-left: none !important;
    border-top: 1px solid var(--ccg-border);
    overflow-y: auto;
    gap: 5px;
  }
  .ccg-detail__close { width: 24px; height: 24px; top: 4px; right: 4px; }
  .ccg-detail__close svg { width: 11px; height: 11px; }
  .ccg-detail__creator { gap: 5px; padding-bottom: 0; margin-bottom: 0; }
  .ccg-detail__avatar { width: 22px; height: 22px; font-size: 8px; }
  .ccg-detail__creator-name { font-size: 10px; }
  .ccg-detail__creator-time { font-size: 7px; }
  .ccg-detail__type { font-size: 6px; padding: 2px 4px; margin-bottom: 3px; }
  .ccg-detail__summary { padding: 6px; border-radius: 5px; gap: 3px; }
  .ccg-detail__summary-label { font-size: 7px; }
  .ccg-detail__summary-title { font-size: 11px; }
  .ccg-detail__prompt-label { font-size: 7px; margin-bottom: 2px; }
  .ccg-detail__prompt-section { padding: 6px; border-radius: 5px; }
  .ccg-detail__prompt-text { font-size: 9px; padding: 5px 6px; border-radius: 4px; line-height: 1.45; }
  .ccg-detail__stats { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .ccg-detail__stat { padding: 5px 3px; border-radius: 4px; }
  .ccg-detail__stat-value { font-size: 12px; }
  .ccg-detail__stat-label { font-size: 5px; letter-spacing: 0.08em; }
  .ccg-detail__reactions { gap: 2px; flex-wrap: wrap; }
  .ccg-detail__reactions .ccg-reaction { padding: 2px 4px; font-size: 8px; }
  .ccg-detail__actions { grid-template-columns: repeat(2, 1fr); gap: 3px; }
  .ccg-detail__action-btn { padding: 5px 8px; font-size: 8px; border-radius: 4px; }
  .ccg-comments__count { padding: 6px; }
  .ccg-comments__count-avatar { width: 18px; height: 18px; font-size: 6px; }
  .ccg-comments__count-copy strong { font-size: 10px; }
  .ccg-comments__input { padding: 5px 6px; }
  .ccg-comments__input input { font-size: 10px; }
  .ccg-comments__input button { font-size: 9px; padding: 3px 8px; }
  .ccg-detail__prompt-text { font-size: 12px; padding: 10px 12px; }
  .ccg-detail__prompt-label { font-size: 9px; }
  .ccg-detail__reactions .ccg-reaction { padding: 5px 8px; font-size: 12px; }
  .ccg-detail__action-btn { padding: 8px 16px; font-size: 11px; }
  .ccg-detail__close { width: 32px; height: 32px; top: 12px; right: 12px; }

  /* Load more */
  .ccg-load-more-btn { padding: 10px 32px; font-size: 12px; }

  /* FAB */
  .ccg-fab { bottom: 20px; right: 16px; width: 46px; height: 46px; border-radius: 14px; font-size: 18px; }
  .ccg-fab__tooltip { display: none; }

  /* Modals — take more width */
  .ccg-tip-modal__box { max-width: 92vw; }
  .ccg-share-modal__box { max-width: 92vw; }
}
@media (max-width: 640px) {
  .community-expanded-shell { padding: 0; border: none; border-radius: 0; }

  /* Hero */
  .community-hero {
    min-height: clamp(260px, 38vh, 360px);
    padding-top: 40px;
  }
  .community-hero-text {
    padding: clamp(24px, 4vh, 36px) var(--ccg-pad);
    gap: 10px;
  }
  .community-hero h1,
  .community-title {
    font-size: clamp(26px, 8vw, 38px);
  }
  .community-hero-sub { font-size: 13px; line-height: 1.6; }

  /* Hero actions — full width stack */
  .community-hero-actions,
  .community-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .community-hero-actions .community-primary-btn,
  .community-hero-actions .community-secondary-btn {
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  /* Hero stats — horizontal scroll */
  .community-hero-stats li {
    min-width: 76px;
    padding: 8px 12px;
  }
  .community-hero-stats li span { font-size: 15px; }
  .community-hero-stats li small { font-size: 8px; }

  /* Featured — touch swipe friendly */
  .ccg-featured__card {
    width: clamp(180px, 50vw, 240px);
    border-radius: 10px;
  }
  .ccg-featured__card::after { display: none; }
  .ccg-featured__card-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0,0,0,0.7) 80%, rgba(0,0,0,0.95) 100%);
    padding: 12px;
  }
  .ccg-featured__card-title { font-size: 11px; -webkit-line-clamp: 1; }

  /* Spotlight — compact */
  .ccg-spotlight__track { min-height: 76px; }
  .ccg-spotlight__belt { gap: 8px; }
  .ccg-spotlight__card--sm { padding: 5px 10px 5px 5px; }
  .ccg-spotlight__card--sm .ccg-spotlight__avatar { width: 26px; height: 26px; font-size: 9px; }
  .ccg-spotlight__card--md { padding: 7px 12px 7px 7px; }
  .ccg-spotlight__card--md .ccg-spotlight__avatar { width: 30px; height: 30px; font-size: 11px; }
  .ccg-spotlight__card--lg { padding: 8px 14px 8px 8px; }
  .ccg-spotlight__card--lg .ccg-spotlight__avatar { width: 34px; height: 34px; font-size: 12px; }

  /* Cards — compact footer */
  .ccg-card__footer { padding: 8px 8px; gap: 5px; }
  .ccg-card__reactions { overflow-x: auto; scrollbar-width: none; }
  .ccg-card__reactions::-webkit-scrollbar { display: none; }

  /* Buttons */
  .community-primary-btn,
  .community-secondary-btn {
    padding: 10px 20px;
    font-size: 12px;
    border-radius: 8px;
  }

  /* CTA */
  .community-cta {
    border-radius: 12px;
    margin-left: 4px;
    margin-right: 4px;
  }

  /* Detail view — full sheet */
  .ccg-detail__panel {
    max-height: 100vh;
    border-radius: 0;
  }
  .ccg-detail__media {
    min-height: 180px;
    max-height: 35vh;
  }
  .ccg-detail__info { padding: 14px 12px; gap: 12px; }
  .ccg-detail__creator { gap: 10px; padding-bottom: 0; margin-bottom: 0; }
  .ccg-detail__summary { padding: 14px 14px 13px; }
  .ccg-detail__prompt-section { margin-bottom: 0; }
  .ccg-detail__reactions { gap: 4px; margin-bottom: 0; }
  .ccg-detail__actions { grid-template-columns: 1fr; gap: 6px; }
  .ccg-detail__action-btn { padding: 8px 14px; font-size: 11px; justify-content: center; }
  .ccg-comments__header { flex-wrap: wrap; }
  .ccg-comments__count { width: 100%; justify-content: space-between; }

  /* Modals */
  .ccg-tip-modal { padding: 8px; }
  .ccg-tip-modal__box { max-width: 100%; border-radius: 14px; }
  .ccg-tip-modal__amounts { grid-template-columns: repeat(2, 1fr); }
  .ccg-share-modal { padding: 8px; }
  .ccg-share-modal__box { max-width: 100%; border-radius: 14px; }
}
@media (max-width: 540px) {
  :root {
    --ccg-pad: 13px;
  }

  /* Hero */
  .community-hero {
    min-height: clamp(250px, 37vh, 340px);
    padding-top: 38px;
  }
  .community-hero h1,
  .community-title {
    font-size: clamp(25px, 7.5vw, 36px);
  }
  .community-hero-sub { font-size: 12px; }
  .community-hero-stats li { min-width: 72px; padding: 8px 11px; }

  /* Featured */
  .ccg-featured__card {
    width: clamp(170px, 48vw, 220px);
  }

  /* Spotlight */
  .ccg-spotlight__card--sm { padding: 5px 10px 5px 5px; }
  .ccg-spotlight__card--sm .ccg-spotlight__avatar { width: 25px; height: 25px; font-size: 9px; }
  .ccg-spotlight__card--md { padding: 6px 12px 6px 6px; }
  .ccg-spotlight__card--md .ccg-spotlight__avatar { width: 29px; height: 29px; font-size: 10px; }
  .ccg-spotlight__card--lg { padding: 7px 14px 7px 7px; }
  .ccg-spotlight__card--lg .ccg-spotlight__avatar { width: 32px; height: 32px; font-size: 11px; }

  /* Cards */
  .ccg-card { margin-bottom: 8px; border-radius: 11px; }
  .ccg-card__footer { padding: 8px 7px; gap: 4px; }
  .ccg-card__avatar { width: 21px; height: 21px; font-size: 8px; }
  .ccg-card__name { font-size: 10px; }
  .ccg-card__tip-btn { width: 21px; height: 21px; font-size: 9px; }

  /* Toolbar */
  .ccg-search__input { padding: 8px 11px 8px 33px; font-size: 12px; }
  .ccg-sort__select { padding: 8px 28px 8px 10px; font-size: 11px; }
  .ccg-filter-tab { padding: 5px 12px; font-size: 10px; }

  /* Detail view */
  .ccg-detail__media { max-height: 34vh; }
  .ccg-detail__avatar { width: 31px; height: 31px; font-size: 11px; }
  .ccg-detail__action-btn { padding: 8px 13px; font-size: 10px; }

  /* CTA */
  .community-cta {
    padding: clamp(28px, 4.5vh, 44px) clamp(18px, 3.5vw, 32px);
  }
  .community-cta h2 { font-size: clamp(18px, 5vw, 24px); }

  /* Buttons */
  .community-primary-btn,
  .community-secondary-btn { padding: 9px 18px; font-size: 11px; }

  /* FAB */
  .ccg-fab { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
}
@media (max-width: 480px) {
  :root {
    --ccg-pad: 14px;
  }

  /* Hero */
  .community-hero {
    min-height: clamp(240px, 36vh, 320px);
    padding-top: 36px;
  }
  .community-hero h1,
  .community-title {
    font-size: clamp(24px, 7.5vw, 34px);
  }
  .community-hero-sub { font-size: 12px; }
  .community-pill { font-size: 9px; letter-spacing: 0.15em; }
  .community-pill-live { font-size: 8px; padding: 2px 7px; }
  .community-watermark { display: none; }

  /* Stats */
  .community-hero-stats { gap: 4px; }
  .community-hero-stats li {
    min-width: 68px;
    padding: 8px 10px;
    border-radius: 8px;
  }
  .community-hero-stats li span { font-size: 14px; }
  .community-hero-stats li small { font-size: 7px; letter-spacing: 0.04em; }

  /* Exit btn */
  .community-exit-btn {
    top: 8px;
    right: 8px;
    padding: 6px 10px;
    font-size: 10px;
    gap: 4px;
  }

  /* Ticker */
  .ccg-ticker { padding: 8px 0; }
  .ccg-ticker__item { font-size: 10px; gap: 6px; }
  .ccg-ticker__track { gap: 20px; }

  /* Featured */
  .ccg-featured { padding: 16px var(--ccg-pad); }
  .ccg-featured__header { margin-bottom: 12px; }
  .ccg-featured__title { font-size: 16px; gap: 8px; }
  .ccg-featured__title::before { width: 2px; height: 14px; }
  .ccg-featured__sub { display: none; }
  .ccg-featured__card {
    width: clamp(160px, 45vw, 200px);
    aspect-ratio: 3 / 4;
  }
  .ccg-featured__track { gap: 8px; }

  /* Spotlight */
  .ccg-spotlight { padding: 14px var(--ccg-pad); }
  .ccg-spotlight__track { min-height: 64px; padding: 6px 0; }
  .ccg-spotlight__track::before,
  .ccg-spotlight__track::after { width: 30px; }
  .ccg-spotlight__belt { gap: 6px; }
  .ccg-spotlight__card--sm { padding: 4px 8px 4px 4px; gap: 6px; border-radius: 30px; }
  .ccg-spotlight__card--sm .ccg-spotlight__avatar { width: 24px; height: 24px; font-size: 8px; }
  .ccg-spotlight__card--sm .ccg-spotlight__name { font-size: 10px; }
  .ccg-spotlight__card--md { padding: 5px 10px 5px 5px; gap: 7px; }
  .ccg-spotlight__card--md .ccg-spotlight__avatar { width: 28px; height: 28px; font-size: 10px; }
  .ccg-spotlight__card--md .ccg-spotlight__name { font-size: 10px; }
  .ccg-spotlight__card--md .ccg-spotlight__count { font-size: 8px; }
  .ccg-spotlight__card--lg { padding: 6px 12px 6px 6px; gap: 8px; }
  .ccg-spotlight__card--lg .ccg-spotlight__avatar { width: 30px; height: 30px; font-size: 10px; }
  .ccg-spotlight__card--lg .ccg-spotlight__name { font-size: 11px; }
  .ccg-spotlight__card--lg .ccg-spotlight__count { font-size: 8px; }
  .ccg-spotlight__avatar::after { inset: -2px; border-width: 1px; }
  .ccg-spotlight__header { margin-bottom: 12px; }
  .ccg-spotlight__title { font-size: 13px; }
  .ccg-spotlight__badge { font-size: 7px; padding: 2px 6px; }

  /* Toolbar */
  .ccg-toolbar { gap: 6px; padding-bottom: 14px; }
  .ccg-search__input { padding: 8px 10px 8px 34px; font-size: 12px; border-radius: 8px; }
  .ccg-search__icon { left: 10px; }
  .ccg-search__icon svg { width: 14px; height: 14px; }
  .ccg-sort__select { padding: 8px 28px 8px 10px; font-size: 11px; border-radius: 8px; }
  .ccg-filter-tab { padding: 5px 12px; font-size: 10px; }

  /* Grid — compact cards on mobile */
  .ccg-grid { column-gap: 6px; }
  .ccg-card { margin-bottom: 6px; border-radius: 8px; }
  .ccg-card__footer { padding: 6px 5px; gap: 3px; }
  .ccg-card__author-row { gap: 4px; }
  .ccg-card__avatar { width: 18px; height: 18px; font-size: 7px; }
  .ccg-card__name { font-size: 9px; }
  .ccg-card__time { font-size: 7px; }
  .ccg-card__tip-btn { width: 18px; height: 18px; font-size: 9px; border-radius: 4px; }
  .ccg-card__reactions { gap: 2px; }
  .ccg-reaction { padding: 2px 3px; font-size: 8px; border-radius: 3px; gap: 1px; }
  .ccg-reaction__count { font-size: 7px; min-width: 6px; }
  .ccg-card__type-badge { font-size: 7px; padding: 2px 4px; top: 4px; left: 4px; border-radius: 3px; }
  .ccg-card__bookmark { width: 18px; height: 18px; top: 4px; left: 4px; border-radius: 4px; font-size: 9px; }
  .ccg-card__overlay::before { width: 20px; height: 20px; top: 6px; right: 6px; }
  .ccg-card__overlay { padding: 6px; }
  .ccg-card__prompt { font-size: 8px; -webkit-line-clamp: 2; }

  /* Sections */
  .community-section {
    padding: clamp(20px, 3vh, 32px) var(--ccg-pad);
  }
  .community-section h2 { font-size: clamp(18px, 5vw, 22px); margin-bottom: 6px; }
  .community-section-content > p { font-size: 12px; }
  .community-section-header { gap: 6px; margin-bottom: 16px; }
  .community-card { padding: 16px; }
  .community-card__title { font-size: 13px; margin-bottom: 6px; }
  .community-card__body { font-size: 11px; margin-bottom: 10px; }
  .community-involve-icon { width: 34px; height: 34px; border-radius: 8px; margin-bottom: 10px; }
  .community-involve-icon svg { width: 18px; height: 18px; }
  .community-updates-list { margin: 14px 0 24px; gap: 6px; }
  .community-updates-list li { padding: 10px 12px 10px 14px; font-size: 11px; border-radius: 8px; }

  /* CTA */
  .community-cta { padding: clamp(28px, 4vh, 40px) 16px; margin-top: 16px; }
  .community-cta h2 { font-size: clamp(18px, 5vw, 22px); }
  .community-cta p { font-size: 12px; margin-bottom: 16px; }
  .community-cta-actions { gap: 6px; }

  /* Load more */
  .ccg-load-more-wrap { padding: 24px 0 10px; }
  .ccg-load-more-btn { padding: 8px 24px; font-size: 11px; border-radius: 8px; }

  /* FAB */
  .ccg-fab { bottom: 14px; right: 12px; width: 42px; height: 42px; border-radius: 12px; font-size: 16px; }

  /* Detail — compact for small phones */
  .ccg-detail { padding: 0; }
  .ccg-detail__panel {
    flex-direction: column !important;
    max-height: 100vh;
    border-radius: 0;
    max-width: 100%;
  }
  .ccg-detail__close { width: 28px; height: 28px; top: 8px; right: 8px; }
  .ccg-detail__close svg { width: 16px; height: 16px; }
  .ccg-detail__media {
    flex: 0 0 auto !important;
    max-width: 100% !important;
    min-height: 140px;
    max-height: 30vh;
  }
  .ccg-detail__info {
    padding: 12px 10px;
    gap: 10px;
    border-left: none !important;
    border-top: 1px solid var(--ccg-border);
    overflow-y: auto;
    flex: 1 1 auto;
  }
  .ccg-detail__creator { padding-bottom: 0; margin-bottom: 0; gap: 8px; }
  .ccg-detail__avatar { width: 28px; height: 28px; font-size: 10px; }
  .ccg-detail__creator-name { font-size: 11px; }
  .ccg-detail__type { font-size: 7px; padding: 2px 5px; margin-bottom: 8px; }
  .ccg-detail__prompt-text { font-size: 11px; padding: 8px 10px; border-radius: 8px; }
  .ccg-detail__reactions .ccg-reaction { padding: 4px 6px; font-size: 10px; }
  .ccg-detail__reactions { gap: 4px; margin-bottom: 0; flex-wrap: wrap; }
  .ccg-detail__stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ccg-detail__actions { grid-template-columns: 1fr; }
  .ccg-detail__action-btn { padding: 7px 12px; font-size: 10px; border-radius: 8px; }
  .ccg-comments__count-avatar { width: 22px; height: 22px; font-size: 8px; }
  .ccg-comments__count-copy strong { font-size: 11px; }

  /* Modals */
  .ccg-tip-modal__header { padding: 14px 14px 0; }
  .ccg-tip-modal__header h2 { font-size: 14px; }
  .ccg-tip-modal__body { padding: 12px 14px 4px; }
  .ccg-tip-modal__subtitle { font-size: 11px; }
  .ccg-tip-amount { padding: 10px 4px; font-size: 12px; border-radius: 8px; }
  .ccg-tip-modal__footer { padding: 12px 14px 14px; }
  .ccg-tip-modal__cancel,
  .ccg-tip-modal__submit { font-size: 12px; padding: 8px 16px; }

  .ccg-share-modal__header { padding: 14px 14px 0; }
  .ccg-share-modal__header h2 { font-size: 15px; }
  .ccg-share-modal__body { padding: 12px 14px; }
  .ccg-share-modal__input { padding: 9px 10px; font-size: 13px; }
  .ccg-share-modal__footer { padding: 0 14px 14px; }
  .ccg-share-modal__cancel,
  .ccg-share-modal__submit { font-size: 12px; padding: 8px 18px; }
}
@media (max-width: 430px) {
  :root {
    --ccg-pad: 12px;
  }

  /* Hero */
  .community-hero {
    min-height: clamp(235px, 35vh, 305px);
    padding-top: 34px;
  }
  .community-hero h1,
  .community-title {
    font-size: clamp(22px, 7vw, 30px);
  }
  .community-hero-sub { font-size: 11px; }
  .community-hero-stats li {
    min-width: 64px;
    padding: 7px 9px;
  }
  .community-hero-stats li span { font-size: 13px; }

  /* Featured */
  .ccg-featured { padding: 14px var(--ccg-pad); }
  .ccg-featured__card {
    width: clamp(150px, 42vw, 185px);
  }

  /* Spotlight */
  .ccg-spotlight { padding: 12px var(--ccg-pad); }
  .ccg-spotlight__track { min-height: 60px; }
  .ccg-spotlight__card--sm { padding: 4px 8px 4px 4px; gap: 5px; }
  .ccg-spotlight__card--sm .ccg-spotlight__avatar { width: 23px; height: 23px; font-size: 8px; }
  .ccg-spotlight__card--md { padding: 5px 10px 5px 5px; gap: 6px; }
  .ccg-spotlight__card--md .ccg-spotlight__avatar { width: 26px; height: 26px; font-size: 9px; }
  .ccg-spotlight__card--lg { padding: 6px 12px 6px 6px; gap: 7px; }
  .ccg-spotlight__card--lg .ccg-spotlight__avatar { width: 28px; height: 28px; font-size: 9px; }

  /* Cards */
  .ccg-card { margin-bottom: 5px; border-radius: 9px; }
  .ccg-card__footer { padding: 6px 6px; gap: 3px; }
  .ccg-card__avatar { width: 19px; height: 19px; font-size: 7px; }
  .ccg-card__name { font-size: 9px; }
  .ccg-card__time { font-size: 7px; }
  .ccg-card__tip-btn { width: 19px; height: 19px; font-size: 9px; }
  .ccg-reaction { padding: 2px 4px; font-size: 8px; }

  /* Toolbar */
  .ccg-search__input { padding: 7px 10px 7px 32px; font-size: 11px; }
  .ccg-sort__select { padding: 7px 26px 7px 9px; font-size: 10px; }
  .ccg-filter-tab { padding: 5px 11px; font-size: 9px; }

  /* Sections */
  .community-section {
    padding: clamp(18px, 3vh, 28px) var(--ccg-pad);
  }
  .community-section h2 { font-size: clamp(16px, 4.5vw, 20px); }
  .community-section-content > p { font-size: 11px; }
  .community-card { padding: 14px; }
  .community-card__title { font-size: 12px; }
  .community-card__body { font-size: 10px; }

  /* Detail view */
  .ccg-detail__media { min-height: 150px; max-height: 30vh; }
  .ccg-detail__info { padding: 11px 9px; }
  .ccg-detail__avatar { width: 28px; height: 28px; font-size: 10px; }
  .ccg-detail__creator-name { font-size: 11px; }
  .ccg-detail__action-btn { padding: 7px 11px; font-size: 9px; }

  /* Buttons */
  .community-primary-btn,
  .community-secondary-btn { padding: 8px 16px; font-size: 10px; }

  /* FAB */
  .ccg-fab { width: 39px; height: 39px; border-radius: 11px; font-size: 15px; }

  /* Modals */
  .ccg-tip-modal__header h2 { font-size: 13px; }
  .ccg-share-modal__header h2 { font-size: 14px; }
}
@media (max-width: 390px) {
  :root {
    --ccg-pad: 11px;
  }

  /* Hero */
  .community-hero h1,
  .community-title {
    font-size: clamp(20px, 6.5vw, 28px);
  }
  .community-hero-sub { font-size: 10px; }
  .community-hero-stats li { min-width: 62px; padding: 6px 8px; }
  .community-hero-stats li span { font-size: 12px; }
  .community-hero-stats li small { font-size: 6px; }

  /* Featured */
  .ccg-featured__title { font-size: 15px; }
  .ccg-featured__card {
    width: clamp(140px, 40vw, 170px);
  }

  /* Cards */
  .ccg-card { margin-bottom: 5px; }
  .ccg-card__avatar { width: 18px; height: 18px; font-size: 7px; }
  .ccg-card__tip-btn { width: 18px; height: 18px; font-size: 8px; }
  .ccg-card__type-badge { font-size: 6px; padding: 2px 4px; top: 5px; left: 5px; }

  /* Spotlight */
  .ccg-spotlight__track { min-height: 58px; }
  .ccg-spotlight__name { font-size: 8px; }

  /* Toolbar */
  .ccg-search__input { padding: 7px 9px 7px 31px; font-size: 10px; }
  .ccg-sort__select { padding: 7px 25px 7px 8px; font-size: 9px; }

  /* Detail view */
  .ccg-detail__close { width: 26px; height: 26px; top: 7px; right: 7px; }
  .ccg-detail__creator-name { font-size: 10px; }
  .ccg-detail__type { font-size: 7px; }

  /* CTA */
  .community-cta { padding: clamp(24px, 3.5vh, 36px) 12px; }
  .community-cta h2 { font-size: clamp(16px, 4vw, 20px); }
  .community-cta p { font-size: 11px; }

  /* Buttons */
  .community-primary-btn,
  .community-secondary-btn { padding: 7px 14px; font-size: 9px; }

  /* FAB */
  .ccg-fab { width: 37px; height: 37px; border-radius: 10px; font-size: 14px; bottom: 11px; right: 9px; }
}
@media (max-width: 360px) {
  :root {
    --ccg-pad: 10px;
  }

  .community-hero h1,
  .community-title {
    font-size: 22px;
  }
  .community-hero-sub { font-size: 11px; }
  .community-hero-stats li { min-width: 60px; padding: 6px 8px; }
  .community-hero-stats li span { font-size: 13px; }
  .community-hero-stats li small { font-size: 7px; }

  .ccg-featured__card { width: clamp(140px, 42vw, 170px); }
  .ccg-spotlight__track { min-height: 56px; padding: 4px 0; }
  .ccg-spotlight__track::before,
  .ccg-spotlight__track::after { width: 20px; }
  .ccg-spotlight__belt { gap: 5px; }
  .ccg-spotlight__card--sm { padding: 3px 7px 3px 3px; gap: 5px; }
  .ccg-spotlight__card--sm .ccg-spotlight__avatar { width: 22px; height: 22px; font-size: 8px; }
  .ccg-spotlight__card--md { padding: 4px 8px 4px 4px; gap: 6px; }
  .ccg-spotlight__card--md .ccg-spotlight__avatar { width: 24px; height: 24px; font-size: 8px; }
  .ccg-spotlight__card--lg { padding: 5px 10px 5px 5px; gap: 6px; }
  .ccg-spotlight__card--lg .ccg-spotlight__avatar { width: 26px; height: 26px; font-size: 9px; }
  .ccg-spotlight__name { font-size: 9px; max-width: 70px; }
  .ccg-spotlight__count { display: none; }

  .ccg-card__footer { padding: 6px 5px; }
  .ccg-card__avatar { width: 18px; height: 18px; font-size: 7px; }
  .ccg-card__name { font-size: 9px; }
  .ccg-card__tip-btn { width: 18px; height: 18px; }
  .ccg-reaction { padding: 2px 3px; font-size: 8px; }

  .community-card { padding: 12px; }
  .community-primary-btn,
  .community-secondary-btn { padding: 8px 14px; font-size: 11px; }

  .ccg-fab { width: 38px; height: 38px; border-radius: 10px; bottom: 12px; right: 10px; }
}
@media (max-width: 344px) {
  :root {
    --ccg-pad: 9px;
  }

  /* Hero */
  .community-hero {
    min-height: clamp(220px, 35vh, 280px);
    padding-top: 32px;
  }
  .community-hero h1,
  .community-title {
    font-size: 20px;
    line-height: 1;
  }
  .community-hero-sub { font-size: 10px; line-height: 1.4; }
  .community-hero-text { gap: 8px; }
  .community-hero-stats li { min-width: 58px; padding: 5px 7px; }
  .community-hero-stats li span { font-size: 12px; }
  .community-hero-stats li small { font-size: 6px; }

  /* Ticker */
  .ccg-ticker { padding: 6px 0; }
  .ccg-ticker__item { font-size: 9px; gap: 4px; }

  /* Featured */
  .ccg-featured { padding: 12px var(--ccg-pad); }
  .ccg-featured__title { font-size: 14px; }
  .ccg-featured__card {
    width: clamp(130px, 38vw, 160px);
  }

  /* Spotlight */
  .ccg-spotlight { padding: 10px var(--ccg-pad); }
  .ccg-spotlight__track { min-height: 52px; padding: 3px 0; }
  .ccg-spotlight__track::before,
  .ccg-spotlight__track::after { width: 15px; }
  .ccg-spotlight__card--sm { padding: 3px 6px 3px 3px; gap: 4px; }
  .ccg-spotlight__card--sm .ccg-spotlight__avatar { width: 20px; height: 20px; font-size: 7px; }
  .ccg-spotlight__card--md { padding: 3px 7px 3px 3px; gap: 5px; }
  .ccg-spotlight__card--md .ccg-spotlight__avatar { width: 22px; height: 22px; font-size: 7px; }
  .ccg-spotlight__card--lg { padding: 4px 9px 4px 4px; gap: 5px; }
  .ccg-spotlight__card--lg .ccg-spotlight__avatar { width: 24px; height: 24px; font-size: 8px; }
  .ccg-spotlight__name { font-size: 8px; max-width: 60px; }

  /* Cards */
  .ccg-card { margin-bottom: 4px; border-radius: 8px; }
  .ccg-card__footer { padding: 5px 4px; gap: 2px; }
  .ccg-card__avatar { width: 16px; height: 16px; font-size: 6px; }
  .ccg-card__name { font-size: 8px; }
  .ccg-card__time { font-size: 6px; }
  .ccg-card__tip-btn { width: 16px; height: 16px; font-size: 7px; }
  .ccg-reaction { padding: 1px 3px; font-size: 7px; }
  .ccg-card__type-badge { font-size: 5px; padding: 1px 3px; top: 4px; left: 4px; border-radius: 3px; }

  /* Toolbar */
  .ccg-toolbar { gap: 5px; padding-bottom: 10px; }
  .ccg-search__input { padding: 6px 8px 6px 28px; font-size: 10px; border-radius: 6px; }
  .ccg-search__icon { left: 8px; }
  .ccg-search__icon svg { width: 12px; height: 12px; }
  .ccg-sort__select { padding: 6px 22px 6px 8px; font-size: 9px; border-radius: 6px; }
  .ccg-filter-tab { padding: 4px 9px; font-size: 8px; }

  /* Sections */
  .community-section {
    padding: clamp(14px, 2.5vh, 22px) var(--ccg-pad);
  }
  .community-section h2 { font-size: 15px; margin-bottom: 5px; }
  .community-section-content > p { font-size: 10px; }
  .community-card { padding: 10px; }
  .community-card__title { font-size: 11px; margin-bottom: 4px; }
  .community-card__body { font-size: 9px; }
  .community-involve-icon { width: 28px; height: 28px; margin-bottom: 8px; }
  .community-involve-icon svg { width: 14px; height: 14px; }

  /* Buttons */
  .community-primary-btn,
  .community-secondary-btn { padding: 6px 12px; font-size: 9px; border-radius: 6px; }

  /* CTA */
  .community-cta { padding: clamp(18px, 3vh, 28px) 9px; margin-top: 12px; }
  .community-cta h2 { font-size: 14px; }
  .community-cta p { font-size: 9px; margin-bottom: 12px; }

  /* Detail view */
  .ccg-detail__panel { border-radius: 12px 12px 0 0; }
  .ccg-detail__media { min-height: 140px; max-height: 28vh; }
  .ccg-detail__info { padding: 10px 8px; gap: 9px; }
  .ccg-detail__avatar { width: 26px; height: 26px; font-size: 9px; }
  .ccg-detail__creator-name { font-size: 10px; }
  .ccg-detail__creator-time { font-size: 8px; }
  .ccg-detail__type { font-size: 7px; padding: 2px 5px; }
  .ccg-detail__prompt-text { font-size: 9px; padding: 7px 8px; }
  .ccg-detail__reactions .ccg-reaction { padding: 3px 5px; font-size: 9px; }
  .ccg-detail__actions { grid-template-columns: 1fr; }
  .ccg-detail__action-btn { padding: 6px 10px; font-size: 8px; border-radius: 6px; }
  .ccg-comments__count-avatar { width: 22px; height: 22px; font-size: 8px; margin-left: -6px; }
  .ccg-comments__count-copy strong { font-size: 11px; }
  .ccg-comments__count-copy span { font-size: 9px; }
  .ccg-detail__close { width: 24px; height: 24px; top: 6px; right: 6px; }
  .ccg-detail__close svg { width: 14px; height: 14px; }

  /* Load more */
  .ccg-load-more-btn { padding: 6px 16px; font-size: 10px; }

  /* FAB */
  .ccg-fab { width: 34px; height: 34px; border-radius: 8px; bottom: 10px; right: 8px; font-size: 13px; }

  /* Modals */
  .ccg-tip-modal__header { padding: 11px 11px 0; }
  .ccg-tip-modal__header h2 { font-size: 12px; }
  .ccg-tip-modal__body { padding: 10px 11px 2px; }
  .ccg-tip-modal__subtitle { font-size: 9px; }
  .ccg-tip-amount { padding: 8px 2px; font-size: 10px; }
  .ccg-tip-modal__cancel,
  .ccg-tip-modal__submit { font-size: 10px; padding: 6px 12px; }

  .ccg-share-modal__header { padding: 11px 11px 0; }
  .ccg-share-modal__header h2 { font-size: 13px; }
  .ccg-share-modal__body { padding: 10px 11px; }
  .ccg-share-modal__input { padding: 7px 8px; font-size: 10px; }
  .ccg-share-modal__cancel,
  .ccg-share-modal__submit { font-size: 10px; padding: 6px 12px; }
}
@media (hover: none) and (pointer: coarse) {
  /* Always show overlays on touch since there's no hover */
  .ccg-featured__card-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 0%, transparent 45%, rgba(0,0,0,0.6) 75%, rgba(0,0,0,0.92) 100%);
  }

  /* Show bookmarks always on touch */
  .ccg-card__bookmark { opacity: 0.7; }

  /* Disable hover transforms that feel jarring on touch */
  .ccg-card:hover { transform: none; box-shadow: none; }
  .ccg-card:active {
    transform: scale(0.98);
    transition-duration: 0.1s;
  }
  .ccg-featured__card:hover { transform: none; box-shadow: none; }
  .ccg-featured__card:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
  }
  .ccg-spotlight__card:hover { border-color: var(--ccg-border); background: var(--ccg-surface); }
  .ccg-spotlight__card:active { transform: scale(0.97); transition-duration: 0.1s; }

  .community-card:hover { transform: none; }
  .community-card:active { transform: scale(0.99); transition-duration: 0.1s; }

  .community-hero-stats li:hover { transform: none; }

  /* Better tap targets — minimum 44px touch target */
  .ccg-reaction { min-height: 28px; min-width: 28px; padding: 4px 6px; }
  .ccg-card__tip-btn { min-height: 32px; min-width: 32px; }
  .ccg-filter-tab { min-height: 36px; }
  .ccg-featured__arrow { min-height: 40px; min-width: 40px; }
  .community-exit-btn { min-height: 36px; }
  .ccg-detail__close { min-height: 36px; min-width: 36px; }
  .ccg-detail__action-btn { min-height: 40px; }

  /* Smooth scrolling for horizontal elements */
  .ccg-featured__track,
  /* Spotlight belt keeps animating on touch — no snap needed */
  .ccg-filter-bar,
  .community-hero-stats {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .ccg-featured__card { scroll-snap-align: start; }
  .ccg-filter-tab { scroll-snap-align: start; }

  /* Prevent pull-to-refresh interfering with scroll */
  .community-expanded-view {
    overscroll-behavior-y: contain;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .community-hero {
    min-height: auto;
    padding-top: 32px;
    padding-bottom: 16px;
  }
  .community-hero-text {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 8px;
  }
  .community-hero h1,
  .community-title {
    font-size: clamp(22px, 5vh, 32px);
  }
  .community-hero-sub { display: none; }
  .community-hero-stats { display: none; }
  .community-watermark { display: none; }

  /* Landscape phones: keep vertical, compact */
  .ccg-detail__panel {
    flex-direction: column !important;
    max-height: 95vh;
    max-width: 480px;
    border-radius: 10px;
  }
  .ccg-detail__media {
    flex: none !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    padding: 6px !important;
  }
  .ccg-detail__media-shell { height: 100%; }
  .ccg-detail__info {
    border-left: none !important;
    border-top: 1px solid var(--ccg-border);
    overflow-y: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ccg-ticker__track { animation: none; }
  .community-hero::before { animation: none; }
  .community-title-accent { animation: none; }
  .community-pill-live::before { animation: none; }
  .community-hero-floater { animation: none; }
}
@media (max-width: 768px) {
  .ccg-comments__list {
    max-height: 220px;
  }
  .ccg-comment__actions {
    opacity: 1;
  }
}

@supports (padding-top: env(safe-area-inset-top)) {
  .community-hero {
    padding-top: calc(60px + env(safe-area-inset-top));
  }

  .community-exit-btn {
    top: calc(12px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
  }

  .ccg-fab {
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
  }

  .ccg-detail__panel {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .ccg-tip-modal__box,
  .ccg-share-modal__box {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
