/* ==========================================================================
   7CUTS RESPONSIVE ADAPTATION & MOBILE-FIRST BREAKPOINTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   DESKTOP / WIDE SCREENS (1200px and down)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .hero-details-container {
    max-width: 60%;
  }

  .watch-layout-container {
    grid-template-columns: 1fr 340px;
    gap: 24px;
  }

  .settings-grid-layout {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }

  .categories-matrix-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   LAPTOP / MEDIUM TABLETS (992px and down)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --header-height: 62px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .page-content {
    padding: 16px 20px 80px;
  }

  .hero-showcase {
    height: 480px;
  }

  .hero-details-container {
    max-width: 80%;
    bottom: 32px;
    left: 24px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.95rem;
    -webkit-line-clamp: 2;
  }

  .video-grid-shelf {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .shorts-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  /* Watch Page Responsive Stacking */
  .watch-layout-container {
    grid-template-columns: 1fr;
  }

  .watch-sidebar-column {
    margin-top: 32px;
  }

  .related-videos-stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }

  .creator-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .creator-action-cta {
    width: 100%;
    margin-top: 12px;
  }

  .creator-action-cta .btn-primary {
    width: 100%;
  }

  .profile-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-cta-col {
    width: 100%;
    flex-direction: row;
  }

  .profile-cta-col .btn-primary,
  .profile-cta-col .btn-glass {
    flex: 1;
  }

  .settings-grid-layout {
    grid-template-columns: 1fr;
  }

  .settings-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .settings-nav-item {
    white-space: nowrap;
  }

  .categories-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   SMALL TABLETS & LARGE PHONES (768px and down)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .main-header {
    padding: 0 16px;
  }

  .header-center {
    flex: 1;
    margin: 0 10px;
  }

  .search-input {
    font-size: 0.88rem;
  }

  .hero-showcase {
    height: 420px;
    border-radius: var(--border-radius-md);
  }

  .hero-details-container {
    max-width: 100%;
    right: 24px;
    bottom: 24px;
    left: 20px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-meta-row {
    font-size: 0.8rem;
    gap: 8px;
  }

  .hero-action-group {
    flex-wrap: wrap;
  }

  .video-grid-shelf {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .catalog-sort-wrapper {
    width: 100%;
    justify-content: space-between;
  }

  .trending-ranked-item {
    gap: 12px;
    padding: 12px;
  }

  .trending-rank-num {
    font-size: 1.4rem;
    min-width: 30px;
  }

  .trending-ranked-thumb {
    width: 120px;
    height: 68px;
  }

  .trending-ranked-title {
    font-size: 0.92rem;
  }

  .watch-meta-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .watch-action-pills {
    width: 100%;
    justify-content: space-between;
  }

  .action-pill-btn {
    flex: 1;
    justify-content: center;
  }

  .theme-picker-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links-group {
    width: 100%;
    justify-content: space-between;
  }
}

/* --------------------------------------------------------------------------
   SMARTPHONES & NATIVE MOBILE VIEW (576px and down)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  :root {
    --header-height: 56px;
  }

  .page-content {
    padding: 12px 14px 84px;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .hero-showcase {
    height: 360px;
  }

  .hero-badge-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .hero-description {
    display: none;
  }

  .hero-action-group .btn-primary,
  .hero-action-group .btn-glass {
    flex: 1;
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .video-grid-shelf {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video-card-thumb-wrap {
    aspect-ratio: 16 / 9;
  }

  .categories-matrix-grid {
    grid-template-columns: 1fr;
  }

  .shorts-desktop-nav {
    display: none;
  }

  .short-content-overlay {
    bottom: 24px;
    left: 14px;
    right: 76px;
  }

  .short-action-sidebar {
    right: 12px;
    bottom: 24px;
    gap: 14px;
  }

  .action-icon-circle {
    width: 42px;
    height: 42px;
  }

  .action-label {
    font-size: 0.72rem;
  }

  .shorts-comments-sheet {
    max-height: 85vh;
  }

  .creator-banner-showcase {
    height: 160px;
  }

  .avatar-circle-lg {
    width: 72px;
    height: 72px;
    font-size: 1.6rem;
  }

  .creator-name-title {
    font-size: 1.4rem;
  }

  .profile-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .trending-nav-tabs,
  .creator-catalog-tabs,
  .profile-nav-tabs,
  .notification-filter-tabs {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .trending-tab-btn,
  .creator-tab,
  .profile-tab,
  .filter-tab {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .player-container {
    border-radius: 0;
    margin: -12px -14px 12px -14px;
  }

  .controls-row {
    padding: 4px 8px;
  }

  .volume-control-group {
    display: none;
  }

  .time-display {
    font-size: 0.75rem;
  }

  .footer-links-group {
    flex-direction: column;
    gap: 24px;
  }

  .app-footer {
    padding-bottom: 90px;
  }
}