/* Desktop Global layout structure */
.desktop-shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--desktop-bg);
  overflow: hidden;
}

.desktop-header-wrap {
  flex-shrink: 0;
  height: var(--desktop-header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.desktop-marquee-wrap {
  flex-shrink: 0;
  z-index: 110;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.desktop-shell.betslip-hidden {
  --desktop-right-betslip-w: 0px;
}

.desktop-shell.betslip-collapsed {
  --desktop-right-betslip-w: var(--desktop-right-betslip-collapsed-w);
}

.desktop-body {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.desktop-main-container {
  flex: 1;
  display: flex;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

/* Betting Layout: Sports bar + Left Sidebar + Center View + Right Betslip */
.desktop-layout-betting-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.desktop-betting-sports-row {
  flex-shrink: 0;
  width: 100%;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.desktop-layout-betting {
  display: grid;
  grid-template-columns: var(--desktop-left-sidebar-w) 1fr;
  flex: 1;
  width: 100%;
  min-height: 0;
}

.desktop-betting-left {
  border-right: 1px solid var(--border);
  background: var(--desktop-sidebar-bg);
  overflow-y: auto;
}

.desktop-betting-center {
  overflow-y: auto;
  padding: 14px 16px;
  min-width: 0;
}

.desktop-betting-center.is-betting-detail {
  padding: 0;
}

/* Account Layout: full-width records center */
.desktop-layout-account {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.desktop-account-center {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 28px 40px 40px;
  align-items: stretch;
}

.desktop-account-center > .desktop-records-page {
  flex: 1;
  min-height: 0;
}

.desktop-account-center > .desktop-account-page {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.desktop-layout-hub-outer {
  display: flex;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

/* Marketing / Home Layout: Single Column centered */
.desktop-layout-marketing {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  align-items: center;
  padding: 20px;
}

.desktop-marketing-content {
  width: 100%;
  max-width: 1400px;
}

/* Hub Layout: Left Sidebar (List) + Right Outlet (Detail) */
.desktop-layout-hub {
  display: grid;
  grid-template-columns: 360px 1fr;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.desktop-hub-left {
  border-right: 1px solid var(--border);
  background: var(--desktop-sidebar-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.desktop-hub-left > * {
  flex: 1;
  min-height: 0;
  min-width: 0;
}

.desktop-hub-right {
  overflow-y: auto;
  padding: 20px;
  background: var(--desktop-bg);
}

/* Auth Layout: Centered container */
.desktop-layout-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 40px;
}

.desktop-auth-card {
  width: 100%;
  max-width: 440px;
  padding: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
