/* RioPlay 10 — Student app (mobile-first, bottom nav + desktop sidebar) */
:root { --bottomnav: 64px; }

.st-shell { min-height: 100vh; background: var(--gray-100); }
.st-content { padding-bottom: calc(var(--bottomnav) + 16px); }

/* Top bar (mobile) */
.st-topbar { position: sticky; top: 0; z-index: 50; background: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--gray-200); }
.st-topbar .logo-text { font-size: 16px; font-weight: 700; color: var(--rp-blue); }
.st-topbar .logo-text span { color: var(--rp-orange); }
.st-topbar .tb-btn { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--gray-100); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray-700); font-size: 18px; position: relative; }
.st-page-head { position: sticky; top: 0; z-index: 50; background: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--gray-200); }
.st-page-head .back { width: 32px; height: 32px; border-radius: 50%; border: none; background: none; cursor: pointer; font-size: 20px; color: var(--gray-700); display: flex; align-items: center; justify-content: center; }
.st-page-head h1 { font-size: 16px; font-weight: 600; flex: 1; }

/* Bottom nav */
.btm-nav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottomnav); background: #fff; border-top: 1px solid var(--gray-200); display: flex; z-index: 100; }
.btm-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--gray-500); font-size: 10px; font-weight: 500; text-decoration: none; }
.btm-nav a i { font-size: 22px; }
.btm-nav a.active { color: var(--rp-orange); }

/* Desktop sidebar */
.st-sidebar { display: none; }
@media (min-width: 768px) {
  .btm-nav { display: none; }
  .st-content { padding-bottom: 24px; margin-left: 240px; }
  .st-topbar { margin-left: 240px; }
  .st-sidebar { display: flex; position: fixed; top: 0; left: 0; width: 240px; height: 100vh; background: #fff; border-right: 1px solid var(--gray-200); flex-direction: column; z-index: 100; }
  .st-sidebar .ds-logo { padding: 16px 18px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--gray-200); }
  .st-sidebar .ds-logo .ico { width: 34px; height: 34px; background: var(--rp-orange); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; }
  .st-sidebar .ds-logo .txt { font-size: 15px; font-weight: 700; color: var(--rp-blue); }
  .st-sidebar .ds-logo .txt span { color: var(--rp-orange); }
  .st-sidebar .ds-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
  .st-sidebar .ds-item { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: var(--gray-600); font-size: 13px; font-weight: 500; text-decoration: none; border-left: 3px solid transparent; }
  .st-sidebar .ds-item:hover { background: var(--gray-50); color: var(--gray-900); }
  .st-sidebar .ds-item.active { background: var(--rp-orange-light); color: var(--rp-orange); border-left-color: var(--rp-orange); font-weight: 600; }
  .st-sidebar .ds-item i { font-size: 18px; width: 20px; text-align: center; }
  .st-sidebar .ds-foot { padding: 12px 18px; border-top: 1px solid var(--gray-200); display: flex; align-items: center; gap: 8px; }
  .st-sidebar .ds-foot .av { width: 32px; height: 32px; border-radius: 50%; background: var(--rp-orange); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; }
}
.st-wrap { max-width: 920px; margin: 0 auto; padding: 16px; }

/* Publisher sections + course cards */
.pub-header { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; }
.pub-logo { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.pub-name { font-size: 15px; font-weight: 700; }
.pub-domain { font-size: 11px; color: var(--gray-500); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.course-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; cursor: pointer; transition: transform .15s; }
.course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.course-thumb { height: 110px; position: relative; display: flex; align-items: center; justify-content: center; }
.course-thumb i { font-size: 36px; color: rgba(255,255,255,0.5); }
.course-thumb .progress-abs { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.3); }
.course-thumb .progress-abs .fill { height: 100%; background: var(--rp-orange); }
.course-info { padding: 12px; }
.course-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.course-info .meta { font-size: 11px; color: var(--gray-500); display: flex; gap: 8px; flex-wrap: wrap; }
.course-info .usage-mini { display: flex; gap: 12px; margin-top: 8px; }
.course-info .usage-mini span { font-size: 10px; color: var(--gray-600); display: flex; align-items: center; gap: 3px; }

/* Access cards */
.access-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 16px; margin-bottom: 12px; }
.access-card .ac-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.access-card .ac-logo { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.usage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.usage-item { text-align: center; background: var(--gray-50); padding: 8px 4px; border-radius: 8px; }
.usage-item .u-val { font-size: 15px; font-weight: 700; }
.usage-item .u-lbl { font-size: 9px; color: var(--gray-500); margin-top: 2px; }
.usage-item .u-max { font-size: 9px; color: var(--gray-400); }

/* Course detail sections */
.sec-item { border-bottom: 1px solid var(--gray-200); }
.sec-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; background: #fff; }
.sec-head .chev { font-size: 16px; color: var(--gray-400); transition: transform .2s; }
.sec-head.open .chev { transform: rotate(90deg); }
.sec-head .s-title { flex: 1; font-size: 13px; font-weight: 600; }
.sec-head .s-count { font-size: 11px; color: var(--gray-500); }
.content-list { background: var(--gray-50); padding: 0 16px 8px 44px; }
.content-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-200); cursor: pointer; }
.content-row:last-child { border-bottom: none; }
.content-row .c-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.content-row .c-info { flex: 1; min-width: 0; }
.content-row .c-info h5 { font-size: 13px; font-weight: 500; }
.content-row .c-info .c-meta { font-size: 11px; color: var(--gray-500); }

/* Profile menu */
.st-menu { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 4px 16px; margin-bottom: 14px; }
.st-menu .mi { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--gray-100); cursor: pointer; }
.st-menu .mi:last-child { border-bottom: none; }
.st-menu .mi .ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.st-menu .mi .tx { flex: 1; font-size: 13px; font-weight: 500; }
