:root{
  --appbar-h:72px;

  --bg:#f5f7fb;
  --bg-2:#eef3fb;
  --fg:#111827;
  --muted:#64748b;

  --surface:#ffffff;
  --surface-2:#f8fafc;
  --elev:#ffffff;
  --line:#e2e8f0;

  --brand:#2563eb;
  --brand-2:#38bdf8;
  --brand-dark:#1d4ed8;

  --ok:#16a34a;
  --warn:#f59e0b;
  --danger:#ef4444;

  --radius:22px;
  --radius-sm:14px;
  --shadow:0 18px 45px rgba(15,23,42,.08);
  --shadow-hover:0 26px 70px rgba(15,23,42,.16);
  --container:1520px;

  --t-xs:clamp(11px,.75vw,12px);
  --t-sm:clamp(13px,.9vw,14px);
  --t-md:clamp(15px,1vw,16.5px);
  --t-lg:clamp(18px,1.4vw,22px);
  --t-xl:clamp(24px,2.2vw,36px);
  --t-xxl:clamp(34px,4vw,58px);

  --btn-h:44px;
  --btn-r:14px;
}

/* Base */
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  background:
    radial-gradient(900px 360px at 15% -10%, rgba(37,99,235,.14), transparent 55%),
    radial-gradient(900px 360px at 100% 0%, rgba(56,189,248,.16), transparent 50%),
    linear-gradient(180deg,var(--bg),var(--bg-2));
  color:var(--fg);
  font:400 var(--t-md)/1.62 'Pretendard', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing:-.03em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
a:hover{opacity:.92}
img{max-width:100%}
::selection{background:rgba(37,99,235,.22);color:#0f172a}
::placeholder{color:#94a3b8}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 clamp(18px,3vw,56px);
}
.container>.container{padding:0}

/* Appbar */
.appbar{
  z-index:100;
  position:sticky;
  top:0;
  min-height:var(--appbar-h);
  background:rgba(255,255,255,.88);
  border-bottom:1px solid rgba(226,232,240,.95);
  backdrop-filter:blur(18px) saturate(140%);
  box-shadow:0 8px 28px rgba(15,23,42,.06);
}
.appbar .row{
  min-height:var(--appbar-h);
  display:flex;
  align-items:center;
  gap:18px;
  padding-top:12px;
  padding-bottom:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:max-content;
}
.logo{
  width:76px;
  height:42px;
  border-radius:14px;
  background:url("https://www.dataedu.kr/wp-content/uploads/2024/07/BI_EDU_B-min.png") no-repeat center center / contain;
  background-color:#fff;
  box-shadow:0 10px 24px rgba(37,99,235,.16);
}
.brand .t1{
  display:inline-block;
  font-size:18px;
  font-weight:900;
  color:#0f172a;
  letter-spacing:-.02em;
}

.nav{
  display:flex;
  align-items:center;
  gap:6px;
  margin-left:8px;
}
.nav a{
  display:inline-flex;
  align-items:center;
  height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid transparent;
  color:#334155;
  font-size:15px;
  font-weight:800;
}
.nav a:hover{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8;
}
.nav a.is-active{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
  box-shadow:0 10px 24px rgba(37,99,235,.24);
}

.actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}
.themebtn{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:#0f172a;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}
.userchip{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px;
  padding-left:14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#0f172a;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}
.userchip b{
  max-width:160px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:14px;
}
.kbd{
  display:inline-flex;
  align-items:center;
  height:32px;
  padding:0 10px;
  border-radius:999px;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  color:#334155;
  font-size:12px;
  font-weight:800;
}
.kbd:hover{
  background:#eff6ff;
  color:#1d4ed8;
}

/* Search */
.searchwrap{
  border-top:1px solid rgba(226,232,240,.95);
  background:rgba(255,255,255,.74);
}
.searchbar{
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px clamp(18px,3vw,56px);
}
.pills{
  display:flex;
  gap:8px;
}
.pill{
  display:inline-flex;
  align-items:center;
  height:38px;
  padding:0 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:#475569;
  font-size:13px;
  font-weight:900;
}
.pill.is-on{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}
.sform{
  flex:1;
  display:flex;
  gap:8px;
}
.sform input{
  flex:1;
  height:46px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid #dbe3ef;
  background:#fff;
  color:#111827;
  outline:none;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.sform input:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(37,99,235,.14);
}
.sbtn{
  height:46px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid var(--brand);
  background:var(--brand);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}

/* Components */
.card{
  background:rgba(255,255,255,.96);
  border:1px solid rgba(226,232,240,.96);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card .hd{
  padding:22px 26px;
  border-bottom:1px solid var(--line);
  font-size:var(--t-lg);
  font-weight:900;
  color:#0f172a;
}
.card .bd{
  padding:26px;
}
.section{padding:22px 0}

.input, select, textarea{
  box-sizing:border-box;
  width:100%;
  min-height:46px;
  padding:10px 14px;
  border:1px solid #dbe3ef;
  border-radius:14px;
  background:#fff;
  color:#111827;
  font-size:var(--t-md);
  outline:none;
}
select option{
  background:#fff;
  color:#111827;
}
.input:focus, select:focus, textarea:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(37,99,235,.14);
}

.table{
  width:100%;
  border-collapse:collapse;
}
.table th,.table td{
  padding:14px 12px;
  border-bottom:1px solid var(--line);
  text-align:left;
  font-size:var(--t-sm);
}
.table th{
  color:#475569;
  font-weight:900;
}
.table td{
  color:#1f2937;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 11px;
  border-radius:999px;
  border:1px solid #dbe3ef;
  background:#f8fafc;
  color:#334155;
  font-size:var(--t-xs);
  font-weight:800;
}
.progress{
  height:10px;
  border-radius:999px;
  background:#eaf0f8;
  border:1px solid #dbe3ef;
  overflow:hidden;
}
.progress>i{
  display:block;
  height:100%;
  width:0;
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
}

/* Buttons */
.btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  min-height:var(--btn-h);
  padding:0 18px;
  border-radius:var(--btn-r);
  border:1px solid var(--brand);
  background:var(--brand);
  color:#fff;
  font-family:'Pretendard', system-ui, sans-serif;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
  box-shadow:0 10px 22px rgba(37,99,235,.20);
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(37,99,235,.26);
}
.btn:active{
  transform:translateY(0) scale(.99);
}
.btn.secondary{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8;
  box-shadow:none;
}
.btn.ghost{
  background:#fff;
  border-color:#dbe3ef;
  color:#2563eb;
  box-shadow:none;
}
.btn.ghost:hover{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8;
}
.btn.danger{
  background:#ef4444;
  border-color:#ef4444;
  color:#fff;
}
.btn.sm{
  min-height:34px;
  padding:0 12px;
  border-radius:10px;
  font-size:12px;
}
.btn.lg{
  min-height:52px;
  padding:0 24px;
  font-size:16px;
}

/* Default Layout */
main.main-default{
  padding:30px 0 70px;
}

/* OTT Card Grid */
.grid-cards{
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
}
.grid-cards.type2{
  gap:16px;
}
.grid-cards > .card{
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.grid-cards > .card:hover{
  transform:translateY(-5px);
  border-color:#cbd5e1;
  box-shadow:var(--shadow-hover);
}
.grid-cards > .card img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:18px;
}

/* index.php처럼 내부에 120x80 썸네일이 있는 경우 확대 보정 */
.grid-cards > .card > div[style*="display:flex"]{
  flex-direction:column !important;
  gap:16px !important;
}
.grid-cards > .card > div[style*="display:flex"] > div:first-child[style*="width:120px"]{
  width:100% !important;
  height:auto !important;
  aspect-ratio:16/9 !important;
  border-radius:18px !important;
}
.grid-cards > .card > div[style*="display:flex"] > div:first-child[style*="width:120px"] img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}
.grid-cards > .card > div[style*="display:flex"] > div:first-child[style*="width:120px"] + div{
  width:100%;
}
.grid-cards > .card [style*="font-weight:800"]{
  font-size:18px;
  color:#0f172a;
}

/* Watch Layout */
main.main-watch{
  padding:22px 0 60px;
}
.watch-grid{
  display:grid;
  grid-template-columns:minmax(0,1.75fr) minmax(340px,.75fr);
  gap:22px;
  align-items:start;
}
.player-wrap{
  position:sticky;
  top:calc(var(--appbar-h) + 18px);
  border:1px solid #dbe3ef;
  border-radius:24px;
  background:#000;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(15,23,42,.22);
}
.player-surface{
  aspect-ratio:16/9;
  overflow:hidden;
}
.sidebar{
  position:sticky;
  top:calc(var(--appbar-h) + 18px);
  max-height:calc(100vh - var(--appbar-h) - 42px);
}
.playlist{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  overflow:auto;
  box-shadow:var(--shadow);
}
.pl-hd{
  padding:18px 20px;
  border-bottom:1px solid var(--line);
  font-weight:900;
}
.pl-ul{
  list-style:none;
  margin:0;
  padding:0;
}
.pl-ul li{
  display:grid;
  grid-template-columns:1fr auto minmax(auto,max-content);
  gap:10px;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  align-items:center;
}
.pl-ul .ttl{
  color:#0f172a;
  font-weight:800;
  font-size:14px;
}
.pl-ul .pct{
  color:#2563eb;
  font:800 var(--t-xs)/1 ui-monospace;
  justify-self:end;
}

/* Tabs */
.cp1tabs1{
  display:inline-flex;
  flex-wrap:nowrap;
  gap:8px;
  position:relative;
  margin:1.4em 0;
  overflow:hidden;
  overflow-x:auto;
}
.cp1tabs1::-webkit-scrollbar{display:none}
.cp1tabs1 .a1{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:46px;
  padding:0 28px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#64748b;
  white-space:nowrap;
  font-weight:900;
}
.cp1tabs1 .a1:hover{
  color:#1d4ed8;
  background:#eff6ff;
}
.cp1tabs1 .a1.on{
  border-color:var(--brand);
  background:var(--brand);
  color:#fff;
}
.cp1tabs1pane{display:none}
.cp1tabs1pane.on{display:block}

/* Pagination */
.cm1infomenu1{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:18px 0;
  font-size:14px;
  color:#64748b;
}
.pagination{
  display:flex;
  align-items:center;
  gap:6px;
}
.pagination .m a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  height:36px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:#334155;
  font-size:14px;
  text-decoration:none;
}
.pagination .m a:hover{
  background:#eff6ff;
  color:#1d4ed8;
}
.pagination .m a.active,
.pagination .m a b.on{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}
.pagination .sep{
  margin:0 4px;
  color:#94a3b8;
  font-style:normal;
}

/* Footer / Toast */
.footer{
  padding:28px 0;
  border-top:1px solid var(--line);
  color:#64748b;
  text-align:center;
  font-size:var(--t-sm);
}
.toast{
  position:fixed;
  left:50%;
  bottom:28px;
  z-index:200;
  transform:translateX(-50%);
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#111827;
  color:#fff;
  box-shadow:var(--shadow);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s;
}
.toast.on{opacity:1}

/* Utilities */
.flex-1i{flex:1 !important}
.scroll-x-lt-large{overflow-x:auto}
.fscroll1-xy{scrollbar-width:thin}
.muted{color:var(--muted)}

.auth-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:calc(100dvh - var(--appbar-h) - 90px);
  padding:36px 0;
}

.auth-card{
  width:100%;
  max-width:520px;
  background:rgba(255,255,255,.96);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.auth-head{
  display:flex;
  gap:12px;
  padding:22px 26px;
  border-bottom:1px solid var(--line);
}

.auth-bar{
  width:6px;
  border-radius:999px;
  background:var(--brand);
}

.auth-title{
  font-weight:900;
  font-size:18px;
  color:var(--fg);
}

.auth-desc{
  margin-top:3px;
  font-size:13px;
  color:var(--muted);
}

.auth-body{
  padding:26px;
}

.auth-row{
  margin-bottom:15px;
}

.auth-label{
  display:block;
  margin-bottom:7px;
  font-size:13px;
  font-weight:800;
  color:#475569;
}

.auth-error{
  margin-top:12px;
  padding:12px 14px;
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
  border-radius:12px;
  font-size:14px;
}

.auth-foot{
  padding:18px 26px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}

/* Course Preview Accordion */
.acc + .acc{
  border-top:1px solid var(--line);
}

.acc-hd{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:18px 22px;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--line);
  cursor:pointer;
  color:var(--fg);
  text-align:left;
}

.acc-hd:hover{
  background:#f8fafc;
}

.acc-title{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.acc-title b{
  font-size:16px;
  font-weight:900;
}

.acc-ic{
  transition:transform .18s ease;
  color:var(--muted);
}

.acc-bd{
  display:none;
  padding:0 12px 16px;
}

.acc.open .acc-bd{
  display:block;
}

.acc.open .acc-ic{
  transform:rotate(180deg);
}

.plist{
  list-style:none;
  margin:0;
  padding:0;
}

.plist li{
  display:grid;
  grid-template-columns:56px 1fr 110px 120px;
  gap:12px;
  align-items:center;
  padding:14px 10px;
  border-bottom:1px solid var(--line);
}

.plist .idx{
  font:800 12px/1 ui-monospace;
  color:var(--muted);
}

.plist .ttl{
  font-weight:800;
  color:var(--fg);
}

.plist .sub{
  margin-top:3px;
  font-size:12px;
  color:var(--muted);
}

.plist .dur{
  font:800 12px/1 ui-monospace;
  text-align:right;
  color:#475569;
}

.plist .cta{
  display:flex;
  justify-content:flex-end;
}

/* Course Preview Hero */
.course-hero{
  margin-bottom:18px;
}

.course-hero .bd{
  display:flex;
  gap:22px;
  align-items:center;
  flex-wrap:wrap;
}

.course-thumb{
  width:min(420px, 100%);
  aspect-ratio:16/9;
  border-radius:20px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#0b0b0b;
  flex-shrink:0;
  box-shadow:0 18px 42px rgba(15,23,42,.12);
}

.course-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.course-thumb-empty{
  width:100%;
  height:100%;
  background:linear-gradient(135deg,#dbeafe,#38bdf8);
}

.course-info{
  flex:1;
  min-width:280px;
}

.course-title{
  font-size:var(--t-xl);
  font-weight:950;
  line-height:1.25;
  margin-bottom:10px;
  color:var(--fg);
}

.course-desc{
  color:var(--muted);
  margin-bottom:14px;
  max-height:96px;
  overflow:auto;
}

.course-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.course-actions{
  margin-top:14px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* Dark Mode */
:root[data-theme="dark"]{
  --bg:#0f172a;
  --bg-2:#111827;
  --fg:#f8fafc;
  --muted:#94a3b8;

  --surface:#1e293b;
  --surface-2:#334155;
  --elev:#1e293b;
  --line:rgba(255,255,255,.12);

  --brand:#60a5fa;
  --brand-2:#38bdf8;
  --brand-dark:#3b82f6;

  --shadow:0 18px 45px rgba(0,0,0,.28);
  --shadow-hover:0 26px 70px rgba(0,0,0,.42);
}

:root[data-theme="dark"] body{
  background:
    radial-gradient(900px 360px at 15% -10%, rgba(96,165,250,.18), transparent 55%),
    radial-gradient(900px 360px at 100% 0%, rgba(56,189,248,.14), transparent 50%),
    linear-gradient(180deg,var(--bg),var(--bg-2));
  color:var(--fg);
}

:root[data-theme="dark"] .appbar{
  background:rgba(15,23,42,.86);
  border-bottom-color:rgba(255,255,255,.10);
  box-shadow:0 8px 28px rgba(0,0,0,.24);
}

:root[data-theme="dark"] .brand .t1{
  color:#f8fafc;
}

:root[data-theme="dark"] .logo{
  background-color:#fff;
}

:root[data-theme="dark"] .nav a{
  color:#cbd5e1;
}

:root[data-theme="dark"] .nav a:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.12);
  color:#fff;
}

:root[data-theme="dark"] .nav a.is-active{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}

:root[data-theme="dark"] .themebtn,
:root[data-theme="dark"] .userchip{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.12);
  color:#f8fafc;
}

:root[data-theme="dark"] .kbd{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.12);
  color:#e5e7eb;
}

:root[data-theme="dark"] .kbd:hover{
  background:rgba(96,165,250,.18);
  color:#fff;
}

:root[data-theme="dark"] .searchwrap{
  background:rgba(15,23,42,.74);
  border-top-color:rgba(255,255,255,.10);
}

:root[data-theme="dark"] .pill{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.12);
  color:#cbd5e1;
}

:root[data-theme="dark"] .pill.is-on{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}

:root[data-theme="dark"] .sform input,
:root[data-theme="dark"] .input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.14);
  color:#f8fafc;
}

:root[data-theme="dark"] select option{
  background:#1e293b;
  color:#f8fafc;
}

:root[data-theme="dark"] .card{
  background:linear-gradient(180deg,rgba(30,41,59,.96),rgba(15,23,42,.96));
  border-color:rgba(255,255,255,.10);
}

:root[data-theme="dark"] .card .hd{
  color:#f8fafc;
  border-bottom-color:rgba(255,255,255,.10);
}

:root[data-theme="dark"] .table th{
  color:#cbd5e1;
}

:root[data-theme="dark"] .table td{
  color:#e5e7eb;
}

:root[data-theme="dark"] .badge{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.12);
  color:#e5e7eb;
}

:root[data-theme="dark"] .btn{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}

:root[data-theme="dark"] .btn.secondary{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.14);
  color:#f8fafc;
}

:root[data-theme="dark"] .btn.ghost{
  color:#cbd5e1;
}

:root[data-theme="dark"] .grid-cards > .card [style*="font-weight:800"]{
  color:#f8fafc;
}

:root[data-theme="dark"] .playlist{
  background:linear-gradient(180deg,rgba(30,41,59,.96),rgba(15,23,42,.96));
  border-color:rgba(255,255,255,.10);
}

:root[data-theme="dark"] .pl-hd{
  border-bottom-color:rgba(255,255,255,.10);
}

:root[data-theme="dark"] .pl-ul li{
  border-bottom-color:rgba(255,255,255,.10);
}

:root[data-theme="dark"] .pl-ul .ttl{
  color:#f8fafc;
}

:root[data-theme="dark"] .footer{
  border-top-color:rgba(255,255,255,.10);
  color:#94a3b8;
}

:root[data-theme="dark"] .auth-card{
  background:linear-gradient(180deg,rgba(30,41,59,.96),rgba(15,23,42,.96));
  border-color:rgba(255,255,255,.10);
}

:root[data-theme="dark"] .auth-label,
:root[data-theme="dark"] .auth-title{
  color:#f8fafc;
}

:root[data-theme="dark"] .acc-hd:hover{
  background:rgba(255,255,255,.06);
}

:root[data-theme="dark"] .plist .dur{
  color:#cbd5e1;
}

:root[data-theme="dark"] .course-thumb-empty{
  background:linear-gradient(135deg,#1e293b,#2563eb);
}

.mobile-list{
  display:none;
}

@media (max-width:720px){
  .desktop-table-wrap{
    display:none !important;
  }

  .mobile-list{
    display:block;
  }

  .lecture-item,
  .material-item{
    padding:16px;
    border-bottom:1px solid var(--line);
  }

  .lecture-item:last-child,
  .material-item:last-child{
    border-bottom:0;
  }

  .lecture-top,
  .material-top{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:flex-start;
    margin-bottom:10px;
  }

  .lecture-title,
  .material-title{
    font-weight:900;
    color:var(--fg);
    line-height:1.45;
  }

  .lecture-meta,
  .material-meta{
    color:var(--muted);
    font-size:12px;
    margin-top:4px;
  }

  .lecture-progress{
    margin:10px 0;
  }

  .lecture-bottom,
  .material-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
  }

  .lecture-status{
    font-size:13px;
    color:var(--muted);
    font-weight:800;
  }

  .lecture-action .btn,
  .material-action .btn{
    min-height:36px;
    padding:0 14px;
  }
}


/* Responsive */
@media (min-width:720px){
  .grid-cards{
    grid-template-columns:repeat(2,1fr);
  }
  .grid-cards.type2{
    grid-template-columns:repeat(3,1fr);
  }
}
@media (min-width:1100px){
  .grid-cards{
    grid-template-columns:repeat(3,1fr);
  }
  .grid-cards.type2{
    grid-template-columns:repeat(5,1fr);
  }
}
@media (min-width:1440px){
  .grid-cards{
    grid-template-columns:repeat(4,1fr);
  }
}
@media (max-width:1024px){
  .appbar .row{
    flex-wrap:wrap;
    gap:10px;
  }

  .nav{
    order:3;
    width:100%;
    margin-left:0;
    overflow:auto;
    padding-bottom:2px;
  }

  .nav::-webkit-scrollbar{
    display:none;
  }

  .actions{
    margin-left:auto;
  }

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

  .player-wrap{
    position:relative;
    top:auto;
  }

  .sidebar{
    position:fixed;
    left:0;
    right:0;
    bottom:-100%;
    top:auto;
    z-index:90;

    height:68vh;
    max-height:68vh;

    padding:0 12px calc(env(safe-area-inset-bottom,0px) + 12px);
    transition:bottom .25s ease;

    overflow:hidden;
    overscroll-behavior:contain;
  }

  .sidebar.open{
    bottom:0;
  }

  .playlist{
    height:100%;
    max-height:100%;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }

  .playlist .bd{
    max-height:none;
    overflow:visible;
  }

  .pl-ul{
    overflow:visible;
  }

  .pl-toggle{
    position:fixed;
    right:20px;
    bottom:calc(18px + env(safe-area-inset-bottom,0px));
    z-index:120;
  }
}
@media (max-width:640px){
  :root{--appbar-h:66px}
  .container{
    padding:0 14px;
  }
  .brand .t1{
    display:none;
  }
  .logo{
    width:64px;
    height:36px;
  }
  .userchip b{
    display:none;
  }
  .card .hd{
    padding:16px 18px;
  }
  .card .bd{
    padding:18px;
  }
  .sidebar{
    height:72vh;
    max-height:72vh;
    padding:0 10px calc(env(safe-area-inset-bottom,0px) + 10px);
  }

  .playlist{
    height:100%;
    max-height:100%;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .sform{
    flex-direction:column;
  }
  .grid-cards,
  .grid-cards.type2{
    grid-template-columns:1fr;
  }
}
