@keyframes blinker {
  50% { opacity: 0.25; }
}

@keyframes w2gMsgIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.layout-page-infor .information_page,
.information_page.layout-page-infor {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.information_page .prebreadcrumb {
  font-size: 14px;
  margin: 20px 0;
}

.information_page .prebreadcrumb .breadcrumb {
  padding: 0;
  background: transparent;
  margin-bottom: 0;
}

.information_page .h2-heading {
  font-size: 1.85rem;
  line-height: 1.25;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.w2g-list-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.w2g-nav {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 14px;
}

.w2g-nav .room-types {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.w2g-nav .room-types .room-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Room Cards Grid */
.w2g-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin: 0;
}

.w2g-items::after {
  display: none;
}

.w2g-items .w2g-item {
  width: 100%;
  float: none;
  padding: 0;
  margin: 0;
}

.w2g-item > .inner {
  background: linear-gradient(180deg, #16161f 0%, #111118 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.w2g-item:hover > .inner {
  transform: translateY(-4px);
  border-color: rgba(255, 62, 62, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 62, 62, 0.14);
  color: inherit;
  text-decoration: none;
}

.w2g-item .screen {
  width: 100%;
  min-height: 176px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d12;
}

.w2g-item .screen .bg {
  position: absolute;
  inset: -8px;
  background-size: cover;
  background-position: center center;
  filter: blur(12px) saturate(1.15);
  transform: scale(1.08);
  transition: transform 0.35s ease;
}

.w2g-item:hover .screen .bg {
  transform: scale(1.14);
}

.w2g-item .screen .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 20, 0.72) 0%, rgba(13, 13, 20, 0.92) 100%);
}

.w2g-item .screen .anime {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0;
}

.w2g-item .screen .anime .inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.w2g-item .screen .anime .inner .poster {
  width: 74px;
  flex-shrink: 0;
}

.w2g-item .screen .anime .inner .poster span {
  width: 100%;
  padding-bottom: 140%;
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #181822;
}

.w2g-item .screen .anime .inner .poster span img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}

.w2g-item .screen .anime .inner .info {
  display: flex;
  flex-grow: 1;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.w2g-item .screen .anime .inner .info .status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 6px;
  padding: 2px 8px;
  color: #fff;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  line-height: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.w2g-item .screen .anime .inner .info .status span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.w2g-item .screen .anime .inner .info .status span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
}

.w2g-item .screen .anime .inner .info .status span::after {
  content: "LIVE";
}

.w2g-item.live .screen .anime .inner .status {
  background: linear-gradient(135deg, #d50032 0%, #ff3b30 100%);
  box-shadow: 0 2px 10px rgba(255, 59, 48, 0.45);
}

.w2g-item.live .screen .anime .inner .status span::before {
  animation: blinker 1.2s infinite;
}

.w2g-item.live .screen .anime .inner .status span::after {
  content: "LIVE";
}

.w2g-item.waiting .screen .anime .inner .status {
  background: #10b981;
}

.w2g-item.waiting .screen .anime .inner .status span::before {
  display: none;
}

.w2g-item.waiting .screen .anime .inner .status span::after {
  content: "WAITING";
}

.w2g-item.scheduled .screen .anime .inner .status {
  background: #f59e0b;
}

.w2g-item.scheduled .screen .anime .inner .status span::before {
  display: none;
}

.w2g-item.scheduled .screen .anime .inner .status span::after {
  content: "SCHEDULED";
}

.w2g-item.ended .screen .anime .inner .status {
  background: rgba(255, 255, 255, 0.16);
  color: #a1a1aa;
}

.w2g-item.ended .screen .anime .inner .status span::before {
  display: none;
}

.w2g-item.ended .screen .anime .inner .status span::after {
  content: "ENDED";
}

.w2g-item .screen .anime .inner .info .name {
  color: #fff;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
  max-height: 2.7rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.w2g-item:hover .screen .anime .inner .info .name {
  color: #ff4d4d;
}

.w2g-item .screen .anime .inner .info .meta {
  color: #d4d4d8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}

.w2g-item .screen .anime .inner .info .meta span {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.w2g-item .screen .time {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.w2g-item .screen .time span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e4e4e7;
}

.w2g-item .room {
  margin-top: 4px;
  padding: 10px 10px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.w2g-item .room .avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #1f1f29;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.w2g-item .room .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.w2g-item .room .info {
  display: block;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.w2g-item .room .info .name {
  display: block;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f4f4f5 !important;
  font-size: 0.95rem;
  line-height: 1.25;
}

.w2g-item .room .info .created {
  display: flex;
  align-items: center;
  font-size: 0.78rem;
  color: #a1a1aa;
  margin-top: 2px;
}

.w2g-item .room .info .created strong {
  color: #a1a1aa;
  font-weight: 600;
}

.w2g-item .room .info .created time {
  color: #71717a;
  white-space: nowrap;
}

.w2g-item .room .info .created time::before {
  width: 3px;
  height: 3px;
  display: inline-block;
  background: #71717a;
  border-radius: 50%;
  content: "";
  margin: 0 6px;
  vertical-align: middle;
}

.w2g-item.ended > .inner {
  opacity: 0.72;
}

.w2g-item.ended .screen .bg {
  filter: grayscale(0.75) blur(12px);
}

/* Host Panel & Room View */
.w2g-host-panel {
  margin-top: 12px;
  background: #14141d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
}

.w2g-host-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.w2g-host-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.w2g-auto-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a1a1aa;
  font-size: 0.85rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.w2g-type-switch {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.w2g-type-btn {
  appearance: none;
  border: 0;
  background: #0d0d14;
  color: #a1a1aa;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.w2g-type-btn.active {
  background: linear-gradient(135deg, #d50032 0%, #ff3b30 100%);
  color: #fff;
}

.w2g-room-shell aside.sidebar {
  width: 360px;
  flex-shrink: 0;
}

.w2g-room-shell .wg2-watch-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas:
    "main chat"
    "anime chat";
  align-items: start;
  gap: 16px;
}

.w2g-room-shell .wg2-watch-block .main-content {
  grid-area: main;
  width: auto !important;
  min-width: 0;
}

.w2g-room-shell .wg2-watch-block .anime-info {
  grid-area: anime;
  margin-top: 6px;
}

.w2g-room-shell aside.sidebar.chat,
.w2g-room-shell .w2g-chat-sidebar,
.w2g-room-shell aside.chat {
  grid-area: chat;
  position: sticky;
  top: 5rem;
  height: calc(100dvh - 5rem - 16px);
  max-height: calc(100dvh - 5rem - 16px);
  align-self: start;
  transform: none !important;
  left: auto !important;
  right: auto !important;
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.w2g-room-shell aside.sidebar.chat .room-chat {
  flex: 1 1 auto;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

.w2g-room-shell .player-wrap {
  background: #000;
  padding-bottom: 56.25%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.w2g-room-shell .player-wrap .player {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2;
}

.w2g-room-shell .room-info {
  display: flex;
  background: #14141d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px 18px;
  border-radius: 12px;
  margin-top: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.w2g-room-shell .room-info .start {
  display: flex;
  align-items: center;
}

.w2g-room-shell .room-info .start .avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.w2g-room-shell .room-info .start .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.w2g-room-shell .room-info .start .room {
  margin-left: 12px;
}

.w2g-room-shell .room-info .start .room .name {
  font-weight: 700;
  font-size: 1.15rem;
}

.w2g-room-shell .room-info .start .room .created strong {
  color: #e4e4e7;
}

.w2g-room-shell .room-info .start .room .created span {
  color: #a1a1aa;
}

.w2g-room-shell .room-info .start .room .created span::before {
  width: 3px;
  height: 3px;
  display: inline-block;
  background: #71717a;
  border-radius: 50%;
  content: "";
  margin: 0 6px;
  vertical-align: middle;
}

.w2g-room-shell .room-info .end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.w2g-room-shell .anime-info {
  padding: 20px;
  display: flex;
  background: #14141d;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  gap: 18px;
}

.w2g-room-shell .anime-info .poster {
  width: 130px;
  flex-shrink: 0;
}

.w2g-room-shell .anime-info .poster span {
  position: relative;
  width: 100%;
  display: block;
  padding-bottom: 140%;
  border-radius: 8px;
  overflow: hidden;
  background: #181822;
}

.w2g-room-shell .anime-info .poster span img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w2g-room-shell .anime-info .info {
  flex: 1;
  min-width: 0;
}

.w2g-room-shell .anime-info .info .name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: #fff;
}

.w2g-room-shell .anime-info .synopsis {
  margin-top: 8px;
  line-height: 1.55;
  color: #a1a1aa;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Live Chat */
.room-chat {
  background: #14141d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  flex-direction: column;
  display: flex;
  height: 100%;
  max-height: 100%;
  position: relative;
}

.room-chat .head {
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  color: #fff;
  background: #181824;
}

.room-chat .body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.room-chat .body .messages {
  flex-grow: 1;
  position: relative;
}

.room-chat .body .messages .scroll {
  overflow-y: auto;
  position: absolute;
  inset: 0;
  padding: 12px;
}

.room-chat .body .messages .event.started {
  background: rgba(255, 62, 62, 0.12);
  border: 1px solid rgba(255, 62, 62, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  font-size: 0.8rem;
  margin-bottom: 12px;
  color: #ff6b6b;
  justify-content: center;
}

.room-chat .body .messages .message {
  display: flex;
  margin-bottom: 12px;
  animation: w2gMsgIn 0.22s ease-out;
}

.room-chat .body .messages .message .msg-time {
  font-weight: 400;
  color: #71717a;
  font-size: 0.72rem;
  margin-left: 6px;
}

.room-chat .body .messages .message .avatar {
  flex-shrink: 0;
  align-self: flex-start;
  margin-right: 10px;
}

.room-chat .body .messages .message .avatar img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.room-chat .body .messages .message .msg-body {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.room-chat .body .messages .message .msg-body .user {
  font-weight: 700;
  color: #e4e4e7;
  margin-bottom: 3px;
}

.room-chat .body .messages .message .msg-body .text {
  background: #222230;
  color: #f4f4f5;
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 0.88rem;
  word-break: break-word;
}

.room-chat .body .messages .message.self {
  justify-content: flex-end;
}

.room-chat .body .messages .message.self .avatar {
  display: none;
}

.room-chat .body .messages .message.self .msg-body {
  align-items: flex-end;
}

.room-chat .body .messages .message.self .msg-body .text {
  background: linear-gradient(135deg, #d50032 0%, #ff3b30 100%);
  color: #fff;
}

.room-chat .body .compose {
  background: #101018;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  padding: 10px 12px;
}

.room-chat .body .compose .form-control {
  background: #181824;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
}

.room-chat .body .compose .form-control:focus {
  border-color: #ff3e3e;
  box-shadow: 0 0 0 2px rgba(255, 62, 62, 0.2);
}

.user-avatar {
  display: inline-block;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.user-avatar .user-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .w2g-room-shell .wg2-watch-block {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "chat"
      "anime";
  }
  .w2g-room-shell aside.sidebar.chat,
  .w2g-room-shell .w2g-chat-sidebar,
  .w2g-room-shell aside.chat {
    position: static;
    width: 100%;
    height: min(520px, 65vh);
    max-height: min(520px, 65vh);
  }
}

@media (max-width: 767.98px) {
  .w2g-items {
    grid-template-columns: 1fr;
  }
  .w2g-room-shell .room-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .w2g-room-shell .anime-info {
    flex-direction: column;
  }
  .w2g-room-shell .anime-info .poster {
    width: 100px;
  }
}
