.rodb {
    margin: 1.5rem 0;
}

.rodb-home {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    margin-top: 16px;
    overflow: hidden;
}

.rodb-home-columns {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px;
}

.rodb-home-list {
    display: grid;
    gap: 10px;
    list-style: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
}

.rodb-home-list li {
    list-style: none !important;
}

.rodb-home-list a {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 10px 12px;
    text-decoration: none;
}

.rodb-home-list strong,
.rodb-home-list small {
    display: block;
}

.rodb-home-list small {
    opacity: 0.72;
}

.rodb-search-menu {
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 16px;
    padding: 14px;
}

.rodb-search-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(140px, 1fr) auto minmax(140px, 1fr) auto;
}

.rodb-search-row label {
    font-weight: 600;
}

.rodb-search-row input[type="search"],
.rodb-search-row input[type="text"] {
    width: 100%;
}

.rodb-search-row button {
    cursor: pointer;
    white-space: nowrap;
}

.rodb-search-meta {
    font-size: 13px;
    margin-top: 10px;
    opacity: 0.72;
}

.rodb-rates-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 12px;
}

.rodb-rates-form label {
    font-size: 13px;
    font-weight: 600;
}

.rodb-rates-form input[type="number"] {
    max-width: 96px;
    width: 96px;
}

.rodb-rates-form button {
    cursor: pointer;
}

.rodb-pager {
    margin: 0 0 16px;
}

.rodb-pager-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.rodb-pager-link {
    font-weight: 600;
}

.rodb a {
    text-decoration: none;
}

.rodb-card-header a {
    color: inherit;
}

.rodb-monster-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-sizing: border-box;
    color: inherit;
    margin-bottom: 24px;
    overflow: hidden;
    scroll-margin-top: 24px;
}

.rodb-item-card {
    max-width: none;
}

.rodb-card-header {
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 24px;
}

.rodb-card-header h1,
.rodb-card-header h2 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.rodb-card-header h1 span,
.rodb-card-header h2 span {
    font-size: 0.65em;
    font-weight: 400;
    opacity: 0.75;
}

.rodb-card-body {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(140px, 220px) 1fr;
    padding: 24px;
}

.rodb-monster-summary {
    align-items: stretch;
    grid-template-columns: minmax(140px, 220px) minmax(360px, 1fr) minmax(220px, 0.55fr);
}

.rodb-locations-scroll {
    height: 206px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 2px;
    scrollbar-color: rgba(255, 255, 255, 0.35) rgba(0, 0, 0, 0.2);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.rodb-locations-scroll::-webkit-scrollbar {
    width: 8px;
}

.rodb-locations-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}

.rodb-locations-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.rodb-locations-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.rodb-portrait {
    align-items: center;
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 180px;
    padding: 16px;
}

.rodb-portrait img {
    height: auto;
    max-width: 100%;
}

.rodb-item-icon-panel {
    min-height: 120px;
}

.rodb-item-icon-large {
    max-height: 96px;
    object-fit: contain;
}

.rodb-portrait-placeholder {
    align-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    display: flex;
    font-size: 56px;
    height: 120px;
    justify-content: center;
    opacity: 0.45;
    width: 120px;
}

.rodb-panel {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 18px;
}

.rodb-panel h2,
.rodb-panel h3 {
    font-size: 18px;
    margin: 0 0 14px;
    margin-top: 0 !important;
}

.rodb-stats-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    margin: 0;
}

.rodb-stats-grid dd {
    margin-bottom: 0 !important;
}

.rodb-stats-grid div {
    align-items: baseline;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    display: flex;
    gap: 8px;
    padding: 10px 12px;
}

.rodb-stats-grid dt {
    color: #cdc1c1 !important;
    margin-bottom: 0;
    opacity: 0.65;
}

.rodb-stats-grid dt::after {
    content: ":";
}

.rodb-stats-grid dd {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.rodb-sections {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    padding: 0 24px 24px;
}

.rodb-monster-sections {
    grid-template-columns: 1fr;
}

.rodb-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    margin: 0 !important;
    padding-left: 0 !important;
}

.rodb-chip-list li {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    list-style: none !important;
    padding: 0 6px;
}

.rodb-chip-list a {
    text-decoration: none;
}

.rodb-chip-list .rodb-chip-count {
    opacity: 0.7;
}

.rodb-drop-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.rodb-drop-list li {
    list-style: none !important;
}

.rodb-drop-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    max-width: 100%;
    padding: 8px 10px;
}

.rodb-drop-icon {
    align-items: center;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    display: flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
    overflow: hidden;
    width: 36px;
}

.rodb-drop-icon img {
    max-height: 32px;
    max-width: 32px;
}

.rodb-drop-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rodb-drop-link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rodb-drop-link span {
    opacity: 0.7;
}

.rodb-description {
    margin: 0 0 12px;
    opacity: 0.9;
}

.rodb-script {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    word-break: break-word;
}

.rodb-item-preview {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.rodb-item-preview img {
    background: rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    max-height: 64px;
    max-width: 64px;
}

.rodb-table-wrap {
    margin-top: 8px;
    overflow-x: auto;
}

.rodb-table {
    border-collapse: collapse;
    width: 100%;
}

.rodb-table th,
.rodb-table td {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 10px;
    text-align: center;
}

.rodb-table th {
    background: rgba(0, 0, 0, 0.18);
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
}

.rodb-table td.table-success {
    background: rgba(40, 167, 69, 0.28);
}

.rodb-table td.table-warning {
    background: rgba(255, 193, 7, 0.22);
}

.rodb-table td.table-danger {
    background: rgba(220, 53, 69, 0.28);
}

.rodb-price-badge,
.rodb .arcadia-price-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: inherit;
    display: inline-flex;
    font-size: 12px;
    font-weight: 500;
    gap: 6px;
    padding: 2px 8px;
    white-space: nowrap;
}

.rodb .badge-info,
.rodb .badge-success {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: inherit;
    display: inline-block;
    font-size: 12px;
    padding: 2px 8px;
}

.rodb-map-card-body {
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
}

.rodb-map-image-panel {
    margin-bottom: 0;
    min-height: 180px;
}

.rodb-map-image-panel img {
    border-radius: 6px;
    height: auto;
    max-width: 100%;
}

.rodb-bgm-info {
    display: grid;
    gap: 10px;
}

.rodb-map-monsters {
    margin-top: 18px;
}

.rodb-map-monsters h3 {
    font-size: 14px;
    margin: 0 0 10px;
    opacity: 0.8;
}

.rodb-map-monster-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
}

.rodb-map-monster-list li {
    flex: 0 0 auto;
    list-style: none !important;
    max-width: 100%;
}

.rodb-map-monster-list a {
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: inline-flex;
    gap: 10px;
    max-width: 100%;
    padding: 5px 10px 5px 6px;
    text-decoration: none;
    width: auto;
}

.rodb-map-monster-list a strong {
    white-space: nowrap;
}

.rodb-home-thumb {
    align-items: center;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    display: flex;
    height: 52px;
    justify-content: center;
    overflow: hidden;
    width: 52px;
}

.rodb-home-thumb img {
    max-height: 48px;
    max-width: 48px;
}

.rodb-empty {
    margin: 0;
    opacity: 0.72;
}

@media (max-width: 800px) {
    .rodb-card-body,
    .rodb-home-columns,
    .rodb-map-card-body,
    .rodb-monster-summary,
    .rodb-sections,
    .rodb-stats-grid {
        grid-template-columns: 1fr;
    }

    .rodb-home-columns {
        padding-left: 16px;
        padding-right: 16px;
    }

    .rodb-card-header,
    .rodb-card-body,
    .rodb-sections {
        padding-left: 16px;
        padding-right: 16px;
    }

    .rodb-search-row {
        grid-template-columns: 1fr;
    }
}
