*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --panel: #f0f2f7;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #6b7280;
  --accent: #4b5cff;
  --accent-weak: #eef0ff;
  --border: #e6e8ef;
  --shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: var(--panel);
  padding: 24px 18px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 6px;
  object-fit: contain;
}

.brand-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.2px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

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

.nav .default > li + li {
  margin-top: 6px;
}

.nav .default a {
  display: block;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #374151;
}

.nav .default a:hover {
  background: #e9ecf6;
}

.nav .default .active,
.nav .default a.active {
  background: var(--accent-weak);
  color: #1f2a70;
  font-weight: 600;
}

.nav .default ul {
  margin: 4px 0 0 8px;
  padding-left: 8px;
  border-left: 1px solid #dde1ee;
}

.nav .default ul a {
  font-size: 12px;
  color: var(--muted);
}

.nav-group {
  background: transparent;
  border-radius: 12px;
  padding: 4px 0;
}

.nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: #2b3142;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
  font-size: 12px;
}

.nav-group[open] summary::after {
  content: "▴";
}


.content {
  padding: 32px 36px 80px;
}

.block-site {
  margin-top: 28px;
}

.block-site h2 {
  font-size: 20px;
  margin: 0 0 12px;
  color: #2b3142;
}

.block-site h3 {
  font-size: 16px;
  margin: 18px 0 10px;
  color: #2b3142;
}

.row {
  margin-bottom: 8px;
}

.row.display-flex {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.col,
.col-md-12,
.col-lg-4,
.col-md-6,
.col-sm-6,
.col-xs-12 {
  width: 100%;
}

.bg {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 14px 16px;
}

.title {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
}

.title big {
  font-weight: 600;
}

.title p {
  margin: 0;
}

.title img {
  width: 120px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #e8ebf3;
  display: block;
}

.body {
  margin-top: 10px;
}

.body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed #d8dbe6;
  padding-top: 8px;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.body a {
  color: var(--muted);
}

.body a:hover {
  color: var(--accent);
}

.copy {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 999px;
  background: #f1f3ff;
  color: var(--accent);
  vertical-align: middle;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
}

.icon-clipboard::before {
  content: "⎘";
  font-style: normal;
}

.videoIframe {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f172a;
}

.event-item .videoIframe {
  max-width: 840px;
}

.videoIframe iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.video-wrapper {
  max-width: 400px;
  width: 100%;
}

video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.download-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4b5cff;
  color: white;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  margin-top: 20px;
  text-align: center;
}

.download-btn:hover {
  background-color: #3947d4;
}

.divider {
  width: 100%;
  margin: 24px 0;
  border: 0;
  height: 1px;
  background: #e2e5ef;
}

.note {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}

.center {
  text-align: center;
  margin-top: 20px;
}

.event-list {
  display: grid;
  gap: 18px;
}

.event-item h3 {
  margin: 0 0 8px;
}

.event-item .title {
  grid-template-columns: 1fr;
}

.event-item .videoIframe {
  width: 50%;
  max-width: 560px;
  min-width: 320px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

h1 {
  font-size: 32px;
  margin: 0 0 4px;
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  margin-top: 24px;
}

.section-title {
  font-size: 18px;
  margin: 0 0 12px;
  color: #2b3142;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.media-card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items: start;
}

.thumb {
  width: 120px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #e8ebf3;
}

.card-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.card-links {
  border-top: 1px dashed #d8dbe6;
  padding-top: 8px;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.card-links a {
  color: var(--muted);
}

.card-links a:hover {
  color: var(--accent);
}

.icon-btn {
  border: none;
  background: #f1f3ff;
  color: var(--accent);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn:hover {
  background: #e3e7ff;
}

@media (max-width: 1199px) {
  .app {
    grid-template-columns: 240px 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row.display-flex {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .content {
    padding: 24px 20px 60px;
  }
}

@media (max-width: 767px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .media-card {
    grid-template-columns: 1fr;
  }

  .thumb {
    width: 100%;
    height: 160px;
  }

  .icon-btn {
    justify-self: start;
  }

  .row.display-flex {
    grid-template-columns: 1fr;
  }

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

  .title img {
    width: 100%;
    height: 160px;
  }

  .event-item .videoIframe {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
