/* app.dnd-css 50 - ORGANIZED CSS / SEARCH ICON BUTTON 20260708 */
/* Fixed: card tag alignment, package image layout, hover effects. */

/* =========================================================
   BASE / RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: #222;
    background: #f4f4f4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    color: #006fc9;
    text-decoration: none;
}

a:hover {
    color: #004f96;
    text-decoration: underline;
}

/* =========================================================
   DETAIL PAGE
========================================================= */

.dnd-detail-main h1 {
    margin: 0 0 20px;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 700;
}

/* =========================================================
   LAYOUT / COMMON
========================================================= */

.dnd-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.dnd-main {
    padding: 22px 0 42px;
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */

/* --- 共通コンポーネントの統合（重複の排除） --- */
.dnd-site-head .dnd-viewer-filter-options,
#dnd-site-nav .dnd-viewer-filter-options {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;

  label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: #222;
    color: #e8e8e8;
    font-size: 12px;
    font-weight: 700;
    line-height: 30px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;

    &::before {
      content: "";
      display: inline-block;
      width: 11px;
      height: 11px;
      border: 1px solid rgba(255, 255, 255, .55);
      border-radius: 50%;
      box-sizing: border-box;
    }

    &:has(input[type="checkbox"]:checked) {
      border-color: #ff8c00;
      background: #ff8c00;
      color: #111;

      &::before {
        background: #111;
        border-color: #111;
      }
    }
  }

  input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

/* --- ヘッダー領域 --- */
.dnd-site-head {
  background: #111;
  color: #fff;
  border-top: 1px solid #18c5a6;

  .dnd-wrap.dnd-head-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 56px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* ロゴ */
  .dnd-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin: 0 24px 0 0;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;

    &:hover {
      color: #fff;
      text-decoration: none;
    }

    small {
      display: none !important;
    }
  }
  .dnd-logo-mint { color: #18c5a6; }
  .dnd-logo-sub { display: none !important; }

  /* 検索フォーム */
  .dnd-head-find {
    flex: 0 1 530px;
    width: 530px;
    max-width: 530px;
    min-width: 220px;
    margin: 0 0 0 auto;
    padding: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: #2b3038;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .18);

    input[type="search"] {
      flex: 1 1 auto;
      min-width: 0;
      height: 38px;
      padding: 0 14px;
      border: 1px solid #e4e7eb;
      border-radius: 6px 2px 2px 6px;
      background: #fff;
      color: #20242a;
      font-size: 14px;
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06);
      box-sizing: border-box;

      &::placeholder { color: #8a929c; }
      &:focus {
        outline: none;
        border-color: #18c5a6;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, .05), 0 0 0 3px rgba(24, 197, 166, .22);
      }
    }

    button[type="submit"] {
      flex: 0 0 78px;
      width: 78px;
      height: 38px;
      padding: 0 12px;
      border: 0;
      border-radius: 2px 6px 6px 2px;
      background: linear-gradient(180deg, #18c5a6 0%, #10a98d 100%);
      color: #fff;
      font-size: 13px;
      font-weight: 800;
      line-height: 38px;
      white-space: nowrap;
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 1px 2px rgba(0, 0, 0, .18);
      box-sizing: border-box;

      &:hover { background: linear-gradient(180deg, #1bd4b3 0%, #119b83 100%); }
      &:active {
        transform: translateY(1px);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, .22);
      }
    }

    .dnd-search-btn { display: flex; align-items: center; justify-content: center; gap: 6px; }
    .dnd-search-icon { width: 16px; height: 16px; flex: 0 0 auto; }
    .dnd-search-text { display: inline; }
  }

  /* アクション領域 */
  .dnd-head-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 0;
  }

  /* RSSリンク */
  .dnd-rss-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 5px;
    background: #222;
    color: #ff8c00;
    text-decoration: none;
    transition: background .18s, color .18s, border-color .18s;

    &:hover {
      background: #2d2d2d;
      color: #ffb347;
      text-decoration: none;
    }
  }

  /* ハンバーガーボタン */
  .dnd-head-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 5px;
    background: #1d1d1d;
    color: #fff;
    cursor: pointer;

    span, &::before, &::after {
      content: "";
      display: block;
      width: 18px;
      height: 2px;
      background: currentColor;
      border-radius: 999px;
    }

    &[aria-expanded="true"] {
      span { display: none; }
      &::before { transform: translateY(3px) rotate(45deg); }
      &::after { transform: translateY(-3px) rotate(-45deg); }
    }
  }
}

/* --- ナビゲーション領域 --- */
#dnd-site-nav.dnd-site-nav {
  display: block;
  background: #202020;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(0, 0, 0, .45);

  .dnd-wrap.dnd-nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      position: relative;
      padding: 5px 18px 5px 28px;
      border: 1px solid rgba(255, 255, 255, .14);
      border-radius: 5px;
      background: rgba(255, 255, 255, .03);
      color: #f3f3f3;
      font-size: 14px;
      font-weight: 700;
      text-decoration: none;
      transition: .2s;

      &::before {
        content: "";
        position: absolute;
        left: 11px;
        top: 50%;
        width: 6px;
        height: 6px;
        margin-top: -4px;
        border-top: 2px solid #18c5a6;
        border-right: 2px solid #18c5a6;
        transform: rotate(45deg);
      }

      &:hover {
        border-color: #18c5a6;
        color: #7ff0dc;
        text-decoration: none;
        transform: translateY(1px);
      }
    }
  }
}

#dnd-site-nav {
  .dnd-menu-filter-title,
  .dnd-viewer-filter-options {
    display: none;
  }
}

/* --- メディアクエリ --- */
@media (max-width: 768px) {
  .dnd-site-head .dnd-wrap.dnd-head-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 6px;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo actions"
      "search search";
    align-items: center;
    gap: 8px 6px;

    .dnd-logo {
      grid-area: logo;
      margin: 0;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .dnd-head-find {
      grid-area: search;
      display: flex;
      width: 100%;
      max-width: none;
      min-width: 0;
      margin: 0;
    }
  }
}
/* =========================================================
   FOOTER
========================================================= */

.dnd-site-foot {
    border-top: 1px solid #ddd;
    background: #151515;
    color: #ccc;
    padding: 24px 0;
    font-size: 14px;
}

.dnd-foot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.dnd-foot-links {
    margin: 0;
    text-align: center;
    line-height: 1.8;
}

.dnd-foot-links a {
    color: #fff;
    text-decoration: none;
}

.dnd-foot-links a:hover {
    text-decoration: underline;
}

.dnd-copy {
    margin: 0;
    text-align: center;
}

/* =========================================================
   LAYOUT / COMMON
========================================================= */

.dnd-page-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;

    margin: 0 0 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.dnd-page-head h1 {
    margin: 0;
    font-size: 21px;
}

.dnd-page-head p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.dnd-empty {
    padding: 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.dnd-crumb {
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #666;
    font-size: 12px;
}

/* =========================================================
   WORK LIST / CARDS
========================================================= */

.dnd-work-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    align-items: stretch;
}

.dnd-work-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.dnd-work-img {
    display: block;
    aspect-ratio: 1 / 1;
    background: #e8e8e8;
}

.dnd-work-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dnd-work-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 10px;
}

.dnd-work-body h2 {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

.dnd-work-body h2 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.dnd-work-info {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.dnd-work-info li {
    margin: 3px 0 0;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 6px;
    font-size: 12px;
    line-height: 1.45;
}

.dnd-work-info span {
    color: #777;
}

.dnd-work-info strong {
    min-width: 0;
    color: #333;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dnd-mini-tags {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dnd-mini-tags span,
.dnd-mini-tags a {
    display: inline-block;
    padding: 2px 6px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 999px;
    color: #555;
    font-size: 11px;
    text-decoration: none;
}

.dnd-mini-tags a:hover {
    background: #e8e8e8;
    color: #222;
}

/* =========================================================
   DETAIL PAGE
========================================================= */

.dnd-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.dnd-work-detail {
    min-width: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

/* =========================================================
   DETAIL SIDEBAR
========================================================= */

.dnd-detail-side {
    display: grid;
    gap: 14px;
}

.dnd-side-box {
    padding: 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.dnd-side-box h2 {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e2e2;
    font-size: 15px;
}

.dnd-side-work-list {
    display: grid;
    gap: 10px;
}

.dnd-side-work {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: center;
    text-decoration: none;
}

.dnd-side-work:hover .dnd-side-work-title {
    text-decoration: underline;
}

.dnd-side-work-img {
    overflow: hidden;
    display: block;
    width: 120px;
    aspect-ratio: 1 / 1;
    background: #e8e8e8;
    border-radius: 8px;
    flex-shrink: 0;
}

.dnd-side-work-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dnd-side-work-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    font-size: 13px;
    line-height: 1.45;
}

.dnd-side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dnd-side-tags a {
    display: inline-block;
    padding: 4px 9px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 999px;
    color: #555;
    font-size: 12px;
    text-decoration: none;
}

.dnd-side-tags a:hover {
    background: #e8e8e8;
    color: #222;
}

/* =========================================================
   DETAIL PAGE
========================================================= */

.dnd-detail-main-img {
    overflow: hidden;
    margin: 0 auto 18px;
    max-width: 360px;
    background: #e8e8e8;
    border-radius: 10px;
}

/* =========================================================
   DUGA PLAYER / CREDIT
========================================================= */

.dnd-detail-main-img:has(.dnd-duga-player) {
    max-width: 810px;
    width: 100%;
    margin: 0 auto 22px;
    padding: 0;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
}

/* =========================================================
   DETAIL INFO / PACKAGE IMAGE
========================================================= */

.dnd-data-list {
    margin: 0;
    border-top: 1px solid #e2e2e2;
}

.dnd-data-list div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #e2e2e2;
}

.dnd-data-list dt {
    color: #666;
    font-size: 13px;
    font-weight: 700;
}

.dnd-data-list dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}

/* =========================================================
   DETAIL PAGE
========================================================= */

.dnd-detail-block {
    margin-top: 28px;
}

.dnd-detail-block h2 {
    margin: 0 0 9px;
    font-size: 17px;
}

.dnd-detail-block p {
    margin: 0;
    font-size: 14px;
}

.dnd-tag-box {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.dnd-tag-box a {
    display: inline-block;
    padding: 5px 10px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 13px;
}

/* =========================================================
   BUTTONS
========================================================= */

.dnd-go-btn{
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;

    margin-top:24px;
    padding:8px 20px;

    background:#000;
    color:#fff;
    border-radius:6px;

    font-size:16px;
    font-weight:700;
    text-decoration:none;

    transition:color .3s ease;
}

.dnd-go-btn::before,
.dnd-go-btn::after{
    content:"";
    position:absolute;
    top:0;
    width:100%;
    height:100%;
    background:#18c5a6;
    transition:transform .45s ease;
}

.dnd-go-btn::before{
    left:calc(-100% + 10px);
}

.dnd-go-btn::after{
    right:calc(-100% + 10px);
}

.dnd-go-btn:hover::before{
    transform:translateX(50%);
}

.dnd-go-btn:hover::after{
    transform:translateX(-50%);
}

.dnd-go-btn span{
    position:relative;
    z-index:1;
}

.dnd-go-btn:hover{
    color:#fff;
    text-decoration:none;
}
.dnd-page-bottom-btn{
    width: min(1180px, calc(100% - 0px));
    margin: 24px auto 0;
}


/* Back */
a.dnd-btn-flat {
  position: relative;
  display: inline-block;

  /* 【追加】テーマが強制追加してくる内側の余白を上下左右すべてゼロにリセット */
  padding: 0; 
  padding-top: 0;
  padding-bottom: 0;

  /* 枠線と角丸の設定（10px） */
  border: 1px solid transparent;
  border-radius: 10px; 
  overflow: hidden;   
  background-clip: padding-box; 

  /* サイズ設定 */
  width: 100%;       
  height: 43px;       /* 指定していただいた高さ */
  line-height: 41px;  /* 文字を中央に持ち上げる高さ */
  margin: 0;
  
  text-align: center;
  font-size: 16px;    
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #fff;
  background: #000;
  text-decoration: none;
  box-sizing: border-box;
}

/* 文字のコンテナ */
a.dnd-btn-flat span {
  position: relative;
  z-index: 2;
  display: inline-block;
  
  /* 【追加】ここもテーマの余白を強制リセットして上へ引き上げる */
  padding: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  
  height: 41px;     /* 高さを固定してズレを固定 */
  line-height: 41px; 
}

/* 左端の矢印（＜） */
a.dnd-btn-flat:after {
  position: absolute;
  
  /* 【微調整】全体が下がりやすい環境のため、上からの位置を50%から「48%」にして少し上に配置 */
  top: 48%;
  left: 22px; 
  
  width: 7px;
  height: 7px;
  
  content: '';
  -webkit-transform: translateY(-50%) rotate(-135deg);
  transform: translateY(-50%) rotate(-135deg);
  
  border-top: 2.5px solid #fff;
  border-right: 2.5px solid #fff;
  z-index: 2;
}

/* 右側の緑色の半円（※画像に合わせて背景色を緑 #1abc9c に変更しました） */
a.dnd-btn-flat:before {
  position: absolute;
  top: 50%;
  right: 0;

  /* ボタンが43pxに縮んだので、丸の大きさも 64px に縮小して綺麗な半円に調整 */
  width: 64px;  
  height: 64px; 

  content: '';
  -webkit-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
  
  /* めり込み具合を再調整 */
  -webkit-transform: translateX(65%) translateY(-50%);
  transform: translateX(65%) translateY(-50%);

  border-radius: 50%; 
  background: #1abc9c; /* オレンジから画像の鮮やかな緑に変更 */
  z-index: 1;
}

/* マウスオン時 */
a.dnd-btn-flat:hover:before {
  width: 1480px;
  height: 380px;
  -webkit-transform: translateX(20%) translateY(-50%);
  transform: translateX(20%) translateY(-50%);
}




/* =========================================================
   LAYOUT / COMMON
========================================================= */

.dnd-page-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 42px;
}

.dnd-empty-box {
    padding: 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.dnd-empty-box p {
    margin: 0;
}

/* =========================================================
   NAME LIST
========================================================= */

.dnd-name-card,
.dnd-name-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.dnd-name-card:hover,
.dnd-name-list-item:hover {
    text-decoration: none;
    border-color: #bbb;
}

.dnd-name-card span,
.dnd-name-list-item span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 700;
}

.dnd-name-card em,
.dnd-name-list-item em {
    flex: 0 0 auto;
    color: #777;
    font-size: 12px;
    font-style: normal;
}

/* =========================================================
   WORK LIST / CARDS
========================================================= */

.dnd-work-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    align-items: stretch;
}

.dnd-work-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dnd-work-card-link:hover {
    text-decoration: none;
}

.dnd-work-info dt {
    color: #777;
    font-size: 12px;
}

.dnd-work-info dd {
    margin: 0;
    min-width: 0;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* =========================================================
   PAGER
========================================================= */

.dnd-pager {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.dnd-pager a,
.dnd-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 7px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color .18s ease, color .18s ease;
}

.dnd-pager a:hover {
    background: #fff;
    border-color: #18c5a6;
    color: #18c5a6;
    text-decoration: none;
}

.dnd-pager strong,
.dnd-pager .dnd-current,
.dnd-pager span[aria-current="page"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 7px 10px;
    background: #18c5a6;
    color: #fff;
    border: 1px solid #18c5a6;
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    box-sizing: border-box;
}

/* =========================================================
   LAYOUT / COMMON
========================================================= */

.dnd-breadcrumb {
    margin: 0 0 18px;
    font-size: 12px;
}

.dnd-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: #666;
}

.dnd-breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
    color: #999;
}

/* =========================================================
   NAME LIST
========================================================= */

.dnd-name-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.dnd-name-list-item,
.dnd-name-card {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.dnd-name-list-item em,
.dnd-name-card em {
    color: #777;
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
}

/* =========================================================
   DUGA PLAYER / CREDIT
========================================================= */

.dnd-duga-player {
    width: 100%;
    max-width: 810px;
    margin: 24px auto 32px;
    padding: 0;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
    aspect-ratio: 780 / 439;
}

.dnd-duga-player > div,
.dnd-duga-player [id^="dugaflvplayer-"] {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    background: #000 !important;
    overflow: hidden !important;
    aspect-ratio: 780 / 439 !important;
}

.dnd-duga-player iframe,
.dnd-duga-player video,
.dnd-duga-player object,
.dnd-duga-player embed {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    aspect-ratio: 780 / 439 !important;
}

.dnd-detail-main-img:has(.dnd-duga-player) .dnd-duga-player {
    width: 100%;
    max-width: 810px;
    margin: 0 auto;
    background: #000;
}

.dnd-detail-main-img:has(.dnd-duga-player) .dnd-duga-player > div,
.dnd-detail-main-img:has(.dnd-duga-player) .dnd-duga-player [id^="dugaflvplayer-"],
.dnd-detail-main-img:has(.dnd-duga-player) .dnd-duga-player iframe,
.dnd-detail-main-img:has(.dnd-duga-player) .dnd-duga-player video,
.dnd-detail-main-img:has(.dnd-duga-player) .dnd-duga-player object,
.dnd-detail-main-img:has(.dnd-duga-player) .dnd-duga-player embed {
    width: 100% !important;
    max-width: 810px !important;
}

/* =========================================================
   DETAIL INTRODUCTION
========================================================= */

.dnd-work-intro-images .dnd-package-img:first-child:nth-last-child(1) {
    grid-column: 1 / -1;
}

.dnd-work-intro-images .dnd-package-img:first-child:nth-last-child(n + 2) {
    grid-column: 1 / -1;
}

.dnd-package-img img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================================
   DETAIL INFO / PACKAGE IMAGE
========================================================= */

.dnd-detail-package-img img {
    display: block;
    width: 100%;
    height: auto;
}

/* =========================================================
   DETAIL INTRODUCTION
========================================================= */

.dnd-work-intro-block {
    margin-top: 24px;
}

.dnd-work-intro-block h2,
.dnd-detail-block h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 20px;
    line-height: 1.4;
}

.dnd-work-intro-block h2::after,
.dnd-detail-block h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #d8d8d8, rgba(216, 216, 216, 0));
}

.dnd-work-intro-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 2px 0 6px;
}

.dnd-work-intro-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    display: none;
}

.dnd-package-img {
    overflow: hidden;
    display: block;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* =========================================================
   DETAIL PAGE
========================================================= */

.dnd-detail-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =========================================================
   DETAIL INTRODUCTION
========================================================= */

.dnd-work-intro-layout,
.dnd-work-intro-flow {
    display: block;
    padding: 2px 0 6px;
}

.dnd-work-intro-flow::after {
    content: "";
    display: block;
    clear: both;
}

.dnd-work-intro-sample {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    float: left;
    width: min(260px, 38%);
    margin: 0 26px 16px 0;
}

.dnd-work-intro-sample img {
    display: block;
    width: 100%;
    height: auto;
}

.dnd-work-intro-text {
    min-width: 0;
}

.dnd-work-intro-text p {
    margin: 0;
    line-height: 2;
    letter-spacing: .01em;
}

/* =========================================================
   DETAIL SIDEBAR
========================================================= */

.dnd-side-work-list-pc {
    display: grid;
}

.dnd-side-work-card-grid {
    display: none !important;
}

/* =========================================================
   DETAIL PAGE
========================================================= */

.dnd-detail-main .dnd-detail-related-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

/* =========================================================
   DUGA PLAYER / CREDIT
========================================================= */

.dnd-duga-credit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0 0 4px;
    color: #d6d6d6;
    font-size: 12px;
    line-height: 1.5;
}

.dnd-duga-credit a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.dnd-duga-credit img {
    display: inline-block;
    width: 142px !important;
    height: 18px !important;
    max-width: none !important;
    background: #fff;
    border: 0 !important;
}

/* =========================================================
   WORK LIST / CARDS
========================================================= */

.dnd-work-img,
.dnd-side-work-img,
.dnd-detail-main-img {
    background: #f1f1f1 !important;
}

.dnd-work-img img,
.dnd-side-work-img img,
.dnd-detail-main-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* =========================================================
   DETAIL PAGE
========================================================= */

.dnd-detail-main-img img {
    display: block;
    width: 100%;
    object-fit: cover;
    aspect-ratio: auto !important;
    height: auto !important;
}

/* =========================================================
   WORK LIST / CARDS
========================================================= */

.dnd-work-img,
.dnd-side-work-img {
    aspect-ratio: 4 / 3 !important;
    background: #f1f1f1 !important;
}

.dnd-work-img img,
.dnd-side-work-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* =========================================================
   DETAIL SAMPLE SLIDER / MODAL
========================================================= */

.dnd-detail-slider-block {
    margin-top: 28px;
}

.dnd-detail-slider {
    position: relative;
    width: 100%;
    padding: 0 38px 38px 38px;
}

.dnd-detail-slider-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.dnd-detail-slider-track::-webkit-scrollbar {
    display: none;
}

.dnd-detail-slider-item {
    flex: 0 0 calc((100% - 24px) / 3);
    display: block;
    overflow: hidden;
    scroll-snap-align: start;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
}

.dnd-detail-slider-item:hover {
    border-color: #aaa;
    text-decoration: none;
}

.dnd-detail-slider-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.dnd-detail-slider-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 30px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(0, 0, 0, .62);
    cursor: pointer;
    transform: translateY(-50%);
}

.dnd-detail-slider-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
}

.dnd-detail-slider-prev {
    left: 0;
}

.dnd-detail-slider-next {
    right: 0;
}

.dnd-detail-slider-btn:disabled {
    opacity: .25;
    cursor: default;
}

.dnd-detail-slider-prev::before {
    transform: translate(-35%, -50%) rotate(-45deg);
    content: "?";
}

.dnd-detail-slider-next::before {
    transform: translate(-65%, -50%) rotate(135deg);
    content: "?";
}

/* =========================================================
   BASE / RESET
========================================================= */

body.dnd-detail-modal-open {
    overflow: hidden;
}

/* =========================================================
   DETAIL SAMPLE SLIDER / MODAL
========================================================= */

.dnd-detail-image-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.dnd-detail-image-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
}

.dnd-detail-image-modal-box {
    position: absolute;
    inset: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dnd-detail-image-modal-box img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    background: #111;
    box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.dnd-detail-image-modal-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.72);
    cursor: pointer;
}

.dnd-detail-image-modal-close::before,
.dnd-detail-image-modal-close::after {
    content: "";
    position: absolute;
    left: 12px;
    top: 20px;
    width: 18px;
    height: 2px;
    background: #fff;
}

.dnd-detail-image-modal-close::before {
    transform: rotate(45deg);
}

.dnd-detail-image-modal-close::after {
    transform: rotate(-45deg);
}

/* =========================================================
   DETAIL INFO / PACKAGE IMAGE
========================================================= */

.dnd-detail-info-visual {
    margin: 0 0 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e5e5e5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
    gap: 26px;
    align-items: flex-start;
}

.dnd-detail-info-visual:not(:has(.dnd-detail-package-panel)) {
    grid-template-columns: minmax(0, 1fr);
}

.dnd-detail-info-visual .dnd-data-list {
    margin: 0;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.dnd-detail-info-visual .dnd-data-list div {
    grid-template-columns: 110px minmax(0, 1fr);
}

.dnd-detail-info-visual .dnd-data-list dd {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
}

.dnd-detail-package-panel {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.dnd-detail-package-img {
    display: block;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #f1f1f1;
    box-shadow: none;
    min-width: 0;
    line-height: 0;
}

.dnd-detail-package-img img,
.dnd-detail-package-img img.dnd-detail-package-img-cover,
.dnd-detail-package-img img.dnd-detail-package-img-contain {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    border-radius: 10px;
}
/* =========================================================
   RESPONSIVE: @media (max-width: 1000px)
========================================================= */
@media (max-width: 1000px) {
    /* WORK LIST / CARDS */
    .dnd-work-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .dnd-name-list,
        .dnd-work-list {
        grid-template-columns: repeat(4, 1fr);
    }

    /* DETAIL INTRODUCTION */
    .dnd-work-intro-layout {
        grid-template-columns: 1fr;
    }

    .dnd-work-intro-images {
        max-width: 560px;
    }

    /* DETAIL PAGE */
    .dnd-detail-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* DETAIL SIDEBAR */
    .dnd-detail-side {
        display: grid;
        gap: 18px;
    }

    .dnd-detail-side .dnd-side-box {
        padding: 16px;
    }

    .dnd-detail-side .dnd-side-work-list-pc {
        display: none !important;
    }

    .dnd-detail-side .dnd-side-work-card-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    /* WORK LIST / CARDS */
    .dnd-detail-side .dnd-side-work-card-grid .dnd-work-card {
        min-width: 0;
    }

    /* DETAIL SIDEBAR */
    .dnd-detail-layout .dnd-detail-side .dnd-side-work-list-pc {
        display: none !important;
    }

    /* WORK LIST / CARDS */
    .dnd-detail-layout .dnd-detail-side .dnd-work-grid.dnd-side-work-card-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px;
    }

    /* DETAIL PAGE */
    .dnd-detail-layout {
        grid-template-columns: 1fr !important;
    }

    /* DETAIL SIDEBAR */
    .dnd-detail-layout > .dnd-detail-side .dnd-side-work-list-pc {
        display: none !important;
    }

    /* WORK LIST / CARDS */
    .dnd-detail-layout > .dnd-detail-side .dnd-side-box .dnd-work-grid.dnd-side-work-card-grid {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    /* DETAIL SIDEBAR */
    .dnd-detail-layout > .dnd-detail-side .dnd-side-box-new {
        position: static;
    }
}

/* =========================================================
   RESPONSIVE: @media (max-width: 900px)
========================================================= */
@media (max-width: 900px) {
    /* DETAIL PAGE */
    .dnd-detail-layout {
        grid-template-columns: 1fr;
    }

    /* WORK LIST / CARDS */
    .dnd-work-grid,
        .dnd-name-list {
        grid-template-columns: repeat(3, 1fr);
    }

    /* DETAIL INTRODUCTION */
    .dnd-work-intro-layout {
        grid-template-columns: 160px minmax(0, 1fr);
        gap: 18px;
    }

    /* DETAIL INFO / PACKAGE IMAGE */
    .dnd-detail-info-visual {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* DETAIL SIDEBAR */
    .dnd-detail-side {
        gap: 18px;
    }

    .dnd-detail-side .dnd-side-box {
        padding: 16px;
    }

    .dnd-detail-side .dnd-side-work-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }

    .dnd-detail-side .dnd-side-work {
        display: block;
        overflow: hidden;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 10px;
        text-decoration: none;
    }

    .dnd-detail-side .dnd-side-work:hover {
        border-color: #bbb;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
        text-decoration: none;
    }

    .dnd-detail-side .dnd-side-work:hover .dnd-side-work-title {
        text-decoration: none;
    }

    .dnd-detail-side .dnd-side-work-img {
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 0;
        background: #e8e8e8;
    }

    .dnd-detail-side .dnd-side-work-title {
        display: -webkit-box;
        min-height: 44px;
        padding: 9px 10px 10px;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #222;
        font-size: 13px;
        line-height: 1.45;
        font-weight: 700;
    }

    /* WORK LIST / CARDS */
    .dnd-detail-layout .dnd-detail-side .dnd-work-grid.dnd-side-work-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    /* DETAIL INFO / PACKAGE IMAGE */
    .dnd-detail-info-visual,
        .dnd-detail-info-visual:not(:has(.dnd-detail-package-panel)) {
        grid-template-columns: 1fr;
    }

    .dnd-detail-info-visual .dnd-data-list {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .dnd-detail-package-panel {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .dnd-detail-package-img {
        width: auto;
        max-width: 100%;
        margin: 0 auto;  
    }

    .dnd-detail-package-img img,
        .dnd-detail-package-img img.dnd-detail-package-img-cover,
        .dnd-detail-package-img img.dnd-detail-package-img-contain {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 270px;
        object-position: center center;
        border-radius: 10px;
    }
}

/* =========================================================
   RESPONSIVE: @media (max-width: 520px)
========================================================= */
@media (max-width: 520px) {
    /* LAYOUT / COMMON */
    .dnd-wrap {
        width: calc(100% - 8px);
    }

    .dnd-main {
        padding: 6px 0 18px;
    }

    .dnd-page-head {
        padding: 10px;
    }

    .dnd-page-head h1 {
        font-size: 21px;
    }

    /* WORK LIST / CARDS */
    .dnd-work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* DETAIL PAGE */
    .dnd-work-detail {
        padding: 8px;
        border-radius: 6px;
    }

    .dnd-detail-layout {
        gap: 8px;
    }

    /* DETAIL SIDEBAR */
    .dnd-side-box {
        padding: 10px;
    }

    /* DETAIL PAGE */
    .dnd-detail-main h1 {
        font-size: 21px;
    }

    /* DETAIL INFO / PACKAGE IMAGE */
    .dnd-data-list div {
        grid-template-columns: 76px 1fr;
    }

    /* LAYOUT / COMMON */
    .dnd-page-main {
        width: min(100% - 20px, 1180px);
        padding: 14px 0 32px;
    }

    /* WORK LIST / CARDS */
    .dnd-name-list,
        .dnd-work-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* NAME LIST */
    .dnd-name-card,
        .dnd-name-list-item {
        display: block;
        padding: 10px;
    }

    .dnd-name-card span,
        .dnd-name-list-item span {
        display: block;
    }

    .dnd-name-card em,
        .dnd-name-list-item em {
        display: block;
        margin-top: 4px;
    }

    /* DETAIL SIDEBAR */
    .dnd-detail-side .dnd-side-work-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dnd-detail-side .dnd-side-work-title {
        min-height: 42px;
        padding: 8px;
        font-size: 12px;
    }

    .dnd-detail-side .dnd-side-work-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /* DETAIL SAMPLE SLIDER / MODAL */
    .dnd-detail-slider {
        padding: 0;
    }

    .dnd-detail-slider-item {
        flex-basis: 82%;
    }

    .dnd-detail-slider-btn {
        display: none;
    }
}

/* =========================================================
   RESPONSIVE: @media (max-width: 600px)
========================================================= */
@media (max-width: 600px) {
    /* WORK LIST / CARDS */
    .dnd-work-grid,
        .dnd-name-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* DUGA PLAYER / CREDIT */
    .dnd-detail-main-img:has(.dnd-duga-player) {
        width: calc(100% + 16px);
        max-width: none;
        margin: 0 -8px 16px;
        border-radius: 0;
    }

    .dnd-duga-player {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
    }

    /* WORK LIST / CARDS */
    .dnd-detail-layout .dnd-detail-side .dnd-work-grid.dnd-side-work-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }
}

/* =========================================================
   RESPONSIVE: @media (max-width: 620px)
========================================================= */
@media (max-width: 620px) {
    /* DETAIL INTRODUCTION */
    .dnd-work-intro-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* DETAIL INFO / PACKAGE IMAGE */
    .dnd-detail-info-visual {
        grid-template-columns: 1fr;
    }

    .dnd-detail-package-panel {
        justify-content: center;
        width: 100%;
    }

    /* DETAIL INTRODUCTION */
    .dnd-work-intro-layout {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    /* DETAIL PAGE */
    .dnd-detail-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* DETAIL INFO / PACKAGE IMAGE */
    .dnd-detail-package-img {
        width: auto;
        max-width: 100%;
        margin: 0 auto;
    }

    /* DETAIL INTRODUCTION */
    .dnd-work-intro-sample {
        max-width: none;
        float: none;
        width: 100%;
        margin: 0 0 16px;
    }

    /* DETAIL INFO / PACKAGE IMAGE */
    .dnd-work-intro-sample img {
        width: 100%;
        height: auto;
    }

    .dnd-detail-package-img img,
        .dnd-detail-package-img img.dnd-detail-package-img-cover,
        .dnd-detail-package-img img.dnd-detail-package-img-contain {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 270px;
        object-position: center center;
        border-radius: 10px;
    }
}

/* =========================================================
   RESPONSIVE: @media (min-width: 701px) and (max-width: 900px)
========================================================= */
@media (min-width: 701px) and (max-width: 900px) {
    /* WORK LIST / CARDS */
    .dnd-detail-layout > .dnd-detail-side .dnd-side-box .dnd-work-grid.dnd-side-work-card-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    /* DETAIL PAGE */
    .dnd-detail-main .dnd-detail-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

/* =========================================================
   RESPONSIVE: @media (max-width: 700px)
========================================================= */
@media (max-width: 700px) {
    /* WORK LIST / CARDS */
    .dnd-detail-layout > .dnd-detail-side .dnd-side-box .dnd-work-grid.dnd-side-work-card-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    /* DETAIL PAGE */
    .dnd-detail-main .dnd-detail-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/* =========================================================
   RESPONSIVE: @media (min-width: 1001px)
========================================================= */
@media (min-width: 1001px) {
    /* DETAIL PAGE */
    .dnd-detail-layout {
        align-items: stretch;
    }

    /* DETAIL SIDEBAR */
    .dnd-detail-layout > .dnd-detail-side {
        align-self: stretch;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .dnd-detail-layout > .dnd-detail-side .dnd-side-box-new {
        position: sticky;
        top: 5px;
        z-index: 2;
    }
}

/* =========================================================
   RESPONSIVE: @media (min-width: 901px) and (max-width: 1100px)
========================================================= */
@media (min-width: 901px) and (max-width: 1100px) {
    /* DETAIL INFO / PACKAGE IMAGE */
    .dnd-detail-info-visual {
        grid-template-columns: minmax(260px, 1fr) minmax(0, 42%);
        gap: 22px;
    }

    .dnd-detail-info-visual .dnd-data-list {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .dnd-detail-package-img {
        max-width: 100%;
    }
}

/* =========================================================
   HOVER EFFECTS
========================================================= */

.dnd-work-img,
.dnd-side-work-img,
.dnd-detail-main-img,
.dnd-package-img,
.dnd-detail-slider-item,
.dnd-detail-package-img,
.dnd-work-intro-sample {
    overflow: hidden;
}

.dnd-work-img img,
.dnd-side-work-img img,
.dnd-detail-main-img img,
.dnd-package-img img,
.dnd-detail-slider-item img,
.dnd-detail-package-img img,
.dnd-work-intro-sample img {
    transition:
        transform .22s ease,
        filter .22s ease;
}

.dnd-work-card:hover .dnd-work-img img,
.dnd-side-work:hover .dnd-side-work-img img,
.dnd-detail-main-img:hover img,
.dnd-package-img:hover img,
.dnd-detail-slider-item:hover img,
.dnd-detail-package-img:hover img,
.dnd-work-intro-sample:hover img {
    transform: scale(1.09);
    filter: brightness(1.04);
}

/* =========================================================
   DICTIONARY PAGE / REFINED
========================================================= */

.dnd-maker-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.dnd-maker-guide-section {
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.dnd-maker-guide-section:nth-child(n + 3) {
    grid-column: 1 / -1;
}

.dnd-maker-guide-section h2 {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 9px 13px;
    border-bottom: 1px solid #e7e7e7;
    font-size: 17px;
    line-height: 1.4;
}

.dnd-maker-guide-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 20px;
    border-radius: 999px;
    background: #18c5a6;
}

.dnd-maker-guide-section h3 {
    margin: 0;
    padding: 0 0 8px;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.dnd-maker-guide-section p {
    margin: 0;
    color: #444;
    font-size: 13px;
    line-height: 1.8;
}

.dnd-maker-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 0;
}

.dnd-maker-stats div {
    min-width: 0;
    padding: 10px 11px;
    background: linear-gradient(180deg, #fbfbfb 0%, #f5f5f5 100%);
    border: 1px solid #e4e4e4;
    border-radius: 7px;
}

.dnd-maker-stats dt {
    margin: 0 0 3px;
    color: #777;
    font-size: 11px;
    line-height: 1.3;
}

.dnd-maker-stats dd {
    margin: 0;
    color: #222;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

/* 関連情報は項目ごとのカードとして配置 */
.dnd-maker-guide-section:has(.dnd-maker-related-list) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dnd-maker-guide-section:has(.dnd-maker-related-list) > h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.dnd-maker-guide-section:has(.dnd-maker-related-list) > h3,
.dnd-maker-guide-section:has(.dnd-maker-related-list) > .dnd-maker-related-list {
    min-width: 0;
    margin: 0;
}

.dnd-maker-guide-section:has(.dnd-maker-related-list) > h3 {
    padding: 10px 12px 8px;
    background: #f7faf9;
    border: 1px solid #dfe9e6;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.dnd-maker-guide-section:has(.dnd-maker-related-list) > .dnd-maker-related-list {
    margin-top: -14px;
    padding: 0 12px 7px;
    background: #fff;
    border: 1px solid #dfe9e6;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    list-style: none;
}

.dnd-maker-guide-section:has(.dnd-maker-related-list) > h3:nth-of-type(1),
.dnd-maker-guide-section:has(.dnd-maker-related-list) > .dnd-maker-related-list:nth-of-type(1),
.dnd-maker-guide-section:has(.dnd-maker-related-list) > h3:nth-of-type(3),
.dnd-maker-guide-section:has(.dnd-maker-related-list) > .dnd-maker-related-list:nth-of-type(3) {
    grid-column: 1;
}

.dnd-maker-guide-section:has(.dnd-maker-related-list) > h3:nth-of-type(2),
.dnd-maker-guide-section:has(.dnd-maker-related-list) > .dnd-maker-related-list:nth-of-type(2),
.dnd-maker-guide-section:has(.dnd-maker-related-list) > h3:nth-of-type(4),
.dnd-maker-guide-section:has(.dnd-maker-related-list) > .dnd-maker-related-list:nth-of-type(4) {
    grid-column: 2;
}

.dnd-maker-related-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    line-height: 1.35;
}

.dnd-maker-related-list li:last-child {
    border-bottom: 0;
}

.dnd-maker-related-list a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dnd-maker-related-list span {
    flex: 0 0 auto;
    padding: 2px 7px;
    background: #f1f3f3;
    border-radius: 999px;
    color: #666;
    font-size: 11px;
    white-space: nowrap;
}

.dnd-maker-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.dnd-maker-faq details {
    padding: 0;
    background: #fafafa;
    border: 1px solid #e1e1e1;
    border-radius: 7px;
    overflow: hidden;
}

.dnd-maker-faq summary {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.dnd-maker-faq p {
    margin: 0;
    padding: 0 12px 11px;
    color: #555;
    font-size: 12px;
    line-height: 1.7;
}

.dnd-maker-work-list h2 {
    margin: 0 0 12px;
    font-size: 19px;
}

@media (max-width: 700px) {
    .dnd-maker-guide {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-bottom: 14px;
    }

    .dnd-maker-guide-section,
    .dnd-maker-guide-section:nth-child(n + 3) {
        grid-column: auto;
    }

    .dnd-maker-guide-section {
        padding: 12px;
    }

    .dnd-maker-guide-section h2 {
        font-size: 16px;
    }

    .dnd-maker-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .dnd-maker-guide-section:has(.dnd-maker-related-list) {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dnd-maker-guide-section:has(.dnd-maker-related-list) > h2,
    .dnd-maker-guide-section:has(.dnd-maker-related-list) > h3,
    .dnd-maker-guide-section:has(.dnd-maker-related-list) > .dnd-maker-related-list {
        grid-column: 1 !important;
    }

    .dnd-maker-faq {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   DICTIONARY PAGE - STYLISH FINAL OVERRIDE
========================================================= */

.dnd-maker-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.dnd-maker-guide-section {
    min-width: 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .035);
}

.dnd-maker-guide-section:nth-child(n + 3) {
    grid-column: 1 / -1;
}

.dnd-maker-guide-section h2 {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 10px 12px;
    border-bottom: 1px solid #e8e8e8;
    color: #222;
    font-size: 17px;
    line-height: 1.4;
}

.dnd-maker-guide-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 4px;
    height: 21px;
    border-radius: 999px;
    background: #18c5a6;
}

.dnd-maker-guide-section p {
    margin: 0;
    color: #3f454a;
    font-size: 13px;
    line-height: 1.85;
}

.dnd-maker-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 8px;
    margin: 0;
}

.dnd-maker-stats div {
    min-width: 0;
    padding: 10px 12px;
    background: #f7faf9;
    border: 1px solid #e1ebe8;
    border-radius: 8px;
}

.dnd-maker-stats dt {
    margin: 0 0 3px;
    color: #6c7774;
    font-size: 11px;
    line-height: 1.3;
}

.dnd-maker-stats dd {
    margin: 0;
    color: #202624;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

/* Related information: independent cards; no shared row height or empty gaps. */
.dnd-maker-guide-section:has(.dnd-dictionary-related-card) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dnd-maker-guide-section:has(.dnd-dictionary-related-card) > h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.dnd-dictionary-related-card {
    min-width: 0;
    align-self: start;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe9e6;
    border-radius: 9px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .025);
}

.dnd-dictionary-related-card h3 {
    margin: 0;
    padding: 11px 13px;
    background: linear-gradient(180deg, #f6fbfa 0%, #f0f7f5 100%);
    border-bottom: 1px solid #e2ebe8;
    color: #263330;
    font-size: 14px;
    line-height: 1.4;
}

.dnd-dictionary-related-card .dnd-maker-related-list {
    margin: 0;
    padding: 0 12px 5px;
    list-style: none;
}

.dnd-dictionary-related-card .dnd-maker-related-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-width: 0;
    padding: 8px 0;
    border-bottom: 1px solid #edf0ef;
    font-size: 13px;
    line-height: 1.35;
}

.dnd-dictionary-related-card .dnd-maker-related-list li:last-child {
    border-bottom: 0;
}

.dnd-dictionary-related-card .dnd-maker-related-list li::before {
    display: none;
}

.dnd-dictionary-related-card .dnd-maker-related-list a {
    min-width: 0;
    overflow: hidden;
    color: #0875c1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dnd-dictionary-related-card .dnd-maker-related-list a:hover {
    color: #005da0;
}

.dnd-dictionary-related-card .dnd-maker-related-list span {
    min-width: 44px;
    padding: 2px 7px;
    background: #f0f3f2;
    border-radius: 999px;
    color: #68716f;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
    white-space: nowrap;
}

.dnd-maker-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.dnd-maker-faq details {
    overflow: hidden;
    padding: 0;
    background: #fafbfb;
    border: 1px solid #e1e5e4;
    border-radius: 8px;
}

.dnd-maker-faq summary {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.dnd-maker-faq p {
    margin: 0;
    padding: 0 12px 11px;
    color: #555;
    font-size: 12px;
    line-height: 1.7;
}

.dnd-maker-work-list h2 {
    margin: 0 0 12px;
    font-size: 19px;
}

@media (max-width: 900px) {
    .dnd-maker-guide-section:has(.dnd-dictionary-related-card) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dnd-maker-guide {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-bottom: 14px;
    }

    .dnd-maker-guide-section,
    .dnd-maker-guide-section:nth-child(n + 3) {
        grid-column: auto;
        padding: 12px;
    }

    .dnd-maker-guide-section h2 {
        font-size: 16px;
    }

    .dnd-maker-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .dnd-maker-guide-section:has(.dnd-dictionary-related-card) {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .dnd-maker-guide-section:has(.dnd-dictionary-related-card) > h2 {
        grid-column: 1;
    }

    .dnd-maker-faq {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   DICTIONARY PAGE - IMAGE MATCH FIX
========================================================= */
.dnd-maker-guide {
    grid-template-columns: 1fr;
    gap: 14px;
}

.dnd-maker-guide-section,
.dnd-maker-guide-section:nth-child(n + 3) {
    grid-column: 1 / -1;
}

.dnd-maker-guide-section:has(.dnd-dictionary-related-card) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
    background: #fff;
}

.dnd-maker-guide-section:has(.dnd-dictionary-related-card) > h2 {
    grid-column: 1 / -1;
    margin: 0;
}

.dnd-dictionary-related-card {
    align-self: stretch;
    border: 1px solid #dfe7e5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .035);
}

.dnd-dictionary-related-card:nth-of-type(1) h3 {
    color: #087968;
    background: linear-gradient(180deg, #effaf7 0%, #f7fcfb 100%);
}

.dnd-dictionary-related-card:nth-of-type(2) h3 {
    color: #126fbd;
    background: linear-gradient(180deg, #f0f7fe 0%, #f8fbff 100%);
}

.dnd-dictionary-related-card:nth-of-type(3) h3,
.dnd-dictionary-related-card:nth-of-type(4) h3 {
    color: #6b45b8;
    background: linear-gradient(180deg, #f6f2fd 0%, #fbf9ff 100%);
}

.dnd-dictionary-related-card h3 {
    padding: 13px 14px;
    font-size: 15px;
    font-weight: 800;
}

.dnd-dictionary-related-card .dnd-maker-related-list {
    counter-reset: dictionary-rank;
    padding: 7px 13px 10px;
}

.dnd-dictionary-related-card .dnd-maker-related-list li {
    counter-increment: dictionary-rank;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 0;
}

.dnd-dictionary-related-card .dnd-maker-related-list li::before {
    content: counter(dictionary-rank);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #18b596;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.dnd-dictionary-related-card:nth-of-type(2) .dnd-maker-related-list li::before {
    background: #2f83d3;
}

.dnd-dictionary-related-card:nth-of-type(3) .dnd-maker-related-list li::before,
.dnd-dictionary-related-card:nth-of-type(4) .dnd-maker-related-list li::before {
    background: #8a68d2;
}

.dnd-dictionary-related-card .dnd-maker-related-list span {
    min-width: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: #555;
    font-size: 12px;
    font-weight: 500;
}

.dnd-maker-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dnd-maker-faq {
    grid-template-columns: 1fr;
}

@media (max-width: 1000px) {
    .dnd-maker-guide-section:has(.dnd-dictionary-related-card) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dnd-maker-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dnd-maker-guide-section:has(.dnd-dictionary-related-card) {
        grid-template-columns: 1fr;
        padding: 12px;
    }

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

/* =========================================================
   DICTIONARY RELATED GRID - VARIABLE CARD COUNT FIX
========================================================= */
.dnd-maker-guide-section:has(> .dnd-dictionary-related-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.dnd-maker-guide-section:has(> .dnd-dictionary-related-card:nth-of-type(3)):not(:has(> .dnd-dictionary-related-card:nth-of-type(4))) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dnd-maker-guide-section:has(> .dnd-dictionary-related-card:nth-of-type(1)):not(:has(> .dnd-dictionary-related-card:nth-of-type(2))) {
    grid-template-columns: minmax(0, 1fr);
}

.dnd-dictionary-related-card {
    align-self: start;
    width: 100%;
}

.dnd-dictionary-related-card:nth-of-type(4) h3 {
    color: #a45b08;
    background: linear-gradient(180deg, #fff7e9 0%, #fffbf4 100%);
}

.dnd-dictionary-related-card:nth-of-type(4) .dnd-maker-related-list li::before {
    background: #dd8b27;
}

@media (max-width: 900px) {
    .dnd-maker-guide-section:has(> .dnd-dictionary-related-card),
    .dnd-maker-guide-section:has(> .dnd-dictionary-related-card:nth-of-type(3)):not(:has(> .dnd-dictionary-related-card:nth-of-type(4))) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .dnd-maker-guide-section:has(> .dnd-dictionary-related-card),
    .dnd-maker-guide-section:has(> .dnd-dictionary-related-card:nth-of-type(3)):not(:has(> .dnd-dictionary-related-card:nth-of-type(4))) {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   DICTIONARY RELATED CARD - EQUAL ROW HEIGHT
========================================================= */
.dnd-maker-guide-section:has(> .dnd-dictionary-related-card) {
    align-items: stretch;
}

.dnd-dictionary-related-card {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.dnd-dictionary-related-card .dnd-maker-related-list {
    flex: 1 1 auto;
    width: 100%;
}

@media (max-width: 620px) {
    .dnd-dictionary-related-card {
        min-height: 0;
    }
}


/* =========================================================
   DEEP & DARK BUILD003
========================================================= */
:root{
    --dd-ink:#111214;
    --dd-soft:#70747b;
    --dd-line:#e3e4e7;
    --dd-paper:#f6f6f4;
    --dd-panel:#ffffff;
    --dd-dark:#101113;
    --dd-accent:#0e9f89;
}
body{background:var(--dd-paper);color:var(--dd-ink)}
.ddshell{width:min(1220px,calc(100% - 36px));margin-inline:auto}

/* header */
.ddh{background:#fff;border-top:4px solid var(--dd-dark);border-bottom:1px solid var(--dd-line)}
.ddh__top{background:#fff}
.ddh__inner{min-height:76px;display:grid;grid-template-columns:auto minmax(320px,560px) auto;align-items:center;gap:28px}
.ddlogo{display:grid;grid-template-columns:auto auto auto;grid-template-rows:auto auto;align-items:end;color:#111;text-decoration:none;line-height:1}
.ddlogo span,.ddlogo b{font-size:25px;font-weight:950;letter-spacing:1px}
.ddlogo b{margin:0 5px;color:var(--dd-accent)}
.ddlogo small{grid-column:1/4;margin-top:6px;color:#92959b;font-size:8px;font-weight:800;letter-spacing:2.2px}
.ddlogo:hover{color:#111;text-decoration:none}
.ddsearch{height:42px;display:grid;grid-template-columns:1fr auto;border:1px solid #d7d9dd;background:#fafafa}
.ddsearch input{min-width:0;padding:0 13px;border:0;background:transparent;outline:none;font-size:14px}
.ddsearch button{padding:0 19px;border:0;background:var(--dd-dark);color:#fff;font-size:12px;font-weight:800;cursor:pointer}
.ddh__filters{display:flex;gap:7px}
.ddh__filters label{font-size:11px;color:#6d7076;white-space:nowrap}
.ddh__filters input{accent-color:var(--dd-dark)}
.ddnavbtn{display:none}

.ddnav2{background:#fff;border-top:1px solid #f0f0f1}
.ddnav2__inner{display:flex;gap:28px;height:46px;align-items:center}
.ddnav2 a{position:relative;color:#44484e;font-size:13px;font-weight:800;text-decoration:none}
.ddnav2 a:after{content:"";position:absolute;left:0;right:100%;bottom:-14px;height:2px;background:var(--dd-accent);transition:right .18s}
.ddnav2 a:hover{color:#111;text-decoration:none}.ddnav2 a:hover:after{right:0}

/* hero */
.ddhome{padding:30px 0 54px}
.ddhero{display:grid;grid-template-columns:minmax(0,1fr) 280px;min-height:230px;background:var(--dd-dark);color:#fff}
.ddhero__copy{padding:38px 42px}
.ddhero__eyebrow{margin:0 0 14px;color:#8c9198;font-size:10px;font-weight:900;letter-spacing:2px}
.ddhero h1{margin:0;font-size:40px;line-height:1.25;letter-spacing:.5px;color:#fff}
.ddhero__lead{max-width:760px;margin:17px 0 0;color:#b8bbc0;font-size:14px;line-height:1.85}
.ddhero__aside{display:flex;flex-direction:column;justify-content:center;padding:32px;border-left:1px solid #2b2c30;background:#17181b}
.ddhero__aside div{display:flex;flex-direction:column}
.ddhero__aside span{color:#92969c;font-size:11px}
.ddhero__aside strong{margin:7px 0 3px;font-size:36px;line-height:1;color:#fff}
.ddhero__aside p{margin:8px 0 0;color:var(--dd-accent);font-size:11px}

/* quick navigation */
.ddquick{display:grid;grid-template-columns:repeat(5,1fr);margin:16px 0 34px;border:1px solid var(--dd-line);background:#fff}
.ddquick a{position:relative;padding:16px 18px;border-right:1px solid var(--dd-line);color:#111;text-decoration:none}
.ddquick a:last-child{border-right:0}
.ddquick a:before{content:"";position:absolute;left:0;top:0;bottom:100%;width:3px;background:var(--dd-accent);transition:bottom .18s}
.ddquick a:hover:before{bottom:0}.ddquick a:hover{text-decoration:none;background:#fafafa}
.ddquick span{display:block;font-size:13px;font-weight:900}.ddquick small{display:block;margin-top:4px;color:#8b8e94;font-size:10px}

/* section */
.ddlatest__head{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #bfc1c5}
.ddlatest__head p{margin:0 0 3px;color:var(--dd-accent);font-size:9px;font-weight:900;letter-spacing:2px}
.ddlatest__head h2{margin:0;font-size:23px}.ddlatest__head>span{color:#92959a;font-size:11px}

/* cards */
.ddcards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px 12px}
.ddcard{min-width:0;background:#fff;border:1px solid #e0e1e3}
.ddcard__img{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#ddd}
.ddcard__img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.ddcard:hover .ddcard__img img{transform:scale(1.03)}
.ddcard__img time{position:absolute;right:0;bottom:0;padding:4px 7px;background:rgba(16,17,19,.86);color:#fff;font-size:9px}
.ddcard__body{padding:11px 11px 12px}
.ddcard h3{min-height:42px;margin:0 0 8px;font-size:13px;line-height:1.55}
.ddcard h3 a{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#151619;text-decoration:none}
.ddcard h3 a:hover{color:var(--dd-accent)}
.ddcard__maker,.ddcard__cast{overflow:hidden;margin:3px 0;color:#6e7278;font-size:10px;white-space:nowrap;text-overflow:ellipsis}
.ddcard__cast{color:#4d5055}
.ddcard__tags{display:flex;gap:4px;min-height:20px;margin-top:8px;overflow:hidden}
.ddcard__tags a{padding:3px 6px;background:#f1f2f3;color:#61656b;font-size:9px;text-decoration:none;white-space:nowrap}
.ddcard__tags a:hover{background:#e7e8ea;color:#111;text-decoration:none}

/* footer */
.ddfooter{padding:30px 0;background:#111214;color:#8c9096}
.ddfooter__inner{display:grid;grid-template-columns:1fr auto;gap:12px 24px;align-items:center}
.ddfooter__brand{display:flex;align-items:baseline;gap:10px}.ddfooter__brand strong{color:#fff;font-size:17px}.ddfooter__brand span{font-size:10px}
.ddfooter nav{display:flex;gap:18px}.ddfooter nav a{color:#b8bbc0;font-size:10px;text-decoration:none}
.ddfooter p{grid-column:1/3;margin:0;font-size:9px}

@media(max-width:1050px){
    .ddcards{grid-template-columns:repeat(4,1fr)}
    .ddh__inner{grid-template-columns:auto 1fr;gap:14px}
    .ddh__filters{grid-column:2}
}
@media(max-width:760px){
    .ddshell{width:calc(100% - 16px)}
    .ddh__inner{grid-template-columns:1fr auto;padding:10px 0}
    .ddlogo span,.ddlogo b{font-size:21px}
    .ddsearch{grid-column:1/3;grid-row:2;height:39px}
    .ddh__filters{display:none}
    .ddnavbtn{display:block;width:38px;height:34px;border:1px solid #ddd;background:#fff;padding:7px}
    .ddnavbtn span{display:block;height:2px;margin:4px 0;background:#222}
    .ddnav2{display:none}.ddnav2.is-open{display:block}
    .ddnav2__inner{height:auto;display:grid;grid-template-columns:repeat(2,1fr);gap:0;padding-bottom:8px}
    .ddnav2 a{padding:10px 0;border-bottom:1px solid #eee}
    .ddnav2 a:after{display:none}
    .ddhome{padding-top:16px}
    .ddhero{grid-template-columns:1fr;min-height:0}
    .ddhero__copy{padding:24px 20px}.ddhero h1{font-size:29px}.ddhero__lead{font-size:12px}
    .ddhero__aside{display:none}
    .ddquick{grid-template-columns:repeat(2,1fr)}
    .ddquick a{border-bottom:1px solid var(--dd-line)}
    .ddcards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 7px}
    .ddcard__body{padding:8px}
    .ddcard h3{font-size:12px;min-height:39px}
    .ddlatest__head>span{display:none}
    .ddfooter__inner{display:flex;flex-direction:column;align-items:flex-start}
}


/* =========================================================
   DEEP & DARK BUILD004 : compact database front / own pager
========================================================= */
.ddhome{padding:18px 0 48px}
.ddhero,.ddquick{display:none!important}
.ddsummary{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px;padding:10px 15px;border:1px solid #dedfe2;border-left:4px solid #111214;background:#fff}
.ddsummary__copy{min-width:0;display:flex;align-items:baseline;gap:14px}
.ddsummary__copy strong{font-size:14px;white-space:nowrap}
.ddsummary__copy span{overflow:hidden;color:#74787e;font-size:11px;white-space:nowrap;text-overflow:ellipsis}
.ddsummary__stat{display:flex;align-items:baseline;gap:6px;white-space:nowrap;padding-left:16px;border-left:1px solid #e1e2e4}
.ddsummary__stat span,.ddsummary__stat small{color:#858990;font-size:10px}.ddsummary__stat b{font-size:20px;color:#111214}
.ddlatest__head{margin-bottom:12px;padding-bottom:9px}.ddlatest__head p{margin-bottom:1px}.ddlatest__head h1{margin:0;font-size:21px;line-height:1.25}
.ddcard h2{min-height:42px;margin:0 0 8px;font-size:13px;line-height:1.55}
.ddcard h2 a{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#151619;text-decoration:none}.ddcard h2 a:hover{color:var(--dd-accent)}
.ddcard__facts{display:grid;gap:3px}.ddcard__facts p{display:grid;grid-template-columns:30px minmax(0,1fr);gap:5px;margin:0;color:#666;font-size:10px}.ddcard__facts span{color:#999}.ddcard__facts b{overflow:hidden;font-weight:500;white-space:nowrap;text-overflow:ellipsis}

.ddpages{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;margin:32px 0 8px;padding:12px 14px;border-top:1px solid #cfd1d4;border-bottom:1px solid #cfd1d4;background:#fff}
.ddpages__status{display:flex;align-items:baseline;gap:6px;min-width:116px;color:#777}.ddpages__status span{font-size:8px;font-weight:900;letter-spacing:1.5px}.ddpages__status strong{font-size:22px;color:#111}.ddpages__status i{font-style:normal;color:#bbb}.ddpages__status em{font-style:normal;font-size:11px;color:#777}
.ddpages__links{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px}.ddpages__move{display:flex;align-items:center;justify-content:center;gap:7px;min-width:70px;padding:7px 9px;border:1px solid #d7d9dc;color:#333;font-size:10px;font-weight:800;text-decoration:none}.ddpages__move b{font-size:14px;color:#0e9f89}.ddpages__move:hover{border-color:#111;color:#111;text-decoration:none}.ddpages__move.is-off{opacity:.3}
.ddpages__nums{display:flex;justify-content:center;align-items:center;gap:4px}.ddpages__nums a,.ddpages__nums strong{display:flex;align-items:center;justify-content:center;min-width:29px;height:29px;padding:0 5px;font-size:10px;text-decoration:none}.ddpages__nums a{color:#555}.ddpages__nums a:hover{background:#f1f2f3;color:#111}.ddpages__nums strong{background:#111214;color:#fff}.ddpages__nums i{padding:0 2px;color:#aaa;font-style:normal}
@media(max-width:760px){.ddhome{padding-top:10px}.ddsummary{min-height:0;margin-bottom:12px;padding:9px 10px}.ddsummary__copy{display:block}.ddsummary__copy strong{display:block;font-size:12px}.ddsummary__copy span{display:block;margin-top:3px;font-size:9px;white-space:normal;line-height:1.45}.ddsummary__stat{padding-left:10px}.ddsummary__stat span,.ddsummary__stat small{display:none}.ddsummary__stat b{font-size:17px}.ddlatest__head h1{font-size:19px}.ddpages{grid-template-columns:1fr;gap:8px;margin-top:22px;padding:9px}.ddpages__status{justify-content:center}.ddpages__links{grid-template-columns:auto 1fr auto;gap:5px}.ddpages__move{min-width:49px;padding:6px 5px}.ddpages__move span{display:none}.ddpages__nums{gap:1px}.ddpages__nums a,.ddpages__nums strong{min-width:25px;height:27px;padding:0 3px}}

/* =========================================================
   DEEP & DARK BUILD005 : front page
========================================================= */
.ddhome5{padding:24px 0 50px}
.ddtop5{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}
.ddtop5__head{display:flex;align-items:end;justify-content:space-between;margin-bottom:13px;padding-bottom:10px;border-bottom:2px solid #17181a}
.ddtop5__head p{margin:0 0 2px;color:#0e9f89;font-size:9px;font-weight:900;letter-spacing:2px}
.ddtop5__head h1{margin:0;font-size:22px;line-height:1.2}
.ddtop5__head>span{color:#85898f;font-size:11px}

.ddcards5{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 10px}
.ddcard5{min-width:0;background:#fff;border:1px solid #e2e3e5}
.ddcard5__img{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#ddd}
.ddcard5__img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .22s ease}
.ddcard5:hover .ddcard5__img img{transform:scale(1.025)}
.ddcard5__img time{position:absolute;right:0;bottom:0;padding:4px 6px;background:rgba(17,18,20,.84);color:#fff;font-size:9px}
.ddcard5__body{padding:9px 10px 10px}
.ddcard5 h2{min-height:39px;margin:0 0 6px;font-size:12.5px;line-height:1.5}
.ddcard5 h2 a{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:#151619;text-decoration:none}
.ddcard5 h2 a:hover{color:#0e8c79}
.ddcard5__maker{overflow:hidden;margin:0 0 7px;color:#767a80;font-size:10px;white-space:nowrap;text-overflow:ellipsis}
.ddcard5__tags{display:flex;gap:4px;overflow:hidden}
.ddcard5__tags a{padding:3px 5px;background:#f1f2f3;color:#666a70;font-size:9px;text-decoration:none;white-space:nowrap}

.ddside5{position:sticky;top:14px;display:grid;gap:14px}
.ddside5__box{background:#151619;color:#fff;border-top:3px solid #0e9f89}
.ddside5__box h2{margin:0;padding:14px 16px 10px;font-size:15px}
.ddside5__box a{display:grid;gap:3px;padding:12px 16px;border-top:1px solid #2a2c30;color:#fff;text-decoration:none}
.ddside5__box a:hover{background:#1d1f22;text-decoration:none}
.ddside5__box strong{font-size:12px}.ddside5__box span{color:#8f949b;font-size:9px}
.ddside5__note{padding:15px 16px;background:#fff;border:1px solid #e1e2e4}
.ddside5__note b{font-size:12px;letter-spacing:.5px}
.ddside5__note p{margin:7px 0 0;color:#6f7379;font-size:10px;line-height:1.7}

@media(max-width:980px){
  .ddtop5{grid-template-columns:1fr}
  .ddside5{position:static;grid-template-columns:1fr 1fr}
  .ddside5__box{display:grid;grid-template-columns:repeat(5,1fr);border-top:0}
  .ddside5__box h2{grid-column:1/6;border-bottom:1px solid #2a2c30}
  .ddside5__box a{border-top:0;border-right:1px solid #2a2c30}
}
@media(max-width:760px){
  .ddhome5{padding-top:14px}
  .ddcards5{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 7px}
  .ddcard5__body{padding:8px}
  .ddcard5 h2{font-size:12px;min-height:37px}
  .ddside5{grid-template-columns:1fr}
  .ddside5__box{grid-template-columns:repeat(2,1fr)}
  .ddside5__box h2{grid-column:1/3}
  .ddtop5__head>span{display:none}
}
